/* ============================================================
   Local SEO Site — base stylesheet
   Single file, no framework. Brand color is set via --brand.
   Kept intentionally lightweight for fast load (Core Web Vitals).
   ============================================================ */

:root {
  --brand: #1f8a4c;              /* overridden per-site by build.py */
  --brand-dark: #14623697;       /* overridden per-site by build.py */
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e4e4e4;
  --bg-soft: #f6f8f7;
  --max: 1160px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0,0,0,.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  background: #fff;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -.5px; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; margin-top: 2.2em; }
h3 { font-size: 1.25rem; font-weight: 700; }

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

/* ---------- Top call bar ---------- */
.callbar {
  background: var(--brand);
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 8px 12px;
  font-size: .98rem;
}
.callbar a { color: #fff; text-decoration: underline; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand .name { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand .phone { font-weight: 800; font-size: 1.05rem; color: var(--brand-dark); }

.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a {
  display: block; padding: 10px 14px; color: var(--ink); font-weight: 600;
  border-radius: 8px; text-decoration: none;
}
.menu > li > a:hover, .menu > li.active > a { background: var(--bg-soft); color: var(--brand-dark); }

.dropdown { position: relative; }
.dropdown > .submenu {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 8px; margin: 6px 0 0;
  list-style: none; display: none;
  /* A site with a lot of services/locations can produce a submenu taller
     than the viewport — cap it and let it scroll instead of running off
     the bottom of the screen with no way to reach the rest of the list. */
  max-height: min(70vh, 520px); overflow-y: auto;
}
.dropdown:hover > .submenu, .dropdown:focus-within > .submenu { display: block; }
.submenu li a {
  display: block; padding: 9px 12px; border-radius: 7px; color: var(--ink); font-weight: 500;
}
.submenu li a:hover { background: var(--bg-soft); color: var(--brand-dark); text-decoration: none; }

.nav-cta {
  background: var(--brand); color: #fff !important; padding: 11px 18px;
  border-radius: 999px; font-weight: 800; white-space: nowrap;
}
.nav-cta:hover { background: var(--brand-dark); text-decoration: none; }

/* mobile menu toggle */
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; padding: 6px 10px; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 10px;
    /* The whole mobile menu (including any open dropdown, which becomes
       inline below) can get taller than the screen with enough services —
       scroll the menu itself rather than letting it run off-screen. */
    max-height: 80vh; overflow-y: auto;
  }
  .menu.open { display: flex; }
  .menu > li > a { padding: 12px 14px; }
  .dropdown > .submenu {
    position: static; display: block; box-shadow: none; border: 0;
    padding: 0 0 0 14px; margin: 0;
    /* Inline in the mobile menu now (not a floating panel), so it should
       grow with its parent's scroll rather than scroll independently. */
    max-height: none; overflow-y: visible;
  }
  .nav-cta { text-align: center; margin-top: 6px; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding: 56px 0;
}
.hero p.lead { font-size: 1.2rem; color: var(--muted); margin: 18px 0 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Photo hero: when a hero image is set, it's the background of the hero
   section itself (not a separate image further down the page). A dark
   overlay keeps the white H1/lead legible over any photo; the quote-form
   card keeps its own opaque background so it reads fine either way. */
.hero-photo-section { position: relative; overflow: hidden; }
.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10,14,20,.82) 0%, rgba(10,14,20,.62) 45%, rgba(10,14,20,.3) 100%);
}
.hero-photo-section .hero { position: relative; z-index: 2; }
.hero-photo-section .hero-copy h1,
.hero-photo-section .hero-copy .lead { color: #fff; }
.hero-photo-section .hero-copy .check li { color: #fff; }
.hero-photo-section .hero-copy .check li::before { color: #fff; }
@media (max-width: 860px) {
  .hero-overlay { background: rgba(10,14,20,.72); }
}

.btn {
  display: inline-block; padding: 15px 26px; border-radius: 999px; font-weight: 800;
  text-align: center; cursor: pointer; border: 0; font-size: 1.02rem;
}
.btn-call { background: var(--brand); color: #fff !important; }
.btn-call:hover { background: var(--brand-dark); text-decoration: none; }
.btn-outline { background: #fff; color: var(--brand-dark) !important; border: 2px solid var(--brand); }
.btn-outline:hover { background: var(--bg-soft); text-decoration: none; }

.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 34px 0; gap: 26px; }
}

/* ---------- Quote form ---------- */
.quote-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.quote-card h2 { margin-top: 0; }
.quote-card .req { color: #c0392b; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-card label { display: block; font-weight: 700; margin: 14px 0 6px; font-size: .95rem; }
.quote-card input, .quote-card textarea {
  width: 100%; padding: 12px; border: 1px solid #cfcfcf; border-radius: 8px; font: inherit;
}
.quote-card textarea { min-height: 110px; resize: vertical; }
.quote-card .btn-call { width: 100%; margin-top: 18px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
section { padding: 8px 0; }
.section-soft { background: var(--bg-soft); padding: 46px 0; margin-top: 40px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.card h3 { margin-top: 0; }
.card a.more { font-weight: 700; }
.card.has-img { padding-top: 0; overflow: hidden; }
.card-img {
  /* max-width: none overrides the global `img { max-width: 100% }` reset
     below — without it, that reset silently clamps this bleed width back
     down to 100% of the card's content box, undoing the negative margin
     and leaving a gap on the right equal to the padding it was meant to
     cancel out. Easy to lose again on a future edit, so it's called out
     here explicitly. */
  display: block; width: calc(100% + 48px); max-width: calc(100% + 48px);
  margin: 0 -24px 18px; height: 180px; object-fit: cover; border-radius: 0;
}

.check { list-style: none; padding: 0; margin: 18px 0; }
.check li { padding: 6px 0 6px 30px; position: relative; }
.check li::before {
  content: "✔"; color: var(--brand); font-weight: 900; position: absolute; left: 0;
}

/* ---------- Testimonials ---------- */
.quote-block {
  background: #fff; border-left: 4px solid var(--brand); border-radius: 8px;
  padding: 20px 22px; box-shadow: 0 2px 10px rgba(0,0,0,.05); font-style: italic; color: #333;
}
.quote-block .author { display: block; margin-top: 10px; font-style: normal; font-weight: 700; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 18px; margin: 10px 0; background:#fff;
}
.faq summary { font-weight: 700; cursor: pointer; padding: 12px 0; }
.faq details[open] summary { color: var(--brand-dark); }

/* ---------- Service-area chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.chips li a {
  display: inline-block; padding: 8px 16px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; font-weight: 600; color: var(--ink);
}
.chips li a:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--brand); color: #fff; text-align: center; padding: 46px 20px; margin-top: 48px;
  border-radius: var(--radius);
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band .btn-call { background: #fff; color: var(--brand-dark) !important; margin-top: 8px; }

/* ---------- Content pages ---------- */
.page-head { padding: 40px 0 10px; }
.content { max-width: 820px; }
.content p { margin: 1.1em 0; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin: 8px 0 0; }
.breadcrumb a { color: var(--muted); }

.map-embed iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { background: #10161c; color: #cfd6dd; margin-top: 56px; padding: 44px 0 26px; }
.site-footer a { color: #cfd6dd; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; }
.footer-serving { font-weight: 700; color: #fff; }
.footer-bottom { border-top: 1px solid #2a3138; margin-top: 28px; padding-top: 18px; font-size: .85rem; color: #93a0ac; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }

/* utilities */
.center { text-align: center; }
.mt0 { margin-top: 0; }
.big-phone { font-size: 1.35rem; font-weight: 800; }

/* ---------- Images ---------- */
.rounded-img { width: 100%; border-radius: var(--radius); display: block; object-fit: cover; }
.hero-photo { margin: 0 0 22px; max-height: 420px; }
.intro-block { max-width: 900px; }

/* ---------- Service showcase (alternating image + copy) ---------- */
.showcase-wrap { margin-top: 20px; }
.showcase-wrap > h2 { margin-bottom: 22px; }
.showcase {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px;
  align-items: center; margin: 30px 0; padding-bottom: 30px;
  border-bottom: 1px solid var(--line, #e6e9ee);
}
.showcase:last-child { border-bottom: 0; }
.showcase.rev .showcase-media { order: 2; }
.showcase-media img { max-height: 320px; }
.showcase-copy h3 { margin-top: 0; font-size: 1.5rem; }
.showcase-copy .more { font-weight: 700; }
@media (max-width: 860px) {
  .showcase, .showcase.rev { grid-template-columns: 1fr; }
  .showcase.rev .showcase-media { order: 0; }
}

/* Deep-dive variant: image stays put (no sticky-scroll) and is centered
   in the middle of its row, vertically, against the longer copy column.
   The media column also gets more than half the row's width (vs. the
   1fr/1.1fr split showcase() uses) so the photo reads as a real feature,
   not an afterthought next to the copy. */
.showcase.deepdive { grid-template-columns: 1.15fr 1fr; align-items: center; }
/* `.showcase-media .deepdive-img` (two classes) rather than `.deepdive-img`
   alone — `.showcase-media img` above is a class+type selector, which beats
   a single-class selector on specificity regardless of source order, so a
   plain `.deepdive-img { max-height }` here would silently lose to that
   320px cap instead of applying its own. */
.showcase-media .deepdive-img { max-height: 480px; }
.showcase.deepdive .explorer-points { margin: 18px 0; }
@media (max-width: 860px) {
  .showcase.deepdive { grid-template-columns: 1fr; }
}

/* Each service renders as its own full-width band so the background can
   alternate — solid brand blue (the same color as the call bar / buttons)
   on the "alt" rows, plain white otherwise, with text flipped to white on
   the alt rows for contrast. The `.wrap` inside keeps the normal max-width. */
.showcase-band { padding: 34px 0; border-bottom: 1px solid var(--line, #e6e9ee); }
.showcase-band:last-child { border-bottom: 0; }
.showcase-band.alt { background: var(--brand); }
.showcase-band.alt .showcase-copy h3,
.showcase-band.alt .explorer-point h4 { color: #fff; }
.showcase-band.alt .showcase-copy p,
.showcase-band.alt .explorer-point p { color: rgba(255,255,255,.88); }
.showcase-band .showcase { margin: 0; padding-bottom: 0; border-bottom: 0; }

/* ---------- Service explorer (interactive tabbed service preview) ---------- */
.section-explorer { background: var(--brand-dark); color: #fff; padding: 48px 0; margin-top: 40px; }
.section-explorer h2 { color: #fff; margin: 0 0 8px; }
.section-explorer .lead { color: rgba(255,255,255,.78); margin: 0 0 28px; }

.explorer {
  display: grid; grid-template-columns: 300px 1fr;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.explorer-tabs { list-style: none; margin: 0; padding: 0; background: rgba(255,255,255,.06); }
.explorer-tab {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  border-left: 3px solid transparent; color: rgba(255,255,255,.82);
  font: inherit; font-weight: 600; font-size: .96rem; padding: 15px 20px; cursor: pointer;
}
.explorer-tab:hover { background: rgba(255,255,255,.1); color: #fff; }
.explorer-tab.active { background: #fff; color: var(--brand-dark); border-left-color: var(--brand); }

.explorer-panels { background: #fff; position: relative; }
.explorer-panel { color: var(--ink); }
/* Padding + white background on the media wrapper keeps the image from
   sitting flush against the card edge — the image should always read as
   inset, never edge-to-edge, no matter what aspect ratio gets dropped in. */
.explorer-panel-media { display: block; padding: 20px; box-sizing: border-box; background: #fff; }
.explorer-panel-img {
  width: 100%; height: 100%; max-height: 280px; object-fit: cover; display: block; border-radius: 12px;
}
.explorer-panel-copy { padding: 28px 30px 30px; }
.explorer-panel-copy h3 { margin: 0 0 12px; font-size: 1.4rem; }
.explorer-panel-copy .check { margin: 0 0 22px; }
.explorer-panel-copy > p { margin: 0 0 18px; }
.explorer-points { margin: 0 0 22px; display: flex; flex-direction: column; gap: 16px; }
.explorer-point h4 { margin: 0 0 4px; font-size: 1.02rem; }
.explorer-point p { margin: 0; color: var(--muted); }

.view-all { display: inline-block; margin-top: 24px; color: #fff; font-weight: 700; border-bottom: 2px solid rgba(255,255,255,.4); }
.view-all:hover { border-bottom-color: #fff; text-decoration: none; }

@media (max-width: 780px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer-tabs { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .explorer-tab { flex: 0 0 auto; white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
  .explorer-tab.active { border-left: 0; border-bottom-color: var(--brand); }
}

/* ---------- Freeform content sections ---------- */
/* Deliberately NOT overriding .wrap's max-width/padding here (a past version
   capped this at max-width:900px, which — combined with .wrap's own
   max-width being a separate, wider value — left a large, obviously
   unbalanced blank gap on wide screens where the two-column image+form
   section right above it fills the full width but this text column
   suddenly doesn't). Keep these sections the same width as everything
   else on the page. */
.content-section { padding-top: 8px; padding-bottom: 8px; }
.content-section h2 { margin-top: 1.2em; }
.sec-media { margin: 10px 0 16px; }
.article-body { max-width: 820px; }
.article-body img { margin: 0 0 20px; }

/* ---------- Logo (added by postprocess.py) ---------- */
.brand { flex-direction: row !important; align-items: center; gap: 12px; }
.nav-logo { height: 46px; width: auto; display: block; }
.footer-logo { height: 42px; width: auto; display: block; margin-bottom: 14px; }
@media (max-width: 480px) {
  .nav-logo { height: 38px; }
}
