/* ==========================================================================
   AllClean — South Florida Window Cleaning
   Editorial serif + clean sans. Tokens → base → layout → components → pages
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand */
  --blue-900: #0b2440;
  --blue-800: #0f3157;
  --blue-700: #084b86;
  --blue-600: #0b5fa8;
  --blue-500: #2a7cc4;
  --blue-300: #9fcdf2;
  --blue-100: #e7f0f8;
  --blue-50: #f3f7fb;

  /* Neutrals */
  --ink: #0d1620;
  --text: #24303c;
  --muted: #36414d;
  --line: #e2e8ee;
  --line-strong: #c9d4de;
  --white: #ffffff;

  /* Semantic */
  --primary: var(--blue-600);
  --primary-hover: var(--blue-700);
  --surface-soft: var(--blue-50);
  --error: #c62828;
  --success: #17794a;
  --ring: 0 0 0 2px var(--white), 0 0 0 4px var(--blue-500);

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-h3: clamp(1.5rem, 1.3rem + 0.6vw, 1.85rem);
  --fs-h2: clamp(2.1rem, 1.6rem + 2vw, 3.2rem);
  --fs-h1: clamp(2.6rem, 1.8rem + 3.2vw, 4.4rem);

  /* Space */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;

  /* Shape */
  --r: 3px;
  --r-md: 4px;
  --shadow: 0 18px 40px -22px rgba(11, 36, 64, 0.35);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 180ms;

  /* Layout */
  --container: 1180px;
  --gutter: 20px;
  --header-h: 116px;
  --bar-h: 72px;

  --z-header: 40; --z-bar: 50; --z-menu: 60;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--sans); font-size: var(--fs-base); font-weight: 500; line-height: 1.7;
  color: var(--text); background: var(--white); text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 var(--s-4); text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--primary); font-weight: 600; }
p { margin: 0 0 var(--s-4); }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 2px; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 3rem + 5vw, 8rem); }
.section--soft { background: var(--surface-soft); }
.section--line { border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: var(--s-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-lg); }
.eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 var(--s-4);
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary);
}
.eyebrow::after { content: ""; width: 56px; height: 1px; background: var(--line-strong); }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after { display: none; }
.lead { font-size: var(--fs-lg); color: var(--muted); }
.split { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-9); } .split--reverse > :first-child { order: 2; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 1.5rem; border-radius: var(--r); border: 1px solid transparent;
  font-size: var(--fs-sm); font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; touch-action: manipulation;
  transition: background-color var(--t), color var(--t), border-color var(--t);
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }
.btn--ghost { background: #fff; color: var(--primary); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-hover); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--blue-100); color: var(--ink); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.55); background: transparent; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; padding: 0 1.8rem; font-size: 0.9375rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: var(--header-h); }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo-img { display: block; height: 99px; width: auto; }
.site-footer .logo-img { height: 135px; }
@media (max-width: 480px) {
  :root { --header-h: 98px; }
  .logo-img { height: 81px; }
  .eyebrow::after { display: none; }
}

.main-nav { display: none; }
.main-nav ul { display: flex; gap: var(--s-6); list-style: none; margin: 0; padding: 0; }
.main-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: #000; text-decoration: none;
}
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: var(--s-3); }
.header-cta { display: none; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-menu); background: #fff;
  padding: var(--s-5) var(--gutter) calc(var(--s-8) + var(--bar-h)); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility 0s linear var(--t);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-menu ul { list-style: none; margin: 0 0 var(--s-6); padding: 0; }
.mobile-menu li + li { border-top: 1px solid var(--line); }
.mobile-link { display: flex; align-items: center; justify-content: space-between; min-height: 60px; font-family: var(--serif); font-size: 1.6rem; color: var(--ink); text-decoration: none; }
.mobile-link[aria-current="page"] { color: var(--primary); font-style: italic; }
.mobile-menu .btn { width: 100%; margin-bottom: var(--s-3); }
body.menu-open { overflow: hidden; }
@media (min-width: 1024px) {
  .main-nav { display: block; }
  .menu-toggle, .mobile-menu { display: none; }
  .header-cta { display: inline-flex; }
}

/* ---------- Home hero (full-bleed photo + form) ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
/* On computers the photo grows with the screen: 46% of screen height + 230px
   (8% shorter than the earlier 50% + 250px). */
@media (min-width: 1000px) {
  .hero { display: flex; align-items: center; min-height: calc(46svh + 230px); }
  .hero > .container { width: 100%; }
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8, 26, 48, 0.88) 0%, rgba(8, 26, 48, 0.7) 45%, rgba(8, 26, 48, 0.35) 100%); }
.hero-inner { display: grid; gap: var(--s-7); align-items: center; padding-block: clamp(2.25rem, 0.1rem + 5vw, 5.75rem); }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: var(--s-8); } }
.hero .eyebrow { color: var(--blue-300); }
.hero .eyebrow::after { background: rgba(255, 255, 255, 0.35); }
.hero h1 { color: #fff; font-weight: 500; margin-bottom: var(--s-5); }
.hero h1 em { color: var(--blue-300); }
.hero-sub { font-size: var(--fs-lg); color: rgba(255, 255, 255, 0.85); max-width: 34rem; margin-bottom: var(--s-6); }
.hero .btn-row { margin-bottom: var(--s-6); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); list-style: none; margin: 0; padding: 0; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--blue-300); }

.hero-form { background: #fff; color: var(--text); border-radius: var(--r-md); padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.5); }
.hero-form h2 { font-size: 2rem; margin-bottom: 4px; }
.hero-form .form-intro { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--s-5); }
.hero-form .form-grid { gap: var(--s-4); }
.hero-form .input, .hero-form .select { min-height: 48px; }

/* ---------- Inner page hero (split with framed photo) ---------- */
.page-hero { padding-block: clamp(3rem, 2rem + 3vw, 5.5rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-weight: 500; }
.page-hero .lead { max-width: 36rem; }
.page-hero .btn-row { margin-top: var(--s-5); }
.page-hero--plain { text-align: center; }
.page-hero--plain h1, .page-hero--plain .lead { margin-inline: auto; max-width: 44rem; }
.page-hero--plain .eyebrow, .page-hero--plain .breadcrumb { justify-content: center; }
.page-hero--plain .eyebrow::after { display: none; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 var(--s-5); font-size: var(--fs-xs); letter-spacing: 0.08em; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* Framed photo (offset outline, like a picture mat) */
/* The offset "mat" is drawn with box-shadows so the figure can clip its zooming photo */
.framed {
  position: relative; margin: 0 16px 16px 0; overflow: hidden; border-radius: 2px; background: var(--blue-100);
  box-shadow: 16px 16px 0 -1px var(--blue-50), 16px 16px 0 0 var(--line-strong), var(--shadow);
}
.framed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.framed--tall img { aspect-ratio: 4 / 5; }
.framed figcaption { position: absolute; z-index: 1; left: 0; bottom: 0; background: #fff; padding: 10px 16px; font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--primary); font-weight: 600; }

/* ---------- Photo zoom: slow "breathing" in and out, a bit more on hover ---------- */
@keyframes photo-breathe { from { scale: 1; } to { scale: 1.09; } }
@keyframes photo-kenburns { from { scale: 1; translate: 0 0; } to { scale: 1.14; translate: -1.5% -1% ; } }
.hero-bg img { animation: photo-kenburns 15s ease-in-out infinite alternate; will-change: scale, translate; }
.framed img, .gallery img, .county-card img {
  animation: photo-breathe 7s ease-in-out infinite alternate;
  transition: transform 600ms var(--ease);
  will-change: scale;
}
/* Stagger so neighbouring photos move out of step */
.gallery figure:nth-child(2n) img, .county-card:nth-child(2) img { animation-delay: -2.4s; }
.gallery figure:nth-child(3n) img, .county-card:nth-child(3) img { animation-delay: -4.8s; }
.split--reverse .framed img { animation-delay: -3.5s; }
.framed:hover img, .gallery figure:hover img, .county-card:hover img { transform: scale(1.06); }
/* Paused while off screen (set by main.js) to save battery */
.zoom-paused { animation-play-state: paused !important; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.trust-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-5); list-style: none; margin: 0; padding: var(--s-5) 0; }
@media (min-width: 900px) { .trust-list { display: flex; justify-content: center; gap: var(--s-8); } }
.trust-list li { display: flex; align-items: center; gap: 10px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #000; }
.trust-list .icon { color: var(--primary); width: 18px; height: 18px; }
/* Full-color emoji: use the system's color emoji font, never inherit text color */
.trust-emoji { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; font-size: 1.25rem; line-height: 1; letter-spacing: 0; text-transform: none; flex: none; }

/* ---------- Service tabs ---------- */
.tabs-list { display: flex; gap: var(--s-5); overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: var(--s-7); scrollbar-width: none; }
.tabs-list::-webkit-scrollbar { display: none; }
.tab {
  flex: none; position: relative; min-height: 52px; padding: 0 2px; background: none; border: 0; cursor: pointer;
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
  transition: color var(--t);
}
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform var(--t) var(--ease); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--primary); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab-panel[hidden] { display: none; }
.tab-panel .split { align-items: start; }
.panel-tag { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); margin-bottom: var(--s-3); }
.dash-list { list-style: none; padding: 0; margin: var(--s-5) 0 var(--s-6); display: grid; gap: 12px; }
.dash-list li { position: relative; padding-left: 28px; font-size: 0.9375rem; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 14px; height: 1px; background: var(--primary); }
.dash-list--2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .dash-list--2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--s-6); list-style: none; padding: 0; margin: 0; position: relative; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps::before { content: ""; position: absolute; top: 22px; left: 46px; right: 12%; height: 1px; background: var(--line-strong); } }
.step { position: relative; }
.step-num { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; font-family: var(--serif); font-size: 1.15rem; color: var(--primary); margin-bottom: var(--s-4); }
.step h3 { font-size: 1.45rem; margin-bottom: var(--s-2); }
.step p { color: var(--muted); font-size: 0.9375rem; margin: 0; }

/* ---------- Plans ---------- */
.plans { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-6); }
.plan--featured { border-color: var(--primary); box-shadow: var(--shadow); }
.plan--featured::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px; background: var(--primary); border-radius: var(--r-md) var(--r-md) 0 0; }
.plan-badge { position: absolute; top: 20px; right: 20px; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary); background: var(--blue-100); padding: 6px 10px; border-radius: 2px; }
.plan-name { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary); margin-bottom: var(--s-2); }
.plan-freq { font-family: var(--serif); font-size: 1.75rem; color: var(--ink); margin-bottom: var(--s-4); line-height: 1.1; }
.plan-price { display: flex; align-items: baseline; gap: 10px; padding-block: var(--s-4); border-block: 1px solid var(--line); margin-bottom: var(--s-4); }
.plan-price .amount { font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.plan-price .unit { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.plan-desc { color: var(--text); font-size: 0.9375rem; font-weight: 500; }
/* Side by side, give every description the same height so the check rows line up across cards */
@media (min-width: 900px) { .plan-desc { min-height: calc(3 * 1.7em); } }
.plan .dash-list { margin-top: var(--s-2); }
.plan .dash-list li { font-size: var(--fs-sm); }
.plan .btn { margin-top: auto; }
/* Plan buttons: a lighter, brighter blue on every card (white text still passes contrast at 4.8:1) */
.btn--plan { background: #2275c0; color: #fff; }
.btn--plan:hover { background: var(--primary); color: #fff; }
/* Bi-Annual stands out with a soft blue glow around the card */
.plan--featured { box-shadow: 0 0 0 4px rgba(34, 117, 192, 0.14), var(--shadow); }
/* Larger "AllClean care plans" label above the plans */
#plans .eyebrow { font-size: 0.9375rem; letter-spacing: 0.16em; }
/* White space between the trust strip and the plans. On computers it grows on tall screens so the
   plans always start below the first screen (header + hero + trust strip + this space >= screen height). */
#plans { padding-top: clamp(5.5rem, 4rem + 5vw, 9rem); }
@media (min-width: 1000px) {
  #plans { padding-top: max(clamp(5.5rem, 4rem + 5vw, 9rem), calc(54svh - var(--header-h) - var(--trust-h, 70px) - 230px + 40px)); }
}
/* Plans heading on one line wherever the screen is wide enough */
#plans .section-head { max-width: none; }
@media (min-width: 900px) { #plans .section-head h2 { white-space: nowrap; } }

/* Plan hover: smooth GPU-accelerated zoom with a blue outline */
.plans { isolation: isolate; }
/* Invisible hover zone reaching halfway into the gap on each side (and a little above/below),
   so the pointer between two cards highlights whichever card it's closer to. Sits behind the
   card's content, so buttons and links stay fully clickable. */
@media (hover: hover) and (min-width: 900px) {
  .plan::after { content: ""; position: absolute; z-index: -1; top: calc(var(--s-5) / -2); bottom: calc(var(--s-5) / -2); left: calc(var(--s-5) / -2 - 1px); right: calc(var(--s-5) / -2 - 1px); }
}
/* No permanent layer promotion (will-change / translateZ), which would blur the text at rest.
   Cards only become a GPU layer during the hover animation, then render crisp again. */
.plan {
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 450ms cubic-bezier(0.22, 1, 0.36, 1), border-color 300ms ease;
}
@media (hover: hover) {
  .plan:hover {
    transform: scale(1.04);
    z-index: 2;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px #2275c0, 0 28px 60px -24px rgba(11, 36, 64, 0.45);
  }
}
.check-list { list-style: none; padding: 0; margin: var(--s-2) 0 var(--s-6); display: grid; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); color: var(--ink); }
.check-list .mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none; }
.check-list .mark .icon { width: 13px; height: 13px; stroke-width: 3; }
.check-list .is-yes .mark { background: #e3f4ea; color: #17794a; }
.check-list .is-no .mark { background: #fdecec; color: #c62828; }
.check-list .is-no { color: var(--muted); }
.check-list .is-addon .mark { background: #fff4d6; color: #b07800; }
.check-list .is-addon .mark .icon { width: 13px; height: 13px; stroke-width: 2.2; }
.addon-tag { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--blue-100); color: var(--primary); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 1px; }
.plans-note { text-align: center; color: var(--muted); font-size: var(--fs-sm); margin-top: var(--s-6); }

/* ---------- Detail list (why) ---------- */
.detail-list { list-style: none; padding: 0; margin: var(--s-6) 0 0; border-top: 1px solid var(--line); }
.detail-list li { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-4); padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.detail-list .icon { width: 24px; height: 24px; color: var(--primary); margin-top: 4px; }
.detail-list strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.detail-list p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; } .gallery figure:first-child { grid-row: span 2; } }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: 2px; min-height: 240px; background: var(--blue-100); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-6) var(--s-5) var(--s-4); background: linear-gradient(transparent, rgba(8, 26, 48, 0.75)); color: #fff; font-family: var(--serif); font-size: 1.35rem; font-style: italic; }

/* ---------- Area accordion ---------- */
.area-acc { border-top: 1px solid var(--line); margin-top: var(--s-6); }
.area-acc details { border-bottom: 1px solid var(--line); }
.area-acc summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 64px; cursor: pointer; list-style: none; }
.area-acc summary::-webkit-details-marker { display: none; }
.area-acc .county-name { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.area-acc .county-count { margin-left: auto; font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.plus { position: relative; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; flex: none; transition: transform var(--t) var(--ease), border-color var(--t); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--primary); transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--t) var(--ease); }
details[open] > summary .plus { border-color: var(--primary); }
details[open] > summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.area-acc .chips { padding-bottom: var(--s-5); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips a, .chips span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 2px; font-size: var(--fs-sm); color: var(--text); text-decoration: none; background: #fff; transition: border-color var(--t), color var(--t); }
.chips a:hover { border-color: var(--primary); color: var(--primary); }

.county-grid { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .county-grid { grid-template-columns: repeat(3, 1fr); } }
.county-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.county-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.county-card .county-body { padding: var(--s-5) var(--s-5) var(--s-6); }
.county-card h3 { margin-bottom: var(--s-2); }
.county-card p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Guarantee ---------- */
.guarantee { display: grid; gap: var(--s-5); align-items: center; padding: var(--s-7); border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
@media (min-width: 900px) { .guarantee { grid-template-columns: auto 1fr auto; gap: var(--s-7); } }
.guarantee-seal { width: 88px; height: 88px; }
.guarantee h2 { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); margin-bottom: var(--s-2); }
.guarantee p { margin: 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 72px; padding-block: var(--s-4); cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.4rem; color: var(--ink); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--primary); }
.faq .faq-body { padding: 0 var(--s-8) var(--s-5) 0; color: var(--muted); }
.faq .faq-body p:last-child { margin: 0; }

/* ---------- Contact CTA (centered, big phone) ---------- */
.cta-final { text-align: center; }
.cta-final h2 { font-weight: 400; }
.cta-final .lead { max-width: 34rem; margin-inline: auto; }
.cta-phone { display: inline-block; font-family: var(--serif); font-size: clamp(2.6rem, 2rem + 3vw, 4rem); color: var(--primary); text-decoration: none; margin: var(--s-4) 0 var(--s-5); line-height: 1; }
.cta-phone:hover { color: var(--primary-hover); }
.cta-final .btn-row { justify-content: center; }
.cta-note { margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Pricing table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: var(--fs-sm); }
.compare th, .compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--ink); }
.compare thead th { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--ink); background: var(--surface-soft); }
.compare thead th.is-featured { color: var(--primary); font-style: italic; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--success); }
.compare .no { color: var(--line-strong); }
.compare .icon { margin-inline: auto; }

/* ---------- Forms ---------- */
.contact-layout { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 1.5fr 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.form-grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .fieldset legend { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.req { color: var(--error); margin-left: 2px; }
.hint { font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 500; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r);
  transition: border-color var(--t), box-shadow var(--t);
}
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5fa8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 42px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--blue-500); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 95, 168, 0.15); }
.field.has-error .input, .field.has-error .select { border-color: var(--error); background: #fffafa; }
.field-error { display: none; align-items: center; gap: 6px; color: var(--error); font-size: var(--fs-xs); font-weight: 500; }
.field.has-error .field-error { display: flex; }
.fieldset { border: 0; padding: 0; margin: 0; }
.fieldset legend { margin-bottom: 10px; padding: 0; }
.choice-grid { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); cursor: pointer; font-size: var(--fs-sm); color: var(--ink); transition: border-color var(--t), background-color var(--t); }
.pane-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.pane-grid .field { align-content: start; }
.pane-grid .hint { margin: 0; }
@media (min-width: 480px) { .pane-grid { grid-template-columns: repeat(3, 1fr); } }
.fieldset > .hint { margin: 8px 0 0; }
.estimate { display: grid; gap: 4px; padding: var(--s-4) var(--s-5); border: 1px solid var(--primary); border-radius: var(--r); background: var(--blue-50); }
.estimate-label { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.estimate-amount { font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; color: var(--ink); }
.estimate-disclaimer { margin: 4px 0 0; font-size: var(--fs-sm); color: var(--text); }
.estimate-disclaimer strong { color: var(--ink); }
.choice.is-locked { cursor: not-allowed; }
.choice.is-locked:hover { border-color: var(--line-strong); }
.choice.is-locked:has(input:checked):hover { border-color: var(--primary); }
.choice.is-locked input { pointer-events: none; }
.choice.is-locked:not(:has(input:checked)) { opacity: 0.55; }
.choice:hover { border-color: var(--blue-500); }
.choice input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--blue-50); }
.choice:has(input:focus-visible) { box-shadow: var(--ring); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.form-legal { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.error-summary { display: none; padding: var(--s-4) var(--s-5); border-left: 3px solid var(--error); background: #fff5f5; color: #8f1d1d; margin-bottom: var(--s-5); }
.error-summary.is-visible { display: block; }
.error-summary h2 { font-family: var(--sans); font-size: var(--fs-sm); font-weight: 600; color: #8f1d1d; margin-bottom: 6px; }
.error-summary ul { margin: 0; padding-left: 1.1em; font-size: var(--fs-sm); }
.error-summary a { color: #8f1d1d; }
.form-status { display: none; padding: var(--s-4); border-left: 3px solid var(--error); background: #fff5f5; color: #8f1d1d; font-size: var(--fs-sm); }
.form-status.is-error { display: block; }
.form-success { display: none; text-align: center; padding: var(--s-6) var(--s-3); }
.form-success.is-visible { display: block; }
.success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto var(--s-4); border-radius: 50%; border: 1px solid var(--success); color: var(--success); }
.success-icon .icon { width: 30px; height: 30px; stroke-width: 2; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.8s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-aside { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-item { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-3); padding-block: var(--s-5); border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.contact-item .icon { width: 22px; height: 22px; color: var(--primary); margin-top: 3px; }
.contact-emoji { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; font-size: 1.5rem; line-height: 1; margin-top: 2px; }
.contact-item .label { display: block; font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary); font-weight: 600; }
.contact-item .value { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); overflow-wrap: anywhere; line-height: 1.3; }
.contact-item .small { display: block; font-size: var(--fs-sm); color: var(--muted); }
a.contact-item:hover .value { color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: rgba(255, 255, 255, 0.72); padding-top: var(--s-8); font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: var(--s-6); padding-bottom: var(--s-7); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.site-footer h2 { font-family: var(--sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-300); margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.site-footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; }
.site-footer a:hover { color: #fff; }
.footer-about p { margin-top: var(--s-4); max-width: 32ch; }
.footer-badges { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-4); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.footer-badges span { display: inline-flex; align-items: center; gap: 6px; }
.footer-badges .icon { color: var(--blue-300); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.5); }

/* ---------- Sticky action bar (all sizes) ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px rgba(11, 36, 64, 0.35);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--bar-h); }
.action-bar-text { display: none; font-size: var(--fs-sm); color: var(--text); margin: 0; }
.action-bar-text strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--ink); margin-right: 8px; }
.action-bar-btns { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; width: 100%; }
.action-bar .btn { min-height: 48px; padding: 0 12px; }
.action-bar .ab-text { display: inline-flex; }
@media (min-width: 768px) {
  .action-bar-text { display: block; }
  .action-bar-btns { display: flex; width: auto; }
  .action-bar .ab-text { display: none; }
  .action-bar .btn { padding: 0 1.4rem; }
}

/* ---------- Misc ---------- */
.prose { max-width: 680px; }
.prose h2 { margin-top: var(--s-7); }
.prose h2:first-child { margin-top: 0; }
.center { text-align: center; }
.mt-6 { margin-top: var(--s-6); }
.note { color: var(--muted); font-size: var(--fs-sm); }
.price-line { display: flex; align-items: baseline; gap: 12px; padding-block: var(--s-4); border-block: 1px solid var(--line); margin: var(--s-5) 0; }
.price-line .amount { font-family: var(--serif); font-size: 2.6rem; color: var(--ink); line-height: 1; }
.price-line span { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.values { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .values { grid-template-columns: repeat(2, 1fr); column-gap: var(--s-8); } }
.values > div { padding-block: var(--s-6); border-bottom: 1px solid var(--line); }
.values .icon { width: 26px; height: 26px; color: var(--primary); margin-bottom: var(--s-4); }
.value-emoji { display: block; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; font-size: 1.75rem; line-height: 1; margin-bottom: var(--s-4); }
.values p { color: var(--muted); margin: 0; }

/* ---------- Pricing page ---------- */
.section--tight { padding-block: var(--s-6) clamp(4rem, 3rem + 4vw, 6rem); }
.page-hero--compact { padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0; border-bottom: 0; }

/* ---------- Font sizing: Fraunces headings scaled to a 0.4 x-height so sizes match the original design ---------- */
h1, h2, h3, .mobile-link, .step-num, .plan-freq, .plan-price .amount, .detail-list strong, .gallery figcaption, .area-acc .county-name, .faq summary, .cta-phone, .compare thead th, .contact-item .value, .action-bar-text strong, .price-line .amount { font-size-adjust: 0.44; }
body, .error-summary h2, .site-footer h2 { font-size-adjust: none; }

/* ---------- Scroll fade: content fades/slides in as it enters, out as it leaves ----------
   main.js toggles .is-visible (and .is-above once something scrolls off the top).
   Short transitions that finish, so text returns to crisp normal rendering when settled. */
.js-motion .reveal { opacity: 0; translate: 0 26px; transition: opacity 600ms var(--ease), translate 600ms var(--ease); }
.js-motion .reveal.is-above { translate: 0 -26px; }
.js-motion .reveal.is-visible { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
