/* ==========================================================================
   itBYOM - DESIGN SYSTEM & STYLESHEET
   High-Fidelity, Animated, and Responsive Editorial Webpage
   ========================================================================== */

/* --- Import Premium Typography --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- Core Variables (Design Tokens) --- */
:root {
  /* Color Palette — Warm Pastel Brown & Beige */
  --bg-cream: #FDFCF7;         /* Linen background, warm and gentle */
  --bg-card: #FAF6EF;          /* Warm off-white card background */
  --bg-sand: #EDE0CE;          /* Warm sand banner background */
  --bg-sand-dark: #E0CEB5;     /* Slightly deeper sand for scroll thumb */
  --bg-parchment: #F7EBD1;     /* Exact corner colour of brain2.gif frames — seamless blend */
  --bg-walnut: #3D2B1F;        /* Deep warm walnut brown — quiz section */
  --bg-services: #F2E8D9;      /* Soft warm linen backdrop for services */
  --text-dark: #2B2118;        /* Rich warm near-black with brown undertone */
  --text-muted: #6B5A4E;       /* Warm taupe charcoal */
  --accent-brown: #6B4C3B;     /* Deep warm espresso brown — rich, premium button colour */
  --accent-brown-light: #9E7060; /* Warm terracotta / dusty rose-brown */
  --accent-brown-glow: rgba(139, 111, 94, 0.12);
  --accent-gold: #C4923A;      /* Warm amber gold */
  --accent-gold-light: #E9C46A;
  --accent-gold-glow: rgba(196, 146, 58, 0.2);

  /* Premium Botanical Stem Greens */
  --accent-stem-green: #5A7255;       /* Rich botanical stem green */
  --accent-stem-green-light: #7E9778; /* Soft sprout green */

  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-cursive: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 4px 12px rgba(43, 33, 24, 0.04);
  --shadow-md: 0 12px 24px rgba(43, 33, 24, 0.06);
  --shadow-lg: 0 24px 48px rgba(43, 33, 24, 0.09);
  --shadow-glow: 0 0 30px rgba(139, 111, 94, 0.25);
  --glass-bg: rgba(253, 252, 247, 0.85);
  --glass-border: rgba(139, 111, 94, 0.1);

  /* Aliases for backward compatibility with any remaining --accent-olive refs */
  --accent-olive: var(--accent-brown);
  --accent-olive-light: var(--accent-brown-light);
  --accent-olive-glow: var(--accent-brown-glow);
  --bg-sage: var(--bg-sand);
  --bg-sage-dark: var(--bg-sand-dark);
  --bg-forest: var(--bg-walnut);

  /* Borders & Spacing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.25s ease;
}

/* --- Base Resets & Layout --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Typography Helpers --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}

p {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-muted);
}

.cursive {
  font-family: var(--font-cursive);
  font-style: italic;
  font-weight: 400;
}

/* --- Premium Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-sand-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-brown);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%; /* Explicit starting value to transition width/max-width smoothly */
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8%;
  background: rgba(253, 252, 247, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border: 1px solid transparent; /* Define 1px solid for all borders to prevent layout snaps */
  border-bottom: 1px solid rgba(139, 111, 94, 0.08); /* Specify bottom border color initially */
  transition: top 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              -webkit-backdrop-filter 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  top: 20px;
  width: 84%;
  max-width: 1200px;
  height: 70px;
  border-radius: 100px; /* Perfect floating pill */
  background: rgba(253, 252, 247, 0.72); /* Glassmorphism frosted backing */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 16px 36px rgba(43, 33, 24, 0.08);
  padding: 0 40px;
}

.navbar.scrolled .logo {
  font-size: 1.45rem;
}

.navbar.scrolled .logo-sub {
  font-size: 0.82rem;
}

.navbar.scrolled .brand-logo-svg,
.navbar.scrolled .brand-logo-img {
  width: 36px;
  height: 36px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--text-dark);
}

.brand-logo-svg,
.brand-logo-img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), height 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  line-height: 1.1;
  transition: font-size 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-sub {
  font-family: var(--font-cursive);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: font-size 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Micro-interaction on logo hover */
.logo-wrap:hover .brand-logo-svg,
.logo-wrap:hover .brand-logo-img {
  transform: scale(1.08) rotate(5deg);
}

.logo-wrap:hover .logo {
  color: var(--accent-brown);
}


.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
  height: 100%; /* Dynamically matches parent height to prevent layout jumps on transition */
}

.nav-links li {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--accent-olive);
}

/* Beautiful organic drawing underline */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--accent-olive);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-links a:hover::after,
.nav-links li.active a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links li.nav-btn-wrapper {
  margin-left: 8px; /* Slight extra breathing room before the CTA pill */
}

.nav-links li.nav-btn-wrapper a.btn-cta,
.nav-links li a.btn-cta,
.nav-links a.btn-cta,
a.btn-cta,
.btn-cta {
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  color: #FDFCF7 !important;
  background-color: var(--accent-olive) !important;
  border: 1.5px solid var(--accent-olive) !important;
  padding: 11px 24px !important;
  border-radius: var(--radius-full) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: var(--transition-smooth) !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
}

.nav-links li.nav-btn-wrapper a.btn-cta:hover,
.nav-links li a.btn-cta:hover,
.nav-links a.btn-cta:hover,
a.btn-cta:hover,
.btn-cta:hover {
  background-color: transparent !important;
  color: var(--accent-olive) !important;
  border-color: var(--accent-olive) !important;
  box-shadow: 0 4px 16px rgba(139, 111, 94, 0.18) !important;
  transform: translateY(-2px) !important;
}

/* Prevent underline drawing animation on the navbar button */
.nav-links li.nav-btn-wrapper a.btn-cta::after,
.nav-links li a.btn-cta::after,
.nav-links a.btn-cta::after,
.btn-cta::after {
  display: none !important;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition-fast);
}

/* ==========================================================================
   HERO & FULL-SCREEN PINNED CANVAS SCRUBBER
   ========================================================================== */
.hero-track {
  position: relative;
  height: 250vh; /* The scroll track defining scrub duration */
}

.hero-sticky {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-parchment); /* Exact average corner color to blend with brain.gif frame background */
  z-index: 1;
}

/* Fullscreen Canvas Container */
.fullscreen-canvas-container {
  position: absolute;
  top: calc(50% + 45px); /* Perfectly centered below the 90px transparent navbar */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 86%; /* Increased scale for grander centerpiece presence, overlays float beautifully on top */
  max-width: 1450px; /* Bounded width to keep preloaded 1280x720 frames extremely crisp */
  max-height: calc(100vh - 100px); /* Maximized vertical space while guaranteeing zero overlap with 90px navbar */
  aspect-ratio: 16 / 9;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0; /* Borderless design for perfect integration into the page background */
  border: none;
  box-shadow: none;
  background-color: transparent; /* Transparent backing to prevent timeline color shift seams */
  overflow: hidden;
}

#brain-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  border-radius: 0;
  /* Multi-stop radial gradient mask:
     - Center 70% is fully opaque (all brain content preserved)
     - 70%→88% gentle fade begins
     - 88%→100% aggressive fade to transparent, ensuring all 4 corners are fully dissolved
     The ellipse at 88% width / 80% height guarantees the tall corners are clipped. */
  -webkit-mask-image: radial-gradient(
    ellipse 88% 80% at center,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 65%,
    rgba(0,0,0,0.85) 75%,
    rgba(0,0,0,0.4) 88%,
    rgba(0,0,0,0) 100%
  );
  mask-image: radial-gradient(
    ellipse 88% 80% at center,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 65%,
    rgba(0,0,0,0.85) 75%,
    rgba(0,0,0,0.4) 88%,
    rgba(0,0,0,0) 100%
  );
}

#brain-canvas.loaded {
  opacity: 1;
}

/* ==========================================================================
   INTERACTIVE BRAIN LOBE LABERS (DESKTOP)
   ========================================================================== */
.brain-labels-container {
  position: absolute;
  top: calc(50% + 45px); /* Matches exact canvas vertical centering */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 86%;
  max-width: 1450px;
  aspect-ratio: 16 / 9;
  z-index: 5;
  pointer-events: none; /* Let all clicks pass through to canvas or main track */
  overflow: visible;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.brain-labels-container.loaded {
  opacity: 1;
}

/* Overview Decorative Header */
.brain-labels-header {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translate(-50%, -15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: labelHeaderFadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.1s;
}

@keyframes labelHeaderFadeIn {
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.lbl-overview-title {
  font-family: var(--font-cursive);
  font-size: 2rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1;
}

.lbl-overview-divider {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.lbl-overview-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.75;
}

.lbl-overview-dot {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background-color: var(--accent-brown-light);
  display: inline-block;
}

/* SVG Vector Overlay & Leader Lines */
.brain-labels-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.leader-line {
  fill: none;
  stroke: rgba(107, 76, 59, 0.28); /* Delicate warm espresso outline */
  stroke-width: 1.25px;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: sproutLine 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes sproutLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* Line Staggered Delays */
.frontal-line { animation-delay: 0.3s; }
.temporal-line { animation-delay: 0.4s; }
.cerebellum-line { animation-delay: 0.5s; }
.parietal-line { animation-delay: 0.35s; }
.occipital-line { animation-delay: 0.45s; }
.brainstem-line { animation-delay: 0.55s; }

/* Legend Anchoring Dots */
.legend-dot {
  transform: scale(0);
  animation: popDot 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popDot {
  to {
    transform: scale(1);
  }
}

/* Dot Staggered Delays & Localized Transform Origins */
.frontal-dot {
  fill: var(--accent-gold);
  animation-delay: 1.2s;
  transform-origin: 280px 160px;
}
.temporal-dot {
  fill: var(--accent-brown-light);
  animation-delay: 1.3s;
  transform-origin: 260px 290px;
}
.cerebellum-dot {
  fill: var(--accent-stem-green-light);
  animation-delay: 1.4s;
  transform-origin: 280px 410px;
}
.parietal-dot {
  fill: var(--accent-gold);
  animation-delay: 1.25s;
  transform-origin: 720px 165px;
}
.occipital-dot {
  fill: var(--accent-brown-light);
  animation-delay: 1.35s;
  transform-origin: 740px 290px;
}
.brainstem-dot {
  fill: var(--accent-stem-green-light);
  animation-delay: 1.45s;
  transform-origin: 710px 410px;
}

/* Lobe Text Legend items */
.brain-label-item {
  position: absolute;
  width: 240px;
  opacity: 0;
  will-change: transform, opacity;
}

.label-left {
  text-align: right;
  transform: translateX(-15px);
  animation: fadeInLabelLeft 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.label-right {
  text-align: left;
  transform: translateX(15px);
  animation: fadeInLabelRight 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeInLabelLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLabelRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Lobe Text Staggered Delays */
.frontal-label { animation-delay: 0.9s; }
.temporal-label { animation-delay: 1.0s; }
.cerebellum-label { animation-delay: 1.1s; }
.parietal-label { animation-delay: 0.95s; }
.occipital-label { animation-delay: 1.05s; }
.brainstem-label { animation-delay: 1.15s; }

/* Lobe Text Typography */
.label-title {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-dark);
  display: inline-block;
  margin-bottom: 2px;
}

.label-desc {
  font-family: var(--font-cursive);
  font-style: italic;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.25;
}

/* Floating Overlays */
.hero-overlay {
  position: absolute;
  z-index: 10;
  pointer-events: none; /* Interactive only when faded in */
  opacity: 0; /* Starts hidden, dynamic scroll-scrub triggers fade in */
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-overlay-left {
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 22%;
  max-width: 360px;
}

/* Staggered Entrance Animation & Styling for Left Text */
.hero-overlay-left .logo-text,
.hero-overlay-left .hero-subtitle {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.hero-overlay-left.animate-in .logo-text,
.hero-overlay-left.animate-in .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.hero-overlay-left.animate-in .logo-text {
  transition-delay: 0.15s;
}

.hero-overlay-left.animate-in .hero-subtitle {
  transition-delay: 0.35s;
}

.hero-overlay-left h1.logo-text {
  font-size: clamp(3.2rem, 5.5vw, 5.5rem);
  color: var(--text-dark);
  line-height: 0.9;
  margin-bottom: 10px;
  position: relative;
}

.hero-overlay-left h2.hero-subtitle {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  color: var(--text-muted);
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 25px;
}

/* Elegant breathing & hover reaction for cursive 'your' */
@keyframes breatheGold {
  0%, 100% {
    text-shadow: 0 0 0px rgba(196, 146, 58, 0);
    color: var(--accent-olive-light);
  }
  50% {
    text-shadow: 0 0 10px rgba(196, 146, 58, 0.25);
    color: var(--accent-gold);
  }
}

.hero-overlay-left h2.hero-subtitle span {
  font-family: var(--font-cursive);
  font-style: italic;
  font-weight: 300;
  color: var(--accent-olive-light);
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: breatheGold 5s ease-in-out infinite;
}

.hero-overlay-left h2.hero-subtitle span:hover {
  transform: scale(1.12) rotate(-3deg);
  cursor: pointer;
}

/* Interactive Hero Divider Line */
.hero-divider {
  width: 0px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-olive-light), var(--accent-gold));
  margin-top: 15px;
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.55s;
}

.hero-overlay-left.animate-in .hero-divider {
  width: 80px;
}

.hero-overlay-right {
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 22%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
}

/* Staggered Entrance Animation & Styling for Right Text */
.hero-overlay-right .hero-desc,
.hero-overlay-right .btn-secondary {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.hero-overlay-right.animate-in .hero-desc,
.hero-overlay-right.animate-in .btn-secondary {
  opacity: 1;
  transform: translateY(0);
}

.hero-overlay-right.animate-in .hero-desc {
  transition-delay: 0.5s;
}

.hero-overlay-right.animate-in .btn-secondary {
  transition-delay: 0.7s;
}

.hero-overlay-right p.hero-desc {
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--bg-cream);
  background-color: var(--accent-olive);
  border: 1px solid var(--accent-olive);
  padding: 14px 30px;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background-color: var(--text-dark);
  border-color: var(--text-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Scroll indicator hint at bottom */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.scroll-arrow {
  width: 1px;
  height: 24px;
  background: var(--accent-olive);
  position: relative;
  overflow: hidden;
  animation: scrollLine 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  40% {
    transform: scaleY(1);
    transform-origin: top;
  }
  60% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 992px) {
  .brain-labels-container {
    display: none !important;
  }

  .hero-track {
    height: auto; /* Natural scrolling track, no hijacking */
  }

  .hero-sticky {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: calc(100vh - 90px);
    overflow: visible;
    padding: 120px 24px 60px 24px; /* Generous padding to clear the 90px fixed navbar */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px; /* Perfect breathing spaces */
    box-sizing: border-box;
  }

  .fullscreen-canvas-container {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 95%; /* Sized elegantly to fill the viewport width on mobile */
    max-width: 480px; /* Gorgeous high-fidelity layout width on mobile */
    aspect-ratio: 1.15; /* Crops empty beige space on the sides, focusing tightly on centerpiece brain */
    margin: 20px auto;
    flex-shrink: 0;
    z-index: 2;
    order: 2; /* Title stacks on top (1), Canvas in the middle (2), Description + Button at bottom (3) */
    border-radius: 0; /* Borderless design for perfect integration into mobile hero too */
    border: none;
    box-shadow: none;
    background-color: transparent;
  }

  .hero-overlay {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    max-width: 100% !important;
    text-align: center !important;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1 !important; /* Force permanent visibility in CSS */
    pointer-events: auto !important; /* Force permanent interaction */
  }

  .hero-overlay-left {
    margin: 0;
    width: 100%;
    order: 1; /* Title stacks at the very top on mobile! */
  }

  .hero-overlay-left h1.logo-text {
    font-size: clamp(2rem, 10vw, 2.8rem);
    margin-bottom: 6px;
  }

  .hero-overlay-left h2.hero-subtitle {
    font-size: clamp(1.1rem, 5vw, 1.35rem);
    margin-bottom: 0;
  }

  .hero-overlay-left .hero-divider {
    display: block;
    margin: 15px auto 0 auto;
    width: 0px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-olive-light), var(--accent-gold));
    border-radius: var(--radius-full);
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.55s;
  }

  .hero-overlay-left.animate-in .hero-divider {
    width: 80px;
  }

  .hero-overlay-right {
    margin: 0;
    width: 100%;
    align-items: center;
    gap: 16px;
    order: 3; /* Description & Button stack below the canvas centerpiece! */
  }

  .hero-overlay-right p.hero-desc {
    font-size: 0.92rem;
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.6;
  }

  .btn-secondary {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  .hero-scroll-hint {
    display: none !important; /* Hide scroll hint on mobile since it is a standard scrollable flow */
  }
}

/* Glassmorphic Loader */
.canvas-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(247, 235, 209, 0.88); /* Seamless matches loader with brain2.gif background */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  z-index: 10;
  transition: opacity 0.5s ease;
}

.canvas-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3.5px solid var(--glass-border);
  border-top-color: var(--accent-olive);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.canvas-loader span {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   WHAT I OFFER - SERVICES SECTION
   ========================================================================== */
.services-section {
  padding: 100px 8%;
  background-color: var(--bg-services);
  text-align: center;
  position: relative;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--text-dark);
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
}

/* Styled line under the title */
.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 1px;
  background-color: var(--accent-olive);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.service-card {
  background: rgba(255, 255, 255, 0.55); /* Exquisite frosted white glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  padding: 50px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  box-shadow: 0 8px 32px 0 rgba(43, 33, 24, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom icon container styles */
.service-icon-wrapper {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  border-radius: var(--radius-full);
  background: var(--bg-cream);
  border: 1px dashed rgba(139, 111, 94, 0.12);
  color: var(--accent-olive);
  transition: var(--transition-smooth);
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--text-dark);
  margin-bottom: 8px; /* Reduced to sit beautifully with the subheading */
  font-weight: 500;
}

.service-subheading {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-olive-light);
  margin-top: 0;
  margin-bottom: 22px;
  text-align: center;
  max-width: 250px;
  line-height: 1.4;
  display: block;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 35px;
  max-width: 250px;
}

.service-link {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent-olive);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  margin-top: auto; /* Push link to the bottom */
}

.service-link svg {
  transition: transform 0.3s ease;
}

/* Card Hover States */
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 40px rgba(43, 33, 24, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.service-card:hover .service-icon-wrapper {
  background: var(--accent-olive);
  color: var(--bg-cream);
  border-color: var(--accent-olive);
  transform: scale(1.06) rotate(5deg);
}

.service-card:hover .service-link {
  color: var(--text-dark);
}

.service-card:hover .service-link svg {
  transform: translateX(6px);
}

/* Active Highlight (from Mood Quiz recommendations) */
.service-card.recommended-highlight {
  border-color: var(--accent-olive);
  box-shadow: 0 0 0 3px rgba(139, 111, 94, 0.18), var(--shadow-lg);
  animation: bounceGently 1.2s ease infinite alternate;
}

/* ==========================================================================
   QUOTE BANNER (MIDDLE PARALLAX SECTION)
   ========================================================================== */
.quote-banner {
  padding: 90px 8%;
  background-color: var(--bg-sage);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(139, 111, 94, 0.08);
  border-bottom: 1px solid rgba(139, 111, 94, 0.08);
}

/* Subtle warm botanical shimmer overlay */
.quote-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(139, 111, 94, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.quote-icon {
  width: 50px;
  height: 50px;
  color: var(--accent-olive);
  margin-bottom: 25px;
  opacity: 0.85;
  transition: var(--transition-smooth);
}

.quote-banner:hover .quote-icon {
  transform: scale(1.1) rotate(-5deg);
  color: var(--accent-olive-light);
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  color: var(--text-dark);
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 400;
}

.quote-author {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   MIND CHECK - INTERACTIVE SELF-REFLECTION
   ========================================================================== */
.quiz-section {
  padding: 100px 8%;
  background-color: var(--bg-forest); /* Deep forest green sanctuary backdrop */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.quiz-section .section-label {
  color: var(--accent-olive-light); /* Soft light green label */
}

.quiz-section .section-title {
  color: #FDFCF7; /* Warm cream title */
}

.quiz-section .section-title::after {
  background-color: var(--accent-gold); /* Golden underline highlight */
}

.quiz-container {
  background: rgba(253, 252, 247, 0.04); /* Frosted glassmorphism background */
  border: 1px solid rgba(253, 252, 247, 0.08);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  max-width: 780px;
  width: 100%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.quiz-container h3 {
  color: #FDFCF7 !important;
}

.quiz-desc {
  max-width: 480px;
  margin: 0 auto 35px auto;
  font-size: 0.98rem;
  color: var(--bg-sage); /* Softer text color */
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 40px;
}

@media (min-width: 600px) {
  .mood-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mood-btn {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: #EDE0CE;
  background: rgba(253, 252, 247, 0.06);
  border: 1px solid rgba(253, 252, 247, 0.08);
  padding: 18px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mood-btn svg {
  width: 24px;
  height: 24px;
  stroke: #EDE0CE;
  stroke-width: 1.5;
  transition: var(--transition-fast);
}

.mood-btn:hover {
  border-color: var(--accent-gold-light);
  color: #FDFCF7;
  background: rgba(253, 252, 247, 0.12);
  transform: translateY(-3px);
}

.mood-btn.active {
  border-color: var(--accent-gold);
  background: var(--accent-gold);
  color: var(--bg-forest); /* Contrast dark text on bright gold */
  box-shadow: 0 8px 20px rgba(214, 158, 46, 0.3);
  font-weight: 600;
}

.mood-btn.active svg {
  stroke: var(--bg-forest);
  transform: scale(1.1);
}

.quiz-result-box {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top: 1px dashed rgba(253, 252, 247, 0.15);
  padding-top: 35px;
  opacity: 0;
  transform: translateY(15px);
  transition: var(--transition-smooth);
}

.quiz-result-box.show {
  opacity: 1;
  transform: translateY(0);
}

.result-heading {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--accent-gold-light); /* Golden heading */
  margin-bottom: 12px;
}

.result-text {
  font-size: 0.95rem;
  color: #FDFCF7;
  max-width: 520px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.btn-result-action {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bg-forest) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: var(--accent-gold);
  box-shadow: 0 4px 15px rgba(214, 158, 46, 0.2);
}

.btn-result-action:hover {
  background: var(--accent-gold-light);
  color: var(--bg-forest) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(214, 158, 46, 0.35);
}

/* ==========================================================================
   CONTACT & BOOKING SECTION
   ========================================================================== */
.contact-section {
  padding: 110px 8%;
  background: linear-gradient(160deg, #FDFCF7 0%, #FAF3E8 60%, #F2E8D9 100%);
  position: relative;
  border-top: 1px solid rgba(139, 111, 94, 0.08);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h2 {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 25px;
  line-height: 1.2;
}

.contact-info p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(139, 111, 94, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-olive);
  flex-shrink: 0;
}

.contact-text h4 {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-text p, 
.contact-text a {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-text a:hover {
  color: var(--accent-olive);
}

/* Beautiful Editorial Form */
.contact-form-container {
  background: var(--bg-cream);
  border: 1px solid rgba(139, 111, 94, 0.08);
  border-radius: var(--radius-lg);
  padding: 45px;
  box-shadow: var(--shadow-md);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.form-input {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(139, 111, 94, 0.18);
  color: var(--text-dark);
  outline: none;
  transition: var(--transition-fast);
}

.form-label {
  position: absolute;
  top: 12px;
  left: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: transform 0.3s ease, color 0.3s ease;
  transform-origin: left top;
}

/* Float label effect */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  transform: translateY(-24px) scale(0.85);
  color: var(--accent-olive);
  font-weight: 500;
}

/* Line drawer under focuses input */
.form-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.8px;
  background-color: var(--accent-olive);
  transition: width 0.4s ease, left 0.4s ease;
}

.form-group:focus-within::after {
  width: 100%;
  left: 0;
}

.form-input:focus {
  border-bottom-color: transparent;
}

.btn-submit {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--bg-cream);
  background-color: var(--accent-olive);
  border: 1px solid var(--accent-olive);
  padding: 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 10px;
}

.btn-submit:hover {
  background-color: var(--text-dark);
  border-color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--bg-cream);
  padding: 70px 8% 40px 8%;
  border-top: 1px solid rgba(139, 111, 94, 0.07);
  position: relative;
}

.footer-top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  margin-bottom: 50px;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
  }
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(139, 111, 94, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--bg-card);
  transition: var(--transition-smooth);
}

.social-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
  transition: var(--transition-fast);
}

.social-btn:hover {
  border-color: var(--accent-olive);
  color: var(--accent-olive);
  background: var(--glass-bg);
  transform: translateY(-3px) scale(1.05);
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-olive);
}

.footer-bottom {
  border-top: 1px solid rgba(139, 111, 94, 0.07);
  padding-top: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
  .footer-bottom > * {
    flex: 1;
  }
  .copyright {
    text-align: left;
  }
  .footer-bottom .developed-by-netriq {
    align-items: center;
  }
  .footer-bottom .footer-policy {
    justify-content: flex-end;
  }
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-policy {
  display: flex;
  gap: 20px;
}

.footer-policy a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-policy a:hover {
  color: var(--accent-olive);
}

.developed-by-netriq {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.developed-by-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  opacity: 0.45;
  line-height: 1;
}

.netriq-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.06em;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.netriq-logo-link:hover {
  transform: scale(1.05);
}

.netriq-logo-svg-wrapper {
  width: 32px;
  height: 32px;
  margin-right: -2px;
}

.netriq-logo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.netriq-logo-text {
  display: inline-block;
  line-height: 1;
  padding-top: 3px;
}

.netriq-ai-text {
  color: #14A083;
  font-style: italic;
  font-weight: 800;
}

@media (min-width: 768px) {
  .netriq-logo-svg-wrapper {
    width: 38px;
    height: 38px;
    margin-right: -3px;
  }
  .netriq-logo-link {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   SCROLL-DRIVEN & STANDARD ANIMATIONS
   ========================================================================== */

/* Page Entry Fade Up Keyframes */
@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle organic bounce for highlighting recommended card */
@keyframes bounceGently {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-6px);
  }
}



/* SVG Path Drawing Keyframes */
@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* --- Native CSS Scroll-Driven Animations --- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    
    /* Scroll Reveal Keyframes */
    @keyframes scrollReveal {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Scroll Shrink/Fade out at the exit of viewport (Optional nice touch) */
    @keyframes scrollExit {
      to {
        opacity: 0.9;
      }
    }

    /* Apply scroll-driven entrance animation to Service Cards */
    .services-grid > * {
      animation: scrollReveal auto linear backwards;
      animation-timeline: view();
      animation-range: entry 10% entry 45%;
    }

    /* Apply scroll reveal to Parallax Quote Banner content */
    .quote-banner > * {
      animation: scrollReveal auto linear backwards;
      animation-timeline: view();
      animation-range: entry 5% entry 40%;
    }

    /* Apply scroll reveal to interactive quiz container */
    .quiz-container {
      animation: scrollReveal auto linear backwards;
      animation-timeline: view();
      animation-range: entry 5% entry 35%;
    }

    /* Apply scroll reveal to contact layout columns */
    .contact-info, 
    .contact-form-container {
      animation: scrollReveal auto linear backwards;
      animation-timeline: view();
      animation-range: entry 5% entry 38%;
    }
  }
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE REFS
   ========================================================================== */
@media (max-width: 1024px) {
  .navbar {
    padding: 0 5%;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .contact-info {
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 768px) {
  /* Navbar changes */
  .navbar.scrolled {
    width: 92%;
    top: 15px;
    padding: 0 20px;
    height: 65px;
  }

  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--bg-cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px; /* Premium, clean vertical spacing */
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    z-index: 1000;
  }

  .nav-links li {
    height: auto; /* Reset desktop 100% height to prevent massive vertical stretching on mobile */
  }

  .nav-links.active {
    right: 0;
  }

  .nav-btn-wrapper {
    margin-top: 20px;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 5px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
  }

  /* Adjust diagram layout */
  .label-group {
    pointer-events: none; /* In very small mobile viewports, let clicks be on the brain lobes directly */
  }

  .services-section {
    padding: 70px 5%;
  }

  .quiz-section {
    padding: 70px 5%;
  }

  .quiz-container {
    padding: 35px 20px;
  }

  .contact-section {
    padding: 70px 5%;
  }

  .contact-form-container {
    padding: 30px 20px;
  }
}

/* ==========================================================================
   SCROLL TO TOP BUTTON (Frosted Glassmorphism)
   ========================================================================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(253, 252, 247, 0.6); /* Soft translucent warm cream glass */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--accent-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 32px rgba(43, 33, 24, 0.08);
  z-index: 999;
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
  background: var(--accent-brown);
  border-color: var(--accent-brown);
  color: var(--bg-cream);
  box-shadow: 0 12px 36px rgba(107, 76, 59, 0.3);
  transform: translateY(-3px) scale(1.05);
}

.scroll-to-top:hover svg {
  transform: translateY(-3px);
}

/* ==========================================================================
   DYNAMIC ROOT GUIDE SVG STYLES
   ========================================================================== */
.root-guide-container {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

#root-guide-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

#root-guide-path-main {
  stroke: rgba(107, 76, 59, 0.22); /* Rich warm espresso brown */
  stroke-width: 7px;               /* Bolder, more dominant line */
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dashoffset 0.05s ease-out;
}

.root-branch {
  fill: none;
  stroke: rgba(107, 76, 59, 0.16); /* Warm espresso branch sprout */
  stroke-width: 4px;               /* Bolder branch sprout */
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dashoffset 0.05s ease-out;
}

.root-bud {
  fill: var(--accent-brown-light);    /* Warm terracotta / dusty rose-brown */
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.root-bud.bloomed {
  opacity: 0.85;                   /* Slightly more vivid on bloom */
  transform: scale(1);
}

/* ==========================================================================
   WATERMARK LAYERING: ELEVATE CONTENT DIRECT CHILDREN ABOVE ROOT GUIDE
   ========================================================================== */
.quote-banner > *,
.services-section > *,
.quiz-section > *,
.contact-section > *,
.footer > * {
  position: relative;
  z-index: 3;
}

/* ==========================================================================
   MODAL OVERLAY SYSTEM - Service Form Popups
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 18, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-cream);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow:
    0 40px 80px rgba(28, 18, 8, 0.35),
    0 0 0 1px rgba(196, 146, 58, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.8);
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

/* Scrollbar styling */
.modal-box::-webkit-scrollbar { width: 6px; }
.modal-box::-webkit-scrollbar-track { background: transparent; }
.modal-box::-webkit-scrollbar-thumb { background: var(--bg-sand-dark); border-radius: 3px; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--bg-sand);
  border: 1px solid rgba(107, 76, 59, 0.15);
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
  line-height: 1;
}

.modal-close:hover {
  background: var(--bg-sand-dark);
  color: var(--text-dark);
}

.modal-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid rgba(107, 76, 59, 0.1);
}

.modal-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(196, 146, 58, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.25;
}

.modal-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── Modal Form ──────────────────────────────────────── */
.modal-form {
  padding: 24px 32px 32px;
}

.mform-group {
  margin-bottom: 20px;
}

.mform-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  line-height: 1.5;
}

.mform-input,
.mform-select,
.mform-textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(43, 33, 24, 0.04);
  border: 1.5px solid rgba(107, 76, 59, 0.2);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
  transition: all 0.25s;
  appearance: none;
  -webkit-appearance: none;
}

.mform-input:focus,
.mform-select:focus,
.mform-textarea:focus {
  border-color: var(--accent-gold);
  background: rgba(196, 146, 58, 0.04);
  box-shadow: 0 0 0 3px rgba(196, 146, 58, 0.12);
}

.mform-textarea { resize: vertical; min-height: 100px; }

/* Radio Group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(43, 33, 24, 0.03);
  border: 1.5px solid rgba(107, 76, 59, 0.12);
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-dark);
  transition: all 0.2s;
}

.radio-option:hover {
  border-color: var(--accent-gold);
  background: rgba(196, 146, 58, 0.05);
}

.radio-option input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-gold);
  flex-shrink: 0;
}

.radio-option:has(input:checked) {
  border-color: var(--accent-gold);
  background: rgba(196, 146, 58, 0.08);
  color: var(--text-dark);
  font-weight: 500;
}

/* Alert in modal */
.mform-alert {
  font-size: 0.85rem;
  border-radius: 8px;
  margin-bottom: 12px;
}

.mform-alert.success {
  background: rgba(86, 160, 86, 0.1);
  border: 1px solid rgba(86, 160, 86, 0.3);
  color: #2d6e2d;
  padding: 12px 14px;
}

.mform-alert.error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #b91c1c;
  padding: 12px 14px;
}

/* Submit Button */
.mform-submit {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent-brown), var(--accent-brown-light));
  color: #fdf6ec;
  border: none;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 4px;
}

.mform-submit:hover {
  background: linear-gradient(135deg, var(--accent-brown-light), var(--accent-gold));
  box-shadow: 0 6px 20px rgba(107, 76, 59, 0.35);
  transform: translateY(-1px);
}

.mform-submit:active { transform: translateY(0); }
.mform-submit:disabled { opacity: 0.6; pointer-events: none; }

/* Body lock when modal open */
body.modal-open { overflow: hidden; }

/* ─── Contact form API styles ─────────────────────────── */
#booking-form .form-success-msg {
  background: rgba(86, 160, 86, 0.1);
  border: 1px solid rgba(86, 160, 86, 0.3);
  color: #2d6e2d;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ==========================================================================
   FAQ SECTION (AEO & GEO OPTIMIZED)
   ========================================================================== */
.faq-section {
  padding: 110px 8%;
  background: var(--bg-card);
  border-top: 1px solid rgba(139, 111, 94, 0.06);
  position: relative;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 50px;
}

.faq-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(196, 146, 58, 0.08);
  color: var(--accent-gold);
  border: 1px solid rgba(196, 146, 58, 0.15);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 15px;
}

.faq-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--text-dark);
  margin-bottom: 15px;
}

.faq-subtitle {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.faq-item[open] {
  border-color: rgba(196, 146, 58, 0.25);
  box-shadow: var(--shadow-md);
  background: #FDFCF7;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--accent-brown);
}

.faq-icon {
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid rgba(139, 111, 94, 0.06);
  color: var(--accent-brown);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-brown);
}

.faq-answer {
  padding: 24px 28px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  background: rgba(253, 252, 247, 0.4);
}

.faq-answer p {
  margin: 0;
}

/* Make FAQ section play nicely on mobile devices */
@media (max-width: 768px) {
  .faq-section {
    padding: 80px 5%;
  }
  .faq-header {
    margin-bottom: 35px;
  }
  .faq-question {
    padding: 18px 20px;
    font-size: 0.98rem;
  }
  .faq-answer {
    padding: 18px 20px;
    font-size: 0.92rem;
  }
}

/* Brand Logo Trademark TM superscript */
.logo .tm,
.logo-text .tm,
.hero-subtitle .tm,
.tm {
  font-size: 0.24em;
  font-weight: 700;
  position: relative;
  top: -2.3em;
  margin-left: 2px;
  opacity: 0.85;
  font-family: var(--font-sans);
  color: var(--accent-gold);
  vertical-align: baseline;
  display: inline-block;
  line-height: 1;
}

/* CMS Content Editor Toolbars */
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(90, 105, 83, 0.05);
  border: 1px solid rgba(90, 105, 83, 0.12);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 6px 10px;
  align-items: center;
  margin-top: 12px;
}

.toolbar-btn {
  background: white;
  border: 1px solid rgba(90, 105, 83, 0.15);
  border-radius: 4px;
  color: var(--text-dark);
  font-size: 0.76rem;
  padding: 3px 7px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toolbar-btn:hover {
  background: var(--text-dark);
  color: white;
  border-color: var(--text-dark);
  transform: translateY(-1px);
}

.toolbar-btn:active {
  transform: translateY(0);
}

/* Adjust textareas under toolbars */
.editor-toolbar + textarea {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  margin-top: 0 !important;
}

