/* ==========================================================================
   Bryden's Garden Care – Design tokens & base
   ========================================================================== */
:root {
  /* Colors */
  --bg-primary: #212227;
  --accent-primary: #499F68;
  --accent-secondary: #77B28C;
  --accent-tertiary: #3E92CC;
  --bg-services: #e8f2ec;
  --text-on-dark: #f0f4f1;
  --text-on-light: #1a1c1e;
  --text-muted: #5c6360;
  --white: #ffffff;
  /* Typography */
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  /* Spacing & layout */
  --container: min(92vw, 1200px);
  --section-padding: clamp(3rem, 8vw, 6rem);
  --header-height: 6.5rem;
  --header-height-scrolled: 4.5rem;
  /* Logo – change these to resize; rebrand-friendly sizes so logo doesn’t look oversized or stretched */
  --logo-height: 3.25rem;
  --logo-height-scrolled: 2.75rem;
  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  /* Parallax */
  --parallax-perspective: 1200px;
}

/* Site dark mode – applied when [data-theme="dark"] on html */
[data-theme="dark"] {
  --bg-primary: #0d0f11;
  --bg-services: #161a1e;
  --text-on-dark: #e8ecef;
  --text-on-light: #e4e8ec;
  --text-muted: #9ca3af;
}
[data-theme="dark"] body { background: var(--bg-primary); color: var(--text-on-dark); }
[data-theme="dark"] .header { background: rgba(13, 15, 17, 0.95); border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .page-content,
[data-theme="dark"] .services,
[data-theme="dark"] .testimonials { background: var(--bg-services); color: var(--text-on-light); }
[data-theme="dark"] .page-content h2,
[data-theme="dark"] .section-title { color: var(--accent-secondary); }
[data-theme="dark"] .page-content p,
[data-theme="dark"] .page-content li,
[data-theme="dark"] .section-intro { color: var(--text-on-light); }
[data-theme="dark"] .page-hero { background: var(--bg-primary); color: var(--text-on-dark); }
[data-theme="dark"] .page-hero__title,
[data-theme="dark"] .page-hero__subtitle { color: var(--text-on-dark); }
[data-theme="dark"] .side-menu { background: #0d0f11; }
[data-theme="dark"] .logo {
  border-color: rgba(255, 255, 255, 0.2);
  background: #fff;
}
[data-theme="dark"] .menu-toggle { color: #fff; }
[data-theme="dark"] .side-menu__logo {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
}
[data-theme="dark"] .gallery,
[data-theme="dark"] .map-section { background: var(--bg-services); }
[data-theme="dark"] .footer { background: var(--accent-primary); }
[data-theme="dark"] .service-card,
[data-theme="dark"] .content-block { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .quote-input,
[data-theme="dark"] .date-picker__popover { background: #1e2329; border-color: rgba(255,255,255,0.1); color: var(--text-on-light); }
[data-theme="dark"] .quote-input:focus {
  box-shadow: inset 0 1px 3px rgba(73, 159, 104, 0.2), 0 0 0 3px rgba(73, 159, 104, 0.2), 0 0 28px 4px rgba(73, 159, 104, 0.35);
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  background: var(--accent-primary); /* no dark strip below footer */
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-on-dark);
  background: var(--bg-primary);
  overflow-x: hidden;
}

/* Text selection highlight
   - Default: green highlight on light/dark backgrounds
   - On green sections: neutral grey highlight for contrast */
::selection {
  background: rgba(73, 159, 104, 0.45); /* accent green */
  color: #0d1f12;
}
::-moz-selection {
  background: rgba(73, 159, 104, 0.45);
  color: #0d1f12;
}

.services ::selection,
.testimonials ::selection,
.page-content ::selection,
.footer ::selection {
  background: #111827; /* dark grey on green backgrounds */
  color: #f9fafb;
}
.services ::-moz-selection,
.testimonials ::-moz-selection,
.page-content ::-moz-selection,
.footer ::-moz-selection {
  background: #111827;
  color: #f9fafb;
}

/* Scroll reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="fade"] { transform: none; }
[data-reveal="fade"].is-revealed { transform: none; }
[data-reveal="scale"] { transform: translateY(24px) scale(0.97); }
[data-reveal="scale"].is-revealed { transform: translateY(0) scale(1); }
.services__grid > li:nth-child(1) { transition-delay: 0ms; }
.services__grid > li:nth-child(2) { transition-delay: 60ms; }
.services__grid > li:nth-child(3) { transition-delay: 120ms; }
.services__grid > li:nth-child(4) { transition-delay: 180ms; }
.services__grid > li:nth-child(5) { transition-delay: 240ms; }
.services__grid > li:nth-child(6) { transition-delay: 300ms; }
.services__grid > li:nth-child(7) { transition-delay: 360ms; }
.services__grid > li:nth-child(8) { transition-delay: 420ms; }
.services__grid > li:nth-child(9) { transition-delay: 480ms; }
.services__grid > li:nth-child(10) { transition-delay: 540ms; }
.timeline__track > .timeline__item:nth-child(1) { transition-delay: 0ms; }
.timeline__track > .timeline__item:nth-child(2) { transition-delay: 60ms; }
.timeline__track > .timeline__item:nth-child(3) { transition-delay: 120ms; }
.timeline__track > .timeline__item:nth-child(4) { transition-delay: 180ms; }

/* High contrast & reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .loader { opacity: 1; animation: none; }
  .services__marquee-track { animation: none; }
}

/* ==========================================================================
   Page loader (From Uiverse.io by Pradeepsaranbishnoi)
   ========================================================================== */
.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FDF5E6; /* cream – matches lens reveal */
  transition: opacity 0.4s var(--ease-in-out), visibility 0.4s;
}
.loader-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader {
  width: 200px;
  height: 200px;
  perspective: 200px;
  opacity: 0;
  animation: loader-fade-in 0.5s ease-out forwards;
}
@keyframes loader-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.loader .dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  margin-top: -60px;
  margin-left: -60px;
  border-radius: 100px;
  border: 40px outset #1e3f57;
  transform-origin: 50% 50%;
  transform: rotateX(24deg) rotateY(20deg) rotateZ(0deg) translateZ(-25px);
  background-color: transparent;
  animation: dot1 1000ms cubic-bezier(.49,.06,.43,.85) infinite;
}
.loader .dot:nth-child(2) {
  width: 140px;
  height: 140px;
  margin-top: -70px;
  margin-left: -70px;
  border-width: 30px;
  border-color: #447891;
  animation-name: dot2;
  animation-delay: 75ms;
  box-shadow: inset 0 0 15px 0 rgba(0, 0, 0, 0.1);
  transform: rotateX(24deg) rotateY(20deg) rotateZ(0deg) translateZ(-25px);
}
.loader .dot:nth-child(3) {
  width: 160px;
  height: 160px;
  margin-top: -80px;
  margin-left: -80px;
  border-width: 20px;
  border-color: #6bb2cd;
  animation-name: dot3;
  animation-delay: 150ms;
  box-shadow: inset 0 0 15px 0 rgba(0, 0, 0, 0.1);
  transform: rotateX(24deg) rotateY(20deg) rotateZ(0deg) translateZ(-25px);
}
@keyframes dot1 {
  0% {
    border-color: #1e3f57;
    transform: rotateX(24deg) rotateY(20deg) rotateZ(0deg) translateZ(-25px);
  }
  50% {
    border-color: #1e574f;
    transform: rotateX(20deg) rotateY(20deg) rotateZ(50deg) translateZ(0px);
  }
  100% {
    border-color: #1e3f57;
    transform: rotateX(24deg) rotateY(20deg) rotateZ(0deg) translateZ(-25px);
  }
}
@keyframes dot2 {
  0% {
    border-color: #447891;
    box-shadow: inset 0 0 15px 0 rgba(255, 255, 255, 0.2);
    transform: rotateX(24deg) rotateY(20deg) rotateZ(0deg) translateZ(-25px);
  }
  50% {
    border-color: #449180;
    box-shadow: inset 0 0 15px 0 rgba(0, 0, 0, 0.8);
    transform: rotateX(20deg) rotateY(20deg) rotateZ(50deg) translateZ(0px);
  }
  100% {
    border-color: #447891;
    box-shadow: inset 0 0 15px 0 rgba(255, 255, 255, 0.2);
    transform: rotateX(24deg) rotateY(20deg) rotateZ(0deg) translateZ(-25px);
  }
}
@keyframes dot3 {
  0% {
    border-color: #6bb2cd;
    box-shadow: inset 0 0 15px 0 rgba(0, 0, 0, 0.1);
    transform: rotateX(24deg) rotateY(20deg) rotateZ(0deg) translateZ(-25px);
  }
  50% {
    border-color: #6bcdb2;
    box-shadow: inset 0 0 15px 0 rgba(0, 0, 0, 0.8);
    transform: rotateX(20deg) rotateY(20deg) rotateZ(50deg) translateZ(0px);
  }
  100% {
    border-color: #6bb2cd;
    box-shadow: inset 0 0 15px 0 rgba(0, 0, 0, 0.1);
    transform: rotateX(24deg) rotateY(20deg) rotateZ(0deg) translateZ(-25px);
  }
}

/* Lens circle reveal – cream overlay with expanding/contracting circle */
.lens-overlay {
  --lens-radius: 0px;
  --lens-x: 50%;
  --lens-y: 50%;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #FDF5E6; /* cream */
  pointer-events: none;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-mask-image: radial-gradient(
    circle at var(--lens-x) var(--lens-y),
    transparent 0,
    transparent var(--lens-radius),
    black var(--lens-radius) 100%
  );
  mask-image: radial-gradient(
    circle at var(--lens-x) var(--lens-y),
    transparent 0,
    transparent var(--lens-radius),
    black var(--lens-radius) 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  transition: opacity 0.3s ease;
}
.lens-overlay.is-closing {
  pointer-events: auto;
  z-index: 10003;
  opacity: 1;
  transition: none;
}
.lens-overlay.is-revealed {
  opacity: 0;
  pointer-events: none;
}

/* Dark mode: lens and loader use dark background so reveal matches theme */
[data-theme="dark"] .lens-overlay { background: var(--bg-primary); }
[data-theme="dark"] .loader-overlay { background: var(--bg-primary); }
/* Dark mode: cream center in the loading animation – smaller, moves with the rings */
[data-theme="dark"] .loader {
  position: relative;
  transform-style: preserve-3d;
}
[data-theme="dark"] .loader::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  margin-top: -28px;
  background: #FDF5E6;
  border-radius: 50%;
  z-index: 0;
  transform-origin: 50% 50%;
  transform: rotateX(24deg) rotateY(20deg) rotateZ(0deg) translateZ(-25px);
  animation: loader-cream-center 1000ms cubic-bezier(0.49, 0.06, 0.43, 0.85) infinite;
}
@keyframes loader-cream-center {
  0%, 100% {
    transform: rotateX(24deg) rotateY(20deg) rotateZ(0deg) translateZ(-25px);
  }
  50% {
    transform: rotateX(20deg) rotateY(20deg) rotateZ(50deg) translateZ(0px);
  }
}
[data-theme="dark"] .loader .dot { z-index: 1; }

/* Custom text selection highlight
   - Default: green highlight
   - On green sections: soft grey for contrast */
::selection {
  background: rgba(73, 159, 104, 0.45);
  color: #0d1f12;
}
::-moz-selection {
  background: rgba(73, 159, 104, 0.45);
  color: #0d1f12;
}
.services ::selection,
.testimonials ::selection,
.page-content ::selection,
.footer ::selection {
  background: #d1d5db;
  color: #111827;
}
.services ::-moz-selection,
.testimonials ::-moz-selection,
.page-content ::-moz-selection,
.footer ::-moz-selection {
  background: #d1d5db;
  color: #111827;
}

/* ==========================================================================
   Custom cursor – dot + trailing ring (piggyplex-style), desktop only
   ========================================================================== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 100005;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  transition: transform 0.15s var(--ease-in-out), background 0.2s, border-color 0.2s;
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-primary);
  background: transparent;
  transition: width 0.25s var(--ease-out-expo), height 0.25s var(--ease-out-expo),
              border-color 0.2s, border-width 0.2s, transform 0.25s var(--ease-out-expo);
}
body.cursor-on-green .cursor-dot {
  background: #000;
}
body.cursor-on-green .cursor-ring {
  border-color: #000;
}
body.cursor-hover .cursor-dot,
body.cursor-click .cursor-dot {
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0.7;
}
body.cursor-on-green.cursor-hover .cursor-dot,
body.cursor-on-green.cursor-click .cursor-dot {
  background: #000;
}
body.cursor-hover .cursor-ring,
body.cursor-click .cursor-ring {
  width: 52px;
  height: 52px;
  border-color: var(--accent-tertiary);
  border-width: 1px;
}
body.cursor-on-green.cursor-hover .cursor-ring,
body.cursor-on-green.cursor-click .cursor-ring {
  border-color: #000;
}

/* Custom cursor: show on desktop (min-width or hover), hide only on touch */
.cursor-dot, .cursor-ring { display: block; visibility: visible; }
@media (min-width: 769px) {
  .cursor-dot, .cursor-ring { display: block !important; visibility: visible !important; }
}
/* When user turns cursor off: hide dot/ring and show system cursor */
body.cursor-disabled .cursor-dot,
body.cursor-disabled .cursor-ring {
  display: none !important;
  visibility: hidden !important;
}
/* Hide custom cursor on mobile viewport */
@media (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none !important; visibility: hidden !important; }
}
/* Hide cursor only on touch devices */
@media (hover: none) and (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* Cursor on/off toggle – now in sidebar only; hide legacy floating toolbar */
.cursor-toggle-wrap {
  display: none !important;
  position: fixed;
  left: 1.25rem;
  bottom: 1.5rem;
  z-index: 9999;
  flex-direction: column;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  border: 1px solid rgba(26, 28, 30, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.cursor-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-on-light);
}
.cursor-toggle-eyedropper {
  height: 1.75rem;
  width: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 1;
}
.cursor-toggle-label__text { user-select: none; }
.cursor-toggle__checkbox {
  display: none;
}
.cursor-toggle__slider {
  width: 60px;
  height: 30px;
  background-color: #d1d5db;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border: 4px solid transparent;
  transition: 0.3s;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25) inset;
  flex-shrink: 0;
}
.cursor-toggle__slider::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: #fff;
  transform: translateX(-30px);
  border-radius: 20px;
  transition: 0.3s;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.25);
}
.cursor-toggle__checkbox:checked ~ .cursor-toggle__slider::before {
  transform: translateX(30px);
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.25);
}
.cursor-toggle__checkbox:checked ~ .cursor-toggle__slider {
  background-color: var(--accent-primary);
}
.cursor-toggle__checkbox:active ~ .cursor-toggle__slider::before {
  transform: translate(0);
}
@media (max-width: 768px) {
  .cursor-toggle-wrap { display: none !important; }
}
@media (hover: none) and (pointer: coarse) {
  .cursor-toggle-wrap { display: none !important; }
}

/* Toolbar in site dark mode: dark panel so label text stays readable */
[data-theme="dark"] .cursor-toggle-wrap {
  background: var(--bg-services);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .cursor-toggle-label,
[data-theme="dark"] .cursor-toggle-label__text,
[data-theme="dark"] .site-theme-row__label { color: var(--text-on-dark); }
[data-theme="dark"] .site-theme-row { border-top-color: rgba(255, 255, 255, 0.12); }

/* Dark mode row in same toolbar */
.site-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(26, 28, 30, 0.1);
}
.site-theme-row__label { font-size: 0.875rem; font-weight: 500; color: var(--text-on-light); user-select: none; }
.site-theme-toggle {
  width: 52px;
  height: 26px;
  background: #d1d5db;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease;
  flex-shrink: 0;
}
.site-theme-toggle::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.25s var(--ease-out-expo);
}
.site-theme-toggle[aria-pressed="true"] { background: var(--accent-primary); }
.site-theme-toggle[aria-pressed="true"]::before { transform: translateX(26px); }

/* ==========================================================================
   Skip link & accessibility
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10001;
  padding: 0.75rem 1.25rem;
  background: var(--accent-primary);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; outline: 2px solid var(--white); outline-offset: 2px; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: height 0.3s var(--ease-out-expo);
}
.header--scrolled {
  height: var(--header-height-scrolled);
}
.header--scrolled .logo__img {
  height: var(--logo-height-scrolled);
}
.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}
.logo__img {
  height: var(--logo-height);
  width: auto;
  max-width: min(200px, 45vw);
  display: block;
  object-fit: contain;
  object-position: left center;
  transition: height 0.3s var(--ease-out-expo);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.header__btn:hover { transform: translateY(-1px); }
.header__btn--contact {
  background: transparent;
  color: var(--text-on-light);
  border: 2px solid var(--accent-primary);
}
.header__btn--contact:hover { background: rgba(73, 159, 104, 0.08); }
.header__btn--quote {
  background: var(--accent-primary);
  color: #000;
}
.header__btn--quote:hover { background: #3d8a58; }
@media (max-width: 600px) {
  .header__actions { display: none; }
}
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__link {
  color: var(--text-on-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav__link--cta {
  padding: 0.5rem 1rem;
  background: var(--accent-primary);
  color: var(--white);
  border-radius: 0.375rem;
}
/* Side menu (hamburger) – Pristine Digital style, visible on desktop and mobile */
.nav { display: none; }
.menu-toggle {
  display: flex !important;
  visibility: visible !important;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #000;
  cursor: pointer;
  transition: transform 0.2s;
}
.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 3px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
/* Force hamburger visible on desktop */
@media (min-width: 769px) {
  .header .menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--bg-primary);
  z-index: 10002;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out-expo);
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}
.side-menu.is-open { transform: translateX(0); }
.side-menu[aria-hidden="false"] { transform: translateX(0); }
.side-menu__inner { padding: 2rem 1.5rem; }
.side-menu__logo {
  display: block;
  margin-bottom: 2rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: #f2f2f2;
  border: 1px solid rgba(0, 0, 0, 0.12);
  width: fit-content;
}
.side-menu__logo-img {
  height: 2.25rem;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.side-menu__nav { display: flex; flex-direction: column; gap: 1.5rem; }
.side-menu__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}
.side-menu__list { list-style: none; margin: 0; padding: 0; }
.side-menu__link {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-on-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.side-menu__link:hover { color: var(--accent-primary); }
.side-menu__group--contact { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
.side-menu__cursor-row { margin-top: 1rem; }
.side-menu__theme-row { margin-top: 0.5rem; }
.side-menu .site-theme-row__label { color: var(--text-on-dark); }
.side-menu__contact { margin: 0.25rem 0; font-size: 0.95rem; }
.side-menu__contact a { color: var(--accent-tertiary); text-decoration: none; }
.side-menu__contact a:hover { text-decoration: underline; }
.side-menu__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.side-menu__backdrop.is-visible { opacity: 1; visibility: visible; }

/* ==========================================================================
   Container
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Inner page layout (compact hero + content)
   ========================================================================== */
.page-hero {
  padding: calc(var(--header-height) + 3rem) 1.5rem 2.5rem;
  background: var(--bg-primary);
  text-align: center;
}
.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-on-dark);
  margin: 0 0 0.5rem;
}
.page-hero__subtitle {
  font-size: 1.1rem;
  color: rgba(240, 244, 241, 0.85);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.page-content {
  padding: var(--section-padding) 0;
  background: var(--bg-services);
  color: var(--text-on-light);
}
.page-content .container {
  max-width: 720px;
}
.page-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin: 2rem 0 0.75rem;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p { margin: 0 0 1rem; color: var(--text-on-light); }
.page-content ul { margin: 0 0 1rem; padding-left: 1.5rem; color: var(--text-on-light); }
.page-content ul li { margin-bottom: 0.5rem; }
.page-content a { color: var(--accent-primary); text-decoration: none; font-weight: 500; transition: color 0.2s, text-decoration 0.2s; }
.page-content a:hover { text-decoration: underline; color: #3d8a58; }
.page-content .btn--primary,
.services .btn--primary,
.footer .btn--primary,
.testimonials .btn--primary { color: #000; }
.page-content .btn--primary:hover,
.services .btn--primary:hover,
.footer .btn--primary:hover,
.testimonials .btn--primary:hover { color: #000; }
.footer__links--wrap { flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer__links--wrap li { margin: 0; }
/* Form inputs: contact, quote, consultation (quote-input used across forms) */
.quote-input,
.quote-form .quote-input,
#contact-form .quote-input,
#booking-form .quote-input,
#quote-form .quote-input {
  width: 100%;
  max-width: 420px;
  padding: 0.7rem 1rem;
  font-family: var(--font-body), system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  border: 1.5px solid rgba(73, 159, 104, 0.25);
  border-radius: 10px;
  margin-top: 0.35rem;
  background: var(--white);
  color: var(--text-on-light);
  transition: border-color 0.2s ease, box-shadow 0.28s ease, background 0.2s ease;
}
.quote-input:hover { border-color: rgba(73, 159, 104, 0.45); }
/* Uiverse-style glow on focus */
.quote-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow:
    inset 0 1px 3px rgba(73, 159, 104, 0.12),
    0 0 0 3px rgba(73, 159, 104, 0.15),
    0 0 24px 2px rgba(73, 159, 104, 0.25);
  background: var(--white);
}
.quote-input::placeholder { color: var(--text-muted); opacity: 0.85; }
select.quote-input {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--white);
  padding-right: 2.5rem; /* room for custom arrow */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7l4.5 5 4.5-5' fill='none' stroke='%23499F68' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px 14px;
}
select.quote-input:hover {
  border-color: rgba(73, 159, 104, 0.45);
}
select.quote-input:focus {
  border-color: var(--accent-primary);
  box-shadow:
    inset 0 1px 3px rgba(73, 159, 104, 0.12),
    0 0 0 3px rgba(73, 159, 104, 0.15),
    0 0 24px 2px rgba(73, 159, 104, 0.25);
  outline: none;
}
textarea.quote-input {
  min-height: 100px;
  resize: vertical;
  max-height: 280px;
}
/* Custom date picker wrapper */
.date-picker {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 420px;
}
.date-picker__input {
  width: 100%;
  cursor: pointer;
}
.date-picker__popover {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 30;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 0.75rem;
  min-width: 260px;
  max-width: 320px;
  transform-origin: top right;
  transform: scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s var(--ease-out-expo), transform 0.16s var(--ease-out-expo);
}
.date-picker__popover.is-open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.date-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.date-picker__month {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}
.date-picker__nav-btn {
  border: none;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #111827;
  font-size: 0.9rem;
}
.date-picker__nav-btn:hover {
  background: rgba(73, 159, 104, 0.12);
}
.date-picker__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
}
.date-picker__dow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  text-align: center;
  padding: 0.25rem 0;
}
.date-picker__day {
  border: none;
  background: transparent;
  border-radius: 999px;
  width: 100%;
  aspect-ratio: 1 / 1;
  font-size: 0.85rem;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.date-picker__day--muted {
  color: #9ca3af;
}
.date-picker__day:hover {
  background: rgba(73, 159, 104, 0.12);
}
.date-picker__day--today {
  box-shadow: 0 0 0 1px rgba(73, 159, 104, 0.8);
}
.date-picker__day--selected {
  background: var(--accent-primary);
  color: #0d1f12;
}
.quote-form label,
#contact-form label,
#booking-form label,
#quote-form label,
form .content-block label { font-weight: 600; color: var(--text-on-light); font-size: 0.95rem; }
.quote-form p,
#contact-form p,
#booking-form p,
#quote-form p,
#booking-form .form-row { margin-bottom: 1.1rem; }
.quote-form p:last-of-type,
#contact-form p:last-of-type,
#booking-form p:last-of-type,
#quote-form p:last-of-type,
#booking-form .form-row:last-of-type { margin-bottom: 0; }
#booking-form .form-row label { display: block; margin-bottom: 0.35rem; }

/* Content images and gallery */
.content-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: block;
}
.content-img--float-left { float: left; margin: 0 1.5rem 1rem 0; max-width: 320px; }
.content-img--float-right { float: right; margin: 0 0 1rem 1.5rem; max-width: 320px; }
@media (max-width: 540px) {
  .content-img--float-left, .content-img--float-right { float: none; margin: 0 0 1rem; max-width: 100%; }
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}
.gallery-grid__item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  aspect-ratio: 4/3;
}
.gallery-grid__item figure {
  margin: 0;
  height: 100%;
  position: relative;
}
.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease-out-expo);
}
.gallery-grid__item:hover img { transform: scale(1.05); }
.gallery-grid__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
}
.content-block { margin-bottom: 2rem; }
.content-block:last-child { margin-bottom: 0; }
.page-content .content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}
@media (min-width: 700px) {
  .page-content .content-grid--2 { grid-template-columns: 1fr 1fr; }
}
.testimonial-block {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent-primary);
  background: rgba(73, 159, 104, 0.06);
  border-radius: 0 0.5rem 0.5rem 0;
}
.testimonial-block p { margin: 0 0 0.5rem; font-style: italic; }
.testimonial-block footer { margin: 0; font-size: 0.95rem; color: var(--text-muted); font-style: normal; }

/* ==========================================================================
   Hero – full-bleed dark, 3D parallax, blue CTA
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 2rem) 1.5rem 4rem;
  background: var(--bg-primary);
  overflow: hidden;
  perspective: var(--parallax-perspective);
}
.hero__parallax {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  perspective: var(--parallax-perspective);
}
.hero__bg {
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse 80% 60% at 50% 80%, rgba(73, 159, 104, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse 60% 40% at 80% 20%, rgba(62, 146, 204, 0.08) 0%, transparent 45%),
              var(--bg-primary);
  transform: translateZ(-200px) scale(1.4);
}
.hero__dot {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.3;
  will-change: transform;
}
.hero__dot--1 {
  width: min(55vw, 360px);
  height: min(45vw, 300px);
  background: radial-gradient(ellipse at center, var(--accent-secondary) 0%, transparent 70%);
  bottom: 8%;
  left: -8%;
  transform: translateZ(30px);
}
.hero__dot--2 {
  width: min(38vw, 260px);
  height: min(32vw, 200px);
  background: radial-gradient(ellipse at center, var(--accent-primary) 0%, transparent 70%);
  top: 18%;
  right: -6%;
  transform: translateZ(70px);
}
.hero__dot--3 {
  width: min(28vw, 170px);
  height: min(22vw, 130px);
  background: radial-gradient(ellipse at center, var(--accent-tertiary) 0%, transparent 70%);
  top: 48%;
  left: 12%;
  transform: translateZ(20px);
}
.hero__dot--4 {
  width: min(45vw, 300px);
  height: min(38vw, 250px);
  background: radial-gradient(ellipse at center, var(--accent-secondary) 0%, transparent 70%);
  top: 5%;
  left: 20%;
  transform: translateZ(50px);
}
.hero__dot--5 {
  width: min(35vw, 220px);
  height: min(28vw, 175px);
  background: radial-gradient(ellipse at center, var(--accent-primary) 0%, transparent 70%);
  bottom: 25%;
  right: 8%;
  transform: translateZ(60px);
}
.hero__dot--6 {
  width: min(20vw, 120px);
  height: min(18vw, 100px);
  background: radial-gradient(circle, var(--accent-tertiary) 0%, transparent 70%);
  top: 35%;
  right: 25%;
  transform: translateZ(40px);
}
.hero__dot--7 {
  width: min(50vw, 320px);
  height: min(42vw, 270px);
  background: radial-gradient(ellipse at center, var(--accent-secondary) 0%, transparent 70%);
  bottom: -5%;
  right: -12%;
  transform: translateZ(90px);
}
.hero__dot--8 {
  width: min(25vw, 150px);
  height: min(20vw, 120px);
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
  top: 65%;
  left: 5%;
  transform: translateZ(35px);
}
.hero__dot--9 {
  width: min(32vw, 200px);
  height: min(26vw, 160px);
  background: radial-gradient(ellipse at center, var(--accent-tertiary) 0%, transparent 70%);
  top: 8%;
  right: 30%;
  transform: translateZ(55px);
}
.hero__dot--10 {
  width: min(18vw, 100px);
  height: min(16vw, 90px);
  background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
  bottom: 35%;
  left: 25%;
  transform: translateZ(25px);
}
.hero__dot--11 {
  width: min(42vw, 270px);
  height: min(34vw, 220px);
  background: radial-gradient(ellipse at center, var(--accent-tertiary) 0%, transparent 70%);
  top: 55%;
  right: 18%;
  transform: translateZ(45px);
}
.hero__dot--12 {
  width: min(30vw, 185px);
  height: min(24vw, 145px);
  background: radial-gradient(ellipse at center, var(--accent-primary) 0%, transparent 70%);
  bottom: 12%;
  left: 35%;
  transform: translateZ(65px);
}
.hero__dot--13 {
  width: min(16vw, 95px);
  height: min(14vw, 80px);
  background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
  top: 22%;
  left: 8%;
  transform: translateZ(22px);
}
.hero__dot--14 {
  width: min(48vw, 310px);
  height: min(40vw, 260px);
  background: radial-gradient(ellipse at center, var(--accent-secondary) 0%, transparent 70%);
  top: -2%;
  left: 40%;
  transform: translateZ(75px);
}
.hero__dot--15 {
  width: min(24vw, 145px);
  height: min(20vw, 125px);
  background: radial-gradient(circle, var(--accent-tertiary) 0%, transparent 70%);
  bottom: 45%;
  right: 5%;
  transform: translateZ(48px);
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}
.hero.hero--layout-left { align-items: flex-start; }
.hero.hero--layout-left .hero__content { text-align: left; margin-left: 1.5rem; margin-right: auto; }
.hero.hero--layout-right { align-items: flex-end; }
.hero.hero--layout-right .hero__content { text-align: right; margin-right: 1.5rem; margin-left: auto; }
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-on-dark);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero__title-accent { color: var(--accent-primary); }
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(240, 244, 241, 0.85);
  margin: 0 0 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.hero__abn {
  margin: 1.75rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s, background 0.25s, color 0.25s;
}
.btn:focus-visible { outline: 2px solid var(--accent-tertiary); outline-offset: 2px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--accent-primary);
  color: #000;
}
.btn--primary:hover { background: #3d8a58; box-shadow: 0 4px 16px rgba(73, 159, 104, 0.35); }
.btn--primary.btn--blue {
  background: var(--accent-tertiary);
  color: #ffffff;
}
.btn--primary.btn--blue:hover { background: #2d7bb5; box-shadow: 0 4px 16px rgba(62, 146, 204, 0.35); }
.btn--primary.btn--white {
  background: var(--white);
  color: var(--accent-primary);
}
.btn--primary.btn--white:hover { background: #f0f4f1; color: #3d8a58; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); }
.btn--secondary {
  background: transparent;
  color: var(--text-on-dark);
  border: 2px solid rgba(240, 244, 241, 0.5);
}
.btn--secondary:hover { border-color: var(--accent-secondary); color: var(--accent-secondary); box-shadow: 0 0 0 1px var(--accent-secondary); }
/* Secondary button on light backgrounds (page-content, services, etc.) */
.page-content .btn--secondary,
.services .btn--secondary,
.testimonials .btn--secondary {
  color: var(--text-on-light);
  border-color: var(--accent-primary);
}
.page-content .btn--secondary:hover,
.services .btn--secondary:hover,
.testimonials .btn--secondary:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-secondary);
}
.hero__contact { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(240, 244, 241, 0.2); }
.hero__phone { margin: 0.25rem 0; color: var(--text-on-dark); font-size: 0.95rem; }
.hero__quote-link { margin-top: 0.75rem; display: inline-block; }
.hero__quote-link a {
  color: var(--accent-tertiary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: 2px solid var(--accent-tertiary);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.hero__quote-link a:hover { background: var(--accent-tertiary); color: #ffffff; transform: translateY(-2px); }
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(240, 244, 241, 0.6);
  font-size: 0.8rem;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, currentColor, transparent);
  animation: scroll-hint 2s var(--ease-in-out) infinite;
}
@keyframes scroll-hint {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ==========================================================================
   Services – lighter green background
   ========================================================================== */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.section-title--accent { color: var(--accent-primary); }
.section-title--light { color: var(--text-on-dark); }
.section-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 2.5rem;
}
.section-intro--light { color: rgba(240, 244, 241, 0.8); }

.services {
  padding: var(--section-padding) 0;
  background: var(--bg-services);
}
.services__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(26, 28, 30, 0.06);
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s, border-color 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26, 28, 30, 0.12);
  border: 1px solid rgba(73, 159, 104, 0.2);
}
.service-card__icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: rgba(73, 159, 104, 0.12);
  color: var(--accent-secondary);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-on-light);
  margin: 0 0 0.5rem;
}
.service-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Services image marquee – infinite pan right, hover to pause + grow */
.services__marquee {
  margin-top: 2.5rem;
  overflow: hidden;
  width: 100%;
}
.services__marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: services-marquee 40s linear infinite;
}
.services__marquee:hover .services__marquee-track {
  animation-play-state: paused;
}
.services__marquee-item {
  flex-shrink: 0;
  width: 280px;
  height: 187px;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out-expo);
}
.services__marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.services__marquee:hover .services__marquee-item:hover {
  transform: scale(1.08);
}
@keyframes services-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Our Process – dark bg, horizontal timeline, parallax
   ========================================================================== */
.process {
  position: relative;
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
  overflow: hidden;
  perspective: var(--parallax-perspective);
}
.process__parallax {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}
.process__bg {
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse 70% 50% at 30% 50%, rgba(62, 146, 204, 0.06) 0%, transparent 50%),
              var(--bg-primary);
  transform: translateZ(-150px) scale(1.3);
}
.process__foliage {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.25;
}
.process__foliage--1 {
  width: min(50vw, 320px);
  height: min(40vw, 260px);
  background: radial-gradient(ellipse at center, var(--accent-primary) 0%, transparent 70%);
  top: 10%;
  right: -15%;
  transform: translateZ(50px);
}
.process__foliage--2 {
  width: min(35vw, 220px);
  height: min(30vw, 180px);
  background: radial-gradient(ellipse at center, var(--accent-tertiary) 0%, transparent 70%);
  bottom: 20%;
  left: -10%;
  transform: translateZ(30px);
}
.timeline {
  position: relative;
  z-index: 2;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.timeline.is-dragging {
  cursor: grabbing;
}
.timeline::-webkit-scrollbar { height: 6px; }
.timeline::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); border-radius: 3px; }
.timeline::-webkit-scrollbar-thumb { background: var(--accent-secondary); border-radius: 3px; }
.timeline__track {
  display: flex;
  gap: 1.5rem;
  min-width: min-content;
  padding: 0 0.25rem;
}
.timeline__item {
  flex: 0 0 min(280px, 85vw);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1.75rem;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s, box-shadow 0.3s;
}
.timeline__item:hover {
  border-color: rgba(73, 159, 104, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(-4px);
}
.timeline__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  opacity: 0.8;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.timeline__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-on-dark);
  margin: 0 0 0.5rem;
}
.timeline__text {
  font-size: 0.95rem;
  color: rgba(240, 244, 241, 0.75);
  margin: 0;
  line-height: 1.55;
}

.process-purpose {
  margin-top: 2.5rem;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 0.9rem;
  background: radial-gradient(ellipse at top left, rgba(73,159,104,0.18) 0%, transparent 55%),
              radial-gradient(ellipse at bottom right, rgba(62,146,204,0.16) 0%, transparent 55%),
              rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 1.75rem;
  align-items: flex-start;
}
.process-purpose__heading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-on-dark);
  margin: 0 0 0.5rem;
}
.process-purpose__body {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(241, 245, 249, 0.85);
}
.process-purpose__subheading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(226, 232, 240, 0.8);
  margin: 0 0 0.5rem;
}
.process-purpose__bullets {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.process-purpose__bullets li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.9);
  margin-bottom: 0.4rem;
}
.process-purpose__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-primary);
}
.process-purpose__cta {
  margin-top: 0.5rem;
  display: inline-flex;
}
@media (max-width: 720px) {
  .process-purpose {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Home page Gallery section – dark bg, carousel (same color scheme as process)
   ========================================================================== */
.home-gallery {
  position: relative;
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
  overflow: hidden;
  perspective: var(--parallax-perspective);
}
.home-gallery__parallax {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}
.home-gallery__bg {
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse 70% 50% at 30% 50%, rgba(62, 146, 204, 0.06) 0%, transparent 50%),
              var(--bg-primary);
  transform: translateZ(-150px) scale(1.3);
}
.home-gallery__foliage {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.25;
}
.home-gallery__foliage--1 {
  width: min(50vw, 320px);
  height: min(40vw, 260px);
  background: radial-gradient(ellipse at center, var(--accent-primary) 0%, transparent 70%);
  top: 10%;
  right: -15%;
  transform: translateZ(50px);
}
.home-gallery__foliage--2 {
  width: min(35vw, 220px);
  height: min(30vw, 180px);
  background: radial-gradient(ellipse at center, var(--accent-tertiary) 0%, transparent 70%);
  bottom: 20%;
  left: -10%;
  transform: translateZ(30px);
}
.home-gallery__inner { position: relative; z-index: 2; }
.home-gallery__cta-wrap { text-align: center; margin: 1.5rem 0 0; }
.home-gallery__cta { display: inline-flex; }

.gallery-carousel {
  max-width: 720px;
  margin: 0 auto;
}
.gallery-carousel__viewport { overflow: hidden; border-radius: 0.75rem; }
.gallery-carousel__track {
  display: flex;
  transition: transform 0.35s var(--ease-out-expo);
}
.gallery-carousel__slide {
  flex: 0 0 100%;
  margin: 0;
  padding: 0;
}
.gallery-carousel__slide img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem;
  cursor: pointer;
}
.gallery-carousel__caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  text-align: center;
}
.gallery-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.gallery-carousel__controls .carousel__btn {
  background: rgba(255,255,255,0.12);
  color: var(--text-on-dark);
  border: 1px solid rgba(255,255,255,0.2);
}
.gallery-carousel__controls .carousel__btn:hover { background: var(--accent-primary); color: #0d1f12; }
.gallery-carousel__dots { display: flex; gap: 0.35rem; }
.home-gallery .section-title--light,
.home-gallery .section-intro--light { color: var(--text-on-dark); }

/* Gallery lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.gallery-lightbox[data-open="true"] {
  opacity: 1;
  visibility: visible;
}
.gallery-lightbox[hidden] { display: none !important; }
.gallery-lightbox:not([hidden]) { display: flex; }
.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  cursor: pointer;
}
.gallery-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.gallery-lightbox__close:hover { background: rgba(255,255,255,0.25); transform: scale(1.05); }
.gallery-lightbox__close svg { width: 1.25rem; height: 1.25rem; }
.gallery-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.gallery-lightbox__arrow:hover { background: rgba(255,255,255,0.3); transform: translateY(-50%) scale(1.05); }
.gallery-lightbox__arrow--prev { left: 1rem; }
.gallery-lightbox__arrow--next { right: 1rem; }
.gallery-lightbox__arrow svg { width: 1.5rem; height: 1.5rem; }
.gallery-lightbox__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.gallery-lightbox__img {
  max-width: 100%;
  max-height: calc(85vh - 4rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.gallery-lightbox__caption {
  color: #fff;
  font-size: 1rem;
  text-align: center;
  max-width: 560px;
  line-height: 1.4;
}

/* Map section: rounded corners, border, full editor support */
.map-section {
  padding: var(--section-padding) 0;
  background: var(--bg-main);
}
.map-section[data-visible="false"] {
  display: none !important;
}
.map-wrap {
  margin-top: 1.5rem;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 2px 8px rgba(26, 77, 40, 0.06),
    0 12px 28px -6px rgba(26, 77, 40, 0.1);
  background: #fafbfa;
  position: relative;
}

/* Map search: circle that expands on focus, address/location search */
.map-search-wrap {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 1000;
}
.map-search {
  display: flex;
  align-items: center;
  position: relative;
  height: 48px;
  width: 48px;
  max-width: 420px;
  border-radius: 50px;
  background-color: var(--accent-primary);
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(26, 77, 40, 0.2);
  border: 0;
  outline: none;
  transition: width 0.65s var(--ease-out-expo), box-shadow 0.2s ease;
  overflow: hidden;
  cursor: pointer;
}
.map-search:focus-within {
  width: 100%;
  max-width: 420px;
  box-shadow: 0 0 0 2.5px var(--text-on-light), 0 4px 20px rgba(26, 77, 40, 0.25);
  cursor: text;
}
.map-search__label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  cursor: pointer;
}
.map-search__icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--text-on-light);
  transition: opacity 0.2s ease;
}
.map-search:focus-within .map-search__icon {
  opacity: 0.85;
}
.map-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 3rem 0 0.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-on-light);
  background: transparent;
  border: 0;
  outline: none;
  opacity: 0;
  transition: opacity 0.25s ease 0.08s;
}
.map-search__input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}
.map-search:focus-within .map-search__input {
  opacity: 1;
  cursor: text;
}
/* Style and position the search clear (x) button – right-aligned, white X */
.map-search__input::-webkit-search-cancel-button,
.map-search__input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.map-search__input::-webkit-search-cancel-button {
  position: relative;
  right: 0;
  margin-left: 0.5rem;
  width: 1.125rem;
  height: 1.125rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  cursor: pointer;
  opacity: 0.85;
  border-radius: 50%;
}
.map-search__input::-webkit-search-cancel-button:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.15);
}
.map-search__input::-ms-clear {
  display: none;
}
input.map-search__input[type="search"]::-ms-clear {
  display: none;
}

/* Map search results dropdown: green panel above search bar so it isn’t clipped by map */
.map-search-results {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  margin-bottom: 0.5rem;
  min-height: 120px;
  max-height: 380px;
  overflow-y: auto;
  background-color: var(--accent-primary);
  border-radius: 1rem;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 24px rgba(26, 77, 40, 0.25);
  z-index: 1001;
  list-style: none;
  padding: 0.5rem 0;
  margin-left: 0;
}
.map-search-results:not([hidden]) {
  display: block;
}
.map-search-results__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-on-light);
  cursor: pointer;
  transition: background 0.15s ease;
  border: none;
  width: 100%;
  text-align: left;
  background: transparent;
}
.map-search-results__item:hover,
.map-search-results__item:focus {
  background: rgba(0, 0, 0, 0.08);
  outline: none;
}
.map-search-results__icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  fill: var(--text-on-light);
  opacity: 0.9;
}
.map-search-results__text {
  flex: 1;
  min-width: 0;
}

.map-container {
  width: 100%;
  height: 420px;
  min-height: 320px;
  border-radius: inherit;
}
.map-container .leaflet-map-pane,
.map-container .leaflet-tile-pane { border-radius: inherit; }
.map-container .leaflet-control-attribution { font-size: 10px; opacity: 0.8; }

/* Map dropper: solid black teardrop (rounded head, pointed tail) */
.map-pin {
  background: none !important;
  border: none !important;
}
.map-pin__dropper {
  position: relative;
  display: block;
  width: 28px;
  height: 40px;
  line-height: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
  z-index: 1;
}
.map-pin__dropper svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Testimonials – carousel
   ========================================================================== */
.testimonials {
  padding: var(--section-padding) 0;
  background: var(--bg-services);
}
.carousel {
  max-width: 720px;
  margin: 0 auto;
}
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  transition: transform 0.5s var(--ease-out-expo);
}
.carousel__slide {
  flex: 0 0 100%;
  margin: 0;
  padding: 2rem 1rem 1.5rem;
  text-align: center;
}
.carousel__quote {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 500;
  font-style: italic;
  color: var(--text-on-light);
  line-height: 1.6;
  margin: 0 0 1rem;
}
.carousel__author {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: normal;
}
.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.carousel__btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--accent-primary);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel__btn:hover { background: var(--accent-secondary); transform: scale(1.05); }
.carousel__btn:focus-visible { outline: 2px solid var(--accent-tertiary); outline-offset: 2px; }
.carousel__btn svg { width: 22px; height: 22px; }
.carousel__dots {
  display: flex;
  gap: 0.5rem;
}
.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--accent-secondary);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.carousel__dot:hover { opacity: 0.7; }
.carousel__dot.active { opacity: 1; transform: scale(1.2); }
.carousel__dot:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }

/* ==========================================================================
   Footer / CTA – primary green background
   ========================================================================== */
.footer { background: var(--accent-primary); color: var(--white); }
.footer__cta {
  padding: var(--section-padding) 0;
  text-align: center;
}
.footer__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.footer__subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 0 0 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.footer__bottom {
  padding: 2rem 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.footer__logo-img {
  height: 8rem;
  width: auto;
  max-width: 400px;
  display: block;
  object-fit: contain;
  object-position: left center;
  margin-top: 0.75rem;
  /* Icon: dark green + white leaves – no filter so the design reads clearly; white leaves already pop on green */
}
.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.footer__link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
}
.footer__link {
  transition: opacity 0.2s, transform 0.2s;
}
.footer__link:hover { opacity: 1; text-decoration: underline; transform: translateY(-1px); }
.footer__copy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1rem;
}
.footer__abn {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
}
.footer__cta-abn {
  margin: 1rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  text-align: center;
}
.footer__copy {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
  text-align: right;
}
.footer__version {
  font-size: 0.85em;
  opacity: 0.9;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}
.footer__social a {
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer__social a:hover { opacity: 1; }
.footer__newsletter { margin-top: 1rem; text-align: center; }
.footer__newsletter label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer__newsletter input {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 0.375rem;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1rem;
  min-width: 200px;
}
.footer__newsletter input::placeholder { color: rgba(255,255,255,0.6); }
.footer__newsletter .btn { margin-top: 0.5rem; }
.form-msg { margin-top: 0.5rem; font-size: 0.9rem; display: none; }
.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100004;
}
.chat-widget__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.chat-widget__btn:hover { transform: scale(1.05); }
.chat-widget__btn svg { width: 28px; height: 28px; color: #000; }
.chat-widget__panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  max-height: 400px;
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-widget__panel.is-open { display: flex; }
.chat-widget__header { padding: 1rem; background: var(--accent-primary); color: #000; font-weight: 600; }
.chat-widget__messages { flex: 1; overflow-y: auto; padding: 1rem; min-height: 200px; font-size: 0.9rem; }
.chat-widget__input-wrap { display: flex; padding: 0.75rem; border-top: 1px solid #eee; }
.chat-widget__input { flex: 1; padding: 0.5rem 0.75rem; border: 1px solid #ccc; border-radius: 0.375rem; }
.chat-widget__send { margin-left: 0.5rem; padding: 0.5rem 1rem; background: var(--accent-primary); color: #000; border: none; border-radius: 0.375rem; cursor: pointer; font-weight: 600; }
.footer__grid--stack { grid-template-columns: 1fr; text-align: center; }
.footer__grid--stack .footer__links { justify-content: center; }
@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__links { justify-content: center; }
  .footer__copy { text-align: center; }
  .footer__copy-row { flex-direction: column; text-align: center; }
  .footer__abn { text-align: center; }
}

/* ==========================================================================
   Interactive elements – cursor hidden only when custom cursor is active
   ========================================================================== */
body.cursor-active,
body.cursor-active * {
  cursor: none !important;
}
/* Mobile: always show system cursor (custom cursor hidden above) */
@media (max-width: 768px) {
  body.cursor-active,
  body.cursor-active * {
    cursor: revert !important;
  }
}
@media (hover: none) and (pointer: coarse) {
  body.cursor-active,
  body.cursor-active * {
    cursor: revert !important;
  }
}

/* Case study before/after figures */
.content-block__before-after { margin: 0 0 0.5rem; }
.content-block__before-after figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }
/* Blog post preview */
.blog-post-preview { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--admin-border); }
.blog-post-preview:last-child { border-bottom: none; }
.blog-post-preview h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }

/* Mobile contact bar – Call / Email (visible on small screens only) */
.mobile-contact-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 0.5rem 1rem;
  background: var(--admin-sidebar-bg, #1e242a);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
  flex-direction: row;
  justify-content: center;
  gap: 0.75rem;
}
@media (max-width: 768px) {
  .mobile-contact-bar { display: flex; }
}
.mobile-contact-bar__btn {
  flex: 1;
  max-width: 160px;
  padding: 0.6rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.mobile-contact-bar__call { background: var(--accent-primary); color: #0d1f12; }
.mobile-contact-bar__call:hover { background: #5ab078; color: #0d1f12; }
.mobile-contact-bar__email { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.mobile-contact-bar__email:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* Sticky back to top – slides up when you scroll, main gets space */
main { transition: padding-bottom 0.35s ease; }
body.back-to-top-visible main { padding-bottom: 5.5rem; }

/* Chat widget moves up when back-to-top is visible (smooth, same timing) */
#chat-widget-root { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
body.back-to-top-visible #chat-widget-root { transform: translateY(-4rem); }
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4rem);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(73, 159, 104, 0.4);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}
.back-to-top__icon {
  display: block;
  width: 100%;
  height: 100%;
}
.back-to-top__icon circle {
  transition: fill 0.2s ease;
}
.back-to-top:hover .back-to-top__icon circle {
  fill: var(--accent-secondary);
}

/* ==========================================================================
   404 page – orbs, rounded card, quick links footer, no header, no scroll
   ========================================================================== */
body.page-404-body {
  overflow: hidden;
  height: 100vh;
}
.page-404 {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
}
.page-404__hero {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem 0.5rem;
}
.page-404__hero.hero {
  padding: 1rem 1.5rem 0.5rem;
  min-height: 0;
}
.page-404__card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .page-404__card {
  background: var(--bg-services);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.page-404__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  font-weight: 700;
  color: var(--accent-primary);
  margin: 0 0 0.35rem;
  line-height: 1;
}
.page-404__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.page-404__joke {
  font-size: 0.95rem;
  color: var(--text-on-light);
  margin: 0 0 1rem;
  line-height: 1.45;
  font-style: italic;
}
.page-404__footer {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.04);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
}
[data-theme="dark"] .page-404__footer {
  background: rgba(0, 0, 0, 0.2);
  border-top-color: rgba(255, 255, 255, 0.08);
}
.page-404__footer-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.page-404__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.75rem;
}
.page-404__links a {
  font-size: 0.85rem;
  color: var(--accent-primary);
  text-decoration: none;
}
.page-404__links a:hover {
  text-decoration: underline;
}

/* 404 page: preferences strip (cursor + dark mode) – top-right */
.page-404__prefs {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0.65rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  border: 1px solid rgba(26, 28, 30, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .page-404__prefs {
  background: var(--bg-services);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .page-404__prefs .site-theme-row__label { color: var(--text-on-dark); }
.page-404__prefs .site-theme-row {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}
.page-404__prefs-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.page-404__prefs .site-theme-row + .site-theme-row { margin-top: 0.15rem; padding-top: 0.25rem; border-top: 1px solid rgba(26, 28, 30, 0.08); }
[data-theme="dark"] .page-404__prefs-row + .page-404__prefs-row { border-top-color: rgba(255, 255, 255, 0.1); }
