/* =========================================================
   ROSULA LTL — Powered by HDShips
   Executive B2B freight design · light surfaces, navy type, teal accent
   ========================================================= */

:root {
  --navy-900: #04121F;
  --navy-800: #0B1F33;
  --navy-700: #12304A;
  --ink: #0B1F33;
  --ink-2: #334155;
  --muted: #5B6B7F;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --surface: #FFFFFF;
  --slate-50: #F5F8FB;
  --slate-100: #EDF2F7;

  --primary: #0A7F88;        /* teal, AA contrast with white text */
  --primary-hover: #086A72;
  --primary-soft: #E6F6F7;
  --teal: #12D9D9;           /* HDShips brand teal, used on dark surfaces */
  --copper: #B4664D;         /* ROSULA copper, darkened for text on white */
  --copper-soft: #FBF1ED;
  --danger: #C2410C;
  --danger-soft: #FFF4ED;
  --success: #0F766E;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 51, .06);
  --shadow: 0 10px 30px rgba(11, 31, 51, .08), 0 2px 6px rgba(11, 31, 51, .04);
  --shadow-lg: 0 24px 60px rgba(4, 18, 31, .25);
  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; max-width: none; max-height: none; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.02em; color: inherit; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(10, 127, 136, .45); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.accent { color: var(--primary); }
.center { text-align: center; }
.fineprint { font-size: .82rem; color: var(--muted); margin-top: 20px; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--copper); margin-bottom: .8rem;
}
.eyebrow.light { color: #E3A58F; }

/* ---------- Image fallbacks ---------- */
.img-fallback { display: none; }
.img-missing > img { display: none !important; }
.img-missing > .img-fallback { display: inline-flex; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 .98rem/1 var(--font); padding: .85rem 1.35rem; border-radius: 10px;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s, transform .12s;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(10, 127, 136, .22); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { padding: .6rem 1rem; font-size: .9rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.03rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; }
.brand-mark { position: relative; display: inline-flex; width: 40px; height: 40px; flex-shrink: 0; }
.brand-mark img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(180, 102, 77, .35); }
.mono {
  width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--navy-800); color: #E3A58F; font-weight: 800; font-size: 1.1rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: .02em; }
.brand-sub { font-size: .74rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--primary); text-decoration: none; }
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer;
}
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(90deg, rgba(4, 18, 31, .98) 0%, rgba(4, 18, 31, .9) 45%, rgba(4, 18, 31, .55) 100%),
    url("./assets/hero-truck.jpg") right center / auto 100% no-repeat,
    var(--navy-900);
  padding: clamp(56px, 8vw, 104px) 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 15% 0%, rgba(18, 217, 217, .12), transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: #CFE9EC;
  padding: 6px 12px; border-radius: 999px; background: rgba(18, 217, 217, .1); border: 1px solid rgba(18, 217, 217, .3);
}
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(18, 217, 217, .2); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 18px; }
.hero h1 .em { color: #E3A58F; }
.hero-powered { display: block; font-size: .56em; font-weight: 700; color: var(--teal); margin-top: 6px; letter-spacing: -0.01em; }
.hero-lead { font-size: clamp(1.04rem, 1.5vw, 1.18rem); color: #C9D6E2; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 36px; }
.hero-actions .btn-primary { box-shadow: 0 10px 24px rgba(18, 217, 217, .18); }
.hero-proof { list-style: none; margin: 0; padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 28px 40px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-proof li { display: flex; flex-direction: column; }
.hero-proof strong { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.1; }
.hero-proof span { font-size: .86rem; color: #9FB3C6; }

.hero-card {
  background: #fff; color: var(--ink); border-radius: 18px; padding: 28px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .6);
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hero-card-title { font-weight: 700; font-size: 1.05rem; }
.badge { font-size: .75rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.hero-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.hero-steps li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink-2); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--slate-50); }
.hero-steps span { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--navy-800); color: #fff; font-size: .85rem; font-weight: 700; flex-shrink: 0; }
.hero-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

.logo-chip { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--navy-900); }
.logo-chip img { height: 26px; width: auto; }
.chip-text { color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .02em; }

@media (max-width: 960px) {
  .hero { background: linear-gradient(180deg, rgba(4, 18, 31, .94), rgba(4, 18, 31, .97)), url("./assets/hero-truck.jpg") center / cover no-repeat, var(--navy-900); }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Trust bar ---------- */
.trustbar { background: var(--slate-50); border-bottom: 1px solid var(--line); }
.trustbar-inner { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.trustbar-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.trustbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.trustbar li { font-weight: 700; color: #475569; font-size: .95rem; }
@media (max-width: 720px) { .trustbar-inner { flex-direction: column; align-items: flex-start; gap: 10px; } .trustbar ul { gap: 6px 18px; } .trustbar li { font-size: .88rem; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-slate { background: var(--slate-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-navy { background: var(--navy-800); color: #fff; }
.section-head { max-width: 740px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); border-color: #B9DFE2; transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.icon {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 12px; color: var(--primary); background: var(--primary-soft);
}
.icon svg { width: 22px; height: 22px; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* Lanes */
.lanes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lane {
  display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--primary); box-shadow: var(--shadow-sm);
}
.lane-route { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.lane-route i { font-style: normal; color: var(--copper); padding: 0 2px; }
.lane-desc { color: var(--muted); font-size: .92rem; }
@media (max-width: 960px) { .lanes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .lanes { grid-template-columns: 1fr; } }

/* Carriers */
.carrier-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.carrier-grid li {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 88px; padding: 16px 18px;
  border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.carrier-grid strong { font-weight: 700; font-size: .98rem; color: var(--ink); }
.carrier-grid span { font-size: .82rem; color: var(--muted); }
@media (max-width: 1000px) { .carrier-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .carrier-grid { grid-template-columns: 1fr 1fr; } }

/* Why */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.why-intro p { color: #C3D1DE; font-size: 1.05rem; margin-bottom: 26px; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pillar { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-top: 2px solid #E3A58F; }
.pillar h3 { color: #fff; }
.pillar p { color: #AFC0D0; margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Quote ---------- */
.quote-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.quote-aside { position: sticky; top: calc(var(--header-h) + 28px); }
.how { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 18px; }
.how li { display: flex; gap: 14px; color: var(--muted); }
.how li > span {
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--copper-soft); color: var(--copper); font-weight: 800; border: 1px solid #F0D4C9;
}
.how strong { display: block; color: var(--ink); }
.aside-mail { color: var(--muted); }
@media (max-width: 960px) { .quote-grid { grid-template-columns: 1fr; gap: 28px; } .quote-aside { position: static; } }

.quote-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3.5vw, 36px); box-shadow: var(--shadow); }
.stepper { list-style: none; margin: 0 0 28px; padding: 0; display: flex; gap: 10px; }
.stepper li {
  flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--slate-50); color: var(--muted); font-size: .9rem; font-weight: 600;
}
.stepper li > span {
  width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--slate-100); color: var(--muted); font-size: .82rem; font-weight: 800;
}
.stepper li.is-active { border-color: var(--primary); background: var(--primary-soft); color: var(--ink); }
.stepper li.is-active > span { background: var(--primary); color: #fff; }
.stepper li.is-done > span { background: var(--navy-800); color: #fff; }

fieldset { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 14px; font-weight: 700; font-size: 1rem; color: var(--ink); }
legend .optional { font-weight: 500; color: var(--muted); font-size: .86rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
fieldset > .field { margin-top: 16px; }
label, .label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 400 1rem var(--font);
  transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B6B7F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
input::placeholder { color: #94A3B8; }
input:hover, select:hover { border-color: #94A3B8; }
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(10, 127, 136, .14); }
.field.has-error input, .field.has-error select { border-color: var(--danger); background: var(--danger-soft); }
.hint { font-size: .8rem; color: var(--muted); }
.error { font-size: .82rem; font-weight: 500; color: var(--danger); }
.error:empty { display: none; }
.dims { display: flex; align-items: center; gap: 8px; }
.dims span { color: var(--muted); font-weight: 600; }
.dims input { min-width: 0; }
.lane-pill {
  display: flex; align-items: center; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--primary-soft); border: 1px dashed #8CCBD0; color: var(--primary); font-weight: 700;
}

.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.chips-3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 8px; }
.chip-wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .chips, .chips-3 { grid-template-columns: 1fr 1fr; } }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.chip span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: 8px 10px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: #fff;
  font-size: .9rem; font-weight: 600; color: var(--ink-2); transition: all .15s;
}
.chip:hover span { border-color: #94A3B8; }
.chip input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.chip input:focus-visible + span { outline: 3px solid rgba(10, 127, 136, .35); outline-offset: 2px; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 12px 0 0; text-align: center; font-size: .82rem; color: var(--muted); }

/* Step 2 — review */
.step-title { font-size: 1.35rem; font-weight: 800; }
.step-sub { color: var(--muted); }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 26px; }
@media (max-width: 640px) { .review-grid { grid-template-columns: 1fr; } }
.review-block { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; background: var(--slate-50); }
.review-block h4 { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); margin-bottom: 10px; }
.review-block dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: .92rem; }
.review-block dt { color: var(--muted); }
.review-block dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.review-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.review-actions .btn { flex: 1 1 200px; }
.form-error { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--danger-soft); border: 1px solid #FDBA8C; color: #9A3412; font-size: .92rem; }

/* Confirmation */
.confirm { text-align: center; padding: 8px 0; }
.confirm-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); border: 1px solid #8CCBD0;
}
.folio { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; letter-spacing: .05em; color: var(--ink); margin: 0 0 12px; overflow-wrap: anywhere; }
.confirm-text { color: var(--muted); max-width: 480px; margin: 18px auto; }
.test-note { max-width: 480px; margin: 0 auto 18px; padding: 10px 12px; border-radius: var(--radius-sm); background: #FFFBEB; border: 1px solid #FCD34D; color: #92400E; font-size: .85rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #A9BACB; padding: 60px 0 26px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer-grid p { margin: 0 0 .6em; }
.footer-grid a { color: var(--teal); }
.brand-light { color: #fff; margin-bottom: 14px; }
.brand-light .brand-sub { color: #8FA3B8; }
.brand-light .accent { color: var(--teal); }
.brand-light .brand-mark img { box-shadow: 0 0 0 2px var(--navy-900), 0 0 0 3px rgba(227, 165, 143, .5); }
.footer-about { max-width: 360px; }
.site-footer .logo-chip { margin-top: 6px; border: 1px solid rgba(255, 255, 255, .1); }
.footer-legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; color: #7F93A8; }
.footer-legal p { margin: 0 0 .35em; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Why HD for LTL ---------- */
.why-hd { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); background: linear-gradient(180deg, #fff, var(--slate-50)); }
.why-hd-title { text-transform: uppercase; letter-spacing: .01em; font-weight: 800; color: var(--ink); margin-bottom: 24px; }
.why-hd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-hd-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.why-hd-card .icon { border: 1px solid #8CCBD0; }
.why-hd-card h3 { text-transform: uppercase; font-weight: 800; letter-spacing: .01em; font-size: 1.02rem; }
.why-hd-card p { color: var(--ink-2); margin: 0; font-size: .96rem; }
@media (max-width: 900px) { .why-hd-grid { grid-template-columns: 1fr; } }

/* ---------- Carrier multi-select dropdown ---------- */
.multiselect { position: relative; margin-bottom: 8px; }
.multiselect summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 46px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); cursor: pointer; font-size: 1rem;
}
.multiselect summary::-webkit-details-marker { display: none; }
.multiselect summary:hover { border-color: #94A3B8; }
.multiselect[open] summary { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(10, 127, 136, .14); }
.multiselect summary svg { color: var(--muted); transition: transform .15s; }
.multiselect[open] summary svg { transform: rotate(180deg); }
#carrier-summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ms-panel {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 300px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 6px;
}
.ms-option { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-weight: 500; color: var(--ink-2); font-size: .94rem; }
.ms-option:hover { background: var(--slate-50); }
.ms-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); flex-shrink: 0; }
.ms-none { border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; font-weight: 600; color: var(--ink); }
.quote-grid > *, .grid-2 > *, .hero-grid > * { min-width: 0; }
.multiselect summary > span { flex: 1 1 auto; }

/* ---------- Round 2: bigger header logo + long brand name ---------- */
:root { --header-h: 112px; }
.site-header .brand-mark, .site-header .brand-mark img, .site-header .mono { width: 80px; height: 80px; }
.site-header .mono { font-size: 2rem; }
.site-header .brand { gap: 16px; }
.site-header .brand-name { font-size: 1.35rem; }
.site-header .brand-sub { font-size: .86rem; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
@media (max-width: 1100px) { .site-nav { gap: 20px; } }
@media (max-width: 600px) {
  :root { --header-h: 88px; }
  .site-header .brand-mark, .site-header .brand-mark img, .site-header .mono { width: 60px; height: 60px; }
  .site-header .brand { gap: 10px; min-width: 0; }
  .site-header .brand-name { font-size: 1rem; }
  .site-header .brand-sub { font-size: .76rem; }
}

/* v1.4 full addresses */
.span-2 { grid-column: 1 / -1; }
.addr-fieldset legend { font-weight: 700; }
.review-address address { font-style: normal; font-weight: 600; color: var(--ink); line-height: 1.55; }
.loc-type { margin: 8px 0 0; font-size: .9rem; color: var(--ink-2); }
.loc-type span { color: var(--muted); margin-right: 6px; }

/* v1.5 single coverage card */
.lane-single {
  max-width: 820px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--line, #E2E8F0); border-top: 4px solid var(--primary);
  border-radius: 16px; padding: 36px 32px; box-shadow: 0 10px 30px rgba(4,18,31,.06);
  display: flex; flex-direction: column; gap: 12px;
}
.lane-single-title { font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 800; color: var(--ink); letter-spacing: -.01em; line-height: 1.2; }
.lane-single-title i { font-style: normal; color: var(--copper); }
.lane-single-desc { color: var(--muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }
@media (max-width: 520px) { .lane-single { padding: 26px 18px; } }

/* v1.6 rose-gold glow on card hover (color from the ROSULA logo) */
:root { --rose-gold: #C98A72; --rose-gold-rgb: 201, 138, 114; }
.card, .why-hd-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover, .why-hd-card:hover {
  transform: translateY(-3px);
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 1px rgba(var(--rose-gold-rgb), .55), 0 0 22px rgba(var(--rose-gold-rgb), .45), 0 12px 28px rgba(var(--rose-gold-rgb), .25);
}
@media (prefers-reduced-motion: reduce) { .card:hover, .why-hd-card:hover { transform: none; } }

/* v1.7 multiple freight lines (one per unit type) */
.freight-line + .freight-line { margin-top: 18px; }
.freight-line-head { display: none; align-items: center; justify-content: space-between; margin-bottom: 12px; }
#freight-lines.is-multi .freight-line { border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 4px; background: var(--slate-50, #F8FAFC); }
#freight-lines.is-multi .freight-line-head { display: flex; }
.freight-line-title { font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); }
.btn-remove-line { background: none; border: 0; color: var(--muted); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.btn-remove-line:hover { color: #B42318; background: #FEF3F2; }
.add-line-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; }
.btn-add-line { border-style: dashed; }
.btn-add-line:disabled { opacity: .6; cursor: not-allowed; }
.add-line-row .hint { flex: 1 1 220px; margin: 0; }
.btn-add-line[hidden], .btn-remove-line[hidden] { display: none; }

/* v2 final form: notes, density helper, service options, turnstile */
textarea {
  width: 100%; min-height: 92px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 400 1rem var(--font);
  resize: vertical; transition: border-color .15s, box-shadow .15s;
}
textarea::placeholder { color: #94A3B8; }
textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(10, 127, 136, .14); }

.density-badge {
  margin-top: 18px; border: 1px dashed var(--line-2); border-radius: 14px; padding: 16px 18px;
  background: #fff; transition: border-color .2s, background .2s;
}
.density-badge.is-live { border-style: solid; border-color: #8CCBD0; background: var(--primary-soft); }
.db-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; }
.db-title { font-weight: 800; color: var(--ink); }
.db-sub { font-size: .85rem; color: var(--muted); }
.db-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 12px; }
.db-stats div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.db-stats dt { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.db-stats dd { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.density-badge.is-live #db-class { color: var(--primary); }
.db-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.db-foot .hint { flex: 1 1 220px; margin: 0; }
#btn-apply-class:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
@media (max-width: 560px) { .db-stats { grid-template-columns: 1fr; } .db-stats div { display: flex; justify-content: space-between; align-items: baseline; } .db-stats dt { margin: 0; } }

.chips-acc { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .chips-acc { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .chips-acc { grid-template-columns: 1fr 1fr; } }
.chips-acc .chip span { text-align: center; line-height: 1.25; }

.svc-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .svc-options { grid-template-columns: 1fr; } }
.svc-option { position: relative; cursor: pointer; }
.svc-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.svc-option span {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 14px 12px 40px; position: relative;
  border: 1px solid var(--line-2); border-radius: 12px; background: #fff; transition: border-color .15s, background .15s;
}
.svc-option span::before {
  content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line-2); background: #fff; box-sizing: border-box;
}
.svc-option strong { color: var(--ink); font-size: .95rem; }
.svc-option small { color: var(--muted); font-size: .82rem; }
.svc-option:hover span { border-color: #94A3B8; }
.svc-option input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.svc-option input:checked + span::before { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 45%, #fff 50%); }
.svc-option input:focus-visible + span { outline: 3px solid rgba(10, 127, 136, .35); outline-offset: 2px; }

.turnstile-wrap { margin: 4px 0 16px; }
.turnstile-wrap[hidden] { display: none; }
.cf-turnstile-box { min-height: 65px; }
.review-totals { background: var(--primary-soft); border-color: #8CCBD0; }
.review-block dd { overflow-wrap: break-word; }

.wa-link { display: inline-flex; align-items: center; gap: 6px; }
.wa-link svg { color: #25D366; flex: none; }
