/* ==========================================================================
   Brazoria Driveway & Drainage  //  angletonculverts.com
   OOCSS objects (.media, .box, object+skin pairs) + Flexbox holy-grail.
   System font stack stands in for Spectral (headings) / Source Sans 3 (body)
   to keep this a single-request, self-hosted, zero-webfont page.
   ========================================================================== */

:root {
  --ivory: #f7f3ec;
  --ivory-dim: #efe8da;
  --hunter: #1f3a3d;
  --hunter-dim: #16292b;
  --clay: #e8846b;
  --clay-dim: #d76e54;
  --teal: #6fa8a0;
  --ink: #2b2118;
  --rule: #d8cdb8;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 68rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 4.25rem; /* room for sticky mobile bar */
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--hunter); line-height: 1.22; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: var(--hunter); }
a:hover { color: var(--clay-dim); }
ul, ol { padding-left: 1.3em; }
hr.rule { border: none; border-top: 1px solid var(--rule); margin: 2rem 0; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.center { text-align: center; }
.muted { color: #5b5044; }
.small { font-size: 0.88rem; }
.tag { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.76rem; color: var(--teal-dim, #4f847c); font-weight: 700; }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--hunter); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--hunter); color: var(--ivory); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.25rem 1rem; padding-top: 0.4rem; padding-bottom: 0.4rem; font-size: 0.82rem; }
.topbar a { color: var(--ivory); text-decoration: none; }
.topbar .phone-cta { font-weight: 700; font-size: 1.02rem; }

/* ---------- Masthead: centered classic ---------- */
.masthead { background: var(--ivory); }
.masthead .container { padding-top: 1.4rem; padding-bottom: 0.9rem; text-align: center; }
.brand-link { text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 1.85rem; margin: 0; color: var(--hunter); letter-spacing: 0.01em; }
.brand-tag { margin: 0.3rem 0 0; font-size: 0.92rem; color: var(--ink); font-style: italic; }
.masthead hr.rule--brand { max-width: 22rem; margin: 0.9rem auto 0; border: none; border-top: 3px double var(--hunter); }
nav.mainnav { border-bottom: 1px solid var(--rule); background: var(--ivory-dim); }
nav.mainnav ul { list-style: none; margin: 0; padding: 0.6rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 1.15rem; }
nav.mainnav a { text-decoration: none; color: var(--hunter); font-weight: 600; font-size: 0.9rem; padding: 0.2rem 0.1rem; border-bottom: 2px solid transparent; }
nav.mainnav a:hover, nav.mainnav a[aria-current="page"] { border-bottom-color: var(--clay); color: var(--hunter-dim); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.8rem; color: #5b5044; padding: 0.7rem 0 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.breadcrumbs li + li::before { content: "\203A"; margin-right: 0.35rem; color: var(--teal); }
.breadcrumbs a { color: var(--hunter); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: 1.6rem 0 1.1rem; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.hero-copy { flex: 1 1 20rem; }
.hero-copy h1 { font-size: 1.5rem; }
.hero .differentiator { font-size: 1rem; color: var(--hunter-dim); font-weight: 600; }
.hero-media { flex: 1 1 15rem; max-width: 17rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 0.7rem 1.3rem; border-radius: 0.2rem; font-weight: 700; text-decoration: none; font-size: 0.98rem; border: 2px solid transparent; }
.btn--clay { background: var(--clay); color: #fff; }
.btn--clay:hover { background: var(--clay-dim); color: #fff; }
.btn--outline { background: transparent; border-color: var(--hunter); color: var(--hunter); }
.btn--outline:hover { background: var(--hunter); color: var(--ivory); }
.btn--outline-light { background: transparent; border-color: var(--ivory); color: var(--ivory); }
.btn--outline-light:hover { background: var(--ivory); color: var(--hunter); }
.btn--block { display: block; width: 100%; text-align: center; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--ivory-dim); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.trustbar ul { list-style: none; margin: 0; padding: 0.8rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.6rem; text-align: center; }
.trustbar li { font-size: 0.86rem; color: var(--hunter-dim); font-weight: 600; max-width: 13rem; }
.trustbar li span.dot { color: var(--clay); margin-right: 0.35em; }

/* ---------- Framed media object (photo/icon substitute, honesty-safe) ---------- */
.frame { border: 1px solid var(--rule); padding: 0.4rem; background: #fff; }
.frame-inner { border: 1px solid var(--hunter); padding: 1rem; text-align: center; background: var(--ivory-dim); }
.frame-inner svg { width: 100%; height: auto; max-width: 8rem; margin: 0 auto; color: var(--hunter); }
.frame-cap { font-size: 0.78rem; color: #5b5044; text-align: center; margin-top: 0.45rem; font-style: italic; }

/* ---------- Two-column brochure spread ---------- */
.spread { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; padding: 1.8rem 0; }
.spread + .spread { border-top: 1px solid var(--rule); }
.spread.reverse { flex-direction: row-reverse; }
.spread-col { flex: 1 1 18rem; }

/* ---------- Boxes (pricing, cards) ---------- */
.box { border: 1px solid var(--rule); background: #fff; padding: 1.15rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: 1.2rem; }
.price-box h3 { margin-bottom: 0.15rem; }
.price-box .price { font-family: var(--serif); font-size: 1.4rem; color: var(--clay-dim); margin: 0.15rem 0 0.55rem; }
.badge { display: inline-block; background: var(--teal); color: #fff; font-size: 0.7rem; padding: 0.15rem 0.55rem; border-radius: 1rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.5rem; }

/* ---------- Steps / numbered process ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.1rem 2.5rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.75rem; height: 1.75rem; background: var(--hunter); color: var(--ivory); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--serif); font-size: 0.92rem; }
.steps li strong { color: var(--hunter-dim); }

/* ---------- Section shells ---------- */
section.section { padding: 1.85rem 0; }
section.section.alt { background: var(--ivory-dim); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
section.section.hunter { background: var(--hunter); color: var(--ivory); }
section.section.hunter h2, section.section.hunter h3 { color: var(--ivory); }
section.section.hunter a:not(.btn) { color: var(--ivory); }

/* ---------- Failure-mode list ---------- */
.fail-list { list-style: none; margin: 0; padding: 0; }
.fail-list li { padding: 0.6rem 0 0.6rem 1.9rem; border-bottom: 1px solid var(--rule); position: relative; }
.fail-list li:last-child { border-bottom: none; }
.fail-list li::before { content: "\26A0"; position: absolute; left: 0; top: 0.6rem; color: var(--clay-dim); }
.fail-list strong { color: var(--hunter-dim); }

/* ---------- Table ---------- */
table.price-table { width: 100%; border-collapse: collapse; background: #fff; }
table.price-table th, table.price-table td { border: 1px solid var(--rule); padding: 0.65rem 0.75rem; text-align: left; font-size: 0.92rem; vertical-align: top; }
table.price-table th { background: var(--hunter); color: var(--ivory); font-family: var(--serif); font-weight: 700; }
table.price-table tr:nth-child(even) td { background: var(--ivory-dim); }
.table-wrap { overflow-x: auto; }

/* ---------- FAQ ---------- */
details.faq { border-bottom: 1px solid var(--rule); padding: 0.8rem 0; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--hunter-dim); font-family: var(--serif); font-size: 1.02rem; }
details.faq summary::marker { color: var(--clay); }
details.faq p { margin-top: 0.55rem; }

/* ---------- Form ---------- */
.formwrap { max-width: 32rem; margin: 0 auto; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; font-size: 0.9rem; color: var(--hunter-dim); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.62rem 0.72rem; border: 1px solid var(--rule); border-radius: 0.2rem;
  font-size: 1rem; font-family: var(--sans); background: #fff; color: var(--ink);
}
.field textarea { min-height: 6rem; resize: vertical; }
.field .optional { font-weight: 400; color: #5b5044; font-size: 0.8rem; }
section.section.hunter .field label { color: var(--ivory); }

/* ---------- Coverage list ---------- */
.coverage-list { columns: 2; column-gap: 2rem; }
.coverage-list li { break-inside: avoid; margin-bottom: 0.35rem; }

/* ---------- Footer ---------- */
footer.sitefoot { background: var(--hunter); color: var(--ivory-dim); margin-top: 2rem; }
footer.sitefoot .container { padding: 2.1rem 1.25rem 1.4rem; }
footer.sitefoot h4 { color: var(--ivory); font-size: 0.98rem; }
footer.sitefoot a { color: var(--ivory-dim); text-decoration: none; }
footer.sitefoot a:hover { color: #fff; text-decoration: underline; }
.footgrid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footgrid > div { flex: 1 1 12.5rem; }
.footgrid ul { list-style: none; padding: 0; margin: 0; }
.footgrid li { margin-bottom: 0.32rem; font-size: 0.9rem; }
.finePrint { text-align: center; font-size: 0.76rem; color: #a9bcbb; margin-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 0.95rem; }

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-cta { position: fixed; bottom: 0; left: 0; right: 0; display: flex; z-index: 40; box-shadow: 0 -2px 8px rgba(0,0,0,0.18); }
.mobile-cta a { flex: 1 1 50%; text-align: center; padding: 0.85rem 0.5rem; font-weight: 700; font-size: 0.98rem; text-decoration: none; min-height: 48px; display: flex; align-items: center; justify-content: center; }
.mobile-cta .call { background: var(--clay); color: #fff; }
.mobile-cta .quote { background: var(--hunter); color: var(--ivory); border-left: 1px solid rgba(255,255,255,0.25); }

@media (min-width: 56.25em) { /* 900px */
  .mobile-cta { display: none; }
  body { padding-bottom: 0; }
}

@media (min-width: 42em) {
  h1 { font-size: 2rem; }
  .hero-copy h1 { font-size: 1.85rem; }
  h2 { font-size: 1.65rem; }
  .brand-name { font-size: 2.1rem; }
}

@media (max-width: 30em) {
  .coverage-list { columns: 1; }
}

@media (prefers-color-scheme: dark) {
  body { background: #17221f; color: #ece5d6; }
  .masthead, nav.mainnav, section.section, .trustbar, .box, .frame, .frame-inner, table.price-table td, .field input, .field select, .field textarea { background: #1c2a26; color: #ece5d6; }
  table.price-table tr:nth-child(even) td { background: #223330; }
  .frame-inner { background: #223330; }
  h1, h2, h3, h4 { color: #cfe4de; }
  hr.rule, hr.rule--brand, .spread + .spread, .fail-list li, details.faq, .box, .frame, table.price-table th, table.price-table td, nav.mainnav, section.section.alt, .trustbar { border-color: #33453f; }
  a { color: #9fd0c6; }
  .price-box .price { color: #f0a58e; }
  .muted { color: #b7ac97; }
}
:root[data-theme="dark"] body { background: #17221f; color: #ece5d6; }
:root[data-theme="dark"] .masthead, :root[data-theme="dark"] nav.mainnav, :root[data-theme="dark"] section.section, :root[data-theme="dark"] .trustbar, :root[data-theme="dark"] .box, :root[data-theme="dark"] .frame, :root[data-theme="dark"] .frame-inner, :root[data-theme="dark"] .field input, :root[data-theme="dark"] .field select, :root[data-theme="dark"] .field textarea { background: #1c2a26; color: #ece5d6; }
:root[data-theme="dark"] h1, :root[data-theme="dark"] h2, :root[data-theme="dark"] h3, :root[data-theme="dark"] h4 { color: #cfe4de; }
:root[data-theme="dark"] a { color: #9fd0c6; }
:root[data-theme="light"] body { background: var(--ivory); color: var(--ink); }
