/* Visionary Asphalt Paving — site styles
   Palette taken from the logo: road navy + lane-line orange,
   on cool aggregate grey. The orange dashed lane line is the one
   recurring device; everything else stays quiet. */

:root {
  --navy: #17284a;
  --navy-deep: #0f1c36;
  --orange: #f2811d;
  --orange-ink: #b85a07;   /* orange dark enough for text on light bg */
  --aggregate: #eceef1;
  --white: #ffffff;
  --steel: #4a5568;
  --line: #d5d9e0;

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.938rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);
  --step-3: clamp(2.5rem, 1.9rem + 2.8vw, 4.25rem);
  --step-4: clamp(3.25rem, 2rem + 6vw, 7.5rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 76rem;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 66ch; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.005em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* ---------- Lane line: the signature device ---------- */
.lane {
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 56px, transparent 56px 88px);
}
.lane--double { height: 18px; background:
  repeating-linear-gradient(90deg, var(--orange) 0 56px, transparent 56px 88px) top / 100% 6px no-repeat,
  repeating-linear-gradient(90deg, var(--orange) 0 56px, transparent 56px 88px) bottom / 100% 6px no-repeat; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.25rem; padding: 0 1.5rem;
  font: 700 var(--step-0)/1 var(--font-body);
  text-decoration: none; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--orange); color: var(--navy-deep); }
.btn--primary:hover { background: #ff9536; }
.btn--ghost { border-color: currentColor; color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: 52px; }
.brand span { font: 800 1.45rem/0.9 var(--font-display); }
.brand small { display: block; font: 600 .78rem/1.2 var(--font-body); color: var(--steel); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { text-decoration: none; font-weight: 600; font-size: var(--step--1); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange-ink); }
.nav .btn { min-height: 2.75rem; padding: 0 1.1rem; }
.header-call { display: none; }
.menu-btn { display: none; background: none; border: 0; padding: .5rem; color: var(--navy); cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; }

@media (max-width: 920px) {
  .menu-btn { display: block; }
  .header-call { display: inline-flex; min-height: 2.75rem; padding: 0 .9rem; font-size: .95rem; }
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: var(--step-0); }
  .nav .btn { margin-top: 1rem; border: 0; }
}
@media (max-width: 420px) {
  .brand small { display: none; }
  .brand img { width: 44px; height: 44px; }
  .header-call .label { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  background: var(--navy-deep);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,28,54,.94) 0%, rgba(15,28,54,.82) 45%, rgba(15,28,54,.35) 100%);
}
.hero .wrap { position: relative; padding-block: clamp(4rem, 10vw, 8.5rem) clamp(3rem, 7vw, 6rem); }
.hero h1 { max-width: 11ch; margin-bottom: .35em; }
.hero h1 .roll { display: block; }
.hero__lede { font-size: var(--step-1); line-height: 1.45; max-width: 36ch; color: #dde3ee; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: .5rem 1.75rem;
  margin: 2.5rem 0 0; padding: 0; list-style: none;
  font-size: var(--step--1); color: #c7d0df;
}
.hero__facts li { display: flex; align-items: center; gap: .5rem; }
.hero__facts svg { width: 18px; height: 18px; color: var(--orange); flex: none; }

/* One orchestrated moment: headline rolls in like fresh asphalt */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .roll { clip-path: inset(0 100% 0 0); animation: roll .9s cubic-bezier(.6,0,.2,1) forwards; }
  .hero h1 .roll:nth-child(2) { animation-delay: .25s; }
  .hero h1 .roll:nth-child(3) { animation-delay: .5s; }
  .hero .lane { transform-origin: left; transform: scaleX(0); animation: grow 1.2s .7s cubic-bezier(.6,0,.2,1) forwards; }
}
@keyframes roll { to { clip-path: inset(0 0 0 0); } }
@keyframes grow { to { transform: scaleX(1); } }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--navy); color: var(--white); }
.page-head .wrap { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-head p { font-size: var(--step-1); color: #dde3ee; max-width: 44ch; }
.crumbs { font-size: var(--step--1); color: #aeb8ca; margin-bottom: 1.25rem; }
.crumbs a { color: #dde3ee; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--grey { background: var(--aggregate); }
.section--navy { background: var(--navy); color: var(--white); }
.section__intro { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__intro p { color: var(--steel); font-size: var(--step-1); line-height: 1.5; }
.section--navy .section__intro p { color: #c7d0df; }

/* Service rows: alternating image + text, not cards */
.services { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.service {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 800px) {
  .service { grid-template-columns: 1.1fr 1fr; }
  .service:nth-child(even) .service__img { order: 2; }
}
.service__img { position: relative; }
.service__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.service__img::after {
  content: ""; position: absolute; left: 1.25rem; right: 1.25rem; bottom: -4px; height: 8px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 40px, transparent 40px 64px);
}
.service h3 a { text-decoration: none; }
.service h3 a:hover { color: var(--orange-ink); }
.service p { color: var(--steel); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; }
.ticks li { display: flex; gap: .65rem; align-items: baseline; }
.ticks li::before {
  content: ""; flex: none; width: .9rem; height: .35rem; background: var(--orange);
  transform: translateY(-.2em); border-radius: 1px;
}
.text-link { font-weight: 700; color: var(--navy); text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.text-link:hover { color: var(--orange-ink); }

/* Process: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; border-top: 6px solid var(--orange); padding-top: 1.25rem; }
.steps li::before {
  content: counter(step); display: block;
  font: 800 var(--step-3)/1 var(--font-display); color: var(--orange); margin-bottom: .5rem;
}
.steps h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 700; line-height: 1.3; margin-bottom: .4rem; }
.steps p { color: #c7d0df; margin: 0; font-size: var(--step--1); }

/* Service area */
.area { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 860px) { .area { grid-template-columns: 1fr 1fr; } }
.towns { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.towns li {
  font: 700 var(--step-1)/1 var(--font-display); font-size: 1.6rem;
  padding: .55rem 1rem .5rem; background: var(--white); border-left: 5px solid var(--orange);
}
.area__note { color: var(--steel); }

/* FAQ */
.faq { max-width: 52rem; display: grid; gap: 0; border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-weight: 700; font-size: var(--step-1); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .25rem; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background:
    linear-gradient(var(--orange), var(--orange)) center / 18px 4px no-repeat,
    linear-gradient(var(--orange), var(--orange)) center / 4px 18px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--steel); padding-bottom: 1.25rem; margin: 0; }

/* Quote form */
.quote { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .quote { grid-template-columns: 1fr 1.25fr; } }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.contact-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .75rem; align-items: start; }
.contact-list svg { width: 26px; height: 26px; color: var(--orange); margin-top: .15rem; }
.contact-list b { display: block; font-size: var(--step--1); color: #aeb8ca; font-weight: 600; }
.contact-list a { font-weight: 700; font-size: var(--step-1); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--orange); }

.form { background: var(--white); color: var(--navy); padding: clamp(1.25rem, 4vw, 2.5rem); border-radius: var(--radius); display: grid; gap: 1.1rem; }
.form .row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; }
.field label, .field legend { font-weight: 700; font-size: var(--step--1); }
.field .opt { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--navy);
  padding: .8rem .9rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(242,129,29,.45); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0; }
.chips legend { margin-bottom: .5rem; padding: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: .55rem .95rem; border: 2px solid var(--line); border-radius: 999px; font-weight: 600; font-size: var(--step--1); }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chips input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.form .btn { width: 100%; }
.form small { color: var(--steel); }
.hidden { display: none; }

/* CTA band */
.cta-band { background: var(--orange); color: var(--navy-deep); }
.cta-band .wrap { padding-block: clamp(2.5rem, 6vw, 4rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { font-size: var(--step-3); margin: 0; max-width: 16ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-band .btn--ghost { color: var(--navy-deep); }
.cta-band .btn--ghost:hover { background: var(--navy-deep); color: var(--white); border-color: var(--navy-deep); }

/* Prose for service pages */
.prose { max-width: 44rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.prose p, .prose li { color: var(--steel); }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .split { grid-template-columns: 1.6fr 1fr; } }
.aside { align-self: start; position: sticky; top: 6rem; background: var(--aggregate); padding: 1.75rem; border-radius: var(--radius); border-top: 6px solid var(--orange); }
.aside h2 { font-size: var(--step-2); }
.aside p { color: var(--steel); }
.aside .btn { width: 100%; margin-top: .5rem; }
.other { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.other li { border-bottom: 1px solid var(--line); }
.other a { display: block; padding: .8rem 0; font-weight: 700; text-decoration: none; }
.other a:hover { color: var(--orange-ink); }
.figure img { border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c7d0df; font-size: var(--step--1); }
.site-footer .wrap { padding-block: 3.5rem 2rem; display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.site-footer h2 { font-size: 1.6rem; color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--orange); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* Sticky call bar on phones */
.callbar { display: none; }
@media (max-width: 700px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
    background: var(--navy-deep);
  }
  .callbar .btn { min-height: 3rem; font-size: .95rem; padding: 0 .5rem; }
  .callbar .btn--ghost { color: var(--white); }
  body { padding-bottom: 4.5rem; }
}


/* ---------- Overflow guards (phones) ----------
   Form controls and fieldsets have a min-content width by default,
   which stretched the page wider than small screens. */
.quote > *, .form .row > *, .field, .split > *, .area > * { min-width: 0; }
fieldset { min-width: 0; margin: 0; }
.field input, .field select, .field textarea { min-width: 0; max-width: 100%; }
html, body { overflow-x: clip; }
.callbar .btn { min-width: 0; white-space: nowrap; }
.chips label { position: relative; }
.field.chips input { width: 1px; height: 1px; padding: 0; border: 0; left: 0; top: 0; }

/* ---------- Recent work: photos + short clips ---------- */
.hero__media picture { display: contents; }
.work { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
.work__item { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy-deep); }
.work__item img, .work__item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.work__item--video { grid-row: span 2; }
.work__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem .9rem .8rem; color: var(--white); font-weight: 600; font-size: var(--step--1); line-height: 1.3;
  background: linear-gradient(transparent, rgba(15,28,54,.88));
}
.work__item:not(.work__item--video) { aspect-ratio: 4 / 3; }
@media (max-width: 559px) {
  .work { grid-template-columns: 1fr; }
  .work__item--video { grid-row: auto; aspect-ratio: 9 / 14; max-height: 80vh; }
}
@media (min-width: 900px) {
  .work {
    grid-template-columns: 1fr 1.45fr 1.45fr 1fr;
    grid-template-rows: repeat(2, clamp(200px, 19vw, 290px));
  }
  .work__item--video { grid-row: 1 / span 2; }
  .work__item:nth-child(4) { grid-column: 4; }
  .work__item:nth-child(5) { grid-column: 2 / span 2; grid-row: 2; }
  .work__item:not(.work__item--video) { aspect-ratio: auto; }
  .work__item:nth-child(5) img { object-position: center 60%; }
}
