/* ============================================================
   PestShield — shared stylesheet
   Mobile-first · no external fonts/libs · CSS-only effects

   THEME COLOURS: the four base colours below are overridden at
   runtime from js/config.js (colorTheme). Every other tint is
   derived automatically with color-mix(), so changing the theme
   in config.js recolours the entire site.
   ============================================================ */

/* ---------- Self-hosted fonts (fonts/ folder, ~72 KB total) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-var.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/poppins-800.woff2") format("woff2");
}

:root {
  /* base theme colours — overridden from config.js */
  --brand: #0e9f6e;
  --brand-dark: #057a55;
  --brand-deep: #03543f;
  --accent: #14b8a6;

  /* derived tints (automatic for any theme) */
  --surface: color-mix(in srgb, var(--brand) 5%, #ffffff);
  --surface-2: color-mix(in srgb, var(--brand) 11%, #ffffff);
  --line: color-mix(in srgb, var(--brand) 14%, #ffffff);
  --footer-1: color-mix(in srgb, var(--brand-deep) 45%, #030a06);
  --footer-2: color-mix(in srgb, var(--brand-deep) 80%, #071009);

  /* per-service accent (overridden by JS from config; falls back to brand) */
  --svc: var(--brand);

  --wa: #25d366;
  --wa-dark: #1eb857;
  --ink: #0f172a;
  --muted: #5b6b7b;
  --radius: 16px;
  --shadow: 0 4px 24px color-mix(in srgb, var(--brand-deep) 10%, transparent);
  --shadow-lg: 0 12px 40px color-mix(in srgb, var(--brand-deep) 16%, transparent);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }

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

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

section { padding: clamp(3rem, 7vw, 5rem) 0; }

.section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--surface-2);
  border-radius: 999px;
  padding: .3rem .85rem;
  margin-bottom: .9rem;
}

.alt-bg {
  background:
    radial-gradient(700px 340px at 88% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    radial-gradient(600px 320px at 4% 100%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 60%),
    linear-gradient(165deg, var(--surface) 0%, color-mix(in srgb, var(--brand) 9%, #ffffff) 50%, var(--surface) 100%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }

.btn-outline { border-color: var(--brand); color: var(--brand-dark); background: transparent; }
.btn-outline:hover { background: var(--surface-2); color: var(--brand-deep); }

.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.08); }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; color: var(--brand); }
.brand svg path:first-child { fill: color-mix(in srgb, currentColor 14%, transparent); }
.brand-logo { height: 56px; width: auto; display: block; flex: none; }
@media (max-width: 560px) { .brand-logo { height: 46px; } }

.main-nav { display: flex; align-items: center; gap: 1.05rem; }
.main-nav a {
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--brand-dark);
  border-bottom-color: var(--brand);
}

.header-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .4rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 480px at 85% -10%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, color-mix(in srgb, var(--brand) 50%, transparent), transparent 60%),
    linear-gradient(140deg, var(--brand-deep) 0%, var(--brand-dark) 55%, var(--brand) 100%);
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}
.hero .eyebrow { background: rgba(255,255,255,.14); color: #fff; }
.hero h1 { color: #fff; max-width: 17em; }
.hero .lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 38em;
  margin-bottom: 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.4rem; }

/* quick service buttons in the hero */
.hero-quick { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.hero-quick a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.10);
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  transition: background .15s ease, transform .15s ease;
}
.hero-quick a:hover { background: rgba(255,255,255,.22); color: #fff; transform: translateY(-2px); }
.hero-quick a svg { width: 15px; height: 15px; flex: none; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-stats .stat b { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.hero-stats .stat span { font-size: .85rem; color: rgba(255,255,255,.7); }

/* optional hero photo (set in config.js → images) */
.hero-media, .page-hero-media { display: none; }
.hero-media img, .page-hero-media img {
  width: 100%;
  border-radius: 20px;
  border: 4px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  object-fit: cover;
}
.has-media .hero-media, .has-media .page-hero-media {
  display: block;
  margin-top: 2rem;
}
.has-media .hero-media img { max-height: 340px; }
.has-media .page-hero-media img { max-height: 260px; }
/* About page: show the whole (square) photo — no crop, centred with side padding */
.has-media .page-hero-media[data-image="about"] img {
  width: auto;
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  display: block;
  margin-inline: auto;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--brand-deep) 5%, transparent);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.card .card-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; margin-top: 1rem; }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--brand-dark);
  margin-bottom: 1rem;
}
.icon-badge svg { width: 26px; height: 26px; }

.price-tag {
  display: inline-block;
  margin-top: .9rem;
  font-weight: 800;
  color: var(--brand-deep);
  background: var(--surface-2);
  border-radius: 999px;
  padding: .3rem .9rem;
  font-size: .9rem;
}

.badge-warranty {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .25rem .75rem;
}
.badge-warranty svg { width: 14px; height: 14px; }
.page-hero .badge-warranty { background: rgba(255,255,255,.92); border-color: transparent; }

/* Hero badges/USP row (price promo + 24×7 + warranty) */
.hero-badges, .hero-usps { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin: 1.3rem 0 0; }

/* "Open 24×7" USP pill with a live pulsing dot */
.usp-247 {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 800; font-size: .9rem;
  letter-spacing: .02em; text-transform: uppercase;
  color: var(--brand-deep); background: #fff;
  border-radius: 999px; padding: .5rem .95rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
}
.usp-247::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.7);
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.7); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Promotional price badge */
.price-promo {
  display: inline-flex; align-items: stretch;
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.promo-flag {
  display: flex; align-items: center; text-align: center;
  padding: .5rem .75rem; max-width: 74px; line-height: 1.05;
  font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);   /* trust/star = amber */
}
.price-promo.has-off .promo-flag {
  background: linear-gradient(135deg, #fb7185, #e11d48);    /* discount = rose */
  animation: promoPulse 1.8s ease-in-out infinite;
}
@keyframes promoPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.promo-main { display: flex; flex-direction: column; justify-content: center; padding: .4rem 1rem; }
.promo-label { font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.promo-amount { display: flex; align-items: baseline; gap: .45rem; }
.promo-amount s { color: #9aa4a0; font-size: .95rem; font-weight: 600; }
.promo-amount b { font-family: var(--font-head); color: var(--brand-deep); font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.promo-note { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #e11d48; margin-top: .12rem; }
.price-promo:not(.has-off) .promo-note { color: var(--brand-dark); }

/* Home hero deal area */
.hero-pricing { display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; margin: 1.3rem 0 0; }
.hero-pricing-cap { font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.88); }
.hero-pricing-cap b { color: #fff; font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .usp-247::before, .price-promo.has-off .promo-flag { animation: none; }
}

/* ---------- Service accent styling ----------
   A short colour strip under titles + tinted icon/pricing identify
   each service line; interactive chrome stays on the brand colour. */
.title-strip {
  display: block;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  margin: .2rem 0 1.1rem;
  background: linear-gradient(90deg, var(--svc), color-mix(in srgb, var(--svc) 40%, #fff));
}
.card .title-strip { width: 44px; height: 5px; margin: -.2rem 0 .8rem; }

.card[data-service] .icon-badge {
  background: color-mix(in srgb, var(--svc) 12%, #fff);
  color: var(--svc);
}
.card[data-service] .price-tag {
  background: color-mix(in srgb, var(--svc) 12%, #fff);
  color: color-mix(in srgb, var(--svc) 75%, #000);
}
.card[data-service] .card-link { color: color-mix(in srgb, var(--svc) 80%, #000); }
.pest-chip[data-service] .icon-badge {
  background: color-mix(in srgb, var(--svc) 12%, #fff);
  color: var(--svc);
}
.pest-chip[data-service]:hover { border-color: color-mix(in srgb, var(--svc) 40%, #fff); }

/* ---------- Pest identifier grid ---------- */
.pest-grid { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
.pest-chip {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .85rem 1rem;
  font-weight: 700;
  color: var(--ink);
  font-size: .93rem;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.pest-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--brand) 35%, #fff);
  color: var(--brand-deep);
}
.pest-chip .icon-badge { width: 40px; height: 40px; border-radius: 11px; margin: 0; flex: none; }
.pest-chip .icon-badge svg { width: 22px; height: 22px; }
@media (min-width: 720px) { .pest-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Wave section divider ---------- */
.hero, .page-hero { position: relative; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; pointer-events: none; }
.wave svg { width: 100%; height: 42px; display: block; }
.hero { padding-bottom: calc(clamp(3.5rem, 9vw, 6.5rem) + 34px); }
.page-hero { padding-bottom: calc(clamp(2.8rem, 7vw, 4.5rem) + 34px); }

/* ---------- Steps ---------- */
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  margin-bottom: .9rem;
}

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; color: var(--ink); }
.checklist li svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: .15rem; }

/* ---------- Pricing tiles ---------- */
.price-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.price-tile {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: .4rem;
  text-align: center;
  padding: 1.9rem 1.4rem 1.6rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--brand-deep) 5%, transparent);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.price-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--svc), color-mix(in srgb, var(--svc) 45%, #fff));
}
.price-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 30%, #fff); }
.price-tile-label {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-tile-amount {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(120deg, color-mix(in srgb, var(--svc) 65%, #000), var(--svc));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-tile-meta { font-size: .8rem; color: var(--muted); }
.price-tile-old {
  font-size: 1.35rem;
  font-weight: 700;
  color: #64748b;
  text-decoration: line-through;
  text-decoration-color: #e11d48;
  text-decoration-thickness: 2.5px;
  margin-bottom: -.45rem;
}
.price-tile-off {
  position: absolute;
  top: 16px;
  right: -34px;
  rotate: 45deg;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: .3rem 2.6rem;
  box-shadow: 0 2px 8px rgba(190, 18, 60, .35);
}
.price-tile-btn { margin-top: .7rem; padding: .55rem 1.4rem; font-size: .85rem; }
.pricing-note { font-size: .85rem; color: var(--muted); margin-top: 1.1rem; text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: .8rem; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 1.05rem 3rem 1.05rem 1.25rem;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand);
  transition: rotate .2s ease;
}
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list details p { padding: 0 1.25rem 1.1rem; color: var(--muted); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial { display: flex; flex-direction: column; }
.stars { color: #f59e0b; letter-spacing: 2px; font-size: .95rem; margin-bottom: .6rem; }
.testimonial blockquote { margin: 0 0 1rem; color: var(--ink); font-size: .95rem; flex: 1; }
.testimonial .who { font-weight: 700; font-size: .9rem; }
.testimonial .who span { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }

/* ---------- Areas ---------- */
.area-chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.area-chips span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 90% 0%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 60%),
    linear-gradient(135deg, var(--brand-deep), var(--brand-dark));
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 34em; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 380px at 90% -20%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 60%),
    linear-gradient(140deg, var(--brand-deep), var(--brand-dark) 70%, var(--brand));
  color: #fff;
  padding: clamp(2.8rem, 7vw, 4.5rem) 0;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.85); max-width: 42em; margin-bottom: 1.5rem; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Contact page ---------- */
.contact-card { display: flex; gap: 1rem; align-items: flex-start; }
.contact-card .icon-badge { margin-bottom: 0; flex: none; }
.contact-card h3 { margin-bottom: .2rem; }
.contact-card p { margin: 0; }

.contact-form { display: grid; gap: 1rem; }
.contact-form label { font-weight: 600; font-size: .9rem; display: grid; gap: .35rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit;
  padding: .75rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}

/* ---------- Legal pages ---------- */
.legal-content { max-width: 780px; margin-inline: auto; }
.legal-content h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal-content p, .legal-content li { color: var(--muted); }

/* ---------- Map embed ---------- */
.map-embed {
  width: 100%;
  height: clamp(300px, 42vw, 460px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 44px rgba(3, 32, 24, .14);
  background: var(--surface-2);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Coverage map (Leaflet) ---------- */
.coverage-map {
  position: relative;
  isolation: isolate;            /* contain Leaflet's z-index below sticky header */
  z-index: 0;
  width: 100%;
  height: clamp(340px, 46vw, 480px);
  margin-top: 1.6rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 44px rgba(3, 32, 24, .14);
  background: var(--surface-2);
}
.coverage-map .leaflet-tooltip.coverage-label {
  background: var(--brand-deep);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 3px 9px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .74rem;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}
.coverage-map .leaflet-tooltip.coverage-label::before { display: none; }  /* no arrow */

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(700px 340px at 92% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(500px 280px at 0% 100%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 60%),
    linear-gradient(160deg, var(--footer-1) 0%, var(--footer-2) 100%);
  color: rgba(255,255,255,.72);
  padding: 3.5rem 0 0;
  font-size: .93rem;
}
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; padding-bottom: 2.5rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: .8rem; }
.footer-brand .brand svg { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.55); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Mobile bottom navigation (app-style, phones only) ---------- */
.bottom-nav { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px color-mix(in srgb, var(--brand-deep) 8%, transparent);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav a {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: .55rem 0 .5rem;
    font-size: .62rem;
    font-weight: 600;
    color: var(--muted);
  }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a[aria-current="page"] { color: var(--brand-dark); }
  .bottom-nav .bn-call { color: var(--brand); }
  .bottom-nav .bn-wa { color: var(--wa-dark); }
  .wa-float { display: none; }  /* WhatsApp lives in the bottom bar on phones */
  .main-nav { z-index: 65; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; translate: 0 22px; transition: opacity .55s ease, translate .55s ease; }
.reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Tablet ≥ 720px
   ============================================================ */
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; }
}
.footer-credit a { color: rgba(255,255,255,.72); font-weight: 600; }
.footer-credit a:hover { color: #fff; }

/* ---------- Cookie / data-use consent ---------- */
.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  max-width: 720px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(3, 32, 24, .22);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent p { margin: 0; flex: 1 1 320px; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.cookie-consent-actions { display: flex; gap: .6rem; flex: 0 0 auto; margin-left: auto; }
.cookie-consent-actions .btn { padding: .5rem 1.1rem; font-size: .85rem; }
@media (max-width: 560px) {
  .cookie-consent { left: .6rem; right: .6rem; bottom: .6rem; padding: 1rem; }
  .cookie-consent-actions { width: 100%; }
  .cookie-consent-actions .btn { flex: 1; }
}

/* ---------- PWA install prompt ---------- */
.install-prompt {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 121;
  max-width: 460px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(3, 32, 24, .22);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .9rem;
}
.install-prompt[hidden] { display: none; }
.install-icon { width: 48px; height: 48px; border-radius: 12px; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.install-text { flex: 1 1 200px; min-width: 0; }
.install-text strong { display: block; font-family: var(--font-head); font-size: .98rem; color: var(--ink); }
.install-text span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.install-actions { display: flex; gap: .5rem; margin-left: auto; }
.install-actions .btn { padding: .5rem 1rem; font-size: .85rem; }
@media (max-width: 560px) {
  .install-prompt { left: .6rem; right: .6rem; bottom: .6rem; }
  .install-actions { width: 100%; }
  .install-actions .btn { flex: 1; }
}

/* ============================================================
   Desktop ≥ 1024px
   ============================================================ */
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }

  /* hero/page-hero become two columns when a photo is configured */
  .has-media { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
  .has-media .hero-media, .has-media .page-hero-media { margin-top: 0; }
  .has-media .hero-media img { max-height: 440px; }
  .has-media .page-hero-media img { max-height: 320px; }
}

/* ============================================================
   Mobile nav ≤ 1023px (nav has many direct links, so the
   hamburger kicks in below full desktop width)
   ============================================================ */
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .header-cta span { display: none; }               /* icon-only call button */
  .header-cta { padding: .7rem; border-radius: 50%; }

  .main-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: .6rem 1.25rem 1.2rem;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); width: 100%; white-space: normal; }
}
