/* ============================================
   Brother Intl Management: Brand Tokens
   ============================================ */
:root {
  --navy-900: #0b1a2f;
  --navy-800: #112542;
  --navy-700: #17324f;
  --navy-600: #1f4266;
  --red-600: #c8102e;
  --red-500: #e0293f;
  --red-400: #eb4a56;
  --bg: #ffffff;
  --bg-muted: #f5f7fa;
  --text: #16233a;
  --text-muted: #5b6b82;
  --text-on-dark: #cfd8e6;
  --border: #e4e8ef;
  --border-dark: #24374f;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 8px rgba(11, 26, 47, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 26, 47, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 26, 47, 0.22);
  --ff-head: 'Manrope', 'Inter', sans-serif;
  --ff-body: 'Inter', sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--ff-head);
  color: var(--navy-900);
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--text-muted); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
.icon-sm { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; margin-right: 5px; }

/* ============ Layout helpers ============ */
.section__inner, .nav__inner, .topbar__inner, .footer__inner, .stats__inner, .hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; scroll-margin-top: 112px; }
#lead-forms, #shipper-form, #carrier-form { scroll-margin-top: 112px; }
.section--dark { background: var(--navy-900); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--text-on-dark); }
.section--muted { background: var(--bg-muted); }
.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__sub { font-size: 1.08rem; }
.section__head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--red-400); margin-bottom: 14px;
}
.eyebrow--dark { color: var(--red-600); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px currentColor22; }

.text-accent { color: var(--red-500); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-weight: 700; font-size: .95rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--red-600); color: #fff; box-shadow: 0 8px 20px rgba(200, 16, 46, .28); }
.btn--primary:hover { background: var(--red-500); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(200, 16, 46, .35); }
.btn--outline { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--outline:hover { border-color: currentColor; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy-900); border-color: transparent; }
.btn--ghost:hover { color: var(--red-600); }
.btn--sm { padding: 9px 18px; font-size: .85rem; }
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ============ Top bar ============ */
.topbar { background: var(--navy-900); color: var(--text-on-dark); font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; gap: 28px; padding-top: 9px; padding-bottom: 9px; }
.topbar__item { display: flex; align-items: center; color: var(--text-on-dark); }
.topbar__item a { color: #fff; font-weight: 600; }
.topbar__item--right { margin-left: auto; opacity: .75; }
@media (max-width: 720px) {
  .topbar__item--hide-sm { display: none; }
}

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.nav.is-scrolled { box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.nav__logo { height: 44px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; margin-left: 12px; }
.nav__links a { font-weight: 600; font-size: .93rem; color: var(--text); position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--red-600); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: flex; gap: 10px; margin-left: auto; }
.lang-toggle {
  display: flex; align-items: center; gap: 2px; margin-left: 14px;
  background: var(--bg-muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px;
}
.lang-toggle__btn {
  background: none; border: none; padding: 5px 10px; border-radius: 999px;
  font-family: var(--ff-head); font-weight: 700; font-size: .78rem; color: var(--text-muted);
  transition: background .18s ease, color .18s ease;
}
.lang-toggle__btn.is-active { background: var(--navy-900); color: #fff; }
@media (max-width: 980px) { .lang-toggle { margin-left: auto; margin-right: 10px; } }

.nav__burger { display: none; margin-left: auto; background: none; border: none; width: 34px; height: 34px; padding: 0; position: relative; }
.nav__burger span { position: absolute; left: 5px; right: 5px; height: 2px; background: var(--navy-900); transition: transform .25s ease, opacity .2s ease; }
.nav__burger span:nth-child(1) { top: 11px; }
.nav__burger span:nth-child(2) { top: 17px; }
.nav__burger span:nth-child(3) { top: 23px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__mobile-panel { display: contents; }

@media (max-width: 980px) {
  .nav__mobile-panel { display: none; }
  .nav__burger { display: block; }
  .nav.is-open .nav__mobile-panel {
    display: flex; flex-direction: column;
    position: absolute; top: 76px; left: 0; right: 0; background: #fff;
    padding: 14px 24px 22px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav__links { display: flex; flex-direction: column; gap: 2px; }
  .nav.is-open .nav__links a { padding: 11px 0; width: 100%; }
  .nav.is-open .nav__cta {
    display: flex; flex-direction: column; align-items: stretch; gap: 10px;
    margin: 12px 0 0; padding-top: 16px; border-top: 1px solid var(--border);
  }
  .nav.is-open .nav__cta .btn { width: 100%; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(11,26,47,.85) 0%, rgba(17,37,66,.80) 55%, rgba(23,50,79,.72) 100%),
    url('../assets/photos/hero-highway.jpg');
  background-size: cover;
  background-position: center 65%;
  padding: 84px 0 104px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; opacity: .35; pointer-events: none; }
.hero__route { width: 100%; height: 100%; }
.hero__route path { fill: none; stroke: var(--red-500); stroke-width: 2; stroke-dasharray: 8 10; opacity: .55; }
.hero__route circle { fill: var(--red-400); }
.hero__inner { position: relative; text-align: center; max-width: 760px; }

.audience-toggle {
  position: relative; display: inline-flex; padding: 5px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  margin-bottom: 40px;
}
.audience-toggle__btn {
  position: relative; z-index: 2; background: none; border: none; color: var(--text-on-dark);
  font-family: var(--ff-head); font-weight: 700; font-size: .88rem;
  padding: 11px 24px; border-radius: 999px; transition: color .2s ease;
}
.audience-toggle__btn.is-active { color: var(--navy-900); }
.audience-toggle__thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  background: #fff; border-radius: 999px; transition: transform .28s cubic-bezier(.65,0,.35,1);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.audience-toggle[data-active="carrier"] .audience-toggle__thumb { transform: translateX(100%); }

.hero__panel { display: none; animation: fadeUp .45s ease; }
.hero__panel.is-active { display: block; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.hero__lede { color: var(--text-on-dark); font-size: 1.12rem; max-width: 600px; margin: 0 auto 32px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============ Stats strip ============ */
.stats { background: #fff; border-bottom: 1px solid var(--border); }
.stats__inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding-top: 44px; padding-bottom: 44px;
}
.stat { text-align: center; }
.stat__num, .stat__num-static {
  display: block; font-family: var(--ff-head); font-weight: 800; color: var(--navy-900);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1;
}
.stat__num-static { font-size: clamp(1.3rem, 2.2vw, 1.7rem); white-space: nowrap; }
.stat__label { display: block; margin-top: 8px; font-size: .86rem; color: var(--text-muted); }
@media (max-width: 780px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Cards / grid ============ */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3 { grid-template-columns: 1fr; } }

.grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
@media (max-width: 640px) { .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  opacity: 0; transform: translateY(16px);
}
.card.in-view { opacity: 1; transform: translateY(0); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  background: linear-gradient(145deg, var(--red-600), var(--red-500));
  display: flex; align-items: center; justify-content: center;
}
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { font-size: .93rem; margin-bottom: 0; }

.card--dark { background: var(--navy-800); border-color: var(--border-dark); }
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--text-on-dark); }

.cta-inline { text-align: center; margin-top: 48px; }

/* ============ Fleet photo banner ============ */
.fleet-banner { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .fleet-banner { grid-template-columns: 1fr; } }
.fleet-banner__item { position: relative; height: 260px; overflow: hidden; }
.fleet-banner__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.fleet-banner__item:hover img { transform: scale(1.04); }
.fleet-banner__item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,26,47,.75) 0%, rgba(11,26,47,.15) 55%, transparent 100%);
}
.fleet-banner__item p {
  position: absolute; left: 24px; bottom: 20px; z-index: 2; margin: 0;
  color: #fff; font-family: var(--ff-head); font-weight: 700; font-size: 1.05rem;
}

/* ============ How it works ============ */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 780px) { .how-grid { grid-template-columns: 1fr; gap: 40px; } }
.how-col__title {
  font-size: 1.2rem; padding-bottom: 14px; margin-bottom: 26px; border-bottom: 2px solid var(--border);
}
.steps li { display: flex; gap: 18px; margin-bottom: 26px; }
.steps li:last-child { margin-bottom: 0; }
.steps__num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy-900); color: #fff; font-family: var(--ff-head); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.steps strong { display: block; color: var(--navy-900); font-family: var(--ff-head); font-size: 1rem; margin-bottom: 3px; }
.steps p { margin: 0; font-size: .92rem; }

/* ============ About ============ */
.section__inner--split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .section__inner--split { grid-template-columns: 1fr; } }
.about__copy { max-width: 720px; margin: 0 auto; text-align: center; }
.about__copy--left { max-width: none; margin: 0; text-align: left; }
.about__badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; justify-content: center; }
.about__copy--left .about__badges { justify-content: flex-start; }
.about__photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .about__photo { order: -1; } }
.badge {
  font-size: .8rem; font-weight: 700; font-family: var(--ff-head); color: var(--navy-900);
  background: #fff; border: 1px solid var(--border); padding: 8px 14px; border-radius: 999px;
}

/* ============ FAQ ============ */
.faq-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 2px; background: none; border: none; text-align: left;
  font-family: var(--ff-head); font-weight: 700; font-size: 1.02rem; color: var(--navy-900);
}
.faq-item__q span { flex: 1; }
.faq-item__icon {
  width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--text-muted);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease;
}
.faq-item.is-open .faq-item__icon { transform: rotate(180deg); stroke: var(--red-600); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.is-open .faq-item__a { max-height: 240px; }
.faq-item__a p { padding: 0 2px 22px; margin: 0; font-size: .94rem; }

/* ============ Lead forms ============ */
.form-toggle {
  display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap;
}
.form-toggle__btn {
  background: transparent; border: 1px solid var(--border-dark); color: var(--text-on-dark);
  font-family: var(--ff-head); font-weight: 700; font-size: .88rem;
  padding: 12px 22px; border-radius: 999px; transition: all .2s ease;
}
.form-toggle__btn.is-active { background: var(--red-600); border-color: var(--red-600); color: #fff; }

.form-panel { display: none; max-width: 720px; margin: 0 auto; }
.form-panel.is-active { display: block; animation: fadeUp .4s ease; }

.lead-form {
  background: var(--navy-800); border: 1px solid var(--border-dark); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: .82rem; font-weight: 700; color: var(--text-on-dark);
  margin-bottom: 7px; font-family: var(--ff-head);
}
.field input, .field select, .field textarea {
  width: 100%; background: var(--navy-900); border: 1px solid var(--border-dark); color: #fff;
  padding: 12px 14px; border-radius: var(--radius-sm); font-size: .95rem; font-family: var(--ff-body);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red-500); box-shadow: 0 0 0 3px rgba(224,41,63,.22);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfd8e6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 38px; }
.lead-form .btn { margin-top: 6px; }
.form-privacy { text-align: center; font-size: .82rem; color: var(--text-on-dark); margin: 14px 0 0; }
.form-privacy a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.form-privacy a:hover { color: var(--red-400); }
.form-status { text-align: center; font-size: .88rem; font-weight: 600; min-height: 1.4em; margin: 14px 0 0; }
.form-status.is-success { color: #6fe3a1; }
.form-status.is-error { color: var(--red-400); }

/* ============ Legal pages ============ */
.legal { max-width: 720px; margin: 0 auto; }
.legal__title { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 6px; }
.legal__updated { font-size: .85rem; color: var(--text-muted); margin-bottom: 32px; }
.legal h2 { font-size: 1.2rem; margin-top: 40px; margin-bottom: 10px; }
.legal p, .legal li { font-size: .96rem; line-height: 1.7; }
.legal__highlight {
  background: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; font-size: .96rem; line-height: 1.7; color: var(--text); margin-bottom: 36px;
}
.legal__highlight strong { color: var(--navy-900); }
.legal__list { padding-left: 20px; margin: 0 0 1em; list-style: disc; }
.legal__list li { margin-bottom: 8px; }
.legal a { color: var(--red-600); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--red-500); }

/* ============ Footer ============ */
.footer { background: var(--navy-900); color: var(--text-on-dark); padding-top: 64px; }
.footer__inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px;
  border-bottom: 1px solid var(--border-dark);
}
@media (max-width: 780px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__inner { grid-template-columns: 1fr; } }
.footer__logo { height: 40px; margin-bottom: 14px; }
.footer__brand p { max-width: 260px; font-size: .9rem; }
.footer__col h4 { color: #fff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col p { font-size: .92rem; margin-bottom: 10px; }
.footer__col a:hover { color: #fff; }
.footer__bottom { text-align: center; padding: 22px 0; font-size: .82rem; opacity: .65; }

/* ============ Mobile call button ============ */
.mobile-call {
  display: none; position: fixed; bottom: 20px; right: 20px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%; background: var(--red-600);
  align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(200,16,46,.4);
}
.mobile-call svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .mobile-call { display: flex; } }

/* ============ Scroll reveal generic ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
