/* Hermes Roofing Company — Heritage Craft design system */

:root {
  --green: #1E4D36;
  --green-mid: #2A5C42;
  --green-soft: #A7CFA0;
  --green-pale: #CDE4C6;
  --green-tint: #EDF3E7;
  --cream: #FAF6ED;
  --cream-deep: #F4EEDC;
  --card: #FFFDF6;
  --line: #E4DCC9;
  --ink: #22301F;
  --ink-soft: #5A5244;
  --tan: #8A7D57;
  --tan-soft: #B0A275;
  --gold: #DFA732;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --maxw: 1080px;
  --bar-h: 58px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 18px;
  padding-bottom: var(--bar-h);
}

img { max-width: 100%; display: block; }
a { color: var(--green); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green-soft);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: var(--cream);
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 560; line-height: 1.22; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.lede { color: var(--ink-soft); max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1.02rem;
  padding: 14px 24px; border-radius: 8px; text-decoration: none; border: 1.5px solid var(--green);
  cursor: pointer; text-align: center;
}
.btn-solid { background: var(--green); color: var(--cream); }
.btn-solid:hover { background: var(--green-mid); border-color: var(--green-mid); }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green-tint); }
.btn-cream { background: var(--cream); color: var(--green); border-color: var(--cream); }
.btn-cream:hover { background: #fff; border-color: #fff; }

/* Header */
.site-header {
  background: var(--cream); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--green); text-decoration: none; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 1.05rem; white-space: nowrap; }
.nav a:hover { color: var(--green); }
.nav a[aria-current="page"] { color: var(--green); font-weight: 600; }
.nav .btn { padding: 10px 16px; }
.nav a.nav-phone { color: var(--green); font-weight: 700; }
.nav a.btn-solid { color: var(--cream); }
.nav a.btn-solid:hover { color: var(--cream); }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font-size: 1.1rem; color: var(--green); cursor: pointer;
}

/* Hero */
.hero { position: relative; margin: 22px auto 0; max-width: var(--maxw); padding: 0 22px; }
.hero-media { position: relative; border-radius: 14px; overflow: hidden; min-height: 420px; }
.hero-media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; position: absolute; inset: 0; }
.hero-card {
  position: relative; z-index: 2; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 26px 28px; max-width: 470px; margin: 60px 26px 26px;
}
.hero-card .badge { margin-bottom: 12px; }
.hero-card h1 { margin-bottom: 10px; }
.hero-card p { color: var(--ink-soft); margin-bottom: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #EFE7D2; color: #6B5B2E; font-size: 0.88rem; font-weight: 600;
  padding: 5px 12px; border-radius: 99px;
}
.badge .star { color: var(--gold); }

/* Service area chips */
.areas { padding: 18px 0 8px; }
.areas .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.areas-label { font-size: 0.95rem; color: var(--tan); margin-right: 2px; }
.chip {
  background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
  font-size: 0.92rem; padding: 6px 15px; border-radius: 99px; text-decoration: none;
}
.chip:hover { border-color: var(--green); color: var(--green); }

/* Sections */
.section { padding: 52px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-link { font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; }

/* Reviews */
.reviews-band { background: var(--cream-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reviews-head { text-align: center; margin-bottom: 20px; }
.gbadge {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.15rem;
}
.gmark {
  width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: #4285F4; font-size: 0.8rem; font-weight: 700;
}
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.15rem; }
.review-featured {
  background: var(--card); border: 1.5px solid var(--green); border-radius: 14px;
  padding: 26px 28px; text-align: center; max-width: 720px; margin: 0 auto 18px;
}
.review-featured .tag {
  display: inline-flex; align-items: center; gap: 6px; background: var(--green-tint); color: var(--green);
  font-size: 0.78rem; font-weight: 600; padding: 4px 11px; border-radius: 99px; margin-bottom: 10px;
}
.review-featured blockquote { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.55; margin-bottom: 10px; }
.review-meta { font-size: 0.92rem; color: var(--tan); }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.review-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.review-card .stars { font-size: 0.95rem; display: block; margin-bottom: 8px; }
.review-card p { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 8px; }
.review-card .crew-name { color: var(--green); font-weight: 600; }
.reviews-cta { text-align: center; }
.reviews-note { font-size: 0.85rem; color: var(--tan-soft); text-align: center; margin-top: 12px; }

/* Crew */
.crew-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.crew-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 14px; text-align: center; }
.crew-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: var(--cream);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1rem; margin: 0 auto 12px;
}
.crew-card h3 { margin-bottom: 2px; }
.crew-card p { font-size: 0.95rem; color: var(--tan); }

/* Gallery */
.gallery-grid { display: grid; gap: 14px; grid-template-columns: 2fr 1fr 1fr; }
.gallery-grid.alt { grid-template-columns: 1fr 1fr 2fr; margin-top: 14px; }
.gallery-grid a { border-radius: 10px; overflow: hidden; display: block; border: 1px solid var(--line); }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; }
.gallery-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-page-grid figure { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.gallery-page-grid img { width: 100%; height: 240px; object-fit: cover; }
.gallery-page-grid figcaption { padding: 10px 14px; font-size: 0.95rem; color: var(--ink-soft); }

/* How we work */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.work-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.work-card h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; margin: 10px 0 6px; }
.work-card p { font-size: 1rem; color: var(--tan); }
.work-icon { font-size: 1.5rem; color: var(--green); line-height: 1; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.faq summary {
  cursor: pointer; padding: 16px 19px; font-weight: 600; font-size: 1.1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.2rem; color: var(--tan); flex-shrink: 0; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 19px 17px; color: var(--ink-soft); font-size: 1.05rem; }

/* Storm section */
.storm { border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: 1.15fr 1fr; }
.storm-copy { background: var(--green); color: var(--green-pale); padding: 36px 34px; }
.storm-copy .tag {
  display: inline-flex; align-items: center; gap: 6px; background: var(--green-mid); color: var(--green-pale);
  font-size: 0.9rem; font-weight: 600; padding: 6px 13px; border-radius: 99px; margin-bottom: 14px;
}
.storm-copy h2 { color: var(--cream); margin-bottom: 10px; }
.storm-copy > p { margin-bottom: 20px; max-width: 48ch; }
.storm-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.storm-actions .note { font-size: 0.98rem; }
.storm-media { min-height: 280px; }
.storm-media img { width: 100%; height: 100%; object-fit: cover; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.step { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 15px 17px; }
.step-num { font-family: var(--serif); font-size: 1.45rem; color: var(--green); line-height: 1.1; }
.step h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 600; }
.step p { font-size: 0.95rem; color: var(--tan); }

/* Guarantee */
.guarantee {
  background: var(--card); border: 1.5px solid var(--green); border-radius: 12px;
  padding: 22px 26px; display: flex; gap: 18px; align-items: center; margin-top: 26px;
}
.guarantee .work-icon { font-size: 1.8rem; }
.guarantee h3 { margin-bottom: 3px; }
.guarantee p { font-size: 1.03rem; color: var(--ink-soft); }

/* Page hero (interior pages) */
.page-hero { background: var(--cream-deep); border-bottom: 1px solid var(--line); padding: 46px 0; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { color: var(--ink-soft); max-width: 66ch; }

/* Service cards */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.service-card h2 { font-size: 1.4rem; margin-bottom: 8px; }
.service-card p { font-size: 1.05rem; color: var(--ink-soft); }
.service-card ul { margin: 10px 0 0 18px; color: var(--ink-soft); font-size: 1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.contact-list { list-style: none; }
.contact-list li { margin-bottom: 15px; font-size: 1.08rem; }
.contact-list strong { display: block; font-size: 0.9rem; color: var(--tan); font-weight: 600; }
form label { display: block; font-weight: 600; font-size: 0.98rem; margin: 14px 0 5px; }
form input, form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); font-family: var(--sans); font-size: 1.02rem; color: var(--ink);
}
form textarea { min-height: 130px; resize: vertical; }
form .btn { margin-top: 16px; }
.form-note { font-size: 0.88rem; color: var(--tan-soft); margin-top: 8px; }

/* CTA band */
.cta-band { background: var(--green); border-radius: 14px; padding: 36px; text-align: center; }
.cta-band h2 { color: var(--cream); margin-bottom: 8px; }
.cta-band p { color: var(--green-pale); margin-bottom: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--cream); padding: 34px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; margin-bottom: 22px; }
.site-footer h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 700; color: var(--tan); margin-bottom: 10px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; font-size: 1rem; }
.site-footer a:hover { color: var(--green); }
.footer-brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--green); margin-bottom: 8px; }
.footer-about { font-size: 1rem; color: var(--ink-soft); max-width: 34ch; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.92rem; color: var(--tan); }

/* Sticky trust bar */
.trust-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--green); color: var(--cream); height: var(--bar-h);
}
.trust-bar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); height: 100%; align-items: center; padding: 0 22px; }
.trust-item { text-align: center; border-left: 1px solid var(--green-mid); line-height: 1.25; padding: 4px 6px; }
.trust-item:first-child { border-left: none; }
.trust-item.trust-summary { display: none; }
.trust-item .big { font-weight: 700; font-size: 1.08rem; display: block; }
.trust-item .small { font-size: 0.82rem; color: var(--green-soft); display: block; }
.trust-call { display: none; }

@media (max-width: 900px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--cream);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    padding: 12px 22px 18px; gap: 4px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 4px; }
  .nav-toggle { display: block; }
  .crew-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid, .gallery-grid.alt { grid-template-columns: 1fr 1fr; }
  .gallery-page-grid { grid-template-columns: 1fr 1fr; }
  .work-grid, .steps { grid-template-columns: 1fr; }
  .review-grid, .service-grid, .contact-grid { grid-template-columns: 1fr; }
  .storm { grid-template-columns: 1fr; }
  .storm-media { min-height: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-card { margin: 40px 14px 14px; padding: 22px; }
}

@media (max-width: 640px) {
  .trust-bar .wrap { grid-template-columns: 1fr auto; padding: 0 16px; gap: 10px; }
  .trust-item { display: none; }
  .trust-item.trust-summary { display: block; text-align: left; border-left: none; }
  .trust-call {
    display: inline-block; background: var(--cream); color: var(--green); font-weight: 700;
    font-size: 0.95rem; padding: 9px 15px; border-radius: 8px; text-decoration: none;
  }
  .crew-grid, .gallery-grid, .gallery-grid.alt, .gallery-page-grid { grid-template-columns: 1fr; }
  .gallery-grid img { height: 200px; }
  .hero-media { min-height: 480px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Green variant for the kid-safe yard guarantee */
.guarantee-green { background: var(--green); border-color: var(--green); }
.guarantee-green h3 { color: var(--cream); }
.guarantee-green p { color: var(--green-pale); }
.guarantee-green .work-icon { color: var(--green-soft); }

/* ============ Modernization pass ============ */

.hero-full { position: relative; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-full picture, .hero-full > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-full picture::before, .hero-full picture::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero-full picture::before { background: var(--green-mid); mix-blend-mode: soft-light; opacity: 0.55; }
.hero-full picture::after { background: var(--green); mix-blend-mode: color; opacity: 0.14; }
.hero-full img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 38%; }
.hero-full::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 66% 82% at 28% 60%, rgba(18,31,22,0.62) 0%, rgba(18,31,22,0.34) 52%, rgba(18,31,22,0) 78%), linear-gradient(100deg, rgba(18,31,22,0.72) 0%, rgba(18,31,22,0.38) 52%, rgba(18,31,22,0.04) 80%); }
.hero-full::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(18,31,22,0.82) 0%, rgba(18,31,22,0.36) 42%, rgba(18,31,22,0.04) 70%); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px 54px; }
.hero-tags { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 44px 22px 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
@media (min-width: 1300px) {
  .hero-mark { position: absolute; left: -110px; top: 30px; margin-right: 0; }
}
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-badge { background: var(--green); color: #FFFDF6; border: 2px solid var(--cream); font-size: 0.9rem; font-weight: 600; padding: 7px 16px; border-radius: 99px; }
.hero-badge .star { color: var(--gold); }
.hero-badge.featured { font-size: 1.05rem; font-weight: 700; padding: 9px 20px; }
.hero-full h1 { color: var(--cream); max-width: 14ch; margin-bottom: 14px; font-size: clamp(2.4rem, 4.8vw, 3.5rem); letter-spacing: -0.01em; }
.hero-full .hero-sub { color: #D8E2D8; font-size: 1.12rem; max-width: 46ch; margin-bottom: 24px; }
.hero-full .btn-cream { border-color: var(--cream); }
.hero-full .btn-ghost { border: 1.5px solid var(--cream); color: var(--cream); background: transparent; }
.hero-full .btn-ghost:hover { background: rgba(250,246,237,0.14); }
.hero-mark { width: 108px; height: 108px; opacity: 0.97; display: inline-block; margin-right: 8px; }
.hero-mark svg { width: 100%; height: 100%; display: block; }

.seal { display: inline-block; }
.seal circle { fill: none; stroke: currentColor; }
.seal text { fill: currentColor; font-family: var(--sans); font-weight: 700; letter-spacing: 0.12em; }

.stats-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 30px 0; }
.stat { text-align: center; flex: 1; }
.stat .num { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--green); line-height: 1.1; }
.stat .lbl { font-size: 0.86rem; color: var(--tan); margin-top: 2px; }
.stat-div { width: 1px; height: 44px; background: var(--line); flex: none; }

.section-rule { display: flex; align-items: center; gap: 14px; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; color: var(--tan-soft); }
.section-rule::before, .section-rule::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.section-rule span { font-size: 0.7rem; transform: rotate(45deg); }

.gallery-grid a, .gallery-page-grid figure { position: relative; }
.gallery-grid img, .gallery-page-grid img { transition: transform 0.5s ease; }
.gallery-grid a:hover img, .gallery-page-grid figure:hover img { transform: scale(1.045); }
.tile-cap { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(24,36,27,0.82); color: #E9EFE8; font-size: 0.85rem; padding: 8px 13px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-btn { background: var(--card); border: 1px solid var(--line); color: var(--ink-soft); font-family: var(--sans); font-size: 0.92rem; font-weight: 600; padding: 8px 16px; border-radius: 99px; cursor: pointer; }
.filter-btn[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--cream); }

.ba-slider { position: relative; border-radius: 12px; overflow: hidden; touch-action: none; user-select: none; }
.ba-slider img { width: 100%; height: 420px; object-fit: cover; display: block; }
.ba-after { position: absolute; inset: 0; overflow: hidden; }
.ba-handle { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--cream); cursor: ew-resize; }
.ba-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.ba-label { position: absolute; top: 14px; background: rgba(24,36,27,0.85); color: #E9EFE8; font-size: 0.82rem; font-weight: 600; padding: 5px 12px; border-radius: 99px; }
.ba-label.before { left: 14px; }
.ba-label.after { right: 14px; background: var(--green); color: var(--green-pale); }

.timeline { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 26px; }
.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-item::before { content: ""; position: absolute; left: -33px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 3px solid var(--cream); }
.timeline-item h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 600; }
.timeline-item .when { font-size: 0.85rem; color: var(--tan); font-weight: 600; }
.timeline-item p { font-size: 1rem; color: var(--ink-soft); }

.checklist { list-style: none; }
.checklist li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); font-size: 1.02rem; color: var(--ink-soft); }
.checklist li::before { content: "\2713"; position: absolute; left: 4px; color: var(--green); font-weight: 700; }

.compare-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.compare-table th, .compare-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table th { font-family: var(--sans); font-size: 0.86rem; font-weight: 700; color: var(--tan); }
.compare-table td:first-child { font-weight: 600; }
.table-scroll { overflow-x: auto; }

.page-hero.dark { background: var(--green); border-bottom: none; }
.page-hero.dark h1 { color: var(--cream); }
.page-hero.dark p { color: var(--green-pale); }
.page-hero.dark .tag { display: inline-flex; align-items: center; gap: 6px; background: var(--green-mid); color: var(--green-pale); font-size: 0.9rem; font-weight: 600; padding: 6px 13px; border-radius: 99px; margin-bottom: 14px; }

.dropcap::first-letter { font-family: var(--serif); font-size: 3.4em; float: left; line-height: 0.82; padding: 4px 10px 0 0; color: var(--green); }

.crew-bio { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.crew-bio p { font-size: 0.98rem; color: var(--ink-soft); }
.crew-bios { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.site-header { transition: box-shadow 0.25s ease, background 0.25s ease; }
.site-header.scrolled { box-shadow: 0 2px 14px rgba(34,48,31,0.09); }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .gallery-grid img, .gallery-page-grid img { transition: none; }
}

@media (max-width: 900px) {
  .crew-bios { grid-template-columns: 1fr; }
  .hero-full { min-height: 560px; }
  .hero-mark { width: 72px; height: 72px; }
  .ba-slider img { height: 300px; }
  .stats-strip { flex-wrap: wrap; gap: 18px; }
  .stat { flex: 1 1 38%; }
  .stat-div { display: none; }
}

/* ============ Mobile-first pass ============ */

/* Tablets & phones: split hero — photo banner + green panel (no text-over-photo) */
@media (max-width: 900px) {
  .hero-full { display: block; min-height: 0; }
  .hero-full::before, .hero-full::after { display: none; }
  .hero-full picture { position: relative; display: block; height: 34vh; min-height: 230px; max-height: 340px; }
  .hero-full img { position: absolute; inset: 0; object-position: 50% 55%; }
  .hero-full picture::before, .hero-full picture::after { display: none; }
  .hero-inner { background: var(--green); padding: 24px 22px 28px; }
  .hero-tags { padding: 16px 22px; gap: 10px; background: var(--green); align-items: center; }
  .hero-mark { order: 1; }
  .hero-badge { order: 2; }
  .hero-badge.featured { order: 3; font-size: 1.02rem; font-weight: 700; padding: 9px 18px; }
  .hero-badge { background: var(--green); color: #FFFDF6; border: 2px solid var(--cream); font-size: 1.02rem; font-weight: 700; padding: 9px 18px; }
  .hero-full h1 { max-width: none; }
  .hero-full .hero-sub { color: var(--green-pale); }
}

@media (max-width: 640px) {
  .section { padding: 30px 0; }
  .section-head { margin-bottom: 16px; }

  /* Hero panel typography & actions */
  .hero-full h1 { font-size: 2.05rem; margin-bottom: 10px; }
  h2 { font-size: 1.5rem; }
  .reviews-head { margin-bottom: 12px; }
  .reviews-cta .btn { width: 100%; }
  .hero-full .hero-sub { font-size: 1.02rem; margin-bottom: 20px; }
  .hero-badges { gap: 8px; margin-bottom: 14px; }
  .hero-badge { font-size: 1.02rem; font-weight: 700; padding: 9px 18px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-mark { width: 64px; height: 64px; }

  /* Stats: clean 2x2 */
  .stats-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; padding: 18px 0 14px; }
  .stat { flex: none; }
  .stat-div { display: none; }

  /* Service areas: one swipeable row */
  .areas .wrap { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
  .areas .wrap::-webkit-scrollbar { display: none; }
  .areas-label, .chip { flex: 0 0 auto; }

  /* Crew: compact 2x2 */
  .crew-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .crew-card { padding: 16px 10px; }
  .crew-avatar { width: 44px; height: 44px; font-size: 0.9rem; margin-bottom: 8px; }
  .crew-card h3 { font-size: 1.05rem; }
  .crew-card p { font-size: 0.85rem; }

  /* Homepage gallery: swipeable snap carousel, single row */
  .gallery-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-grid a { flex: 0 0 82%; scroll-snap-align: start; }
  .gallery-grid img { height: 235px; }
  .gallery-grid.alt { display: none; }

  /* Density & touch targets */
  .work-card { padding: 16px; }
  .guarantee { padding: 18px 16px; gap: 14px; }
  .cta-band { padding: 28px 20px; }
  .review-featured { padding: 20px 18px; }
  .steps { gap: 10px; }
  .step { padding: 13px 15px; }
  .nav a { padding: 12px 4px; }
  .faq summary { padding: 15px 16px; font-size: 1.02rem; }
  .compare-table th, .compare-table td { padding: 10px 10px; font-size: 0.9rem; }
  .timeline { padding-left: 22px; }
  .page-hero { padding: 34px 0; }
  .ba-slider img { height: 260px; }
}

/* Gallery carousel polish + denser mobile gallery page */
@media (max-width: 640px) {
  .gallery-grid { gap: 10px; scroll-padding-left: 22px; padding-bottom: 4px; }
  .gallery-grid a { flex: 0 0 84%; border-radius: 12px; }
  .gallery-grid a:last-child { margin-right: 10px; }
  .gallery-grid img { height: 250px; }
  .gallery-page-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-page-grid img { height: 150px; }
  .gallery-page-grid figcaption { padding: 7px 10px; font-size: 0.8rem; }
  .review-grid { gap: 10px; }
}
.review-grid { align-items: start; }

/* Mobile density: footer two-up, tighter lists */
@media (max-width: 640px) {
  .site-footer { padding: 26px 0 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px 14px; margin-bottom: 16px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .site-footer li { margin-bottom: 4px; }
  .footer-about { max-width: none; }
  .footer-bottom { gap: 8px; padding-top: 12px; }
  .areas { padding: 10px 0 4px; }
  .section-rule { padding: 0 22px; }
}

/* Service-area map (Leaflet) */
.svc-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: center; }
#service-map { height: 480px; border-radius: 10px; overflow: hidden; background: var(--cream-deep); border: 1px solid var(--line); }
.leaflet-container { font-family: var(--sans); }
.svc-tip { background: var(--cream); border: 1px solid var(--line); color: var(--ink); font-family: var(--sans); font-size: 12px; font-weight: 600; border-radius: 6px; padding: 3px 8px; box-shadow: 0 1px 4px rgba(34,48,31,0.12); }
.svc-tip.hq { background: var(--green); color: var(--cream); border-color: var(--green); }
.svc-tip::before { display: none; }
@media (max-width: 900px) {
  .svc-card { grid-template-columns: 1fr; gap: 16px; }
  #service-map { height: 360px; }
}
