/* ==========================================================================
   WillsFreight — style.css
   Palette: Deep Navy #061F3D · Electric Blue #009BFA · White #FFFFFF
            Light Gray #F5F7FA · Dark Text #0A1930 · Border #E5EAF0
   Type: Montserrat (400/500/600/700/800)
   ========================================================================== */

/* ---------- 1. Base ---------- */
:root {
    --navy: #061F3D;
    --navy-2: #0A2A52;
    --blue: #009BFA;
    --blue-dark: #007ED1;
    --white: #FFFFFF;
    --gray-bg: #F5F7FA;
    --ink: #0A1930;
    --muted: #5A6B82;
    --border: #E5EAF0;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 10px 30px rgba(6, 31, 61, 0.10);
    --shadow-sm: 0 4px 14px rgba(6, 31, 61, 0.08);
    --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: "Montserrat", Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1200px, 92%); margin: 0 auto; }

h1, h2, h3 { font-weight: 800; line-height: 1.12; color: var(--navy); letter-spacing: -0.01em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.icon { width: 18px; height: 18px; flex: 0 0 auto; }

.eyebrow {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}

.section { padding: 84px 0; }
.section-gray { background: var(--gray-bg); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--muted); margin-top: 12px; }

/* ---------- 2. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 14px 28px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--gray-bg); }
.btn-arrow { font-weight: 700; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--blue);
}
.link-arrow .circle-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border: 1.5px solid var(--blue);
    border-radius: 50%;
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease;
}
a:hover .circle-arrow, .sol-card:hover .circle-arrow { background: var(--blue); color: var(--white); }

/* ---------- 3. Topbar ---------- */
.topbar { background: var(--navy); color: #C9D6E6; font-size: 0.83rem; }
.topbar-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 8px;
    padding-bottom: 8px;
}
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item .icon { color: var(--blue); width: 15px; height: 15px; }
.topbar a { color: var(--white); font-weight: 600; }
.topbar-hours { margin-left: auto; }

/* ---------- 4. Header / navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(6, 31, 61, 0.10); }

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: var(--header-h);
}

.wordmark {
    font-size: 1.72rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--navy);
    line-height: 1;
    white-space: nowrap;
}
.wordmark span { color: var(--blue); }
.wordmark:hover { text-decoration: none; }
.wordmark-light { color: var(--white); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 30px; list-style: none; }
.main-nav a {
    color: var(--ink);
    font-weight: 500;
    font-size: 0.97rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.main-nav a.active { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.lang-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; }
.lang-btn {
    background: none;
    border: none;
    font: inherit;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 2px;
}
.lang-btn.active { color: var(--blue); }
.lang-sep { color: var(--border); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--navy); transition: transform 0.2s ease, opacity 0.2s ease; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 5. Hero (home) ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--gray-bg);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 38%, rgba(255,255,255,0.25) 68%, rgba(255,255,255,0) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 96px 0 84px; max-width: 620px; }
.hero h1 { font-size: clamp(2.9rem, 6.4vw, 4.9rem); font-weight: 800; line-height: 1.02; }
.hero h1 .accent { color: var(--blue); }
.hero-text { font-size: 1.13rem; color: #33475E; margin: 22px 0 30px; max-width: 480px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.trust-bar {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 46px;
}
.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}
.trust-item .icon { color: var(--blue); width: 24px; height: 24px; }

/* ---------- 6. Service cards (home section 02) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { height: 168px; width: 100%; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.16rem; }
.card-body p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.card-body .link-arrow { margin-top: 6px; font-size: 0.94rem; }

/* ---------- 7. Navy about band (home section 03) ---------- */
.about-band { background: var(--navy); color: #D7E2EF; overflow: hidden; }
.about-band-grid { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 460px; }
.about-band-content { padding: 84px 48px 84px 0; align-self: center; }
.about-band h2 { color: var(--white); font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.about-band h2 .accent { color: var(--blue); }
.about-band p { margin: 18px 0 8px; max-width: 480px; }
.about-points { list-style: none; margin: 22px 0 30px; display: grid; gap: 14px; }
.about-points li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--white); }
.about-points .icon { color: var(--blue); width: 22px; height: 22px; }
.about-band-photo { position: relative; min-height: 320px; }
.about-band-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 8. Solutions cards (home section 04) ---------- */
.sol-head { display: flex; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 44px; }
.sol-head .section-head { margin-bottom: 0; flex: 1 1 420px; }
.sol-head-side { max-width: 380px; }
.sol-head-side p { color: var(--muted); margin-bottom: 16px; }

.sol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sol-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.sol-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.sol-card:hover img { transform: scale(1.04); }
.sol-card::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6,31,61,0) 34%, rgba(6,31,61,0.88) 82%);
}
.sol-card:hover { text-decoration: none; }
.sol-card-body { position: relative; z-index: 2; padding: 22px; width: 100%; }
.sol-card-body h3 { color: var(--white); font-size: 1.14rem; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sol-card-body p { color: #D7E2EF; font-size: 0.9rem; margin-top: 6px; }
.sol-card .circle-arrow { border-color: rgba(255,255,255,0.75); color: var(--white); flex: 0 0 auto; }

/* ---------- 9. Final CTA band ---------- */
.cta-band { position: relative; overflow: hidden; color: var(--white); }
.cta-band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,31,61,0.92) 20%, rgba(6,31,61,0.55) 70%, rgba(6,31,61,0.35)); }
.cta-inner {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
    padding: 84px 0;
}
.cta-text { flex: 1 1 480px; }
.cta-band h2 { color: var(--white); font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.cta-band h2 .accent { color: var(--blue); }
.cta-sub { margin-top: 12px; color: #C9D6E6; font-weight: 600; letter-spacing: 0.04em; }

/* ---------- 10. Inner page heroes ---------- */
.page-hero { background: var(--navy); color: #D7E2EF; padding: 72px 0; }
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
.page-hero p { margin-top: 14px; max-width: 640px; font-size: 1.06rem; }

.split-hero { background: var(--gray-bg); overflow: hidden; }
.split-hero-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; align-items: stretch; }
.split-hero-content { padding: 76px 48px 76px 0; align-self: center; }
.split-hero-content h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
.split-hero-content p { margin-top: 14px; color: var(--muted); max-width: 520px; font-size: 1.06rem; }
.split-hero-photo { position: relative; min-height: 300px; }
.split-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 11. Services detail sections ---------- */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 64px 0; scroll-margin-top: calc(var(--header-h) + 24px); }
.svc-detail + .svc-detail { border-top: 1px solid var(--border); }
.svc-detail.flip .svc-photo { order: 2; }
.svc-photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow); height: 320px; width: 100%; object-fit: cover; }
.svc-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.svc-text p { color: var(--muted); margin-bottom: 12px; }
.svc-text ul { list-style: none; margin: 18px 0 24px; display: grid; gap: 10px; }
.svc-text li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.svc-text li .icon { color: var(--blue); width: 20px; height: 20px; margin-top: 3px; }

/* ---------- 12. Benefit / value cards ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}
.benefit .icon-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(0, 155, 250, 0.12); color: var(--blue);
    margin-bottom: 16px;
}
.benefit .icon-badge .icon { width: 26px; height: 26px; }
.benefit h3 { font-size: 1.14rem; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: 0.95rem; }

/* ---------- 13. About page blocks ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col img { border-radius: var(--radius-lg); box-shadow: var(--shadow); height: 340px; width: 100%; object-fit: cover; }
.two-col h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.two-col p { color: var(--muted); margin-bottom: 12px; }
.mission-band { background: var(--navy); color: #D7E2EF; text-align: center; }
.mission-band h2 { color: var(--white); }
.mission-band p { font-size: 1.2rem; max-width: 760px; margin: 14px auto 0; }
.safety-note { background: var(--gray-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.safety-note h2 { font-size: 1.5rem; margin-bottom: 10px; }
.safety-note p { color: var(--muted); }

/* ---------- 14. Contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
}
.contact-card .icon-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(0, 155, 250, 0.12); color: var(--blue);
    margin-bottom: 14px;
}
.contact-card .icon-badge .icon { width: 24px; height: 24px; }
.contact-card h3 { font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 6px; }
.contact-card p, .contact-card a { font-weight: 600; color: var(--navy); font-size: 1.0rem; word-break: break-word; }

/* ---------- 15. Forms ---------- */
.form-wrap { max-width: 860px; }
.form-wrap.centered { margin: 0 auto; }
.form-head { margin-bottom: 30px; }
.form-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.form-head p { color: var(--muted); margin-top: 10px; }

form.wf-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 34px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.93rem; color: var(--navy); }
.field label .opt { color: var(--muted); font-weight: 500; font-size: 0.85rem; }
.field input, .field select, .field textarea {
    font: inherit;
    font-size: 0.97rem;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 155, 250, 0.18);
}
.form-actions { margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { color: var(--muted); font-size: 0.88rem; margin-top: 18px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.banner { border-radius: var(--radius); padding: 18px 22px; margin-bottom: 26px; border: 1px solid; }
.banner h3 { font-size: 1.05rem; margin-bottom: 4px; }
.banner p { font-size: 0.95rem; }
.banner-success { background: #EAF7EE; border-color: #BEE3C6; color: #14532D; }
.banner-success h3 { color: #14532D; }
.banner-error { background: #FDECEC; border-color: #F5C2C2; color: #7F1D1D; }
.banner-error h3 { color: #7F1D1D; }

/* ---------- 16. Privacy ---------- */
.privacy-body { max-width: 820px; }
.privacy-body .updated { color: var(--muted); margin: 8px 0 22px; }
.privacy-body h2 { font-size: 1.3rem; margin: 30px 0 8px; }
.privacy-body p { color: #33475E; margin-bottom: 10px; }

/* ---------- 17. Footer ---------- */
.site-footer { background: var(--navy); color: #C9D6E6; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr;
    gap: 40px;
    padding: 64px 0 48px;
}
.footer-tagline { color: var(--white); font-weight: 700; margin: 16px 0 8px; font-size: 1.02rem; }
.footer-desc { font-size: 0.93rem; max-width: 320px; }
.footer-col h3 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: #C9D6E6; font-size: 0.94rem; }
.footer-col a:hover { color: var(--white); }
.footer-contact .fc-label { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em; color: #8FA5BE; }
.footer-contact a, .footer-contact span { font-size: 0.94rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.footer-bottom-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding-top: 20px; padding-bottom: 20px; font-size: 0.88rem;
}
.footer-bottom a { color: #C9D6E6; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1023px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .sol-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-band-grid { grid-template-columns: 1fr; }
    .about-band-content { padding: 64px 0 48px; }
    .about-band-photo { min-height: 300px; }
    .svc-detail { gap: 32px; }
}

@media (max-width: 860px) {
    .main-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        padding: 10px 4% 18px;
        display: none;
    }
    body.nav-open .main-nav { display: block; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav a { display: block; padding: 10px 6px; border-bottom: none; }
    .nav-toggle { display: flex; }
    .header-quote { display: none; }
    .topbar-mail, .topbar-hours { display: none; }
    .svc-detail, .two-col, .split-hero-grid { grid-template-columns: 1fr; }
    .svc-detail.flip .svc-photo { order: 0; }
    .split-hero-content { padding: 56px 0 40px; }
    .split-hero-photo { min-height: 260px; }
    .benefits-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    form.wf-form { padding: 24px; }
}

@media (max-width: 640px) {
    .section { padding: 56px 0; }
    .cards-grid, .sol-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-content { padding: 64px 0 56px; }
    .hero::after { background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.82) 55%, rgba(255,255,255,0.55) 100%); }
    .trust-bar { flex-direction: column; align-items: flex-start; }
    .cta-inner { padding: 56px 0; }
    .wordmark { font-size: 1.45rem; }
    .footer-bottom-inner { justify-content: center; text-align: center; }
}
