:root {
  --bg:          #faf5ec;
  --bg-warm:     #f4ebdc;
  --surface:     #ffffff;
  --primary:     #c0562e;
  --primary-700: #a8481f;
  --ink:         #3a1d10;
  --ink-2:       #5f4a3c;
  --muted:       #8a7563;
  --green:       #4c7a38;
  --ph:          #e5d8c7;
  --ph-2:        #d9cab7;
  --ph-3:        #cfbda6;
  --border:      #ece1d2;
  --border-2:    #e2d4c1;
  --badge:       #f4e5d8;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius:   16px;
  --radius-sm:12px;
  --shadow:   0 1px 2px rgba(58,29,16,.05), 0 8px 24px rgba(58,29,16,.05);
  --maxw:     1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, .logo, .section-head h2 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h3 { font-family: var(--font-sans); color: var(--ink); }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600;
  padding: 15px 26px; border-radius: var(--radius-sm);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-700); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f3ece1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; }
.brand { text-decoration: none; line-height: 1.1; }
.logo { display: block; font-size: 1.9rem; color: var(--primary); }
.brand small {
  display: block; font-family: var(--font-sans); color: var(--muted);
  font-size: .68rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; margin-top: 3px;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a.navlink { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 1rem; }
.nav a.navlink:hover { color: var(--primary); }
.nav .btn { padding: 12px 22px; }

.nav-toggle {
  display: none; background: transparent; border: 1.5px solid var(--border-2);
  border-radius: 10px; padding: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; display: block; }

#mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr; gap: 40px; padding-block: 56px 40px; align-items: start; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--badge); color: var(--ink); font-weight: 600; font-size: .92rem;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}
.badge .star { color: var(--primary); }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.55rem); line-height: 1.06; margin: 0 0 20px; }
.lede { font-size: 1.18rem; color: var(--ink-2); max-width: 42ch; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Single hero photo */
.hero-media { display: block; }
.hero-photo {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--ph); box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem;
  padding: 9px 14px; border-radius: 12px; border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(58, 29, 16, .12);
}
.hero-badge .star { color: var(--primary); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-block: 20px 10px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow);
}
.card-icon { display: inline-flex; color: var(--primary); margin-bottom: 18px; }
.card-icon svg { width: 30px; height: 30px; }
.card h3 { margin: 0 0 8px; font-size: 1.16rem; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Trust bar ---------- */
.trust { padding-block: 26px 20px; }
.trust-inner {
  background: var(--bg-warm); border-radius: var(--radius);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px;
  padding: 24px 28px;
}
.trust-item { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); font-size: 1rem; }
.trust-item svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
.trust-item.is-green { color: var(--green); }
.trust-item.is-green svg { color: var(--green); }

/* ---------- Section head ---------- */
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); margin: 0 0 8px; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }

/* ---------- Gallery (before/after comparison slider) ---------- */
.gallery { padding-block: 44px 34px; }
.gallery-hint {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: -14px 0 26px; color: var(--muted); font-size: .95rem; font-weight: 500;
}
.gallery-hint svg { width: 20px; height: 20px; color: var(--primary); }

.ba-group { margin-bottom: 30px; }
.ba-group:last-child { margin-bottom: 0; }
.ba-group-title {
  font-family: var(--font-serif); color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 1.6rem); font-weight: 600; margin: 0 0 14px;
}

.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }

.ba {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--ph);
  --pos: 55%; touch-action: pan-y; isolation: isolate; user-select: none; cursor: ew-resize;
}
.ba-pane { position: absolute; inset: 0; }
.ba-pane picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ba-pane img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.ba-after  { z-index: 1; }
.ba-before { z-index: 2; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.ba-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; margin-left: -1.5px; background: #fff;
  box-shadow: 0 0 0 1px rgba(58, 29, 16, .16); z-index: 3; pointer-events: none;
}
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(58, 29, 16, .38);
}
.ba-handle svg { width: 22px; height: 22px; }
.ba:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.ba:focus-visible .ba-handle { box-shadow: 0 0 0 3px var(--primary), 0 2px 10px rgba(58, 29, 16, .38); }

/* minimal corner tags */
.ba-tag {
  position: absolute; top: 10px; z-index: 2;
  font-family: var(--font-sans); font-weight: 700; font-size: 11px;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  padding: 4px 9px; border-radius: 999px; color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22); pointer-events: none;
}
.ba-tag--before { left: 10px; background: rgba(58, 29, 16, .78); }
.ba-tag--after  { right: 10px; background: rgba(168, 72, 31, .92); }

/* ---------- Bottom CTA ---------- */
.cta { padding-block: 30px 60px; }
.cta-inner {
  background: var(--ink); color: #fff; border-radius: 22px;
  text-align: center; padding: 60px 24px;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 12px; }
.cta-inner p { margin: 0 0 30px; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-block: 40px 48px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer .logo { font-size: 1.5rem; }
.footer p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.footer nav a:hover { color: var(--primary); }
.footer .copyright { flex-basis: 100%; color: var(--muted); font-size: .86rem; margin-top: 8px; }

/* ---------- Focus + motion ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Desktop layout ---------- */
@media (min-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .services { grid-template-columns: repeat(4, 1fr); }
  .trust-inner { grid-template-columns: repeat(4, 1fr); text-align: center; }
  .trust-item { justify-content: center; }
}
@media (min-width: 940px) {
  body { font-size: 18px; }
  .hero { grid-template-columns: 1.02fr 0.98fr; gap: 56px; padding-block: 72px 48px; align-items: center; }
  .hero-photo { aspect-ratio: 4 / 5; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .cta-inner { padding: 72px 24px; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  #mobile-menu[data-open="true"] { display: block; }
  #mobile-menu {
    border-top: 1px solid var(--border);
    background: var(--bg);
  }
  .mobile-inner { display: flex; flex-direction: column; gap: 4px; padding-block: 14px 20px; }
  .mobile-inner a.navlink {
    text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.05rem;
    padding: 12px 4px; border-bottom: 1px solid var(--border);
  }
  .mobile-inner .btn { margin-top: 12px; }
}

/* ===================================================================
   Service area — Google-Maps-style illustration (SVG land + HTML pins)
   =================================================================== */
.areas { padding-block: 20px 34px; }
.areas-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.areas-map {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  background: #d9edf8; overflow: hidden;
}
.areas-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-markers { position: absolute; inset: 0; pointer-events: none; }

.map-label-water {
  position: absolute; transform: translateY(-50%);
  font-size: 12px; font-weight: 500; color: #7ba6c9; letter-spacing: .02em;
  white-space: nowrap;
}

/* A pin = round dot + white ring, with a readable label chip beside it */
.map-marker { position: absolute; z-index: 2; }
.map-marker .pin {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--primary); border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(58, 29, 16, .4);
}
.map-marker .lbl {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px;
  box-shadow: 0 1px 3px rgba(58, 29, 16, .16);
}
.map-marker--left .lbl { left: auto; right: 12px; }
.map-marker--up   .lbl { left: 50%; top: auto; bottom: 14px; transform: translateX(-50%); }

/* Base (Clearwater) — bigger pin, pulse, label pill above so nothing overlaps */
.map-marker--base { z-index: 4; }
.map-marker--base .pin {
  width: 20px; height: 20px; background: var(--primary-700);
  box-shadow: 0 2px 8px rgba(58, 29, 16, .5);
}
.map-marker--base .base-lbl {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  white-space: nowrap; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}
.map-pulse {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(192, 86, 46, .45); pointer-events: none;
}

/* Contacts + one-line summary under the map */
.areas-list { padding: 22px 24px 24px; }
.areas-contacts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 14px; }
.area-line {
  display: inline-flex; align-items: center; gap: 11px; min-height: 44px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.02rem;
}
.area-line svg { width: 19px; height: 19px; color: var(--primary); flex: none; }
.area-line:hover { color: var(--primary); }
.areas-summary { margin: 0; color: var(--ink-2); font-size: 1rem; }
.areas-summary a { color: var(--primary); font-weight: 600; text-decoration: none; }
.areas-summary a:hover { text-decoration: underline; }

/* ---- Map animation: pins drop in when the section scrolls into view ---- */
.js .map-marker { opacity: 0; transform: translateY(-8px); }
.js .areas.in-view .map-marker {
  animation: markerIn .4s cubic-bezier(.2, .8, .3, 1) forwards;
}
@keyframes markerIn { to { opacity: 1; transform: translateY(0); } }
.areas.in-view .map-pulse { animation: mapPulse 2.2s ease-out infinite; }
@keyframes mapPulse {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: .55; }
  100% { transform: translate(-50%, -50%) scale(4);   opacity: 0; }
}

@media (min-width: 720px) {
  .areas-map { aspect-ratio: 16 / 9; }
}
@media (max-width: 700px) {
  .areas-map { aspect-ratio: 1 / 1; }
  .map-marker .lbl, .map-marker--base .base-lbl { font-size: 11px; }
}

/* ===================================================================
   Mobile / all-device hardening (iOS + Android, all screen sizes)
   =================================================================== */
html, body { overflow-x: hidden; }
body { -webkit-tap-highlight-color: rgba(192, 86, 46, .18); }

@supports (padding: max(0px)) {
  .container {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
}

/* Fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
  .hero-photo { display: block; }
  .hero-photo::before { content: ""; display: block; padding-top: 75%; }
  .ba::before { content: ""; display: block; padding-top: 75%; }
  .areas-map::before { content: ""; display: block; padding-top: 62.5%; }
}

@media (hover: none) and (pointer: coarse) {
  .area-line { min-height: 46px; }
  .footer nav a, .nav a.navlink { padding-block: 6px; }
}

/* Respect reduced-motion: show pins statically, no pulse */
@media (prefers-reduced-motion: reduce) {
  .js .map-marker { opacity: 1; transform: none; animation: none; }
  .map-pulse { animation: none; opacity: 0; }
}

/* Very small phones (~320px) */
@media (max-width: 360px) {
  .container { padding-inline: 18px; }
  .gallery-grid { gap: 14px; }
  .cta-inner { padding: 48px 20px; }
  .areas-list { padding: 20px 18px 22px; }
}
