/* Twin City Home and Garden
   Design tokens first, then base, layout, sections, motion. */

/* Fonts are self hosted (latin subset, variable weight) so nothing loads from a third party. */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/assets/fonts/fredoka-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand colour, each with one job */
  --forest: #1E3A2A;        /* trust: hero, headings, footer */
  --forest-deep: #122419;   /* depth layers and shadows */
  --forest-mist: #2A4A35;   /* far hills in the hero */
  --forest-lift: #26442F;   /* soft surfaces on green */
  --cream: #F6F0E2;         /* main light background */
  --card: #FFFBF3;          /* bubbles sitting on cream */
  --sage: #A8BFA0;          /* soft cards and dividers */
  --sage-soft: #E4EBDC;     /* icon beds */
  --leaf: #4F8A4B;          /* icons and small highlights */
  --marigold: #E8B24A;      /* calls to action only */
  --marigold-edge: #C38E2C;
  --ink: #1B2B22;           /* text on cream */
  --ink-soft: #3B4C41;
  --on-green: #F6F0E2;      /* text on green */

  --page-bg: #F6F0E2;       /* updated by main.js as you scroll */
  --focus: var(--forest-deep);

  --font-display: 'Fredoka', 'Nunito', ui-rounded, sans-serif;
  --font-body: 'Nunito', ui-rounded, sans-serif;

  --r-sm: 20px;
  --r-md: 28px;
  --r-lg: 40px;
  --r-xl: 48px;
  --r-pill: 999px;

  --shadow-soft: 0 18px 40px -20px rgba(30, 58, 42, 0.32), 0 4px 12px -6px rgba(30, 58, 42, 0.14);
  --shadow-lift: 0 30px 60px -24px rgba(30, 58, 42, 0.4), 0 8px 18px -8px rgba(30, 58, 42, 0.18);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: 16px;
  --header-h: 76px;
}

@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: var(--r-sm);
}
.hero, .cta, .site-footer, .site-header:not(.is-solid) { --focus: var(--cream); }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: var(--card); color: var(--forest);
  font-family: var(--font-display); font-weight: 600;
  padding: 12px 20px; border-radius: var(--r-pill);
  text-decoration: none; box-shadow: var(--shadow-soft);
  transition: top 0.3s var(--ease-out);
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

/* ---------- Type ---------- */
.puffy {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--forest);
  text-wrap: balance;
  text-shadow:
    0 2px 0 rgba(18, 36, 25, 0.12),
    0 4px 0 rgba(18, 36, 25, 0.05),
    0 14px 28px rgba(30, 58, 42, 0.12);
}
.puffy-light, .hero-title {
  color: var(--on-green);
  text-shadow:
    0 2px 0 #D6CCB0,
    0 5px 0 rgba(18, 36, 25, 0.45),
    0 16px 34px rgba(0, 0, 0, 0.28);
}
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; letter-spacing: 0.02em;
  color: var(--forest);
}
.eyebrow::before {
  content: ''; width: 14px; height: 14px;
  background: var(--leaf);
  border-radius: 0 100% 0 100%;
  flex: none;
}
.eyebrow-light { color: var(--sage); }
.eyebrow-light::before { background: var(--sage); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out),
    background-color 0.3s ease, border-color 0.3s ease;
}
.btn-icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.1;
  stroke-linecap: round; stroke-linejoin: round;
}
.chat-dots { stroke-width: 2.8; }

.btn-call {
  background: var(--marigold);
  color: var(--forest-deep);
  box-shadow: 0 4px 0 var(--marigold-edge), 0 14px 30px -12px rgba(232, 178, 74, 0.7);
}
.btn-call:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 0 var(--marigold-edge), 0 0 0 6px rgba(232, 178, 74, 0.18), 0 20px 40px -14px rgba(232, 178, 74, 0.8);
}
.btn-call:active {
  transform: translateY(3px) scale(0.98);
  box-shadow: 0 1px 0 var(--marigold-edge), 0 8px 18px -10px rgba(232, 178, 74, 0.6);
  transition-duration: 0.1s;
}

.btn-ghost {
  color: var(--on-green);
  border-color: rgba(246, 240, 226, 0.5);
  background: transparent;
}
.btn-ghost:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--cream);
  background: rgba(246, 240, 226, 0.08);
  box-shadow: 0 0 0 6px rgba(246, 240, 226, 0.07);
}
.btn-ghost:active { transform: translateY(2px) scale(0.98); transition-duration: 0.1s; }

.btn-sm { min-height: 48px; padding: 0 18px; font-size: 0.98rem; }
.btn-lg { min-height: 60px; padding: 0 30px; font-size: 1.15rem; }
.btn-xl { min-height: 74px; padding: 0 42px; font-size: clamp(1.25rem, 3.4vw, 1.5rem); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 10px var(--gutter);
  color: var(--on-green);
  pointer-events: none;
}
.header-bar {
  pointer-events: auto;
  max-width: 1240px; margin-inline: auto;
  min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 22px;
  border-radius: var(--r-pill);
  background: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}
.site-header.is-solid { color: var(--forest); }
.site-header.is-solid .header-bar { background: var(--card); box-shadow: var(--shadow-soft); }

.wordmark {
  display: inline-flex; flex-direction: column; gap: 2px;
  text-decoration: none; line-height: 1;
}
.wordmark-top {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.4rem; letter-spacing: -0.01em;
}
.wordmark-sub {
  font-weight: 700; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--sage);
}
.site-header.is-solid .wordmark-sub { color: var(--forest); opacity: 0.8; }

.header-nav { display: none; gap: 4px; }
.header-nav a {
  font-family: var(--font-display); font-weight: 500; font-size: 1.02rem;
  text-decoration: none; padding: 10px 16px; border-radius: var(--r-pill);
  transition: background-color 0.25s ease;
}
.header-nav a:hover { background: rgba(127, 160, 120, 0.18); }
@media (min-width: 960px) { .header-nav { display: flex; } }
@media (max-width: 400px) { .hide-xs { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--forest);
  color: var(--on-green);
  overflow: hidden;
  display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + clamp(20px, 4vh, 64px));
  padding-bottom: clamp(150px, 24vh, 250px);
}
.hero-glow {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.hero-glow-a {
  width: 720px; height: 720px; right: -220px; top: -160px;
  background: radial-gradient(circle, rgba(79, 138, 75, 0.42), rgba(79, 138, 75, 0) 66%);
}
.hero-glow-b {
  width: 560px; height: 560px; left: -200px; top: 38%;
  background: radial-gradient(circle, rgba(168, 191, 160, 0.16), rgba(168, 191, 160, 0) 68%);
}
.hero-inner {
  display: grid; gap: 40px; align-items: center; flex: 1;
}
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.7fr 0.55fr; } }

.hero-copy { max-width: 860px; }
.hero-title {
  font-weight: 700;
  font-size: clamp(2.8rem, min(8vw, 10vh), 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 14px 0 20px;
}
.hero-title-art { display: block; }
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; will-change: transform; }

.hero-lead {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: #E3E8DA;
  max-width: 40ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 520px) {
  .hero { padding-bottom: 150px; }
  .hero-scene { height: 170px; }
  .hero-actions .btn { width: 100%; }
  .hero-lead { margin-bottom: 24px; }
  .hero .trust-row { gap: 8px; margin-top: 20px; }
  .hero .trust-pill { font-size: 0.9rem; padding: 6px 14px 6px 12px; gap: 8px; }
}

.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 14px;
  border-radius: var(--r-pill);
  background: var(--forest-lift);
  border: 1px solid rgba(168, 191, 160, 0.28);
  font-weight: 700; font-size: 0.98rem;
  color: var(--on-green);
}
.pill-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(168, 191, 160, 0.18);
}

/* Floating tool bubbles beside the heading */
.hero-art { display: none; position: relative; height: 440px; }
@media (min-width: 1024px) { .hero-art { display: block; } }
.float-bubble {
  position: absolute;
  display: grid; place-items: center;
  background: var(--cream);
  border-radius: 50%;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45), inset 0 -8px 0 rgba(168, 191, 160, 0.35);
}
.float-bubble .icon { width: 58%; height: 58%; }
.fb-1 { width: 190px; height: 190px; top: 20px; right: 10px; animation: drift 9s ease-in-out infinite; }
.fb-2 { width: 140px; height: 140px; top: 210px; left: 0; animation: drift 11s ease-in-out -4s infinite; }
.fb-3 { width: 116px; height: 116px; top: 300px; right: 30px; animation: drift 10s ease-in-out -7s infinite; }

/* Layered grass scene */
.hero-scene {
  position: absolute; inset: auto 0 0 0;
  height: clamp(170px, 30vh, 300px);
  pointer-events: none;
}
.scene-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-far { fill: var(--forest-mist); }
.scene-mid { fill: var(--forest-deep); }
.scene-mid .scene-highlight { fill: var(--leaf); opacity: 0.5; }
.scene-mid .sprig { fill: var(--leaf); }
.sprig-stem { fill: none; stroke: var(--leaf); stroke-width: 3; stroke-linecap: round; }
.scene-front { fill: var(--page-bg); height: calc(100% + 2px); }

.sway {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: sway 7s ease-in-out infinite alternate;
}
.sway-2 { animation-duration: 9s; animation-delay: -3s; }
.sway-3 { animation-duration: 11s; animation-delay: -6s; }

/* ---------- Section shell ---------- */
.section {
  position: relative;
  overflow-x: clip;
  padding-block: clamp(88px, 11vw, 150px) clamp(56px, 7vw, 96px);
}
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { margin: 14px 0 16px; }
.section-head.center, .why .section-head, .areas .section-head, .reviews .section-head, .gallery .section-head {
  margin-inline: auto; text-align: center;
}
.section-lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 46ch; }
.why .section-lead, .areas .section-lead { margin-inline: auto; }

.blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.blob-services {
  width: 640px; height: 640px; right: -260px; top: 4%;
  background: radial-gradient(circle, rgba(168, 191, 160, 0.5), rgba(168, 191, 160, 0) 68%);
}
.blob-why {
  width: 700px; height: 700px; left: -300px; top: 22%;
  background: radial-gradient(circle, rgba(79, 138, 75, 0.2), rgba(79, 138, 75, 0) 66%);
}

/* Next section cue */
.next-cue {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  width: fit-content;
  margin: clamp(56px, 8vw, 96px) auto 0;
  min-height: 52px; padding: 8px 8px 8px 22px;
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--forest);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  animation: bob 3.2s ease-in-out infinite;
  transition: box-shadow 0.3s ease;
}
.next-cue:hover { box-shadow: var(--shadow-lift); }
.next-arrow {
  width: 36px; height: 36px; padding: 8px;
  border-radius: 50%;
  background: var(--forest); color: var(--cream);
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.hero .next-cue {
  position: absolute; left: 50%; bottom: clamp(18px, 4vh, 36px);
  margin: 0; translate: -50% 0;
  --focus: var(--forest-deep);
}

/* ---------- Icons (custom line set) ---------- */
.icon {
  fill: none; stroke: var(--forest); stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round;
  overflow: visible;
}
.ic-soft { fill: var(--sage); }
.ic-cream, .ic-sun { fill: var(--card); }
.ic-leaf { fill: var(--leaf); }
.ic-mist { stroke: var(--leaf); stroke-width: 3.4; }
.ic-mistfill { fill: var(--sage); opacity: 0.55; stroke: none; }
.ic-grass, .ic-hose, .ic-sparkle { stroke: var(--leaf); }
.ic-thick { stroke-width: 6.5; }
.ic-grip { stroke: var(--leaf); stroke-width: 6.5; }

/* ---------- Services ---------- */
.service-grid { display: grid; gap: 22px; }
@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .service-card:nth-child(even) { margin-top: 44px; }
}
@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .service-card:nth-child(even) { margin-top: 0; }
  .service-card:nth-child(3n+2) { margin-top: 64px; }
  .service-card:nth-child(3n) { margin-top: 24px; }
}
.service-card {
  position: relative;
  background: var(--card);
  border-radius: var(--r-xl);
  padding: 30px 30px 34px;
  box-shadow: var(--shadow-soft);
  transition: opacity 0.75s var(--ease-out) var(--d, 0ms), transform 0.75s var(--ease-out) var(--d, 0ms),
    translate 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-out);
}
.service-card:hover { translate: 0 -8px; box-shadow: var(--shadow-lift); }
.service-card h3 { color: var(--forest); margin: 22px 0 8px; }
.service-card p { color: var(--ink-soft); font-size: 1.06rem; }
.service-icon {
  width: 96px; height: 96px;
  display: grid; place-items: center;
  background: var(--sage-soft);
  border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%;
}
.service-icon .icon { width: 64px; height: 64px; }
.service-card:hover .service-icon .icon,
.service-card:focus-within .service-icon .icon { animation: wiggle 0.7s var(--ease-out); }

/* ---------- Gallery (hidden until photos exist) ---------- */
.gallery-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item { background: var(--card); border-radius: var(--r-xl); padding: 14px; box-shadow: var(--shadow-soft); }
.gallery-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery-frame { position: relative; margin: 0; }
.gallery-frame img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-lg); background: var(--sage-soft);
}
.gallery-frame figcaption {
  position: absolute; left: 12px; top: 12px;
  background: var(--card); color: var(--forest);
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  padding: 4px 12px; border-radius: var(--r-pill);
}
.gallery-caption { padding: 14px 10px 6px; font-weight: 700; color: var(--forest); }

/* ---------- Why choose us ---------- */
.why-grid { display: grid; gap: 22px; max-width: 1120px; margin-inline: auto; }
@media (min-width: 900px) {
  .why-grid { grid-template-columns: 1fr 1.08fr 1fr; align-items: start; gap: 26px; }
  .why-sage { margin-top: 70px; }
  .why-cream { margin-top: 20px; }
}
.why-bubble {
  position: relative;
  padding: 44px 36px 46px;
  border-radius: 56px 56px 56px 56px / 60px 60px 52px 52px;
  box-shadow: var(--shadow-soft);
  transition: opacity 0.75s var(--ease-out) var(--d, 0ms), transform 0.75s var(--ease-out) var(--d, 0ms);
}
.why-bubble h3 { margin: 14px 0 10px; }
.why-forest { background: var(--forest); color: var(--on-green); rotate: -1.2deg; }
.why-forest p:not(.why-figure) { color: #DCE3D3; }
.why-sage { background: var(--sage); color: var(--ink); }
.why-cream { background: var(--card); color: var(--ink); rotate: 1deg; }
.why-sage h3, .why-cream h3 { color: var(--forest); }
.why-figure {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.4rem, 7vw, 5.4rem);
  line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 3px 0 rgba(18, 36, 25, 0.14);
}
.why-forest .why-figure { text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }
.why-plus { color: var(--forest); margin-left: 2px; }

/* ---------- Areas ---------- */
.areas-wrap { text-align: center; }
.areas-blob {
  position: relative;
  max-width: 900px; margin-inline: auto;
  background: var(--sage);
  padding: clamp(48px, 7vw, 80px) clamp(22px, 6vw, 72px);
  border-radius: 40px;
  box-shadow: inset 0 -10px 0 rgba(30, 58, 42, 0.08), var(--shadow-soft);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
@media (min-width: 768px) {
  .areas-blob {
    border-radius: 150px 210px 170px 230px / 170px 150px 220px 160px;
    animation: morph 20s ease-in-out infinite alternate;
  }
}
.areas-sprig {
  position: absolute; width: 96px; height: 96px; right: 6%; top: -38px;
  fill: none; rotate: 8deg;
}
.areas-sprig .sprig-stem { stroke: var(--forest); }
.suburb-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 30px; }
.suburb-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); color: var(--forest);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  padding: 12px 24px 12px 18px;
  border-radius: var(--r-pill);
  box-shadow: 0 4px 0 rgba(30, 58, 42, 0.14);
  transition: translate 0.35s var(--ease-spring);
}
.suburb-pill::before {
  content: ''; width: 12px; height: 12px; flex: none;
  background: var(--leaf); border-radius: 0 100% 0 100%;
}
.suburb-pill:hover { translate: 0 -3px; }
.areas-note { font-weight: 700; color: var(--forest-deep); max-width: 40ch; margin: 0 auto 26px; }

/* ---------- Reviews (hidden until reviews exist) ---------- */
.review-grid { display: grid; gap: 22px; }
@media (min-width: 768px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
  background: var(--card); border-radius: var(--r-xl);
  padding: 34px 32px; box-shadow: var(--shadow-soft);
  transition: opacity 0.75s var(--ease-out) var(--d, 0ms), transform 0.75s var(--ease-out) var(--d, 0ms);
}
.review-card blockquote { margin: 0 0 18px; font-size: 1.1rem; }
.review-card blockquote::before {
  content: '\201C'; display: block; height: 0.6em;
  font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--sage);
}
.review-name { font-family: var(--font-display); font-weight: 600; color: var(--forest); }
.review-suburb { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Closing call to action ---------- */
.cta {
  position: relative;
  overflow-x: clip;
  margin-top: clamp(90px, 11vw, 170px);
  background: var(--forest);
  color: var(--on-green);
  padding-block: clamp(70px, 9vw, 120px) clamp(110px, 13vw, 170px);
  text-align: center;
}
.cta-hills {
  position: absolute; left: 0; bottom: calc(100% - 1px);
  width: 100%; height: clamp(90px, 11vw, 170px);
  pointer-events: none;
}
.hill-back { fill: var(--sage); }
.hill-mid { fill: var(--leaf); }
.hill-front { fill: var(--forest); }
.cta-glow {
  position: absolute; left: 50%; top: 40%; width: 900px; height: 600px;
  translate: -50% -50%; pointer-events: none;
  background: radial-gradient(ellipse, rgba(79, 138, 75, 0.35), rgba(79, 138, 75, 0) 65%);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta .puffy { font-size: clamp(2.6rem, 7vw, 5.2rem); margin: 16px 0 18px; }
.cta-lead { text-wrap: pretty; font-size: 1.2rem; color: #E3E8DA; max-width: 50ch; margin-bottom: 38px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.cta-small { margin-top: 26px; color: var(--sage); font-weight: 600; }
@media (max-width: 520px) { .cta-actions .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--forest-deep);
  color: var(--on-green);
  padding: 40px 0 120px;
}
@media (min-width: 768px) { .site-footer { padding-bottom: 48px; } }
.footer-hill {
  position: absolute; left: 0; bottom: calc(100% - 1px);
  width: 100%; height: clamp(40px, 5vw, 80px);
  fill: var(--forest-deep);
}
.footer-inner { display: grid; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(168, 191, 160, 0.2); }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.wordmark-footer .wordmark-top { font-size: 1.9rem; }
.footer-tag { margin-top: 14px; color: var(--sage); }
.footer-head {
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 12px;
}
.footer-links li + li { margin-top: 6px; }
.footer-links a, .to-top {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; text-decoration-color: rgba(168, 191, 160, 0.6);
  text-underline-offset: 5px; text-decoration-thickness: 2px;
}
.footer-links a:hover, .to-top:hover { text-decoration-color: var(--cream); }
.footer-areas { color: #DCE3D3; }
.footer-base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 20px; font-size: 0.98rem; color: var(--sage);
}
@media (min-width: 768px) { .footer-base { padding-right: calc(var(--gutter) + 190px); } }

/* ---------- Floating actions ---------- */
.float-actions {
  position: fixed; z-index: 60;
  left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--forest-deep);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -12px 30px -12px rgba(0, 0, 0, 0.4);
  translate: 0 120%;
  transition: translate 0.6s var(--ease-spring), visibility 0s linear 0.6s;
  visibility: hidden;
  --focus: var(--cream);
}
.float-actions.is-visible {
  translate: 0 0; visibility: visible;
  transition: translate 0.6s var(--ease-spring), visibility 0s;
}
.float-actions a {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}
.float-actions a:active { transform: scale(0.96); }
.float-call { background: var(--marigold); color: var(--forest-deep); box-shadow: 0 3px 0 var(--marigold-edge); }
.float-fb { background: var(--forest-lift); color: var(--on-green); border: 1px solid rgba(168, 191, 160, 0.3); }

@media (min-width: 768px) {
  .float-actions {
    left: auto; right: 24px; bottom: 24px;
    display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
    padding: 0; background: none; border-radius: 0; box-shadow: none;
    translate: 0 calc(100% + 40px);
  }
  .float-call {
    min-height: 66px !important; padding: 0 28px 0 22px; font-size: 1.15rem !important;
    box-shadow: 0 4px 0 var(--marigold-edge), 0 18px 40px -12px rgba(30, 58, 42, 0.55);
  }
  .float-call:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 6px 0 var(--marigold-edge), 0 0 0 7px rgba(232, 178, 74, 0.2), 0 22px 44px -12px rgba(30, 58, 42, 0.55); }
  .float-fb {
    min-height: 52px !important; padding: 0 20px 0 16px;
    background: var(--card); color: var(--forest); border: 0;
    box-shadow: var(--shadow-soft);
  }
  .float-fb:hover { transform: translateY(-2px) scale(1.04); }
  .float-call .btn-icon { animation: ring 4s ease-in-out 1.5s infinite; }
}

/* ---------- Progress dots ---------- */
.progress-dots {
  position: fixed; right: 18px; top: 50%; z-index: 40;
  translate: 0 -50%;
  display: none; flex-direction: column; gap: 4px;
  padding: 8px 4px;
  background: var(--card);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
  opacity: 0; transition: opacity 0.4s ease;
}
.progress-dots.is-visible { opacity: 1; }
@media (min-width: 1100px) { .progress-dots { display: flex; } }
.dot {
  position: relative;
  width: 28px; height: 28px; padding: 0;
  border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.dot::before {
  content: ''; width: 10px; height: 10px; border-radius: var(--r-pill);
  background: var(--sage);
  transition: height 0.4s var(--ease-spring), background-color 0.3s ease;
}
.dot.is-active::before { height: 22px; background: var(--forest); }
.dot-label {
  position: absolute; right: calc(100% + 12px); top: 50%; translate: 0 -50%;
  white-space: nowrap; pointer-events: none;
  background: var(--forest); color: var(--cream);
  font-family: var(--font-display); font-weight: 500; font-size: 0.9rem;
  padding: 4px 12px; border-radius: var(--r-pill);
  opacity: 0; transition: opacity 0.25s ease, translate 0.25s var(--ease-out);
}
.dot:hover .dot-label, .dot:focus-visible .dot-label { opacity: 1; translate: -4px -50%; }

/* ---------- Motion: entrance and reveals ---------- */
.js .hero-title-art:not(.is-split) { opacity: 0; animation: appear 0.01s 1.2s forwards; }
.js .char {
  opacity: 0;
  transform: translateY(0.45em) scale(0.4);
  animation: pop 0.7s var(--ease-spring) forwards;
  animation-delay: calc(var(--i, 0) * 18ms + 120ms);
}
.js .hero-fade { opacity: 0; animation: fade-up 0.8s var(--ease-out) forwards; }
.js .hero-fade[data-step="0"] { animation-delay: 0.05s; }
.js .hero-fade[data-step="1"] { animation-delay: 0.65s; }
.js .hero-fade[data-step="2"] { animation-delay: 0.8s; }
.js .hero-fade[data-step="3"] { animation-delay: 0.95s; }
.js .hero-scene { animation: rise 1.1s var(--ease-out) 0.1s both; }
.js .hero-art { animation: fade-in 1s ease 0.5s both; }

.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal:not(.service-card):not(.why-bubble):not(.review-card):not(.areas-blob) {
  transition: opacity 0.75s var(--ease-out) var(--d, 0ms), transform 0.75s var(--ease-out) var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes pop {
  0% { opacity: 0; transform: translateY(0.45em) scale(0.4); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes appear { to { opacity: 1; } }
@keyframes rise { from { transform: translateY(70px); } to { transform: none; } }
@keyframes sway { from { transform: skewX(-2.4deg); } to { transform: skewX(2.6deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(-2deg); } 50% { transform: translate(0, -14px) rotate(2deg); } }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-7deg); }
  55% { transform: rotate(6deg); }
  80% { transform: rotate(-2deg); }
}
@keyframes ring {
  0%, 88%, 100% { transform: rotate(0); }
  91% { transform: rotate(-12deg); }
  94% { transform: rotate(10deg); }
  97% { transform: rotate(-6deg); }
}
@keyframes morph {
  from { border-radius: 150px 210px 170px 230px / 170px 150px 220px 160px; }
  to { border-radius: 220px 160px 230px 150px / 150px 210px 160px 200px; }
}

/* ---------- Reduced motion: fades only, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
  }
  .sway, .next-cue, .float-bubble, .areas-blob, .float-call .btn-icon { animation: none !important; }
  .js .char, .js .hero-fade, .js .hero-title-art:not(.is-split) { opacity: 1; transform: none; animation: none; }
  .js .hero-scene, .js .hero-art { animation: none; }
  .js .reveal { transform: none; }
  .js .reveal, .service-card, .why-bubble, .review-card, .areas-blob {
    transition: opacity 0.6s ease var(--d, 0ms) !important;
  }
  .btn:hover, .btn:active, .service-card:hover, .float-actions a:hover { transform: none; translate: none; }
}
