/* Keep It Clean America - first draft site styles
   Brand (Wave 2): green #1E8449, accent #27AE60, white, near-black #1A1A1A.
   Green reserved for CTAs/links. Clean, bright, family-owned. Mobile-first. */

:root {
  --green: #1E8449;
  --green-dark: #166938;
  --accent: #27AE60;
  --accent-dark: #1f9150;
  --ink: #1A1A1A;
  --body: #33403a;
  --muted: #5c6b64;
  --line: #e3e9e5;
  --bg: #ffffff;
  --bg-soft: #f4f8f5;
  --bg-green: #0f3d22;
  --gold: #f5b700;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(16, 50, 32, 0.10);
  --shadow-sm: 0 4px 14px rgba(16, 50, 32, 0.08);
  --wrap: 1160px;
  --head-h: 76px;
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img, video { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -.3px; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow { color: var(--green); font-weight: 700; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; margin-bottom: .6rem; }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; padding: 14px 24px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-call { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(39,174,96,.32); }
.btn-call:hover { background: var(--accent-dark); color: #fff; }
.btn-quote { background: #fff; color: var(--green-dark); border-color: var(--green); }
.btn-quote:hover { background: var(--bg-soft); color: var(--green-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 1.1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.brand .brand-fallback { font-family: var(--font-head); font-weight: 800; color: var(--green); font-size: 1.15rem; line-height: 1.05; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: .98rem; padding: 10px 13px; border-radius: 8px; }
.nav a:hover { background: var(--bg-soft); color: var(--green-dark); }
.has-drop { position: relative; }
.has-drop > a::after { content: " v"; font-size: .7rem; color: var(--muted); }
.drop { position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); min-width: 240px; padding: 8px; display: none; }
.has-drop:hover .drop, .has-drop:focus-within .drop { display: block; }
.drop a { display: block; padding: 9px 12px; font-weight: 500; }
.header-cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.header-phone { font-family: var(--font-head); font-weight: 700; color: var(--green-dark); white-space: nowrap; }
.header-phone span { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .5px; }
.nav-toggle { display: none; margin-left: auto; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 9px; width: 46px; height: 44px; font-size: 1.4rem; cursor: pointer; color: var(--ink); }

/* Hero */
.hero { position: relative; background: linear-gradient(160deg, #0f3d22 0%, #1E8449 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.92); }
.hero-tag { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .82rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-proof { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; font-size: .92rem; color: rgba(255,255,255,.9); }
.hero-proof b { color: #fff; }
.hero-media { border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); }

/* Before/after slider */
.ba { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; box-shadow: var(--shadow); user-select: none; background: #ccc; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-after { clip-path: inset(0 0 0 50%); }
.ba .ba-label { position: absolute; bottom: 12px; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; color: #fff; background: rgba(15,61,34,.78); padding: 5px 11px; border-radius: 6px; }
.ba .ba-label.before { left: 12px; }
.ba .ba-label.after { right: 12px; }
.ba .ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.1); transform: translateX(-1.5px); }
.ba .ba-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--green); font-weight: 800; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* Muted auto-playing process compilation video (home "family" section). */
.process-video { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); background: #0f3d22; }

/* Auto-cycling "Our Work" slideshow. */
.kica-cycle { position: relative; max-width: 760px; margin: 0 auto; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 16px; box-shadow: var(--shadow); background: #ccc; }
.kica-cycle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.kica-cycle img.active { opacity: 1; }

/* Grids + cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card h3 { margin-top: .2rem; }
.svc-card { display: flex; flex-direction: column; }
.svc-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px; }
.svc-card .btn-text { margin-top: auto; font-family: var(--font-head); font-weight: 600; color: var(--green); }

/* Trust strip */
.trust { background: var(--bg-green); color: #fff; }
.trust .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; padding: 24px 22px; text-align: center; }
.trust .ti { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; }
.trust .ti b { font-size: 1.25rem; color: #fff; }
.trust .stars { color: var(--gold); letter-spacing: 2px; }

/* Why / feature list */
.feature-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature { text-align: left; }
.feature .fi { font-size: 1.8rem; }

/* Reviews */
.reviews-track { display: flex; gap: 20px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; }
.review { scroll-snap-align: start; min-width: 320px; max-width: 360px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.review .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; }
.review .who { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin-top: 12px; }
.review .who span { color: var(--muted); font-weight: 500; }

/* Pricing tables */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table th, .price-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.price-table th { background: var(--bg-soft); font-family: var(--font-head); color: var(--ink); }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.price-table tr:last-child td { border-bottom: none; }
.pill { display: inline-block; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: .85rem; font-family: var(--font-head); font-weight: 600; color: var(--green-dark); margin: 0 6px 8px 0; }

/* Promo / callout */
.promo { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; border-radius: 18px; padding: 40px; text-align: center; }
.promo h2 { color: #fff; }
.promo .price-big { font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; }
.callout { border-left: 4px solid var(--green); background: var(--bg-soft); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { font-family: var(--font-head); font-weight: 600; color: var(--ink); cursor: pointer; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--green); font-size: 1.3rem; }
.faq details[open] summary::after { content: "-"; }
.faq details p { padding-bottom: 14px; margin: 0; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid img, .gallery-grid video { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); }

/* Quote form */
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.quote-form label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); margin: 12px 0 5px; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 1rem; background: #fdfefd; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

/* Page hero (interior) */
.page-hero { background: var(--bg-green); color: #fff; padding: 56px 0; }
.page-hero h1 { color: #fff; margin-bottom: .3rem; }
.page-hero .lead { color: rgba(255,255,255,.9); }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.crumbs a { color: rgba(255,255,255,.85); }

/* Final CTA band */
.cta-band { background: linear-gradient(135deg, var(--green-dark), var(--bg-green)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .hero-cta { justify-content: center; }

/* Footer */
.site-footer { background: var(--ink); color: #c7d2cb; padding: 56px 0 26px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.site-footer a { color: #c7d2cb; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.foot-bottom { border-top: 1px solid #2c2c2c; margin-top: 36px; padding-top: 20px; font-size: .85rem; color: #8a978f; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Mobile sticky call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; background: var(--accent); box-shadow: 0 -4px 16px rgba(0,0,0,.18); }
.callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; padding: 15px; }

.note { font-size: .82rem; color: var(--muted); font-style: italic; }
.draft-flag { background: #fff7e6; border: 1px dashed var(--gold); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .9rem; color: #7a5b00; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; }
  .hero-media { order: -1; }
  .grid-3, .grid-4, .feature-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav { display: flex; position: absolute; top: var(--head-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 10px; gap: 2px; box-shadow: var(--shadow); }
  .site-header.open .nav a { padding: 13px; }
  .site-header.open .drop { display: block; position: static; box-shadow: none; border: none; padding: 0 0 0 14px; min-width: 0; }
  .grid-3, .grid-4, .grid-2, .feature-row, .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 52px 0; }
  .callbar { display: block; }
  body { padding-bottom: 58px; }
  .promo { padding: 28px 20px; }
}

/* Info popover (e.g. CRB scrub explainer). Positioned fixed by app.js so table overflow cannot clip it. */
.kica-info { display: inline; }
.kica-info-btn { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 6px; border: none; border-radius: 50%; background: var(--green); color: #fff; font-size: .7rem; font-weight: 700; font-family: var(--font-head); cursor: pointer; vertical-align: middle; line-height: 1; padding: 0; }
.kica-info-btn:hover { background: var(--green-dark); }
.kica-info-pop { display: none; position: fixed; z-index: 60; width: min(280px, 82vw); background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 12px 14px; font-size: .82rem; font-weight: 400; line-height: 1.5; text-align: left; white-space: normal; }
.kica-info.open .kica-info-pop { display: block; }

/* Quote calculator (contact page) */
.calc-row { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 12px 0; background: var(--bg-soft); }
.calc-row-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-head); color: var(--ink); }
.calc-remove { border: none; background: transparent; color: #b00020; font-size: .85rem; cursor: pointer; padding: 2px 6px; }
.calc-check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin-top: 10px; }
.calc-check input { width: auto; }
.calc-extra { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 16px; margin: 12px 0; background: #fff; }
.calc-extra summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--green-dark); }
.btn-add { background: #fff; border: 2px solid var(--green); color: var(--green-dark); margin-top: 4px; }
.btn-add:hover { background: var(--bg-soft); }
.calc-total { background: var(--bg-soft); border-left: 4px solid var(--green); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; margin: 16px 0; }
.calc-total .big { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--green-dark); }
