/* Thrive Outdoor Solutions — minimal dark theme */
:root {
  --bg: #0e1411;
  --bg-alt: #121a16;
  --surface: #161f1a;
  --line: #24312a;
  --text: #e8ece6;
  --muted: #a4afa8;
  --accent: #8cc79f;
  --accent-2: #c4cf96;
  --accent-ink: #0b130e;
  --radius: 14px;
  --wrap: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 650; }
p { margin: 0; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

.eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.muted { color: var(--muted); }
.fine { font-size: .875rem; color: var(--muted); }
.accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: #a6d6b5; border-color: #a6d6b5; color: var(--accent-ink); }
.btn-ghost { background: rgba(14, 20, 17, .78); color: var(--text); border-color: rgba(232, 236, 230, .8); }
.btn-ghost:hover { background: rgba(14, 20, 17, .88); border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 20, 17, .92);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(14, 20, 17, .8); backdrop-filter: blur(8px); }
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .01em; margin-right: auto; }
.brand img { width: 40px; height: auto; }
.brand em { font-style: normal; font-weight: 400; color: var(--muted); }
.nav { display: none; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 48px 0 72px; }
.hero-grid { display: grid; gap: 40px; }
.hero h1 { font-size: clamp(1.9rem, 7.8vw, 4rem); max-width: 20ch; text-wrap: balance; }
.lede { margin-top: 20px; font-size: 1.125rem; color: var(--muted); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .fine { margin-top: 20px; }
.hero-media { margin: 0; position: relative; }

/* Sections */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(1.75rem, 4.4vw, 2.6rem); max-width: 22ch; }
.section-head { margin-bottom: 40px; }
.section-head .muted { margin-top: 14px; }

/* Services */
.services { display: grid; gap: 16px; }
.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.service-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.service h3 { font-size: 1.2rem; }
.price { font-size: 1.6rem; font-weight: 700; color: var(--accent); white-space: nowrap; letter-spacing: -0.02em; }
.price .from { font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-right: 2px; }
.price .unit { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-text { font-size: 1rem; font-weight: 600; color: var(--accent-2); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.tag { display: inline-block; margin-left: 6px; font-size: .8rem; color: var(--accent-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.service-main { display: flex; flex-direction: column; }
.service-foot {
  margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: .95rem;
}
.service-main .ticks { margin-bottom: 28px; }
.service-foot a { font-weight: 600; text-decoration: none; }
.rates { margin: 0; display: grid; }
.rates div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rates div:first-child { padding-top: 0; }
.rates div:last-child { border-bottom: 0; padding-bottom: 0; }
.rates dt { color: var(--muted); }
.rates dd { margin: 0; font-weight: 700; color: var(--text); }

/* Care */
.care { display: grid; gap: 24px; }
.care-copy { display: grid; gap: 16px; font-size: 1.075rem; max-width: 60ch; }
.care-copy strong { color: var(--text); font-weight: 600; }

/* Contact */
.contact { display: grid; gap: 48px; }
.steps { list-style: none; counter-reset: s; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; color: var(--muted); }
.steps li strong { color: var(--text); font-weight: 600; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -1px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--accent); font-size: .85rem; font-weight: 700;
}
.direct { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.direct a {
  display: flex; gap: 16px; align-items: baseline; padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none; word-break: break-word;
}
.direct a:hover { color: var(--accent); }
.direct span { width: 48px; flex: none; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.area { margin-top: 32px; color: var(--muted); max-width: 52ch; }
.area .eyebrow { margin-bottom: 8px; }

/* Form */
.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 16px; align-self: start;
}
.field-row { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 500; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid #34443b; border-radius: 10px;
  font: inherit; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: #7f8a83; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(140, 199, 159, .2); }
.form-note { text-align: center; }
.form-note.is-success, .form-note.is-error { font-size: 1rem; padding: 14px 16px; border-radius: 12px; color: var(--text); }
.form-note.is-success { background: rgba(140,199,159,.14); border: 1px solid var(--accent); }
.form-note.is-error { background: rgba(230,120,110,.12); border: 1px solid #e6786e; }
.form-note a { color: var(--accent); }
.btn.is-sent { opacity: .7; pointer-events: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer-inner { display: grid; gap: 20px; justify-items: center; text-align: center; }
.footer-logo { width: 140px; }
.footer-links { display: flex; gap: 10px; }
.footer-links a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--muted);
}
.footer-links a:hover { color: var(--accent); border-color: var(--accent); }
.site-footer .fine a { color: var(--muted); }

/* Larger screens */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .form { padding: 32px; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .section { padding: 112px 0; }
  .services { grid-template-columns: 1.25fr 1fr; }
  .service-main { grid-row: span 2; }
  .care { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
  .contact { grid-template-columns: 1fr 1.1fr; gap: 72px; }
}
@media (max-width: 420px) {
  .actions .btn { flex: 1 1 100%; }
  .brand { font-size: .95rem; }
}
@media (max-width: 359px) {
  .brand em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Hero subheading */
.hero-sub { margin-top: 18px; font-size: clamp(1.15rem, 2.6vw, 1.4rem); font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.hero-sub + .lede { margin-top: 10px; }

/* Reviews */
.stars { color: var(--accent-2); letter-spacing: .12em; line-height: 1; }
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.rating { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.rating strong { font-weight: 700; color: var(--text); }
.reviews { display: grid; gap: 16px; }
.review {
  margin: 0; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.review .stars { font-size: .95rem; }
.review blockquote { margin: 0; color: var(--text); font-size: .975rem; line-height: 1.6; }
.review figcaption { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.review figcaption strong { font-weight: 600; }
.review figcaption span { color: var(--muted); font-size: .8rem; }
.reviews-actions { margin-top: 28px; }

/* Service areas */
.areas { margin: 0 0 10px; display: grid; }
.areas div { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.areas div:first-child { border-top: 1px solid var(--line); }
.areas dt { width: 104px; flex: none; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding-top: 2px; }
.areas dd { margin: 0; color: var(--text); }
.area { max-width: none; }
.area h3.eyebrow { font-size: .78rem; line-height: 1.65; letter-spacing: .14em; margin-bottom: 10px; }

@media (min-width: 900px) {
  .reviews { grid-template-columns: repeat(3, 1fr); }
}
.area-line { margin: 0 0 6px; color: var(--text); font-size: 1.05rem; }
.footer-trust { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: .85rem; color: var(--muted); }
.footer-trust span { display: inline-flex; align-items: center; gap: 6px; }
.footer-trust svg { color: var(--accent); }

/* ==========================================================================
   v10 motion & polish. Existing colour variables only (rgba = --bg/--accent).
   Hidden reveal states apply only to .rv, which js/main.js adds below the fold.
   ========================================================================== */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.45, .64, 1); --glow: rgba(140, 199, 159, .3); }

/* Frosted header (solid fallback first) */
.site-header {
  background: rgba(14, 20, 17, .95); border-bottom-color: rgba(36, 49, 42, .6);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.site-header.is-scrolled { background: rgba(14, 20, 17, .98); border-bottom-color: var(--line); box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .7); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header, .site-header.is-scrolled { background: rgba(14, 20, 17, .55); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
  .site-header.is-far { background: rgba(14, 20, 17, .75); }
}
.brand img { transform-origin: left center; transition: transform .5s var(--ease); }
.site-header.is-scrolled .brand img { transform: scale(.9); }

/* Nav scrollspy: active colour + sliding underline (.nav-ink added by JS) */
.nav { position: relative; }
.nav a { transition: color .3s var(--ease); }
.nav a.is-active { color: var(--accent); }
.nav-ink {
  position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; border-radius: 2px;
  background: var(--accent); opacity: 0; pointer-events: none;
  transition: transform .55s var(--spring), width .55s var(--spring), opacity .3s var(--ease);
}
.nav.has-active .nav-ink { opacity: 1; }

/* Springy buttons */
.btn {
  position: relative; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, color .15s, border-color .15s, transform .5s var(--spring), box-shadow .35s var(--ease);
}
@media (hover: hover) {
  .btn:hover { box-shadow: 0 8px 22px -8px var(--glow), 0 0 0 4px rgba(140, 199, 159, .07); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: scale(.96); transition: transform .12s var(--ease), box-shadow .2s var(--ease), background-color .15s; }
  .js .site-header .btn-sm { animation: callPulse 1.8s var(--ease) 1.2s 1; }
}
@keyframes callPulse { 0% { box-shadow: 0 0 0 0 rgba(140, 199, 159, .5); } 70%, 100% { box-shadow: 0 0 0 12px rgba(140, 199, 159, 0); } }

/* Submit states: spinner while sending (width kept), pop on success */
.btn.is-loading { color: transparent !important; pointer-events: none; cursor: progress; }
.btn.is-loading::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border: 2px solid rgba(11, 19, 14, .25); border-top-color: var(--accent-ink); border-radius: 50%;
  animation: btnSpin .7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
.btn.is-sent { opacity: 1; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .btn.is-sent { animation: btnPop .75s var(--ease); }
  .form-note.is-success, .form-note.is-error { animation: noteIn .5s var(--ease); }
}
@keyframes btnPop {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(140, 199, 159, .6); }
  30% { transform: scale(1.08); }
  55% { transform: scale(.98); }
  75% { transform: scale(1.01); }
  100% { transform: scale(1); box-shadow: 0 0 0 20px rgba(140, 199, 159, 0); }
}
@keyframes noteIn { from { opacity: 0; transform: translateY(6px); } }

/* Lift-up cards */
.service, .review { transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s var(--ease); }
@media (hover: hover) {
  .service:hover, .review:hover { border-color: rgba(140, 199, 159, .32); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .75); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service:hover, .review:hover { transform: translateY(-3px); }
}
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .service:active, .review:active { transform: scale(.99); border-color: rgba(140, 199, 159, .32); }
}
.rates dt, .rates dd { transition: color .3s var(--ease); }
.rates div:hover dt { color: var(--text); }
.rates div:hover dd { color: var(--accent); }

/* Animated underline on text links */
.service-foot a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), color .15s; }
.service-foot a:hover { background-size: 100% 1px; }

/* Live form fields */
.field { position: relative; }
.field input, .field select, .field textarea { transition: border-color .3s var(--ease), box-shadow .3s var(--ease), color .45s var(--ease); }
.field input::placeholder, .field textarea::placeholder { transition: color .45s var(--ease); }
/* soft reset after success (class set by JS): values fade out before the form clears */
.form.is-clearing .field input, .form.is-clearing .field select, .form.is-clearing .field textarea,
.form.is-clearing .field ::placeholder { color: transparent; }
.form.is-clearing .field.is-valid input { border-color: #34443b; }
.form.is-clearing .field::after { opacity: 0; }
.field.is-valid input { border-color: rgba(140, 199, 159, .7); padding-right: 42px; }
.field.is-invalid input, .field.is-invalid input:focus { border-color: #e6786e; padding-right: 42px; }
.field.is-invalid input:focus { box-shadow: 0 0 0 3px rgba(230, 120, 110, .2); }
.field::after {
  content: ""; position: absolute; right: 14px; bottom: 15px; width: 16px; height: 16px;
  background: var(--accent); pointer-events: none; opacity: 0; transform: scale(.4);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity .25s var(--ease), transform .45s var(--spring);
}
.field.is-valid::after { opacity: 1; transform: none; }

/* Scroll reveal (JS-set classes only) */
.js .rv { opacity: 0; translate: 0 24px; }
.js .rv.rv-in { opacity: 1; translate: none; transition: opacity .7s var(--ease) var(--rv-d, 0ms), translate .7s var(--ease) var(--rv-d, 0ms); }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; translate: none; }
}
@media print { .js .rv { opacity: 1 !important; translate: none !important; } }

/* ==========================================================================
   v12 Variant B: living background. One photo layer is fixed behind the whole
   page under a dark --bg scrim; the sections scroll over it as transparent or
   frosted panels, and the photos dissolve with overall page scroll (js/main.js).
   Opacity only, no zoom. No JS / reduced motion: the first photo sits behind
   the hero only and every section keeps its solid background.
   ========================================================================== */
.hero { position: relative; padding: 0; margin-top: -65px; } /* photo runs up under the frosted header */
.hero-grid { display: block; }
.hero-copy {
  position: relative; z-index: 1;
  min-height: 88vh; min-height: 88svh; padding: 120px 20px 88px;
  display: flex; flex-direction: column; justify-content: center;
  text-align: center; text-shadow: 0 1px 2px rgba(14, 20, 17, .6), 0 1px 24px rgba(14, 20, 17, .7);
}
.hero h1, .hero .lede { margin-inline: auto; }
.hero .actions { justify-content: center; }
@media (min-width: 900px) {
  .hero h1 { font-size: clamp(2.6rem, 4.2vw, 3.4rem); max-width: 24ch; }
  .hero .lede { max-width: 58ch; }
}

/* Photo layer (default: behind the hero only) */
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }
.hero-media .slides { position: absolute; inset: 0; }
.hero-media .slide { position: absolute; inset: 0; opacity: 0; }
.hero-media .slide:first-child { opacity: 1; }
.hero-media .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::before, .hero-media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-media::before { /* base scrim: lighter in the middle, --bg at the edges (v13: a little darker) */
  background:
    radial-gradient(ellipse 75% 60% at 50% 50%, rgba(14, 20, 17, .72), rgba(14, 20, 17, .34) 75%),
    linear-gradient(to bottom, rgba(14, 20, 17, .6) 0, rgba(14, 20, 17, .2) 25%, rgba(14, 20, 17, .2) 65%, rgba(14, 20, 17, .78) 100%);
}

/* Living background: fixed full-viewport layer behind the whole page */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-media { position: fixed; inset: 0 0 auto; height: 100vh; height: 100lvh; z-index: -1; }
  .js .hero-media::after { background: rgba(14, 20, 17, .64); opacity: var(--dim, 1); } /* darker further down (JS sets --dim) */
  .js .section { background: transparent; }
  .js .section-alt { background: rgba(18, 26, 22, .52); }
  .js .site-footer { background: rgba(14, 20, 17, .82); }
  .js .service, .js .review, .js .form { background: rgba(22, 31, 26, .92); }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    @media (min-width: 640px) { /* frosted glass on larger screens; phones get a near-solid panel (cheaper) */
      .js .service, .js .review, .js .form {
        background: rgba(22, 31, 26, .74);
        -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
      }
    }
  }
}

/* ==========================================================================
   v13: sharper, less-zoomed photos; smooth first paint; more contrast.
   ========================================================================== */
/* Phones (portrait, narrower than 3:5): instead of a 9:16 crop blown up to cover the whole tall screen
   (v12 showed ~57% of the photo width), show the whole 3:5 crop (full photo height, ~80% of its width)
   at full width, centred vertically, with its top and bottom edges fading into the page colour.
   The layer itself stays full-screen. Portrait tablets (3:5 to 3:4) use the same 3:5 photo with cover. */
@media (max-aspect-ratio: 3/5) {
  .hero-media .slide img { object-fit: contain; }
  .hero-media .slides::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to bottom, var(--bg) calc(50% - 83.333vw), rgba(14, 20, 17, 0) calc(50% - 62vw),
      rgba(14, 20, 17, 0) calc(50% + 50vw), var(--bg) calc(50% + 83.333vw));
  }
}
/* First photo: a tiny blurred placeholder of it (inline <style> in index.html) is shown at once and sits
   on top until the real photo has loaded and decoded, then dissolves away (~0.5 s), so the photo never
   pops in or paints in stripes. Instant under reduced motion; without JS there is no overlay. */
.js .hero-media .slides::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: inherit;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.hero-media .slides.is-in::before, .bg-in .hero-media .slides::before { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .js .hero-media .slides::before { transition: none; }
}
/* the hero text shadow is for text on the photo, not for text on the solid accent button */
.hero .btn { text-shadow: none; }
.hero .lede { color: #cfd6d1; } /* --muted, lifted a step for text that sits on the photo */
/* Contrast over the photo (v12 -> v13): scrim .6/.25/.15 -> .72/.34/.2, scroll dim .58 -> .64,
   alt panel .45 -> .52, hero text shadow tightened, ghost buttons get a dark fill + light border. */

/* ==========================================================================
   v14: social links (Instagram, Facebook). Footer icon buttons get the same
   springy hover/press as .btn; a quiet "Follow along" row in the contact
   section. Existing colours only; icons are --muted on --bg (~8:1), borders lifted from --line.
   ========================================================================== */
.footer-links a, .social a {
  position: relative; -webkit-tap-highlight-color: transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease),
    box-shadow .35s var(--ease), transform .5s var(--spring);
}
.footer-links a { border-color: #34443b; }
.footer-links a:focus-visible, .social a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 50%; }
.follow { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.follow-label { margin: 0; font-size: .95rem; color: var(--text); }
.social { display: flex; gap: 10px; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid #34443b; border-radius: 50%; color: var(--muted); background: var(--bg);
}
.social svg, .footer-links svg { display: block; }
@media (hover: hover) {
  .footer-links a:hover, .social a:hover {
    color: var(--accent); border-color: var(--accent);
    box-shadow: 0 8px 22px -8px var(--glow), 0 0 0 4px rgba(140, 199, 159, .07);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .footer-links a:hover, .social a:hover { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: no-preference) {
  .footer-links a:active, .social a:active {
    transform: scale(.92); color: var(--accent); border-color: var(--accent);
    transition: transform .12s var(--ease), color .15s, border-color .15s;
  }
}

/* ==========================================================================
   v15: TLDR; link in the header + the /tldr/ feed page. Existing colours only.
   Desktop: "TLDR;" sits last in .nav. Phones/tablets (<900px, where .nav is hidden):
   a compact pill (.tldr-m) next to the Call button.
   ========================================================================== */
.nav a.nav-tldr { color: var(--accent-2); font-weight: 600; letter-spacing: .01em; }
.nav a.nav-tldr:hover, .nav a.nav-tldr[aria-current="page"] { color: var(--accent); }
.tldr-m {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; margin-right: -12px;
  color: var(--accent-2); font-weight: 600; font-size: .95rem; text-decoration: none; letter-spacing: .01em;
  border-radius: 999px; -webkit-tap-highlight-color: transparent; transition: color .2s var(--ease);
}
.tldr-m:hover, .tldr-m[aria-current="page"] { color: var(--accent); }
@media (min-width: 900px) { .tldr-m { display: none; } }
@media (max-width: 400px) { .header-inner { gap: 14px; } .tldr-m { padding: 0 8px; margin-right: -8px; } }
@media (max-width: 899px) { .brand { white-space: nowrap; } }
@media (max-width: 440px) { .brand em { display: none; } } /* phones: logo + "Thrive" so TLDR; and Call fit on one line */

/* ---- TLDR page ---- */
.tldr-page .hero-media { display: none; }
.tldr-head { padding: 72px 0 40px; text-align: center; }
.tldr-head h1 { font-size: clamp(2.6rem, 11vw, 4.6rem); letter-spacing: -0.04em; }
.tldr-head h1 .semi { color: var(--accent); }
.tldr-head .lede { margin: 16px auto 0; max-width: 44ch; color: #cfd6d1; }
.tldr-head .fine { margin-top: 14px; }
.feed { width: min(100% - 32px, 720px); margin: 0 auto; padding: 0 0 96px; display: grid; gap: 28px; list-style: none; }
.post {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  transition: border-color .4s var(--ease), box-shadow .5s var(--ease);
}
@media (hover: hover) { .post:hover { border-color: rgba(140, 199, 159, .32); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .75); } }
.post-media { margin: 0; position: relative; aspect-ratio: 16 / 9; background: var(--bg-alt); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-media figcaption {
  position: absolute; right: 8px; bottom: 8px; max-width: calc(100% - 16px);
  font-size: .72rem; line-height: 1.35; color: var(--text); background: rgba(14, 20, 17, .82);
  padding: 4px 9px; border-radius: 8px;
}
.post-media figcaption a { color: var(--text); }
.post-media figcaption a:hover { color: var(--accent); }
.post-body { padding: 24px 22px 26px; display: grid; gap: 14px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .85rem; color: var(--muted); }
.post-meta .tag { margin: 0; color: var(--accent-2); border-color: #34443b; font-weight: 600; letter-spacing: .02em; }
.post h2 { font-size: clamp(1.4rem, 5.4vw, 1.85rem); text-wrap: balance; }
.post-tldr { font-size: 1.05rem; color: var(--text); }
.post-tldr strong { color: var(--accent); font-weight: 700; margin-right: 4px; }
.post-text { color: #cfd6d1; }
.post-why { padding: 12px 16px; border-left: 3px solid var(--accent); background: rgba(140, 199, 159, .08); border-radius: 0 10px 10px 0; font-size: .95rem; }
.post-why strong { display: block; color: var(--accent); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px; }
.post-source { font-size: .9rem; color: var(--muted); }
.post-source a { font-weight: 600; }
@media (min-width: 640px) { .post-body { padding: 30px 34px 32px; } .tldr-head { padding: 104px 0 56px; } }

/* Living background (JS + motion only): two fixed photo layers crossfade (opacity only, no zoom)
   to the photo of the post in view, under a dark scrim so the frosted cards stay readable. */
.tldr-bg { display: none; }
.js .tldr-bg { display: block; position: fixed; inset: 0 0 auto; height: 100vh; height: 100lvh; z-index: -1; background: var(--bg); overflow: hidden; pointer-events: none; }
.tldr-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s var(--ease); }
.tldr-bg img.on { opacity: 1; }
.tldr-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(14, 20, 17, .8), rgba(14, 20, 17, .7) 40%, rgba(14, 20, 17, .86)); }
.js .tldr-page .site-footer { background: rgba(14, 20, 17, .86); }
.js .post { background: rgba(22, 31, 26, .93); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (min-width: 640px) {
    .js .post { background: rgba(22, 31, 26, .8); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
  }
}
@media (prefers-reduced-motion: reduce) { .tldr-bg img { transition: none; } }

/* ==========================================================================
   v17: "Local know-how" section: service-area map card + seasonal tips card.
   Reuses .service cards (frost, hover lift, reveal). Existing palette only.
   ========================================================================== */
.local { display: grid; gap: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.local h3 { font-size: 1.2rem; }

/* Map */
.map-card { padding: 24px 24px 20px; display: flex; flex-direction: column; overflow: hidden; }
.map-key { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.key-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(140, 199, 159, .16), 0 0 14px rgba(140, 199, 159, .6); }
.map-wrap {
  position: relative; flex: 1; display: grid; place-items: center; margin: 0 -8px;
  border-radius: 12px; background: #0a100d; border: 1px solid var(--line); overflow: hidden;
}
.map-svg { display: block; width: 100%; height: auto; max-height: 640px; font-family: var(--font); }
.map-coast { fill: none; stroke: rgba(140, 199, 159, .55); stroke-width: 1.4; stroke-linejoin: round; }
.map-bribie { stroke-opacity: .5; }
.map-ridge { stroke: rgba(196, 207, 150, .2); stroke-width: 1; stroke-dasharray: 2 5; }
.map-ridge-2 { stroke-opacity: .6; }
.map-river { stroke: rgba(140, 199, 159, .18); stroke-width: 1.2; }
.map-lake { fill: rgba(140, 199, 159, .12); stroke: rgba(140, 199, 159, .25); }
.map-dot { fill: var(--text); fill-opacity: .8; }
.map-label { fill: var(--text); font-size: 14px; font-weight: 500; letter-spacing: .01em; paint-order: stroke; stroke: #111a15; stroke-width: 4px; stroke-linejoin: round; }
.map-label-home { fill: var(--accent); font-size: 16px; font-weight: 650; }
.map-sub { fill: var(--muted); font-size: 9.5px; letter-spacing: .18em; font-weight: 600; }
.map-region { fill: rgba(196, 207, 150, .42); font-size: 11px; letter-spacing: .42em; font-weight: 600; }
.map-sea-label { fill: rgba(164, 175, 168, .3); font-size: 11px; letter-spacing: .5em; font-weight: 600; }
.map-ui { fill: rgba(164, 175, 168, .55); stroke: rgba(164, 175, 168, .55); font-size: 10px; letter-spacing: .12em; }
.map-ui text { stroke: none; }
.map-core { fill: var(--accent); stroke: #0e1411; stroke-width: 2; }
.map-pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .map-pulse { animation: mapPulse 3.2s cubic-bezier(.2, .6, .3, 1) infinite; }
  .map-pulse-2 { animation-delay: 1.6s; }
  .map-halo { transform-box: fill-box; transform-origin: center; animation: mapHalo 3.2s ease-in-out infinite; }
}
@keyframes mapPulse { 0% { opacity: .75; transform: scale(1); } 100% { opacity: 0; transform: scale(4.2); } }
@keyframes mapHalo { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }

/* Areas list */
.areas-card h3 { margin-bottom: 18px; }
.area-tags { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area-tags li { font-size: .9rem; padding: 5px 13px; border-radius: 999px; border: 1px solid #34443b; color: var(--text); }
.area-tags li.is-home { border-color: rgba(140, 199, 159, .6); color: var(--accent); }
.areas-card { display: flex; flex-direction: column; }

/* Seasonal tips */
.season { display: flex; flex-direction: column; }
.season .card-head { margin-bottom: 14px; }
.season-eyebrow { margin: 0; }
.season-when { color: var(--muted); }
.season-peek {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 10px 0 14px; margin: -6px -8px -6px 0;
  border: 1px solid #34443b; border-radius: 999px; background: transparent; color: var(--muted);
  font: 500 .85rem/1 var(--font); cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .5s var(--spring);
}
.season-peek svg { transition: transform .45s var(--spring); }
.season-peek[aria-pressed="true"] svg { transform: rotate(180deg); }
@media (hover: hover) { .season-peek:hover { color: var(--accent); border-color: var(--accent); } }
.season-peek:active { transform: scale(.95); }
.season h3 { font-size: clamp(1.35rem, 3vw, 1.6rem); margin-bottom: 18px; text-wrap: balance; }
.season h3 [data-s="month"] { color: var(--accent); }
.season-title { color: var(--text); }
.season-tips { gap: 12px; color: #cfd6d1; }
.season-body { transition: opacity .28s var(--ease), translate .28s var(--ease); }
.season-body.is-out { opacity: 0; translate: 0 6px; }
.season-note { margin-top: auto; padding-top: 22px; }
.season-note::before { content: ""; display: block; border-top: 1px solid var(--line); margin-bottom: 14px; }

@media (min-width: 900px) {
  .local { grid-template-columns: 1.15fr 1fr; grid-template-rows: auto 1fr; }
  .map-card { grid-row: span 2; }
  .season { grid-row: 1; grid-column: 2; }
  .areas-card { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .season-body.is-out { opacity: 1; translate: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js .map-card, .js .areas-card, .js .season { background: rgba(22, 31, 26, .92); }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    @media (min-width: 640px) {
      .js .map-card, .js .areas-card, .js .season { background: rgba(22, 31, 26, .74); }
    }
  }
}
@media (min-width: 900px) {
  .map-wrap { min-height: 460px; }
  .map-svg { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; }
}
.season-eyebrow { white-space: nowrap; }
@media (max-width: 479px) { .season-lead { display: none; } .season-when { color: var(--accent); } }

/* v18: "Areas" nav item - keep every label on one line and tighten spacing on small desktops/tablet landscape */
.nav a { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1099px) { .nav { gap: 18px; } .header-inner { gap: 16px; } }
/* v19: minor coastal suburbs - smaller labels and dots */
.map-label-sm { font-size: 12px; font-weight: 450; fill-opacity: .82; stroke-width: 3.5px; }
.map-dot-sm { fill-opacity: .65; }

.sister-wrap { display: flex; justify-content: center; }
.sister-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid rgba(232,236,230,.16); border-radius: 999px; background: rgba(14,20,17,.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--muted); font-size: .88rem; text-decoration: none; letter-spacing: .01em; transition: color .25s ease, border-color .25s ease, transform .25s cubic-bezier(.2,.8,.2,1), background .25s ease; }
.sister-pill:hover, .sister-pill:focus-visible { color: #e8ece6; border-color: rgba(91,140,255,.55); background: rgba(14,20,17,.75); transform: translateY(-1px); }
.sister-pill:active { transform: translateY(0) scale(.98); }
.sister-icon { flex: none; }
.sister-arrow { display: inline-block; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.sister-pill:hover .sister-arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .sister-pill, .sister-arrow { transition: none; } .sister-pill:hover { transform: none; } }
