@font-face {
  font-family: Inter;
  src: url("fonts/inter-var.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #24272c;
  --navy-dark: #1a1c20;
  --navy-ink: #141618;
  --orange: #e85d04;
  --orange-hot: #f15a22;
  --slate: #3a4048;
  --charcoal: #1e2329;
  --cream: #f6f3ed;
  --cream-2: #ece7de;
  --text: #1e2329;
  --muted: #4a5159;
  --white: #ffffff;
  --line: #d9d4cc;
  --shadow: 0 12px 32px rgba(18, 42, 70, 0.14);
  --radius: 14px;
  --header-h: 4.35rem;
  --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 72rem;
  --gap: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); }

a:hover { color: var(--navy-dark); }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 0.85rem;
  border-radius: 0 0 8px 8px;
  font-weight: 650;
  text-decoration: none;
}

.skip-link:focus { top: 0; color: var(--white); }

.wrap {
  width: min(100% - 1.75rem, var(--wrap));
  margin-inline: auto;
}

.wrap.narrow { width: min(100% - 1.75rem, 42rem); }

/* Header
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 92%, white);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 1.25rem, var(--wrap));
  margin-inline: auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand call"
    "nav nav";
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  padding: 0.45rem 0 0.5rem;
}

.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.header-call { grid-area: call; }

.site-nav { grid-area: nav; }

.brand:hover { color: var(--navy); }

.brand-mark {
  width: auto;
  height: 2.85rem;
  flex: 0 0 auto;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-transform: uppercase;
}

.brand-tag {
  font-weight: 650;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 0.12rem;
}

.site-nav {
  display: flex;
  gap: 0.2rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  padding: 0.35rem 0;
}

.site-nav a:hover { color: var(--navy-dark); }

/* Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-small {
  padding: 0.45rem 0.95rem;
  font-size: 0.95rem;
  min-height: 2.6rem;
}

.btn-lg {
  padding: 0.9rem 1.25rem;
  font-size: 1.05rem;
  min-height: 3.15rem;
  min-width: 12.5rem;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--cream);
  color: var(--navy-dark);
  border-color: var(--cream);
}

/* High-contrast CTAs on dark hero and contact band */
.hero .btn-primary,
.cta-band .btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.hero .btn-primary:hover,
.hero .btn-primary:focus-visible,
.cta-band .btn-primary:hover,
.cta-band .btn-primary:focus-visible {
  background: var(--orange-hot);
  border-color: var(--orange-hot);
  color: var(--white);
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

/* Hero + driveway switcher
   ------------------------------------------------------------------ */
.hero {
  background: var(--navy-ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.hero-visual { position: relative; }

.driveway-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1179 / 884;
  background: #1a1c1e;
  overflow: hidden;
}

.driveway-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.driveway-photo.is-active {
  opacity: 1;
  z-index: 1;
}

.driveway-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 5px;
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.driveway-badge[data-kind="illustrated"] {
  background: var(--slate);
  color: var(--white);
}

.hero-content {
  padding: 1.6rem 1.25rem 2.15rem;
  width: min(100%, 46rem);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0a36a;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.45rem, 5.4vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-note {
  margin: 0.85rem 0 0;
  color: #eef2f6;
  max-width: 36rem;
}

.driveway-controls { margin-top: 1.5rem; }

.driveway-prompt {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: #d5dde6;
}

.driveway-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.driveway-toggles button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--white) 35%, transparent);
  background: color-mix(in srgb, var(--navy) 55%, black);
  color: var(--white);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.driveway-toggles button:hover {
  border-color: color-mix(in srgb, var(--white) 70%, transparent);
}

.driveway-toggles button.is-active {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.swatch {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.swatch-gravel {
  background:
    radial-gradient(circle at 30% 30%, #c9bba6 0 28%, transparent 30%),
    radial-gradient(circle at 70% 55%, #9a8b74 0 24%, transparent 26%),
    #b7a890;
}

.swatch-asphalt { background: #2b2e32; }

.swatch-concrete {
  background:
    linear-gradient(90deg, #6d6f74 0 10%, transparent 10% 50%, #6d6f74 50% 60%, transparent 60%),
    #cfcbc3;
}

.driveway-caption {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #e4eaef;
  max-width: 36rem;
}

/* Sections
   ------------------------------------------------------------------ */
.section { padding: 3.25rem 0 3.5rem; }

.section-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3.4vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--navy-ink);
}

.section-lead {
  margin: 0 0 0.5rem;
  color: var(--muted);
  max-width: 40rem;
}

.services { background: var(--white); }

.service-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.service-grid li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 0.55rem;
  color: var(--navy);
}

.service-icon svg { width: 1.85rem; height: 1.85rem; }

.service-grid h3 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.service-grid p { margin: 0; color: var(--muted); }

.cta-band {
  background: var(--navy-ink);
  color: var(--white);
  text-align: center;
}

.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }

.cta-band p {
  margin: 0 auto 0.5rem;
  max-width: 36rem;
  color: color-mix(in srgb, var(--white) 85%, #f0a36a);
}

.cta-band .hero-actions { justify-content: center; }


/* Our work gallery
   ------------------------------------------------------------------ */
.work { background: var(--cream); }

.work-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  columns: 1;
  column-gap: var(--gap);
}

.work-grid figure {
  break-inside: avoid;
  margin: 0 0 1.15rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.work-grid img {
  width: 100%;
  height: auto;
  display: block;
  background: #2a2d31;
}

.work-grid figcaption {
  padding: 0.7rem 0.85rem 0.85rem;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .work-grid { columns: 2; }
}

@media (min-width: 1100px) {
  .work-grid { columns: 3; }
}

/* Footer
   ------------------------------------------------------------------ */
.site-footer {
  background: var(--cream);
  border-top: 4px solid var(--orange);
  padding: 2.25rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.footer-logo {
  width: min(14rem, 70vw);
  height: auto;
  border-radius: 18px;
}

.footer-name {
  margin: 0;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.footer-copy p { margin: 0.2rem 0; }

.footer-copy a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 650;
}

.footer-copy a:hover { text-decoration: underline; }

.footer-links { display: flex; justify-content: center; gap: 0.5rem; }

/* Breakpoints
   ------------------------------------------------------------------ */
@media (min-width: 640px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 2rem 1.5rem 2.5rem; width: min(100% - 1.5rem, 52rem); margin: 0 auto; }
}

@media (min-width: 900px) {
  :root { --header-h: 4.6rem; }

  .brand-mark { height: 3.15rem; width: auto; }
  .brand-name { font-size: 1.18rem; }
  .brand-tag { font-size: 0.66rem; }

  .hero {
    position: relative;
    min-height: min(82vh, 52rem);
    display: grid;
    align-items: end;
  }

  .hero-visual {
    position: absolute;
    inset: 0;
  }

  .driveway-frame {
    height: 100%;
    aspect-ratio: auto;
  }

  .driveway-photo { object-position: center 48%; }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav call";
    column-gap: 1.25rem;
  }

  .site-nav { justify-content: center; }

  .hero-content {
    position: relative;
    z-index: 1;
    width: min(100% - 3rem, var(--wrap));
    margin: 0 auto;
    padding: 5.25rem 0 3.25rem;
    max-width: none;
    background: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.45);
  }

  .hero-content::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -12%;
    width: min(50rem, 62%);
    background: linear-gradient(90deg, rgba(20, 22, 24, 0.74) 0%, rgba(20, 22, 24, 0.42) 58%, rgba(20, 22, 24, 0) 100%);
    pointer-events: none;
    z-index: -1;
  }

  .hero h1,
  .hero-note,
  .hero-actions,
  .driveway-controls { max-width: 34rem; }

  .hero h1 { font-size: clamp(2.1rem, 3.2vw, 2.85rem); }

  .hero .btn {
    text-shadow: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  }

  .driveway-badge {
    top: 1.15rem;
    right: 1.15rem;
    left: auto;
  }

  .driveway-toggles button {
    background: color-mix(in srgb, var(--navy-ink) 70%, black);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  }

  .driveway-toggles button.is-active {
    background: var(--white);
    color: var(--navy);
  }

  .service-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }

  .section { padding: 4.25rem 0 4.5rem; }

  .footer-inner {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
    gap: 2rem;
  }

  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .driveway-photo { transition: none; }
}
