/* Alpine Risk Solutions — site styles */
:root {
  --ink: #1d2a33;
  --ink-soft: #4a5a66;
  --snow: #f6f8f9;
  --paper: #ffffff;
  --spruce: #1f4d45;
  --spruce-deep: #163a34;
  --spruce-tint: #e4eeeb;
  --signal: #f2b705;
  --signal-deep: #d49f00;
  --stone: #c9d3d6;
  --sky: #dbe7ee;
  --danger: #a3261b;
  --ok: #1d6b45;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 4px;
  --radius: 8px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--spruce); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--spruce-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--signal); color: var(--ink); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -0.005em; margin: 0 0 0.4em; color: var(--ink); }
h1 { font-size: clamp(2.75rem, 7vw, 5.25rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 2.875rem); }
h3 { font-size: 1.625rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.25rem; line-height: 1.5; color: var(--ink-soft); max-width: 56ch; }
.small { font-size: 0.9rem; color: var(--ink-soft); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.4em;
  font: 600 1.0625rem/1 var(--body);
  border-radius: var(--radius-sm); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-quote { background: var(--signal); color: var(--ink); }
.btn-quote:hover { background: var(--signal-deep); color: var(--ink); }
.btn-line { border-color: currentColor; color: var(--spruce); background: transparent; }
.btn-line:hover { background: var(--spruce); border-color: var(--spruce); color: #fff; }
.on-dark .btn-line { color: #fff; }
.on-dark .btn-line:hover { background: #fff; color: var(--spruce-deep); border-color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--stone); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font: 700 1.5rem/1 var(--display); letter-spacing: .01em; }
.brand-name span { display: block; font: 500 .8rem/1.2 var(--body); color: var(--ink-soft); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--signal); color: var(--ink); }
.header-phone { font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-cta { min-height: 42px; padding: .55em 1.1em; }
.menu-toggle { display: none; background: none; border: 1px solid var(--stone); border-radius: var(--radius-sm); min-height: 44px; min-width: 44px; padding: 0 12px; font: 600 1rem var(--body); color: var(--ink); cursor: pointer; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .header-phone, .header-cta { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--stone); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--sky); }
  .nav .nav-mobile-only { display: block; }
}
.nav-mobile-only { display: none; }

/* Hero (the one bold moment) */
.hero { position: relative; background: var(--paper); overflow: hidden; border-bottom: 1px solid var(--stone); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(150px, 20vw, 250px); }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-top: 18px; }
.ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; z-index: 0; pointer-events: none; }
.ridge .contour { fill: none; stroke: var(--stone); stroke-width: 1.2; }
.ridge .crest { fill: var(--spruce); }
.ridge .crest-back { fill: var(--spruce-tint); }
.ridge .snow { fill: #fff; }
.hero-contact { margin-top: 22px; color: var(--ink-soft); }
.hero-contact a { font-weight: 600; }

.page-head { background: var(--paper); border-bottom: 1px solid var(--stone); }
.page-head .wrap { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(36px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 4rem); max-width: 18ch; }
.crumb { font-size: .95rem; margin-bottom: 14px; color: var(--ink-soft); }
.crumb a { color: var(--ink-soft); }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-head { margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); }
.band { background: var(--spruce); color: #e9f1ef; }
.band h2, .band h3 { color: #fff; }
.band a:not(.btn) { color: #fff; }
.band .small { color: #b9d0ca; }

/* Three audience paths: columns divided by rules, not cards */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--ink); }
.path { padding: 28px 28px 8px 0; }
.path + .path { padding-left: 28px; border-left: 1px solid var(--stone); }
.path h3 a { color: var(--ink); text-decoration: none; }
.path h3 a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; }
.path ul { list-style: none; margin: 14px 0 20px; padding: 0; }
.path li { padding: 7px 0; border-bottom: 1px solid var(--sky); }
.path li:last-child { border-bottom: 0; }
@media (max-width: 820px) {
  .paths { grid-template-columns: 1fr; }
  .path, .path + .path { padding: 24px 0 8px; border-left: 0; }
  .path + .path { border-top: 1px solid var(--stone); }
}

/* Trucking band */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.ready-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(255,255,255,.25); }
.ready-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.ready-list svg { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.section:not(.band) .ready-list { border-top-color: var(--stone); }
.section:not(.band) .ready-list li { border-bottom-color: var(--stone); }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; font: 700 3.25rem/1 var(--display); color: var(--spruce); }
.steps h3 { margin-bottom: 8px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* Coverage detail pages */
.coverage { display: grid; grid-template-columns: 260px 1fr; gap: 16px 48px; padding: 36px 0; border-top: 1px solid var(--stone); }
.coverage:first-of-type { border-top: 3px solid var(--ink); }
.coverage h2 { font-size: 2rem; }
.coverage .ask { margin-top: 6px; color: var(--ink-soft); font-size: .98rem; }
.coverage .ask strong { color: var(--ink); }
@media (max-width: 760px) { .coverage { grid-template-columns: 1fr; } }

.contact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 3px solid var(--ink); padding-top: 24px; }
.contact-strip .label { font-weight: 600; color: var(--ink-soft); font-size: .95rem; }
.contact-strip .value { font: 600 1.6rem/1.2 var(--display); }
.contact-strip .value a { color: var(--ink); text-decoration: none; }
.contact-strip .value a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
@media (max-width: 760px) { .contact-strip { grid-template-columns: 1fr; } }

.notice { background: var(--sky); border-left: 4px solid var(--spruce); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .97rem; }
.notice p:last-child { margin-bottom: 0; }

/* Forms */
.form-shell { display: grid; grid-template-columns: 1fr 320px; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .form-shell { grid-template-columns: 1fr; } }
.form-card { background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); }
.aside { position: sticky; top: 96px; }
@media (max-width: 900px) { .aside { position: static; } }
.aside h3 { font-size: 1.4rem; }

fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
legend { font: 600 1.75rem/1.1 var(--display); padding: 0; margin-bottom: 6px; }
.fieldset-intro { color: var(--ink-soft); margin-bottom: 22px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid, .grid-3 { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }

.field label, .field .label { display: block; font-weight: 600; font-size: .97rem; margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: .88rem; margin-top: 4px; }
.req { color: var(--danger); margin-left: 2px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: 400 1.0625rem/1.3 var(--body); color: var(--ink);
  background: #fff; border: 1px solid #9fb0b6; border-radius: var(--radius-sm);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--signal); outline-offset: 0; border-color: var(--ink); }
[aria-invalid="true"] { border-color: var(--danger); background: #fff6f5; }
.field-error { color: var(--danger); font-size: .9rem; margin-top: 4px; font-weight: 500; }

.checks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px 20px; }
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--spruce); flex: none; }
.radio-row { display: flex; flex-wrap: wrap; gap: 4px 22px; }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Repeatable rows (trucks, trailers, drivers) */
.rows { display: grid; gap: 16px; }
.row-item { border: 1px solid var(--stone); border-radius: var(--radius); padding: 18px; background: var(--snow); }
.row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.row-head h3 { font-size: 1.3rem; margin: 0; }
.link-btn { background: none; border: 0; padding: 8px 4px; min-height: 44px; font: 600 .97rem var(--body); color: var(--spruce); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: var(--danger); }
.add-row { margin-top: 14px; }

/* Stepper */
.stepper { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 28px; counter-reset: s; }
.stepper li { flex: 1; counter-increment: s; }
.stepper button { width: 100%; background: none; border: 0; border-top: 4px solid var(--stone); padding: 10px 0 0; text-align: left; font: 600 .92rem/1.25 var(--body); color: var(--ink-soft); cursor: pointer; }
.stepper button::before { content: counter(s) " "; font-family: var(--display); font-weight: 700; }
.stepper [aria-current="step"] { border-top-color: var(--signal); color: var(--ink); }
.stepper .done button { border-top-color: var(--spruce); color: var(--ink); }
@media (max-width: 640px) { .stepper .label-text { display: none; } .stepper button { text-align: center; } }
.step-panel[hidden] { display: none; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--stone); flex-wrap: wrap; }

.form-status { margin-top: 16px; }
.form-status.error { color: var(--danger); font-weight: 600; }
.success { text-align: left; }
.success h2 { color: var(--ok); }
.ref { font: 700 1.5rem/1 var(--display); letter-spacing: .04em; background: var(--spruce-tint); padding: 4px 10px; border-radius: var(--radius-sm); }

.review dl { display: grid; grid-template-columns: 200px 1fr; gap: 6px 16px; margin: 0 0 18px; font-size: .97rem; }
.review dt { color: var(--ink-soft); }
.review dd { margin: 0; font-weight: 500; word-break: break-word; }
.review h3 { font-size: 1.3rem; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--stone); }
@media (max-width: 560px) { .review dl { grid-template-columns: 1fr; } .review dd { margin-bottom: 8px; } }

/* Footer */
.site-footer { background: var(--ink); color: #c6d0d5; padding: 56px 0 32px; font-size: .97rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { color: #fff; font-size: 1.35rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 4px 0; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid #3a4a55; font-size: .87rem; color: #9fb0b8; }
.legal p { max-width: none; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.prose h2 { margin-top: 1.4em; font-size: 2rem; }
.prose ul { padding-left: 1.2em; max-width: 68ch; }
.prose li { margin-bottom: .4em; }

@media (max-width: 480px) {
  .brand-name { font-size: 1.25rem; }
  .brand-name span { display: none; }
  .brand svg { width: 34px; height: 34px; }
}
