/* 18WheelerClaims.com — full responsive stylesheet.
   Brand: deep trust navy #0d2440 + safety orange #e8632c. Mobile-first. */

/* ── Font ──────────────────────────────────────────────────────────── */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-variable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ── Variables ─────────────────────────────────────────────────────── */
:root {
    --navy:         #0d2440;
    --navy-light:   #16375f;
    --navy-mid:     #1f4a7e;
    --navy-pale:    #eef3f9;
    --steel:        #5a7396;
    --orange:       #e8632c;
    --orange-dark:  #c94f1d;
    --orange-light: #fce9df;
    --ink:          #1a2433;
    --gray-7:       #3f4c5e;
    --gray-5:       #64748b;
    --gray-3:       #cbd5e1;
    --gray-1:       #f4f6f9;
    --white:        #ffffff;
    --green:        #1b7f4d;
    --red:          #b3261e;
    --radius:       10px;
    --shadow:       0 2px 10px rgba(13, 36, 64, .08);
    --shadow-lg:    0 8px 30px rgba(13, 36, 64, .16);
    --header-h:     70px;
}

/* ── Reset / base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy-mid); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4 { line-height: 1.22; color: var(--navy); font-weight: 800; margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.015em; margin-top: 1.6em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
li { margin-bottom: .35em; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: .8rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-light); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-full { display: block; width: 100%; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible {
    outline: 3px solid var(--orange); outline-offset: 2px;
}

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--white);
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex; align-items: center; gap: 1.25rem;
    min-height: var(--header-h);
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 34px; width: auto; }
.main-nav { display: none; }
.main-nav a {
    color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem;
    padding: .4rem .1rem;
}
.main-nav a:hover, .main-nav a.active { color: var(--orange-dark); }
.main-nav .lang-toggle {
    border: 1.5px solid var(--gray-3); border-radius: 999px;
    padding: .25rem .8rem; font-size: .85rem; color: var(--gray-7);
}
.header-contact { display: none; margin-left: auto; align-items: center; gap: 1rem; }
.nav-toggle {
    margin-left: auto;
    background: none; border: 0; cursor: pointer;
    width: 44px; height: 44px; padding: 10px;
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 3px; width: 100%; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.main-nav.open {
    display: flex; flex-direction: column; gap: .25rem;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--white); padding: 1rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-lg);
}
.main-nav.open a { padding: .65rem .25rem; border-bottom: 1px solid var(--gray-1); font-size: 1.05rem; }
.main-nav.open .lang-toggle { align-self: flex-start; margin-top: .5rem; border-bottom: none; }

@media (min-width: 992px) {
    .nav-toggle { display: none; }
    .main-nav { display: flex; align-items: center; gap: 1.3rem; margin-left: .5rem; }
    .header-contact { display: flex; }
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 55%, var(--navy-mid) 100%);
    color: #fff;
    padding: 3rem 0 3.5rem;
}
.hero h1 { color: #fff; }
.hero .hero-sub { color: #d7e2f0; font-size: 1.15rem; max-width: 34em; }
.hero-grid { display: grid; gap: 2.5rem; align-items: start; }
.hero-points { list-style: none; padding: 0; margin: 1.4rem 0; }
.hero-points li { padding-left: 1.9rem; position: relative; margin-bottom: .55em; color: #e6edf7; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 800; }
.hero-phone-line { color: #d7e2f0; }
.hero-phone-line a { color: #fff; font-weight: 800; font-size: 1.2rem; }
@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 3rem; }
    .hero { padding: 4rem 0 4.5rem; }
}

/* ── Trust strip ───────────────────────────────────────────────────── */
.trust-strip {
    background: var(--navy-pale);
    border-bottom: 1px solid var(--gray-3);
    padding: .8rem 0;
}
.trust-strip .container {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: .4rem 2rem;
    font-weight: 600; color: var(--navy); font-size: .95rem;
}
.trust-strip span::before { content: "•"; color: var(--orange); margin-right: .5rem; }

/* ── Sections ──────────────────────────────────────────────────────── */
.section { padding: 3rem 0; }
.section-alt { background: var(--gray-1); }
.section-navy { background: var(--navy); color: #e6edf7; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-title { text-align: center; margin-top: 0; }
.section-lead { text-align: center; max-width: 46em; margin: 0 auto 2rem; color: var(--gray-7); }
.section-lead-left { text-align: left; margin-left: 0; }
.phone-navy { color: var(--navy); font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.eyebrow {
    display: block; text-transform: uppercase; letter-spacing: .12em;
    font-size: .8rem; font-weight: 700; color: var(--orange-dark); margin-bottom: .4rem;
}

/* ── Cards ─────────────────────────────────────────────────────────── */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin: 2rem 0; }
.type-card {
    background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--radius);
    padding: 1.4rem; box-shadow: var(--shadow);
    display: flex; flex-direction: column;
    transition: box-shadow .15s, transform .15s;
}
.type-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.type-card .card-icon { font-size: 1.9rem; line-height: 1; margin-bottom: .6rem; }
.type-card h3 { margin: 0 0 .45em; font-size: 1.08rem; }
.type-card p { color: var(--gray-7); font-size: .95rem; margin-bottom: .9em; }
.type-card .card-link { margin-top: auto; font-weight: 700; text-decoration: none; }
.type-card .card-link::after { content: " →"; }
a.type-card { text-decoration: none; color: inherit; }

/* ── Steps (how it works) ─────────────────────────────────────────── */
.steps-grid { display: grid; gap: 1.5rem; margin: 2rem 0; }
.step-card {
    background: var(--white); border-radius: var(--radius); padding: 1.6rem;
    border: 1px solid var(--gray-3); box-shadow: var(--shadow); position: relative;
}
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--orange); color: #fff; font-weight: 800; font-size: 1.25rem;
    margin-bottom: .8rem;
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Breadcrumbs ───────────────────────────────────────────────────── */
.breadcrumbs { font-size: .85rem; color: var(--gray-5); padding: 1rem 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--gray-3); }
.breadcrumbs a { color: var(--gray-5); }

/* ── Content + sidebar layout (never inline grid styles) ──────────── */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}
.content-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 900px) {
    .content-with-sidebar { grid-template-columns: 1fr; }
    .content-sidebar { position: static; }
}

/* ── Prose / article content ───────────────────────────────────────── */
.prose { max-width: 72ch; }
.prose h2 { padding-top: .4rem; }
.prose table { margin: 1.5rem 0; }
.prose blockquote {
    margin: 1.5rem 0; padding: .8rem 1.2rem;
    border-left: 4px solid var(--orange); background: var(--gray-1);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* ── Tables ────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.data-table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--white); }
.data-table th, .data-table td { border: 1px solid var(--gray-3); padding: .65rem .8rem; text-align: left; vertical-align: top; }
.data-table th { background: var(--navy); color: #fff; font-weight: 700; }
.data-table tr:nth-child(even) { background: var(--gray-1); }

/* ── Notices / disclaimers ─────────────────────────────────────────── */
.notice {
    border-radius: var(--radius); padding: .9rem 1.1rem;
    font-size: .92rem; margin: 1.2rem 0; line-height: 1.55;
}
.notice-warning { background: var(--orange-light); border: 1px solid #f3c4a8; color: #7a3413; }
.notice-legal { background: var(--gray-1); border: 1px solid var(--gray-3); color: var(--gray-7); }
.notice-success { background: #e7f5ec; border: 1px solid #b5dfc5; color: var(--green); }

/* ── FAQ accordion ─────────────────────────────────────────────────── */
.faq-list { margin: 2rem 0; }
.faq-item { border: 1px solid var(--gray-3); border-radius: var(--radius); margin-bottom: .8rem; background: var(--white); overflow: hidden; }
.faq-q {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    background: none; border: 0; cursor: pointer;
    font-family: inherit; font-size: 1.02rem; font-weight: 700; color: var(--navy);
    text-align: left; padding: 1rem 1.2rem;
}
.faq-q::after { content: "+"; font-size: 1.5rem; color: var(--orange); flex-shrink: 0; line-height: 1; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { display: none; padding: 0 1.2rem 1.1rem; color: var(--gray-7); }
.faq-item.open .faq-a { display: block; }

/* ── Link grids (states hub etc.) ──────────────────────────────────── */
.link-grid { list-style: none; padding: 0; display: grid; gap: .4rem .8rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 1rem 0 2rem; }
.link-grid a { text-decoration: none; padding: .35rem .2rem; display: inline-block; }
.link-grid a:hover { text-decoration: underline; }
.region-group h3 { border-bottom: 2px solid var(--orange); display: inline-block; padding-bottom: .2rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0; }
.tag-list a {
    display: inline-block; background: var(--navy-pale); color: var(--navy);
    border: 1px solid var(--gray-3); border-radius: 999px;
    padding: .3rem .9rem; font-size: .9rem; font-weight: 600; text-decoration: none;
}
.tag-list a:hover { background: var(--navy); color: #fff; }

/* ── Lead form ─────────────────────────────────────────────────────── */
.lead-form-card {
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); border-top: 5px solid var(--orange);
    padding: 1.6rem; color: var(--ink);
}
.lead-form-card h2, .lead-form-card h3 { margin-top: 0; font-size: 1.25rem; }
.form-sub { color: var(--gray-5); font-size: .9rem; margin-bottom: 1.2rem; }
.form-progress { display: flex; gap: .4rem; margin-bottom: 1.3rem; }
.form-progress .progress-seg { flex: 1; height: 6px; border-radius: 3px; background: var(--gray-3); }
.form-progress .progress-seg.active { background: var(--orange); }
.form-progress-label { font-size: .8rem; color: var(--gray-5); margin-bottom: 1rem; }
.form-step { display: none; }
.form-step.active { display: block; }
.form-group { margin-bottom: 1.05rem; }
.form-group > label, .form-group .group-label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: .35rem; color: var(--navy); }
.form-group input[type="text"], .form-group input[type="tel"], .form-group input[type="email"],
.form-group select, .form-group textarea {
    width: 100%; padding: .7rem .8rem;
    border: 1.5px solid var(--gray-3); border-radius: 8px;
    font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
}
.form-group textarea { min-height: 90px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--navy-mid); box-shadow: 0 0 0 3px rgba(31, 74, 126, .15);
}
.choice-group { display: flex; flex-direction: column; gap: .45rem; }
.choice-group label {
    display: flex; align-items: flex-start; gap: .55rem;
    font-size: .95rem; font-weight: 500; cursor: pointer;
    border: 1.5px solid var(--gray-3); border-radius: 8px; padding: .55rem .7rem;
}
.choice-group label:hover { border-color: var(--steel); }
.choice-group input { margin-top: .25rem; flex-shrink: 0; }
.form-nav { display: flex; gap: .8rem; margin-top: 1.2rem; }
.form-nav .btn-back { background: var(--gray-1); color: var(--gray-7); border-color: var(--gray-3); flex: 0 0 auto; }
.form-nav .btn-next, .form-nav .btn-submit { flex: 1; }
.consent-group { margin: 1.1rem 0; }
.consent-group label {
    display: flex; gap: .6rem; align-items: flex-start;
    font-size: .78rem; line-height: 1.5; color: var(--gray-7); cursor: pointer;
}
.consent-group input { margin-top: .2rem; flex-shrink: 0; width: 18px; height: 18px; }
.form-privacy { font-size: .85rem; color: var(--gray-5); text-align: center; margin: .8rem 0 0; }
.form-error { color: var(--red); font-size: .9rem; font-weight: 600; margin: .6rem 0 0; display: none; }
.form-error.show { display: block; }
.form-success { text-align: center; padding: 1.5rem 0; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.inline-form-wrap { max-width: 580px; margin: 0 auto; }

/* ── Sidebar form variant ─────────────────────────────────────────── */
.content-sidebar .lead-form-card { padding: 1.3rem; }
.content-sidebar .lead-form-card h3 { font-size: 1.1rem; }

/* ── CTA band ──────────────────────────────────────────────────────── */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); color: #fff; text-align: center; padding: 3rem 0; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #d7e2f0; max-width: 40em; margin: 0 auto 1.4rem; }
.cta-band .tracking-number { color: #fff; font-weight: 800; font-size: 1.3rem; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: #b9c6d8; padding: 3rem 0 2rem; margin-top: 3rem; font-size: .93rem; }
.site-footer a { color: #d7e2f0; text-decoration: none; }
.site-footer a:hover { color: var(--orange); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
.footer-col h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .8rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .45em; }
.footer-logo { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: .6rem; }
.footer-logo span { color: var(--orange); }
.footer-phone { font-size: 1.15rem; font-weight: 800; color: #fff !important; }
.footer-disclaimer {
    border-top: 1px solid var(--navy-mid); padding-top: 1.5rem;
    font-size: .8rem; line-height: 1.6; color: #8fa2ba;
}
.footer-disclaimer strong { color: #b9c6d8; }
.footer-bottom { padding-top: 1rem; font-size: .8rem; color: #8fa2ba; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } }

/* ── Sticky mobile call bar ────────────────────────────────────────── */
.sticky-call-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    display: none;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 -4px 16px rgba(13, 36, 64, .25);
}
.sticky-call-bar .call-btn, .sticky-call-bar .review-btn {
    display: flex; align-items: center; justify-content: center;
    min-height: 56px; font-size: 1rem; font-weight: 800;
    font-family: inherit; text-decoration: none; border: 0; cursor: pointer;
}
.sticky-call-bar .call-btn { background: var(--orange); color: #fff; }
.sticky-call-bar .review-btn { background: var(--navy); color: #fff; }
@media (max-width: 768px) {
    .sticky-call-bar { display: grid; }
    body { padding-bottom: 56px; }
}

/* ── Chat widget ───────────────────────────────────────────────────── */
.chat-bubble {
    position: fixed; right: 24px; bottom: 24px; z-index: 95;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--orange); color: #fff; font-size: 1.6rem;
    border: 0; cursor: pointer; box-shadow: var(--shadow-lg);
}
.chat-bubble:hover { background: var(--orange-dark); }
.chat-panel {
    position: fixed; right: 24px; bottom: 96px; z-index: 96;
    width: min(360px, calc(100vw - 32px));
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); border: 1px solid var(--gray-3);
    display: flex; flex-direction: column; overflow: hidden;
}
/* display:flex above would otherwise defeat the hidden attribute */
.chat-panel[hidden] { display: none; }
.chat-header {
    background: var(--navy); color: #fff; font-weight: 700;
    padding: .8rem 1rem; display: flex; justify-content: space-between; align-items: center;
}
.chat-header button { background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 0 .2rem; }
.chat-disclaimer { font-size: .72rem; color: var(--gray-5); background: var(--gray-1); margin: 0; padding: .45rem 1rem; }
.chat-messages { padding: 1rem; overflow-y: auto; max-height: 320px; min-height: 140px; display: flex; flex-direction: column; gap: .6rem; }
.chat-msg { padding: .55rem .8rem; border-radius: 12px; max-width: 85%; font-size: .92rem; line-height: 1.45; }
.chat-msg.user { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.bot { background: var(--gray-1); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.typing { color: var(--gray-5); font-style: italic; }
.chat-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--gray-3); }
.chat-form input {
    flex: 1; padding: .55rem .7rem; border: 1.5px solid var(--gray-3);
    border-radius: 8px; font-family: inherit; font-size: .95rem;
}
.chat-form .btn { padding: .5rem 1rem; font-size: .9rem; }
@media (max-width: 768px) {
    /* bottom-LEFT on mobile so the bubble never covers the sticky call bar CTA */
    .chat-bubble { left: 16px; right: auto; bottom: 72px; width: 54px; height: 54px; }
    .chat-panel { left: 16px; right: 16px; bottom: 136px; width: auto; }
}

/* ── Thank-you page ────────────────────────────────────────────────── */
.ty-hero { text-align: center; padding: 4rem 0 2rem; }
.ty-hero .ty-check {
    display: inline-flex; align-items: center; justify-content: center;
    width: 74px; height: 74px; border-radius: 50%;
    background: #e7f5ec; color: var(--green); font-size: 2.3rem; margin-bottom: 1.2rem;
}
.ty-steps { max-width: 620px; margin: 0 auto; text-align: left; }

/* ── Utilities ─────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.tag-center { justify-content: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small { font-size: .85rem; color: var(--gray-5); }

@media print {
    .site-header, .site-footer, .sticky-call-bar, .chat-widget, .lead-form-card { display: none !important; }
}
