/* ============================================================
   Central Sun Restoration — Shared Stylesheet
   Warm earthy palette, mobile-first, e-commerce ready
   ============================================================ */

@font-face {
  font-family: 'Lora';
  src: url('fonts/Lora-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('fonts/Lora-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Custom Properties ---------- */
:root {
  /* Colors */
  --color-primary:      #D4980A;   /* sunflower yellow */
  --color-primary-light:#E8AC1A;
  --color-accent:       #3b5c3d;   /* sage green (secondary) */
  --color-accent-light: #527a55;
  --color-gold:         #8b6914;   /* deep amber — small accents */
  --color-bg:           #f8f4ee;   /* warm cream */
  --color-surface:      #eee8db;   /* slightly darker cream */
  --color-surface-alt:  #e4ddd0;
  --color-text:         #2a2520;   /* dark charcoal */
  --color-text-muted:   #6b6357;
  --color-border:       #d3ccc0;
  --color-white:        #ffffff;

  /* Typography */
  --font-heading: 'Lora', 'Georgia', 'Times New Roman', serif;
  --font-body:    'Roboto', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --space-xs:   0.375rem;
  --space-sm:   0.75rem;
  --space-md:   1.25rem;
  --space-lg:   2rem;
  --space-xl:   3rem;
  --space-2xl:  5rem;

  /* Layout */
  --container-max: 1160px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Transitions */
  --transition: 0.2s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-primary); }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem,   5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem,2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { max-width: 70ch; }

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.section {
  padding-block: var(--space-2xl);
}

.section--alt {
  background-color: var(--color-surface);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
  border: 2px solid transparent;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text);           /* dark text on yellow for contrast */
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: var(--color-text);
}

.btn--outline {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn--outline:hover {
  background-color: transparent;
  color: var(--color-accent);
}

.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn--accent:hover {
  background-color: #a84e22;
  border-color: #a84e22;
  color: var(--color-white);
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent);           /* green logo wordmark */
  line-height: 1.15;
}
.nav__logo-icon {
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
}
.nav__logo-img {
  height: 68px;
  width: auto;
  display: block;
}
.nav__logo-img--footer {
  height: 60px;
  opacity: 0.9;
  display: block;
  margin-left: 0;
}
.nav__logo-text {
  display: flex;
  flex-direction: column;
}
.nav__logo-text > span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.nav__logo:hover { color: var(--color-accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.03em;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-accent);           /* green — readable on cream */
  border-bottom-color: var(--color-primary); /* yellow underline */
}

/* Hamburger (mobile) */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md) var(--space-lg);
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding-block: 0.6rem; width: 100%; border-bottom: none; }
  .nav__links a:hover { border-bottom: none; }
  .nav__cta { margin-top: var(--space-sm); }
}

/* ---------- Hero — Wildflower Field ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Deep natural backdrop */
  background:
    radial-gradient(ellipse 110% 65% at 55% 105%, rgba(35,58,18,0.75) 0%, transparent 55%),
    linear-gradient(160deg, #080f04 0%, #0d1a07 45%, #060c03 100%);
}

/* Hero video */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Simple dark brown overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(30, 22, 12, 0.3);
  z-index: 1;
}

/* Hero video placeholder */
.hero__video-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-align: center;
  border: 2px dashed rgba(255,255,255,0.12);
  margin: 2rem;
  border-radius: 8px;
  pointer-events: none;
}
.hero__video-placeholder p { margin: 0; line-height: 1.6; }
.hero__video-placeholder span { font-size: 0.78rem; opacity: 0.7; }
.hero__video-placeholder code { font-family: monospace; color: rgba(212,152,10,0.8); }

/* ── Sunflower field ──────────────────────────────────────────── */
.hero__field {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.field-flower {
  position: absolute;
  transform-origin: center bottom;
  will-change: transform;
}
.field-flower svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Grow upward entrance */
@keyframes growUp {
  from { transform: translateY(38px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Petal converge — petals fly from outside to centre */
.sf-petal-rotator { transform-origin: 0px 0px; }
.sf-petal-anim {
  animation: sfPetalIn 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes sfPetalIn {
  0%   { transform: translateY(-70px); opacity: 0; }
  65%  { transform: translateY(7px);   opacity: 1; }
  100% { transform: translateY(0px);   opacity: 1; }
}

/* Centre disc pop */
.sf-center-group {
  animation: sfCenterIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transform-origin: 0px 0px;
}
@keyframes sfCenterIn {
  0%   { transform: scale(0);    opacity: 0; }
  75%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}

/* Focus flower: petals converge to centre after growUp finishes */
/* growUp = 1.5s at delay 0.2s → done at 1.7s, stagger petals from there */
.field-flower.focus .sf-petal {
  animation: sfPetalIn 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.field-flower.focus .hf-petals > g:nth-child(1)  .sf-petal { animation-delay: 1.70s; }
.field-flower.focus .hf-petals > g:nth-child(2)  .sf-petal { animation-delay: 1.77s; }
.field-flower.focus .hf-petals > g:nth-child(3)  .sf-petal { animation-delay: 1.84s; }
.field-flower.focus .hf-petals > g:nth-child(4)  .sf-petal { animation-delay: 1.91s; }
.field-flower.focus .hf-petals > g:nth-child(5)  .sf-petal { animation-delay: 1.98s; }
.field-flower.focus .hf-petals > g:nth-child(6)  .sf-petal { animation-delay: 2.05s; }
.field-flower.focus .hf-petals > g:nth-child(7)  .sf-petal { animation-delay: 2.12s; }
.field-flower.focus .hf-petals > g:nth-child(8)  .sf-petal { animation-delay: 2.19s; }
.field-flower.focus .hf-petals > g:nth-child(9)  .sf-petal { animation-delay: 2.26s; }
.field-flower.focus .hf-petals > g:nth-child(10) .sf-petal { animation-delay: 2.33s; }
.field-flower.focus .hf-petals > g:nth-child(11) .sf-petal { animation-delay: 2.40s; }

/* Centre eases in after last petal (last petal done at 2.40 + 0.65 = 3.05s) */
.field-flower.focus .sf-center {
  animation: sfCenterIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 3.00s both;
}

@media (max-width: 560px) {
  .field-flower.bg  { display: none; }
  .field-flower.mid { display: none; }
}

/* Text — z-index 3, frosted tan panel, compact and left-anchored */
.hero__content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  margin-block: var(--space-2xl);
  margin-right: auto;
  /* pulled partway past the container's centering gap */
  margin-left: calc(-0.5 * max((100vw - var(--container-max)) / 2, 0px));
  padding: var(--space-md) var(--space-xl);
  background-color: rgba(248, 244, 238, 0.8); /* lighter warm cream */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(42, 37, 32, 0.08);
  border-radius: var(--radius-lg);
}

.hero__content h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--color-accent); /* sage green on cream */
  margin-bottom: var(--space-xs);
}
.hero__content .hero__sub {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}
.hero__content .hero__eyebrow { margin-bottom: 0.25rem; }

@media (max-width: 600px) {
  .hero__content { padding: var(--space-lg); margin-block: var(--space-xl); }
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero__sub {
  font-size: 1.15rem;
  margin-bottom: var(--space-lg);
  max-width: 55ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Scroll indicator — z-index 3 */
.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
  text-decoration: none;
}
.hero__scroll:hover { color: rgba(255,255,255,0.9); }
.hero__scroll svg { animation: bounce 2s ease-in-out infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* Sway by depth: A=far/subtle  B=mid  C=near/full */
@keyframes sfSwayA {
  0%, 100% { transform: rotate(-0.5deg); }
  50%       { transform: rotate(0.5deg);  }
}
@keyframes sfSwayB {
  0%, 100% { transform: rotate(-1.4deg); }
  50%       { transform: rotate(1.4deg);  }
}
@keyframes sfSwayC {
  0%, 100% { transform: rotate(-2.2deg); }
  50%       { transform: rotate(2.2deg);  }
}
/* Smooth sway for focus flower — starts from 0 so it eases in without a snap */
@keyframes sfSwaySmooth {
  0%        { transform: rotate(0deg);    }
  20%       { transform: rotate(-2.0deg); }
  70%       { transform: rotate(2.0deg);  }
  100%      { transform: rotate(0deg);    }
}

/* Petal rotator — static rotation per petal */
.sf-petal-rotator { transform-origin: 0px 0px; }

/* Hero flower entrance */
@keyframes heroFlowerIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── Botanical draw-on animations ─────────────────────────────
   Stroke-dashoffset animates to 0 → path draws itself like ink.
   Fill-opacity animates in after the stroke is mostly drawn.   */
@keyframes sfDrawPath {
  to { stroke-dashoffset: 0; }
}
@keyframes sfFillIn {
  from { fill-opacity: 0; }
  to   { fill-opacity: 1; }
}
@keyframes sfFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ---------- Icon animations (home trust-bar + about values) ---------- */

/* Leaf: gentle sway from base */
.icon-leaf {
  transform-origin: 50% 95%;
  animation: leafSway 3.8s ease-in-out infinite;
}
@keyframes leafSway {
  0%, 100% { transform: rotate(0deg);   }
  25%       { transform: rotate(-10deg); }
  75%       { transform: rotate(10deg);  }
}

/* Sun: slow continuous rotation */
.icon-sun {
  transform-origin: 50% 50%;
  animation: sunSpin 16s linear infinite;
}
@keyframes sunSpin {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}

/* Butterfly: wings flap from body center, occasional elegant beat */
.icon-butterfly .wing-left,
.icon-butterfly .wing-right {
  transform-origin: 50% 50%;
}
.icon-butterfly .wing-left  { animation: wingFlapLeft  2.8s ease-in-out infinite; }
.icon-butterfly .wing-right { animation: wingFlapRight 2.8s ease-in-out infinite; }
@keyframes wingFlapLeft {
  0%, 30%, 100% { transform: scaleX(1);    }
  12%            { transform: scaleX(0.1);  }
  21%            { transform: scaleX(0.85); }
}
@keyframes wingFlapRight {
  0%, 30%, 100% { transform: scaleX(1);    }
  12%            { transform: scaleX(0.1);  }
  21%            { transform: scaleX(0.85); }
}

/* Scroll-reveal (about page value cards) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal { opacity: 1; transform: none; transition: none; }
}

/* Magnifying glass: slow scan (translate left-right) */
.icon-scan {
  transform-origin: 50% 50%;
  animation: scanSweep 4s ease-in-out infinite;
}
@keyframes scanSweep {
  0%, 100% { transform: translate(0, 0) rotate(0deg);     }
  30%       { transform: translate(-3px, -2px) rotate(-6deg); }
  70%       { transform: translate(3px, 2px) rotate(6deg);  }
}

/* People: gentle breathe-together pulse */
.icon-pulse {
  transform-origin: 50% 50%;
  animation: peoplePulse 3s ease-in-out infinite;
}
@keyframes peoplePulse {
  0%, 100% { transform: scale(1);    }
  50%       { transform: scale(1.1); }
}

/* Globe: slow continuous spin */
.icon-globe {
  transform-origin: 50% 50%;
  animation: sunSpin 20s linear infinite;
}

/* ---------- Cards ---------- */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 6px 24px rgba(42,37,32,0.08);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  background-color: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
}

.card h3 {
  margin-bottom: var(--space-xs);
  color: var(--color-accent);           /* green card headings */
}
.card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ---------- Section Headings ---------- */
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-heading {
  color: var(--color-accent);           /* green headings */
  margin-bottom: var(--space-md);
}

.section-intro {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: var(--space-xl);
  max-width: 60ch;
}

/* ---------- Image Placeholders ---------- */
.img-placeholder {
  background-color: var(--color-surface-alt);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: var(--space-md);
}

/* ---------- Forms ---------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212,152,10,0.18);
}

textarea { resize: vertical; min-height: 140px; }

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--color-text);
  color: rgba(255,255,255,0.75);
  padding-block: var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__brand {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer__brand .nav__logo {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}
.footer__brand .nav__logo-text > span { color: rgba(255,255,255,0.45); }

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 34ch;
}

.footer__col h4 {
  color: var(--color-white);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.footer__col ul { display: flex; flex-direction: column; gap: var(--space-xs); }
.footer__col a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--color-white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-lg);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.footer__legal { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.footer__bottom a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer__bottom a:hover { color: var(--color-white); }
.footer__credit {
  margin-top: var(--space-md); padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.5);
}
.footer__credit a { color: rgba(255,255,255,0.78); text-decoration: underline; transition: color var(--transition); }
.footer__credit a:hover { color: var(--color-primary); }

@media (max-width: 720px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Divider / Accent Line ---------- */
.divider {
  width: 48px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 2px;
  margin-bottom: var(--space-lg);
}

/* ---------- Testimonial / Quote ---------- */
.quote-block {
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-primary);  /* yellow left border */
  padding: var(--space-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text-muted);
}
.quote-block cite {
  display: block;
  margin-top: var(--space-sm);
  font-style: normal;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text);
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---------- Section Photos (replaces img-placeholder) ---------- */
.section-photo {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  box-shadow: 0 8px 28px rgba(42,37,32,0.12);
}

/* ---------- Ken Burns drift ---------- */
.kb {
  overflow: hidden;
  position: relative;
  display: block;
}
.kb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
  animation: kenBurns 26s ease-in-out infinite alternate;
  will-change: transform;
}
.kb--rev > img { animation-name: kenBurnsRev; animation-duration: 30s; }

@keyframes kenBurns {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(1.14) translate(-2.5%, 2%); }
}
@keyframes kenBurnsRev {
  from { transform: scale(1.14) translate(2%, -1.5%); }
  to   { transform: scale(1.02) translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .kb > img { animation: none; transform: none; }
}

/* ---------- Horizontal Sticky Rail (home services) ---------- */
.hscroll {
  position: relative;
  height: 420vh; /* scroll distance that drives the horizontal motion */
  background-color: var(--color-bg);
}

.hscroll__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-lg);
  padding-block: var(--space-lg);
}

.hscroll__track {
  display: flex;
  align-items: stretch;
  gap: var(--space-lg);
  padding-inline: max(calc((100vw - var(--container-max)) / 2 + var(--space-lg)), var(--space-lg));
  will-change: transform;
}

.hcard {
  flex: 0 0 auto;
  width: min(440px, 78vw);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hcard .kb { height: 230px; border-radius: 0; }
.hcard__body { padding: var(--space-lg); display: flex; flex-direction: column; align-items: flex-start; }
.hcard__num {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}
.hcard h3 { color: var(--color-accent); margin-bottom: var(--space-xs); }
.hcard p { color: var(--color-text-muted); font-size: 0.95rem; }
.hcard .btn { font-size: 0.85rem; padding: 0.5rem 1rem; }

.hcard--cta {
  background-color: var(--color-surface);
  border-style: dashed;
  justify-content: center;
}
.hcard--cta .hcard__body { justify-content: center; flex: 1; }

.hscroll__progress {
  height: 3px;
  border-radius: 2px;
  background-color: var(--color-border);
  overflow: hidden;
}
.hscroll__progress span {
  display: block;
  height: 100%;
  width: 0%;
  background-color: var(--color-primary);
}

/* Mobile + reduced motion: unpin, native horizontal swipe with snap */
@media (max-width: 880px), (prefers-reduced-motion: reduce) {
  .hscroll { height: auto; }
  .hscroll__sticky { position: static; height: auto; overflow: visible; }
  .hscroll__track {
    overflow-x: auto;
    transform: none !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
  }
  .hcard { scroll-snap-align: center; }
  .hscroll__progress { display: none; }
}

/* ---------- Before / After Carousel ---------- */
.ba-carousel { position: relative; max-width: 880px; margin-inline: auto; }

.ba-slide { display: none; }
.ba-slide.active { display: block; animation: baFadeIn 0.45s ease; }
@keyframes baFadeIn { from { opacity: 0; } to { opacity: 1; } }

.ba-frame {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  background-color: var(--color-surface-alt);
  cursor: ew-resize;
}

.ba-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Before image clipped to the left of the divider */
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  background-color: var(--color-primary);
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232a2520' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='8 7 3 12 8 17'/%3E%3Cpolyline points='16 7 21 12 16 17'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.ba-tag {
  position: absolute;
  top: var(--space-md);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  background-color: rgba(30, 22, 12, 0.65);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.ba-tag--before { left: var(--space-md); }
.ba-tag--after  { right: var(--space-md); }

.ba-caption {
  margin-top: var(--space-sm);
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Carousel controls */
.ba-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.ba-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background: none;
  color: var(--color-accent);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), color var(--transition);
}
.ba-arrow:hover { background-color: var(--color-accent); color: var(--color-white); }

.ba-dots { display: flex; gap: 0.5rem; }
.ba-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition), transform var(--transition);
}
.ba-dot.active { background-color: var(--color-primary); transform: scale(1.25); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ============================================================
   Newsletter signup popup (injected by email-popup.js)
   ============================================================ */
.nl-overlay {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: var(--space-lg);
  background: rgba(28, 30, 18, 0.55);
  opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease;
}
.nl-overlay.open { opacity: 1; visibility: visible; }
.nl-modal {
  position: relative; width: 100%; max-width: 460px;
  background: var(--color-bg); border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px rgba(0,0,0,0.30);
  overflow: hidden; transform: translateY(16px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.nl-overlay.open .nl-modal { transform: translateY(0) scale(1); }
.nl-modal__body { padding: var(--space-xl) var(--space-xl) var(--space-lg); text-align: left; }
.nl-modal .divider { margin-bottom: var(--space-md); }
.nl-close {
  position: absolute; top: 0.6rem; right: 0.8rem; z-index: 2;
  background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer;
  color: var(--color-text-muted); transition: color var(--transition);
}
.nl-close:hover { color: var(--color-text); }
.nl-modal .section-label { display: block; margin-bottom: var(--space-xs); }
.nl-modal h2 { color: var(--color-accent); font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: var(--space-sm); }
.nl-modal p { color: var(--color-text-muted); font-size: 0.98rem; margin: 0 0 var(--space-lg); max-width: 42ch; }
.nl-form { display: flex; flex-direction: column; gap: var(--space-sm); }
.nl-form input[type="email"] {
  width: 100%; padding: 0.8rem 1rem; font-family: var(--font-body); font-size: 1rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-white); color: var(--color-text);
}
.nl-form input[type="email"]:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.nl-form .btn { width: 100%; text-align: center; }
.nl-form .nl-error { color: #b23b2e; font-size: 0.85rem; line-height: 1.3; min-height: 0; margin: 0; }
.nl-form .nl-error:empty { display: none; }
.nl-fineprint { font-size: 0.78rem; color: var(--color-text-muted); margin-top: var(--space-sm); }
.nl-fineprint a { color: var(--color-accent); text-decoration: underline; }
.nl-success { padding: var(--space-md) 0; text-align: center; }
.nl-success p { margin-inline: auto; }
.nl-success h2 { margin-bottom: var(--space-sm); }
.nl-success__check {
  width: 56px; height: 56px; margin: 0 auto var(--space-md); border-radius: 50%;
  background: var(--color-accent); color: #fff; display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   Cookie consent bar (injected by cookie-consent.js)
   ============================================================ */
.cc-bar {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%) translateY(160%);
  width: min(960px, calc(100% - 2rem)); z-index: 400;
  display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap;
  background: var(--color-bg); color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-md) var(--space-lg);
  box-shadow: 0 12px 44px rgba(0,0,0,0.18);
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.cc-bar.show { transform: translateX(-50%) translateY(0); }
.cc-bar__text { flex: 1 1 320px; margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--color-text-muted); max-width: none; }
.cc-bar__text a { color: var(--color-accent); text-decoration: underline; }
.cc-bar__text a:hover { color: var(--color-primary); }
.cc-bar__actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cc-bar .btn { padding: 0.55rem 1.35rem; font-size: 0.85rem; }
.cc-decline { background: transparent; color: var(--color-text-muted); border: 1.5px solid var(--color-border); }
.cc-decline:hover { background: var(--color-surface); color: var(--color-text); }
@media (max-width: 560px) {
  .cc-bar__actions { width: 100%; }
  .cc-bar__actions .btn { flex: 1; text-align: center; }
}
