/* Gravel Driveway Recovery — shared stylesheet (every page uses this one file).
   Brand rule: black, white and grays only. No accent color.
   Headings use Roboto Slab 800 (closest match to the logo's slab capitals). */

@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/roboto-slab-latin-800-normal.woff2") format("woff2");
}
/* Size-matched fallback so the heading font swap barely moves the page */
@font-face {
  font-family: "Slab Fallback";
  src: local("Georgia Bold"), local("Georgia-Bold"), local("DejaVu Serif Bold"), local("Times New Roman Bold");
  font-weight: 800;
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 24%;
}

:root {
  --black: #000;
  --ink: #1f1f1f;
  --muted: #545454;
  --line: #c8c8c8;
  --stone: #f2f2f2;
  --gravel: #8c8c8c;
  --white: #fff;
  --slab: "Roboto Slab", "Slab Fallback", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: 20px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--black); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
p, ul, ol, figure, blockquote { margin: 0; }
p + p { margin-top: 0.9em; }
ul, ol { padding-left: 1.25em; }

h1, h2, h3 {
  font-family: var(--slab);
  font-weight: 800;
  color: var(--black);
  margin: 0;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2rem, 1.15rem + 3.4vw, 3.15rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); line-height: 1.15; }
h3 { font-size: 1.2rem; line-height: 1.25; }

:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.on-dark :focus-visible, .callbar :focus-visible, .topbar :focus-visible, .band :focus-visible { outline-color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--black); color: var(--white); padding: 10px 16px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* ---------- top bar (phone on every page) ---------- */
.topbar { background: var(--black); color: var(--white); font-size: 0.95rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar p { margin: 0; }
.topbar a { color: var(--white); font-weight: 700; text-decoration: none; white-space: nowrap; }
.topbar a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .topbar-place { display: none; }
  .topbar-inner { justify-content: center; }
}

/* ---------- header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 40; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 92px; }
.brand { display: block; flex: none; margin-right: auto; padding: 6px 0; }
.brand img { width: 96px; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav > ul > li { position: relative; }
.nav a, .nav summary {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--black); font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.nav a:hover, .nav summary:hover { border-bottom-color: var(--gravel); }
.nav a[aria-current="page"] { border-bottom-color: var(--black); }
.nav summary { list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.dd[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.dd ul {
  position: absolute; left: 0; top: 100%; display: block; min-width: 260px; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--black);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.dd ul a { display: flex; width: 100%; border-bottom: 0; padding: 0 12px; font-weight: 600; }
.dd ul a:hover, .dd ul a[aria-current="page"] { background: var(--stone); text-decoration: underline; }
.header-cta { flex: none; }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 0 14px; border: 2px solid var(--black); border-radius: var(--radius); font-weight: 700;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-icon { width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu[open] summary { background: var(--black); color: var(--white); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100vh - 160px); overflow-y: auto; padding: 14px 16px 18px;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--black);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}
.menu-panel p { margin: 12px 0 2px; font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.menu-panel p:first-child { margin-top: 0; }
.menu-panel ul { list-style: none; padding: 0; margin: 0; }
.menu-panel a { display: flex; align-items: center; min-height: 44px; color: var(--black); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--stone); }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { text-decoration: underline; }
.menu-panel .btn { margin-top: 14px; width: 100%; justify-content: center; border-bottom: 0; }
@media (max-width: 1239px) {
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 76px; }
  .brand img { width: 78px; }
  .site-header .header-cta { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 22px; border: 2px solid var(--black); border-radius: var(--radius);
  background: var(--black); color: var(--white); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
}
.btn:hover { background: #333; border-color: #333; }
.btn-outline { background: var(--white); color: var(--black); }
.btn-outline:hover { background: var(--stone); border-color: var(--black); }
.btn-light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-light:hover { background: #e6e6e6; border-color: #e6e6e6; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--white); }
.btn svg, .callbar svg { width: 20px; height: 20px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--stone); }
.section.tight { padding: 44px 0; }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 1.05rem; }
.prose { max-width: 68ch; }
.prose h2 { margin: 1.6em 0 0.5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.3em 0 0.4em; }
.prose ul, .prose ol { margin: 0.8em 0; }
.prose li + li { margin-top: 0.35em; }
.note { color: var(--muted); font-size: 0.95rem; }
.lead { font-size: 1.15rem; line-height: 1.55; color: var(--ink); }
.more { display: inline-block; margin-top: 14px; font-weight: 700; }
@media (max-width: 760px) {
  .section { padding: 48px 0; }
}

/* spacing helpers */
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 24px; }
.mt-l { margin-top: 44px; }

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; padding-top: 52px; padding-bottom: 52px; }
.hero .lead { margin-top: 18px; max-width: 36em; }
.hero-place { font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.hero-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.hero.text-only .wrap { grid-template-columns: 1fr; }
.hero.text-only .lead { max-width: 44em; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 34px; padding-bottom: 38px; }
}

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; }
.section.alt .card { border-color: #d6d6d6; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink); }
.card .more { margin-top: auto; padding-top: 14px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards, .cards.two { grid-template-columns: 1fr; } }

/* ---------- lists ---------- */
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 34px; margin-top: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--black);
}
.checks li::after {
  content: ""; position: absolute; left: 7px; top: calc(0.3em + 4px); width: 5px; height: 10px;
  border-right: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(45deg);
}
.checks b { color: var(--black); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

/* numbered steps (only where the content is a real sequence) */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps.list { grid-template-columns: 1fr; max-width: 820px; gap: 0; }
.steps > li { counter-increment: step; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 76px; }
.steps.list > li { border-radius: 0; border-width: 0 0 1px 0; padding: 22px 0 22px 64px; background: transparent; }
.steps > li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--black); color: var(--white); font-family: var(--slab); font-weight: 800; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
}
.steps.list > li::before { left: 0; }
.steps h3 { margin-bottom: 6px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- before / after ---------- */
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pairs.single { grid-template-columns: 1fr; max-width: 860px; }
.pair { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pair .imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--white); }
.pair .imgs > div { position: relative; }
.pair img { width: 100%; height: 230px; object-fit: cover; }
.pairs.single .pair img { height: 300px; }
.tag {
  position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; background: var(--white); color: var(--black); border: 1px solid var(--black);
}
.tag.after { background: var(--black); color: var(--white); }
.pair figcaption { padding: 14px 18px 16px; color: var(--ink); }
.pair figcaption b { color: var(--black); }
@media (max-width: 860px) {
  .pairs { grid-template-columns: 1fr; }
  .pair img, .pairs.single .pair img { height: 180px; }
}
@media (max-width: 420px) {
  .pair .imgs { grid-template-columns: 1fr; }
  .pair img, .pairs.single .pair img { height: 200px; }
}

/* photo strip */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.photos figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photos figcaption { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.photos.two { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
@media (max-width: 860px) { .photos, .photos.two { grid-template-columns: 1fr; } }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--black); border-radius: var(--radius); padding: 22px 22px 20px; display: flex; flex-direction: column; }
.quote .stars { display: flex; gap: 3px; margin-bottom: 12px; }
.quote .stars svg { width: 18px; height: 18px; fill: var(--black); }
.quote blockquote p { font-size: 1.03rem; }
.quote figcaption { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--black); }
.quote figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 0.92rem; }
.quote.wide { max-width: 760px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- black call band (the billboard treatment: number reversed out of black) ---------- */
.band { background: var(--black); color: var(--white); padding: 56px 0; }
.band h2 { color: var(--white); max-width: 24em; }
.band p { color: var(--white); max-width: 46em; margin-top: 12px; }
.band p a { color: var(--white); }
.band-phone { margin-top: 18px; }
.band-phone a {
  font-family: var(--slab); font-weight: 800; font-size: clamp(2.2rem, 1.4rem + 4vw, 4rem); line-height: 1.05;
  text-decoration: none; letter-spacing: 0.01em; white-space: nowrap;
}
.band-phone a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.band-phone small { display: block; font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: 0; margin-bottom: 4px; }
.band .cta-row { margin-top: 22px; }

/* ---------- panels ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.section.alt .panel { border-color: #d6d6d6; }
.panel h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.panel > * + * { margin-top: 12px; }
.price-range { font-family: var(--slab); font-weight: 800; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); line-height: 1.05; color: var(--black); }
.price-levels { list-style: none; padding: 0; }
.price-levels li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 14px; padding: 10px 0; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .price-levels li { display: grid; grid-template-columns: 1fr auto; } }
.price-levels li:last-child { border-bottom: 1px solid var(--line); }
.price-levels b { color: var(--black); white-space: nowrap; }
.pull { font-family: var(--slab); font-weight: 800; font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.75rem); line-height: 1.3; color: var(--black); max-width: 34em; }
.pull-by { margin-top: 10px; color: var(--muted); font-weight: 700; }

/* town and link lists */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--black); border-radius: 999px; font-weight: 700; text-decoration: none; }
.chips a:hover { background: var(--black); color: var(--white); }

/* contact page */
.contact-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.contact-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--white); }
.contact-list h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-list .big { font-family: var(--slab); font-weight: 800; font-size: 1.5rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* quote form container on /request-estimate (the form kit drops in here) */
.quote-box { border: 2px solid var(--black); border-radius: var(--radius); padding: 26px 24px; background: var(--white); }
.form-fallback p { font-size: 1.1rem; }
.fallback-phone a, .band-phone a, .topbar a, .footer-phone a { white-space: nowrap; }
.fallback-phone, .form-fallback .fallback-phone { font-family: var(--slab); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); line-height: 1.15; color: var(--black); }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  min-height: 56px; padding: 14px 0; font-weight: 700; font-size: 1.05rem; color: var(--black);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--slab); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { padding: 0 0 18px; max-width: 70ch; }

/* legal pages */
.legal-page h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal-page h3 { font-size: 1.08rem; margin-top: 1.3em; }
.updated { color: var(--muted); font-weight: 700; margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { background: var(--stone); border-top: 1px solid var(--line); padding: 48px 0 0; font-size: 0.98rem; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: 120px; margin-bottom: 12px; }
.footer-brand p + p { margin-top: 8px; }
.footer-phone { font-weight: 700; }
.footer-h { font-size: 1.05rem; margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; }
.social { display: flex; gap: 18px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 34px; padding: 18px 0 22px; border-top: 1px solid var(--line); }
.legal p { margin: 0; }
.legal nav { display: flex; gap: 20px; }
.legal a { display: inline-flex; align-items: center; min-height: 40px; }
@media (max-width: 980px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- sticky call / text / quote bar on phones ---------- */
.callbar { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    background: var(--black); box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.25);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 0 6px;
    border: 2px solid var(--white); border-radius: var(--radius);
    color: var(--white); font-weight: 800; font-size: 1rem; text-decoration: none; white-space: nowrap;
  }
  .callbar .cb-call { background: var(--white); color: var(--black); }
}

/* ---------- 404 ---------- */
.notfound { padding: 70px 0 80px; }
.notfound .cta-row { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .topbar, .callbar, .menu, .nav, .header-cta, .band .cta-row { display: none !important; }
  body { padding-bottom: 0; }
}
