/* =========================================================
   AGENCY POLISH — Enhancement layer
   Adds: scroll animations, micro-interactions, typographic
   refinements, depth cues, and professional finishing touches.
   Layout is untouched — this is additive only.
   ========================================================= */


/* =========================================================
   0. FONT ENHANCEMENTS
   Cormorant Garamond applied to all display/heading text.
   DM Sans handles body, UI, buttons — clean and modern.
   ========================================================= */

.hero-title {
  font-family: var(--heading-font);
  font-size: clamp(2.2rem, 4.2vw, 3.1rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55),
               0 1px 4px rgba(0, 0, 0, 0.35);
}

.about-split__title,
.about-split__kicker,
.benefits-title,
.services-title,
.about-title,
.home-quote__title,
.testimonials-header h2,
.about-section-title h2 {
  font-family: var(--heading-font);
}

.benefits-title,
.services-title,
.about-title,
.testimonials-header h2 {
  font-style: italic;
}

/* Hero sub — slightly more elegant in DM Sans */
.hero-sub {
  font-family: var(--site-font);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}



   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay helpers */
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.42s; }
.reveal-delay-5 { transition-delay: 0.54s; }

/* Scale-in variant (for cards, icons) */
.reveal-scale {
  opacity: 0;
  transform: scale(0.96) translateY(14px);
  transition: opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* =========================================================
   2. NAVBAR — SCROLL-AWARE ELEVATION
   Picks up shadow + tightens slightly once user scrolls
   ========================================================= */

.main-nav.nav-scrolled .nav-frame {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22),
              0 2px 8px rgba(0, 0, 0, 0.12);
  background: rgba(125, 155, 135, 0.98) !important;
  backdrop-filter: blur(14px) saturate(1.4);
}


/* =========================================================
   3. TOPBAR REFINEMENTS
   ========================================================= */

/* Subtle shimmer on the topbar icon circle */
.topbar .icon-circle {
  background: transparent;
}


/* =========================================================
   4. HERO REFINEMENTS
   ========================================================= */

/* Soft ken burns — animates the ::before overlay, never the hero box itself */
.hero::before {
  transform-origin: center;
  animation: hero-drift 24s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.00); }
  to   { transform: scale(1.05); }
}

/* Hero badge pulse — subtle heartbeat */
.hero-badge {
  animation: badge-pulse 3.8s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.0); }
  50%       { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08); }
}

/* Smooth entrance for hero content */
.hero-content {
  animation: hero-enter 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero band entrance */
.hero-band {
  animation: band-enter 1.3s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes band-enter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CTA button in hero: refined glow on hover */
.hero .btn,
.hero a[class*="btn"] {
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.hero .btn:hover,
.hero a[class*="btn"]:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}


/* =========================================================
   5. ABOUT SPLIT — HOVER PARALLAX ON PHOTO
   ========================================================= */

.about-split__photo {
  overflow: hidden;
}

.about-split__photo img,
.about-split__photo iframe {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Portrait avatar: ring animation on hover */
.about-split__portrait {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-split__content:hover .about-split__portrait {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

/* About button: more pronounced lift */
.about-split__btn {
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

.about-split__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(255,255,255,0.18), transparent);
  pointer-events: none;
}

.about-split__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  filter: brightness(1.08);
}


/* =========================================================
   6. TESTIMONIAL CARD REFINEMENTS
   ========================================================= */

/* Read More button: cleaner focus ring */
.t-link:focus-visible {
  outline: 2px solid rgba(231, 127, 103, 0.7);
  outline-offset: 3px;
}

/* Card hover: deeper lift */
@media (hover: hover) and (pointer: fine) {
  .t-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.24);
  }
}

/* Avatar — ring glow on card hover */
@media (hover: hover) and (pointer: fine) {
  .t-card:hover .t-avatar {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  }
}


/* =========================================================
   7. BENEFIT CARDS — ICON INTERACTION
   ========================================================= */

.benefit-icon {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .benefit-card:hover .benefit-icon {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  }
}


/* =========================================================
   8. SERVICE CARDS — PREMIUM HOVER
   ========================================================= */

.service-card {
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 240ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 58px rgba(0,0,0,0.16),
    inset 0 1px 0 rgba(255,255,255,0.55);
}

/* Book button on service card: glow on card hover */
@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-btn {
    filter: brightness(1.06);
    box-shadow: 0 16px 36px rgba(231, 127, 103, 0.35);
  }
}


/* =========================================================
   9. NAV LINKS — ACTIVE PAGE INDICATOR
   ========================================================= */

/* Make active state visually clear */
.nav-pill .main-nav .nav-link.active {
  font-weight: 700;
}

/* CTA button: inner highlight for depth */
.nav-cta-btn {
  position: relative;
  overflow: hidden;
}

.nav-cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: inherit;
}


/* =========================================================
   10. FOOTER REFINEMENTS
   ========================================================= */

/* Divider line above footer */
.site-footer {
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
}

/* Footer links: smoother hover */
.footer-link,
.footer-item {
  transition: color 0.18s ease, transform 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-link:hover {
    transform: translateX(2px);
  }
}

/* Footer copyright strip: slightly more premium */
.footer-bottom {
  background: rgba(0, 0, 0, 0.12);
  letter-spacing: 0.02em;
}


/* =========================================================
   11. COOKIE NOTICE — POLISHED
   ========================================================= */

.cookie-notice {
  border-radius: 1rem;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
  animation: cookie-enter 0.5s 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cookie-enter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =========================================================
   12. MODAL REFINEMENTS
   ========================================================= */

.t-modal {
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

.ss-modal {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}


/* =========================================================
   13. GLOBAL BUTTON PRESS FEEDBACK
   ========================================================= */

.btn,
.service-btn,
.home-cta__btn,
.about-split__btn,
.nav-cta-btn,
.t-link,
.vouchers-btn,
.help-choose-btn {
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.18s ease,
              box-shadow 0.18s ease;
}

.btn:active,
.service-btn:active,
.home-cta__btn:active,
.about-split__btn:active,
.nav-cta-btn:active,
.t-link:active,
.vouchers-btn:active,
.help-choose-btn:active {
  transform: scale(0.97) translateY(1px) !important;
  filter: brightness(0.97) !important;
  transition-duration: 0.08s !important;
}


/* =========================================================
   14. FOCUS STYLES (accessibility + polish)
   ========================================================= */

:focus-visible {
  outline: 2.5px solid rgba(125, 155, 135, 0.8);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
  box-shadow: 0 0 0 3px rgba(125, 155, 135, 0.3);
}


/* =========================================================
   15. HOME CTA BAND — GRADIENT SHIMMER
   ========================================================= */

.home-cta {
  position: relative;
  overflow: hidden;
}

.home-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  animation: cta-shimmer 8s 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cta-shimmer {
  0%   { left: -60%; }
  100% { left: 160%; }
}


/* =========================================================
   16. SELECTION STYLE
   ========================================================= */

::selection {
  background: rgba(125, 155, 135, 0.30);
  color: inherit;
}


/* =========================================================
   17. IMAGE LOADING — PREVENT LAYOUT SHIFT
   ========================================================= */

img {
  transition: opacity 0.35s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}


/* =========================================================
   18. SMOOTH SCROLLING
   ========================================================= */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* =========================================================
   19. TOPBAR LOCATION TAG — HOVER REFINEMENT
   ========================================================= */

.topbar-location {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  transition: background 0.18s ease;
}

.topbar-location:hover {
  background: rgba(0, 0, 0, 0.08);
  text-decoration: none !important;
}


/* =========================================================
   20. SCROLLBAR REFINEMENT (webkit)
   ========================================================= */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1ede6;
}

::-webkit-scrollbar-thumb {
  background: rgba(125, 155, 135, 0.55);
  border-radius: 999px;
  border: 2px solid #f1ede6;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(125, 155, 135, 0.85);
}


/* =========================================================
   LARGE SCREEN — CENTRED APP WITH SIDE FILL
   ========================================================= */

/* Flanks: darker vignette edges + very subtle noise-like dot pattern
   so the green reads as a deliberate surround, not overflow bleed */
html {
  background-color: #5a7363;
  background-image:
    radial-gradient(ellipse at 0% 50%, rgba(38, 50, 44, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 50%, rgba(38, 50, 44, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 0%, rgba(38, 50, 44, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(38, 50, 44, 0.25) 0%, transparent 50%);
}

/* Green flanks only appear on truly massive screens (3440px+)
   — normal monitors including 1920p and most laptops fill edge to edge */
body {
  max-width: 3200px;
  margin-left: auto;
  margin-right: auto;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.10),
    0 8px 60px rgba(0,0,0,0.22),
    0 2px 12px rgba(0,0,0,0.12);
}


/* =========================================================
   STATS BAR
   ========================================================= */

.stats-bar {
  background: var(--bs-primary); /* sage green */
  padding: 0;
}

.stats-bar__inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.stats-bar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: clamp(1.1rem, 2.2vw, 1.6rem) clamp(0.75rem, 2vw, 2rem);
  text-align: center;
}

/* Number + suffix always on one line */
.stats-bar__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  line-height: 1;
  white-space: nowrap;
}

.stats-bar__number {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 600;
  color: rgba(18, 22, 20, 0.92);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stats-bar__suffix {
  font-family: var(--heading-font);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 400;
  color: rgba(18, 22, 20, 0.65);
  line-height: 1;
}

.stats-bar__label {
  font-size: clamp(0.65rem, 0.9vw, 0.74rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(18, 22, 20, 0.58);
}

.stats-bar__divider {
  width: 1px;
  background: rgba(18, 22, 20, 0.14);
  align-self: stretch;
  margin: 1rem 0;
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .stats-bar__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .stats-bar__divider { display: none; }
  .stats-bar__item {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid rgba(18,22,20,0.10);
  }
  .stats-bar__item:nth-child(odd) {
    border-right: 1px solid rgba(18,22,20,0.10);
  }
}


/* =========================================================
   GOOGLE RATING STRIP
   ========================================================= */

.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1rem;
}

.home-quote {
  background: var(--ss-paper, #f7f2ea);
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
}

.google-rating__stars {
  color: #fbbf24;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
}

.google-rating__score {
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(18,22,20,0.85);
}

.google-rating__sep {
  color: rgba(18,22,20,0.35);
}

.google-rating__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(18,22,20,0.65);
  text-decoration: none;
  transition: color 0.18s ease;
}

.google-rating__link:hover {
  color: rgba(18,22,20,0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-quote__blockquote {
  margin: 0 auto;
  max-width: 58ch;
}

.home-quote__text {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  color: rgba(18,22,20,0.82);
  line-height: 1.6;
  margin: 0 auto 0.6rem;
  text-align: center;
}

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

.home-quote__cite {
  display: block;
  text-align: center;
}

.home-quote__cite {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(18,22,20,0.45);
  font-style: normal;
}





/* =========================================================
   CUSTOM CURSOR
   ========================================================= */

@media (hover: hover) and (pointer: fine) {
  html, body, a, button, [role="button"], .nav-link, .service-btn, .t-link {
    cursor: none !important;
  }

  .ss-cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 999999; /* above cookie overlay (9999) and all modals */
    will-change: transform;
    opacity: 0;
  }

  /* Outer ring — dark ink so it shows on both light and green surfaces */
  .ss-cursor__ring {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(26, 40, 32, 0.55);
    position: absolute;
    top: -16px; left: -16px;
    transition: transform 0.18s cubic-bezier(0.22,1,0.36,1),
                opacity 0.18s ease,
                width 0.18s ease,
                height 0.18s ease,
                border-color 0.18s ease;
    transform-origin: center;
  }

  /* Inner dot */
  .ss-cursor__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #7D9B87;
    position: absolute;
    top: -2.5px; left: -2.5px;
    transition: transform 0.1s ease, background 0.18s ease;
  }

  /* Hover state — ring expands, fills slightly */
  .ss-cursor--hover .ss-cursor__ring {
    width: 44px;
    height: 44px;
    top: -22px; left: -22px;
    border-color: rgba(196,88,65,0.6);
    background: rgba(196,88,65,0.06);
  }

  .ss-cursor--hover .ss-cursor__dot {
    background: #C45841;
    transform: scale(1.4);
  }

  /* Click state */
  .ss-cursor--click .ss-cursor__ring {
    transform: scale(0.8);
    border-color: rgba(196,88,65,0.9);
  }

  .ss-cursor--click .ss-cursor__dot {
    transform: scale(0.7);
  }
}


/* =========================================================
   TYPOGRAPHY REFINEMENTS
   Body text: charcoal (#26322C) — warm dark, not harsh black
   Muted: rgba(38,50,44,0.65) — same hue, just lighter
   Headings: near-black with warmth
   ========================================================= */

/* Global body — warm charcoal, not pure black */
body {
  color: #26322C;
}

/* All running body copy */
p, li, td, th {
  color: #3d4e45;
}

/* Muted / secondary text — warm grey-green tint */
.text-secondary,
.about-split__text,
.service-desc,
.benefit-text,
.expect-text,
.about-bio__body p,
.home-cta__text {
  color: rgba(38, 50, 44, 0.68) !important;
}

/* Headings — deep warm near-black */
h1, h2, h3, h4 {
  color: #1a2820;
}

/* White-surface text (on paper/cream backgrounds) */
.about-split__content h2,
.about-split__kicker,
.benefits-title,
.home-quote__text {
  color: #1a2820;
}

/* On dark/green surfaces — white */
.topbar,
.topbar *,
.hero-band p,
.home-cta__text,
.stats-bar__label,
.footer-title,
.footer-link,
.footer-item,
.footer-bottom {
  /* let existing rules handle these — they already use rgba white */
}

/* Line length cap — body copy never exceeds 68ch */
.about-bio__body p,
.about-lead,
.about-split__text,
.services-sub,
.home-quote__text {
  max-width: 68ch;
}

/* Tighter leading on big display headings */
.hero-title,
.about-split__title,
.services-title,
.about-title {
  line-height: 1.08;
}


/* =========================================================
   FOOTER SOCIAL LINKS
   ========================================================= */

.footer-social {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.footer-social__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.footer-social__icon--yt  { background: rgba(255,0,0,0.75); color: #fff; }
.footer-social__icon--ig  { background: rgba(193,53,132,0.75); color: #fff; }
.footer-social__icon--tt  { background: rgba(0,0,0,0.55); color: #fff; }

.footer-social:hover .footer-social__icon {
  transform: scale(1.12);
  opacity: 1;
}

@media (max-width: 991.98px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 575.98px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}


/* =========================================================
   VIDEO DEFERRED LOADER
   ========================================================= */

.about-video {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}

/* Thumbnail — fills the panel instantly */
.about-video__thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 2;
  transition: opacity 0.6s ease;
}

/* Subtle dark overlay on thumbnail so it doesn't look raw */
.about-video__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
}

/* Spinner shown while iframe loads */
.about-video__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.about-video__spinner {
  width: 44px;
  height: 44px;
  animation: spin 1.1s linear infinite;
}

/* Iframe sits on top once loaded */
.about-video__iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
  z-index: 1;
}
