/* =========================================================
   Asphalt + Tar Surfacing — lead generation site
   Design language: asphalt black + road-marking yellow
   Display: Zilla Slab (echoes the logo's slab serif)
   Body/UI: Inter
   Signature: dashed yellow "centre-line" motif
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --asphalt: #141414;
  --asphalt-2: #1d1d1d;
  --asphalt-3: #262626;
  --bone: #f7f4ee;
  --bone-2: #efe9df;
  --paper: #ffffff;
  --yellow: #f4c020;
  --yellow-deep: #d9a400;
  --ink: #171717;
  --muted: #67645c;
  --muted-on-dark: #b7b2a8;
  --line: #e3ddd1;
  --line-dark: #333029;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 18px 50px -22px rgba(20, 20, 20, 0.45);
  --shadow-sm: 0 8px 24px -16px rgba(20, 20, 20, 0.5);

  --maxw: 1140px;
  --pad: clamp(1.1rem, 4vw, 2.5rem);

  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; font-weight: 700; letter-spacing: -0.01em; }
ul { list-style: none; padding: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--yellow { color: var(--yellow-deep); }
.eyebrow--dark { color: var(--muted-on-dark); }

/* ---------- Signature: road centre-line ---------- */
.roadline {
  height: 6px;
  width: 100%;
  background-image: repeating-linear-gradient(
    to right,
    var(--yellow) 0 46px,
    transparent 46px 86px
  );
}
.roadline--thin { height: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--yellow); color: var(--asphalt); border-color: var(--yellow); }
.btn--primary:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); }
.btn--dark { background: var(--asphalt); color: var(--bone); border-color: var(--asphalt); }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--asphalt); border-color: var(--asphalt); }
.btn--ghost:hover { background: var(--asphalt); color: var(--bone); }
.btn--ghost-light { background: transparent; color: var(--bone); border-color: rgba(247,244,238,0.4); }
.btn--ghost-light:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 46px; width: auto; }
.brand .brand-fallback { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius);
  color: var(--asphalt-2);
  position: relative;
}
.nav a:hover { color: #000; }
.nav a.active { color: #000; }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0.7rem; right: 0.7rem; bottom: 0.15rem;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}
.header-cta { display: flex; align-items: center; gap: 0.6rem; }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--asphalt);
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.phone-link:hover { color: var(--yellow-deep); }
.phone-link svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  background: var(--asphalt);
  border: none;
  color: var(--bone);
  width: 44px; height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--asphalt);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* subtle asphalt aggregate texture */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1.4px),
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1.4px);
  background-size: 7px 7px, 13px 13px;
  background-position: 0 0, 4px 6px;
  opacity: 0.9;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  color: var(--bone);
  letter-spacing: -0.02em;
}
.hero h1 .hl { color: var(--yellow); }
.hero p.lede {
  color: var(--muted-on-dark);
  font-size: 1.1rem;
  margin-top: 1.1rem;
  max-width: 40ch;
}
.hero .eyebrow { margin-bottom: 1rem; }

.trust-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.6rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--bone);
  background: var(--asphalt-3);
  border: 1px solid var(--line-dark);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}
.chip svg { width: 15px; height: 15px; color: var(--yellow); }

/* ---------- Form card ---------- */
.form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--line);
}
.form-card__head {
  background: var(--asphalt);
  color: var(--bone);
  padding: 1.15rem 1.4rem 1.25rem;
  border-bottom: 4px solid var(--yellow);
}
.form-card__head h2 { color: var(--bone); font-size: 1.35rem; }
.form-card__head p { color: var(--muted-on-dark); font-size: 0.92rem; margin-top: 0.25rem; }
.form-card__body { padding: 1.3rem 1.4rem 1.5rem; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 1rem; text-align: center; }
.form-note svg { width: 13px; height: 13px; vertical-align: -2px; color: var(--yellow-deep); }

/* Widget hosts (QuickLeads #app / Wufoo) inherit page styles gracefully */
#app { min-height: 60px; }

/* ---------- QuickLeads Vue quote form (themed, replaces Bulma) ---------- */
#app .field { margin-bottom: 1rem; }
#app .label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
#app .control { position: relative; }
#app .control.is-expanded { width: 100%; }
#app .input,
#app select,
#app textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.72rem 0.85rem;
  height: auto;
  line-height: 1.3;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#app textarea { min-height: 6em; resize: vertical; }
#app .input::placeholder,
#app textarea::placeholder { color: #a8a49a; }
#app .input:focus,
#app select:focus,
#app textarea:focus {
  outline: none;
  border-color: var(--yellow-deep);
  box-shadow: 0 0 0 3px rgba(244, 192, 32, 0.28);
}
#app .select,
#app .select.is-fullwidth { display: block; width: 100%; }
#app select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px;
}
/* Submit button: color is set inline per-campaign in QuickLeads (dashboard),
   so we only normalise layout here and let the campaign's brand color show. */
#app .button.is-fullwidth,
#app button[type="submit"] {
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
}
#app .help.is-danger,
#app div.error { color: #d1233b; font-size: 0.82rem; margin-top: 0.35rem; }
#app .input.is-danger,
#app select.is-danger,
#app input.error,
#app select.error { border-color: #d1233b; background: #fff5f6; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--bone2 { background: var(--bone-2); }
.section--asphalt { background: var(--asphalt); color: var(--bone); }
.section--asphalt h2 { color: var(--bone); }
.section--asphalt p { color: var(--muted-on-dark); }
.section-head { max-width: 62ch; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); margin-top: 0.6rem; }
.section-head p { color: var(--muted); margin-top: 0.8rem; font-size: 1.05rem; }
.section--asphalt .section-head p { color: var(--muted-on-dark); }

/* ---------- Stat band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat { background: var(--asphalt-2); padding: 1.6rem 1.2rem; text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--yellow); }
.stat .lbl { color: var(--muted-on-dark); font-size: 0.85rem; margin-top: 0.25rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.3rem 1.5rem;
  position: relative;
}
.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--asphalt);
  background: var(--yellow);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.18rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* Detailed vertical steps (how it works page) */
.steps-vert { display: grid; gap: 1.1rem; max-width: 780px; }
.step-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.2rem;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
}
.step-row .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--asphalt);
  background: var(--bone-2);
  border-radius: 50%;
  width: 56px; height: 56px;
  display: grid; place-items: center;
}
.step-row h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.step-row p { color: var(--muted); }

/* ---------- Services / SEO grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.card .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--asphalt);
  color: var(--yellow);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.18rem; margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Areas ---------- */
.area-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.area-list span {
  font-weight: 600;
  font-size: 0.92rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
}

/* ---------- Two column content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
.split--form { grid-template-columns: 1.05fr 0.95fr; }
.prose p { margin-bottom: 1rem; color: var(--muted); }
.prose p strong { color: var(--ink); }
.prose h2 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); margin-bottom: 0.9rem; }
.prose .eyebrow { display: block; margin-bottom: 0.7rem; }

/* Benefit list with check marks */
.benefits { display: grid; gap: 0.85rem; margin-top: 1.4rem; }
.benefits li { display: grid; grid-template-columns: 26px 1fr; gap: 0.7rem; align-items: start; }
.benefits li .tick {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--yellow); color: var(--asphalt);
  display: grid; place-items: center;
}
.benefits li .tick svg { width: 14px; height: 14px; }
.benefits li strong { display: block; }
.benefits li span.txt { color: var(--muted); font-size: 0.96rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--yellow); color: var(--asphalt); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2.2rem, 5vw, 3rem); flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); color: var(--asphalt); }
.cta-band p { font-weight: 600; margin-top: 0.3rem; }
.cta-band .actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* ---------- Contact details ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2.5rem; }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.contact-card .ico { margin: 0 auto 0.9rem; width: 48px; height: 48px; background: var(--asphalt); color: var(--yellow); border-radius: 50%; display: grid; place-items: center; }
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.contact-card p, .contact-card a { color: var(--muted); font-size: 0.96rem; }
.contact-card a { font-weight: 700; color: var(--asphalt); }
.contact-card a:hover { color: var(--yellow-deep); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.2rem 1.3rem;
  margin-bottom: 0.8rem;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--yellow-deep); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--asphalt); color: var(--muted-on-dark); padding-block: 3rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { color: var(--bone); font-size: 1.05rem; margin-bottom: 0.9rem; letter-spacing: 0.02em; }
.site-footer a { color: var(--muted-on-dark); }
.site-footer a:hover { color: var(--yellow); }
.footer-brand .brand-fallback, .footer-brand strong { color: var(--bone); font-family: var(--font-display); font-size: 1.15rem; }
.footer-brand p { margin-top: 0.7rem; font-size: 0.92rem; max-width: 38ch; }
.footer-links li { margin-bottom: 0.55rem; font-size: 0.95rem; }
.footer-phone { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--yellow); font-size: 1.15rem; margin-top: 0.3rem; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.3rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .form-card { order: -1; }
  .steps, .cards, .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .split--form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bone);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem var(--pad) 1rem;
    gap: 0.2rem;
    box-shadow: var(--shadow-sm);
  }
  .nav.open a { padding: 0.85rem 0.4rem; border-bottom: 1px solid var(--line); }
  .nav.open a.active::after { display: none; }
  .site-header { position: relative; }
}

@media (max-width: 560px) {
  .steps, .cards, .contact-cards, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .step-row { grid-template-columns: 1fr; }
  .step-row .n { margin-bottom: 0.5rem; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}

/* ---------- A11y ---------- */
:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 2px; border-radius: 3px; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--asphalt); color: var(--bone);
  padding: 0.7rem 1rem; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

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