/* ==========================================================================
   PSYCNOSIS AnimatedTopDock - Light & Teal Theme (ThreeUI Command Bar)
   ========================================================================== */

/* Design Tokens */
:root {
  --color-primary: #0E4D4A;
  /* Deep Forest Teal */
  --color-primary-dark: #0A3A38;
  /* Darker Deep Forest Teal */
  --color-primary-light: #12635F;
  /* Medium Deep Teal */
  --color-accent-amber: #E2A03F;
  /* Warm Honey Gold Accent */
  --color-accent-leaf: #0E4D4A;
  /* Deep Forest Teal Tint */
  --color-bg-page: #FAF9F6;
  /* Cream Page Background */
  --color-text-main: #111827;
  /* High Contrast Dark Text */
  --color-text-muted: #374151;
  /* High Contrast Dark Text */

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Global Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: var(--color-text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ThreeUI Animated Top Dock Main Component Host */
.animated-top-dock-component {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: auto;
  min-height: auto;
  display: block;
  isolation: isolate;
  container-type: inline-size;
  color: var(--color-text-main);
  background: transparent;
  padding-top: clamp(12px, 1.5vw, 20px);
  padding-bottom: 8px;
  overflow: visible;
}

/* Subtle Noise Texture Overlay */
.animated-top-dock-component::after {
  display: none;
}

/* Modern Variant Scale System - Expanded Width & Height */
.animated-top-dock-component.atd-modern {
  --atd-top: 0px;
  --atd-bar-width: min(1440px, calc(100% - clamp(20px, 3.5vw, 64px)));
  --atd-bar-height: clamp(76px, 5.2vw, 92px);
  --atd-bar-pad: clamp(10px, 1vw, 18px);
  --atd-bar-lead: clamp(20px, 2vw, 36px);
  --atd-item-height: clamp(36px, 2.5vw, 44px);
  --atd-item-pad: clamp(12px, 1.1vw, 22px);
  --atd-label: clamp(13.5px, 0.95vw, 16.5px);
  --atd-icon: clamp(16px, 1.1vw, 20px);
  --atd-gap: clamp(6px, 0.5vw, 10px);
  --atd-brand: clamp(16px, 1.2vw, 22px);
  --atd-mark: clamp(44px, 3vw, 52px);
  --atd-action-height: clamp(42px, 2.8vw, 50px);
  display: block;
  overflow: visible;
}

/* Light Background Aurora Mesh */
.atd-modern__aurora {
  display: none;
}

/* Command Bar Container - Light Glassmorphism with Generous Padding & Expanded Size */
.atd-modern__bar {
  position: relative;
  top: 0;
  left: 0;
  transform: none;
  margin: 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--atd-bar-width);
  max-width: var(--atd-bar-width);
  height: var(--atd-bar-height);
  padding: var(--atd-bar-pad) var(--atd-bar-pad) var(--atd-bar-pad) var(--atd-bar-lead);
  gap: clamp(16px, 2.5vw, 42px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px -10px rgba(0, 50, 45, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  overflow: visible;
  animation: topDockFloat 7s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes topDockFloat {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-4px);
  }
}

/* Brand Wordmark & Logo */
.atd-modern__brand {
  display: inline-flex;
  flex: 1;
  align-items: center;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.atd-modern__brand:hover {
  transform: translateY(-1px) scale(1.02);
}

.brand-standalone-logo {
  height: clamp(48px, 4vw, 62px);
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

/* Midline Proximity Dock Track */
.atd-modern__dock {
  display: flex;
  flex: none;
  gap: clamp(2px, 0.25cqw, 6px);
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Individual Proximity Dock Item Button - Sleek Reduced Height */
.atd-modern__item {
  display: inline-flex;
  flex: none;
  gap: var(--atd-gap);
  align-items: center;
  justify-content: center;
  height: var(--atd-item-height);
  padding: 0 var(--atd-item-pad);
  border: 1px solid transparent;
  border-radius: 999px;
  outline: none;
  color: #1F2937;
  background: transparent;
  font-size: var(--atd-label);
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transform-origin: center center;
  will-change: width, background, color;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

/* Hover & Proximity Near Active State */
.atd-modern__item[data-dock-near="true"],
.atd-modern__item:hover,
.atd-modern__item:focus-visible {
  color: var(--color-primary);
  border-color: rgba(32, 178, 170, 0.25);
  background: rgba(32, 178, 170, 0.08);
  box-shadow: 0 2px 8px rgba(32, 178, 170, 0.1);
}

/* Active Selected Item (Home, etc.) */
.atd-modern__item[aria-pressed="true"] {
  color: var(--color-primary);
  font-weight: 700;
  border-color: rgba(32, 178, 170, 0.35);
  background: rgba(32, 178, 170, 0.12);
  box-shadow: 0 2px 10px rgba(32, 178, 170, 0.12);
  position: relative;
}

/* Underline Indicator on Active Link */
.atd-modern__item[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 99px;
}

/* Dock Item SVG Icon */
.atd-modern__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--atd-icon);
  height: var(--atd-icon);
  opacity: 0.75;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.atd-modern__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.atd-modern__item[data-dock-near="true"] .atd-modern__icon,
.atd-modern__item:hover .atd-modern__icon,
.atd-modern__item[aria-pressed="true"] .atd-modern__icon {
  opacity: 1;
  transform: scale(1.1);
}

/* Right Group: Action Button */
.atd-modern__actions {
  display: inline-flex;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
}

/* CTA Pill Button (Book a Session) - Reduced Compact Height */
.atd-modern__cta {
  display: inline-flex;
  gap: var(--atd-gap);
  align-items: center;
  height: var(--atd-action-height);
  padding: 0 clamp(14px, 1cqw, 20px);
  border: 0;
  border-radius: 999px;
  color: #FFFFFF;
  background: var(--color-primary);
  box-shadow: 0 6px 18px -4px rgba(0, 77, 71, 0.35);
  font-size: var(--atd-label);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.atd-modern__cta svg {
  width: var(--atd-icon);
  height: var(--atd-icon);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.atd-modern__cta:hover {
  background-color: var(--color-primary-light);
  box-shadow: 0 8px 24px -4px rgba(0, 77, 71, 0.45);
}

.atd-modern__cta:hover svg {
  transform: translateX(3px);
}

/* Hero Stage Content */
.atd-modern__stage {
  position: absolute;
  top: 58%;
  left: 50%;
  z-index: 4;
  width: min(88cqw, 1000px);
  text-align: center;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.atd-modern__eyebrow {
  margin: 0 0 clamp(10px, 1cqw, 20px);
  color: var(--color-primary);
  background: rgba(0, 77, 71, 0.08);
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: clamp(11px, 0.8cqw, 14px);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.atd-modern__headline {
  margin: 0;
  padding: 0.05em 0 0.1em;
  color: #0F172A;
  font-size: clamp(32px, 6.2cqw, 90px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.atd-modern__headline .highlight {
  color: var(--color-primary);
}

.atd-modern__subtext {
  font-size: clamp(14px, 1.2cqw, 20px);
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 1.25rem auto 0;
  line-height: 1.6;
}

.animated-top-dock-component__caption {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 6;
  color: var(--color-text-muted);
  font: 500 11px/1 var(--font-family);
  letter-spacing: 0.08em;
  opacity: 0.8;
}

/* Container Queries & Media Responsiveness */
@container (max-width: 960px) {
  .brand-tagline {
    display: none;
  }

  .atd-modern__item span:last-child {
    display: none;
  }

  .atd-modern__cta span {
    display: inline;
  }
}

@media (max-width: 720px) {
  .brand-text-container {
    display: none;
  }

  .atd-modern__item {
    height: 28px !important;
    padding: 0 8px;
    transform: none !important;
  }

  .atd-modern__stage {
    top: 60%;
  }

  .atd-modern__cta span {
    display: none;
  }

  .atd-modern__cta {
    padding: 0 var(--atd-bar-pad);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atd-modern__item {
    transform: none !important;
  }
}

/* ── Very small phones (≤400px) ─────────────────────────────────── */
@media (max-width: 400px) {
  .animated-top-dock-component.atd-modern {
    --atd-bar-height: 62px;
    --atd-item-height: 26px;
    --atd-item-pad: 6px;
    --atd-bar-pad: 6px;
    --atd-bar-lead: 10px;
    --atd-gap: 2px;
  }

  .atd-modern__bar {
    border-radius: 18px;
    gap: 6px;
  }

  .atd-modern__item span:last-child {
    display: none;
  }

  .atd-modern__cta span {
    display: none;
  }

  .brand-text-container {
    display: none;
  }
}

/* --- PSYCNOSIS-SECTIONS.CSS --- */
/* ============================================================
   PSYCNOSIS INTERACTIVE SERVICES & PARENT CORKBOARD STYLES
   ============================================================ */

:root {
  --primary-teal: #0E4D4A;
  --dark-teal: #0A3A38;
  --teal-950: #0E4D4A;
  --teal-900: #0E4D4A;
  --teal-800: #12635F;
  --teal-700: #0E4D4A;
  --teal-500: #0E4D4A;
  --teal-300: #54C9C3;
  --teal-100: #E6F7F6;
  --teal-50: #F0FAF9;

  --gold-accent: #E2A03F;
  --gold-hover: #D97706;
  --gold-light: #FBF4E8;
  --gold-700: #D97706;
  --gold-600: #E2A03F;
  --gold-500: #E2A03F;
  --gold-300: #FDE9B9;
  --gold-100: #FBF4E8;

  --cream: #FAF9F6;
  --cream-warm: #EEF7F6;
  --cream-deep: #E6F7F6;
  --board: #EEF7F6;
  --paper: #FFFFFF;

  --clay: #D97706;
  --berry: #E11D48;
  --plum: #7C3AED;
  --ink: #111827;
  --ink-soft: #374151;
  --line: rgba(14, 77, 74, 0.12);

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --tag-parenting-bg: #FFF5C2;
  --tag-parenting-fg: #856400;
  --tag-development-bg: #E0F5F4;
  --tag-development-fg: #105C57;
  --tag-mental-bg: #F3E8FF;
  --tag-mental-fg: #6B21A8;
  --tag-schools-bg: #FEF3C7;
  --tag-schools-fg: #92400E;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-btn: 50px;
  --shadow-sm: 0 4px 14px rgba(14, 77, 74, 0.06);
  --shadow-md: 0 16px 38px -12px rgba(14, 77, 74, 0.14);
  --shadow-lg: 0 24px 54px -16px rgba(14, 77, 74, 0.22);
  --shadow-btn: 0 6px 18px rgba(14, 77, 74, .28);
  --shadow-gold: 0 6px 18px rgba(226, 160, 63, .35);

  --ease: cubic-bezier(.16, 1, .3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", serif;
  font-weight: 700;
  margin: 0;
  color: var(--teal-950);
}

.hand {
  font-family: "Caveat", cursive;
  font-weight: 700;
}

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

.section {
  padding-block: clamp(64px, 8vw, 108px);
  position: relative;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2.5px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ============================================================
   SCROLL PROGRESS BAR & BACK TO TOP
   ============================================================ */
#scrollBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-500), var(--teal-500), var(--gold-500));
  z-index: 10000;
  box-shadow: 0 0 12px rgba(226, 160, 63, .7);
  transition: width .08s linear;
  border-radius: 0 4px 4px 0;
}

#backToTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal-900);
  color: #fff;
  border: 2px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(.8);
  transition: opacity .35s ease, transform .35s var(--ease), visibility .35s;
  box-shadow: 0 8px 24px rgba(14, 77, 74, .3);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#backToTop:hover {
  background: var(--gold-500);
  color: var(--teal-950);
  transform: translateY(-4px) scale(1.08);
}

/* ============================================================
   HEADER HERO INTRO BANNER (HOME.HTML DUAL COLUMN THEME)
   ============================================================ */
.page-hero {
  padding-top: clamp(48px, 7vw, 76px);
  padding-bottom: clamp(48px, 7vw, 72px);
  background: linear-gradient(180deg, #FAF8F5 0%, #fbf4e8 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbf4e8 0%, #fde9b9 40%, #fbf4e8 80%);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  border: 1px solid rgba(226, 160, 63, 0.35);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--teal-950);
  margin-bottom: 20px;
}

@keyframes shimmer {
  from {
    background-position: -200% center;
  }

  to {
    background-position: 200% center;
  }
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(226, 160, 63, .45);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(226, 160, 63, 0);
  }
}

.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-600);
  animation: badgePulse 2.2s ease-in-out infinite;
}

.page-hero h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.14;
  margin: 0 0 18px;
  color: var(--teal-950);
  text-align: left;
}

.page-hero h1 span.gold-txt {
  color: var(--gold-600);
  background: linear-gradient(135deg, var(--gold-600), #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero p {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 28px;
  text-align: left;
}

.hero-quick-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.quick-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 15px;
  transition: all .35s var(--ease);
  cursor: pointer;
}

.quick-nav-btn.primary {
  background: linear-gradient(135deg, #0E4D4A 0%, #14938D 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(14, 77, 74, 0.28);
}

.quick-nav-btn.primary:hover {
  background: linear-gradient(135deg, #0A4A45 0%, #106E67 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(14, 77, 74, 0.38);
}

.quick-nav-btn.secondary {
  background: linear-gradient(135deg, #E2A03F 0%, #D97706 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(226, 160, 63, 0.35);
}

.quick-nav-btn.secondary:hover {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(226, 160, 63, 0.48);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 28px 15px 15px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 50px -12px rgba(14, 77, 74, 0.25);
  /* border: 3px solid rgba(255, 255, 255, 0.88); */
  max-height: 480px;
  z-index: 1;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.hero-image-wrapper:hover img {
  transform: scale(1.04);
}

/* Floating Glassmorphism Badges */
.glass-float-badge {
  position: absolute;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(14, 77, 74, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.badge-top-right {
  top: -24px;
  right: 10px;
  animation: floatBadgeTop 5.5s ease-in-out infinite alternate;
}

.badge-bottom-left {
  bottom: -10px;
  left: -12px;
  animation: floatBadgeBottom 6.5s ease-in-out infinite alternate;
}

@keyframes floatBadgeTop {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-7px) rotate(1deg);
  }

  100% {
    transform: translateY(-12px) rotate(-0.8deg);
  }
}

@keyframes floatBadgeBottom {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(7px) rotate(-1deg);
  }

  100% {
    transform: translateY(12px) rotate(0.8deg);
  }
}

/* Ambient Moving Background Orbs */
.page-hero .ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  animation: ambientOrbDrift 14s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes ambientOrbDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(35px, -25px) scale(1.08);
  }

  66% {
    transform: translate(-25px, 20px) scale(0.94);
  }

  100% {
    transform: translate(15px, 30px) scale(1.03);
  }
}

.badge-icon-pill {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.badge-icon-pill.gold {
  background: #FBF4E8;
  color: #D97706;
}

.badge-icon-pill.teal {
  background: #E6F7F6;
  color: #0E4D4A;
}

.badge-text-wrap {
  display: flex;
  flex-direction: column;
}

.badge-title-txt {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal-950);
  line-height: 1.25;
}

.badge-sub-txt {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.2;
}

/* Ambient Orbs */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .38;
  pointer-events: none;
  will-change: transform;
  animation: orbDrift 12s ease-in-out infinite alternate;
}

@keyframes orbDrift {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(30px, -20px);
  }
}

.orb-gold {
  width: 300px;
  height: 300px;
  background: rgba(226, 160, 63, .25);
  top: -80px;
  right: 5%;
  animation-delay: -2s;
}

.orb-teal {
  width: 380px;
  height: 380px;
  background: rgba(14, 77, 74, .12);
  bottom: -100px;
  left: -60px;
  animation-delay: -6s;
}

.section-wave {
  overflow: hidden;
  line-height: 0;
  margin-bottom: -2px;
}

.section-wave svg {
  display: block;
  width: 100%;
}

.gold-rule {
  height: 4px;
  width: 70px;
  background: linear-gradient(90deg, var(--gold-600), var(--primary-teal));
  border-radius: 999px;
  margin: 14px auto 0;
}

/* ============================================================
   REVEAL & ANIMATIONS SYSTEM
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-zoom.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-head {
  max-width: 640px;
  margin-bottom: clamp(44px, 6vw, 68px);
  position: relative;
  z-index: 2;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 24px;
  color: var(--gold-700);
  margin-bottom: 8px;
  transform: rotate(-2deg);
}

.center .kicker {
  justify-content: center;
  width: 100%;
}

.kicker svg {
  width: 22px;
  height: 22px;
}

.section-head h2 {
  font-size: clamp(34px, 4.5vw, 50px);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--teal-950);
}

.section-head p {
  margin: 14px 0 0;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.center p {
  margin-inline: auto;
  max-width: 520px;
}

/* ============================================================
   SERVICES — "THE GROWTH TRAIL" (BALANCED TWO-COLUMN LAYOUT)
   ============================================================ */
.trail-section {
  background: var(--cream);
  overflow: hidden;
}

.trail {
  position: relative;
  z-index: 1;
  padding-top: 12px;
}

.trail-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  z-index: 0;
  pointer-events: none;
}

.trail-line svg {
  width: 100%;
  height: 100%;
  display: block;
}

.trail-path-bg {
  fill: none;
  stroke: rgba(14, 77, 74, 0.16);
  stroke-width: 4;
  stroke-dasharray: 6 6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.trail-path-fg {
  fill: none;
  stroke: var(--gold-600);
  stroke-width: 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 2px 8px rgba(226, 160, 63, 0.45));
}

.trail-stop {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 76px 1fr;
  align-items: center;
  column-gap: 28px;
  margin-block: 24px;
  padding-block: 16px;
}

.trail-marker {
  grid-column: 2;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px dashed var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  font-family: "Fraunces", serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--teal-900);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
  margin: 0 auto;
}

.trail-stop:hover .trail-marker {
  transform: scale(1.12) rotate(-8deg);
  border-color: var(--gold-500);
  background: var(--gold-100);
}

/* Main Trail Service Cards */
.trail-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 0 0 24px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}

.trail-stop:hover .trail-card {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 77, 74, 0.3);
}

.trail-card-image {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: var(--teal-100);
}

.trail-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.trail-stop:hover .trail-card-image img {
  transform: scale(1.06);
}

.card-category-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--teal-950);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.trail-stop--left .card-category-badge {
  left: auto;
  right: 16px;
}

.trail-card-content {
  padding: 20px 24px 0;
}

.trail-stop--left .trail-card {
  grid-column: 1;
  text-align: right;
}

.trail-stop--right .trail-card {
  grid-column: 3;
  text-align: left;
}

.trail-icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.trail-stop--left .trail-icon-row {
  justify-content: flex-end;
}

.trail-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trail-icon svg {
  width: 22px;
  height: 22px;
}

.icon-blue {
  background: #E0EDFF;
  color: #2563EB;
}

.icon-clay {
  background: #FEF3C7;
  color: #D97706;
}

.icon-teal {
  background: var(--teal-100);
  color: var(--teal-700);
}

.icon-violet {
  background: #F3E8FF;
  color: #7C3AED;
}

.trail-card h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--teal-950);
}

.trail-card p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 600;
}

.feature-bullet-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trail-stop--left .feature-bullet-item {
  flex-direction: row-reverse;
}

.feature-bullet-item svg {
  width: 16px;
  height: 16px;
  color: var(--gold-600);
  flex-shrink: 0;
}

.learn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14.5px;
  color: var(--teal-700);
  position: relative;
  cursor: pointer;
  transition: color .3s ease;
}

.learn-link:hover {
  color: var(--teal-900);
}

.learn-link svg {
  width: 16px;
  height: 16px;
  transition: transform .35s var(--ease);
}

.learn-link:hover svg {
  transform: translateX(4px);
}

.trail-stop--left .learn-link:hover svg {
  transform: translateX(-4px);
}

/* OPPOSITE SIDE FEATURE INSIGHT BOX (FILLING EMPTY SPACES) */
.trail-insight-box {
  background: var(--paper);
  border: 1.5px dashed var(--teal-500);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
}

.trail-stop--left .trail-insight-box {
  grid-column: 3;
}

.trail-stop--right .trail-insight-box {
  grid-column: 1;
  text-align: right;
}

.trail-stop:hover .trail-insight-box {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: #FFFFFF;
}

.insight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-700);
  background: var(--gold-100);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.insight-title {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--teal-950);
  margin-bottom: 8px;
}

.insight-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 14px;
}

.insight-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trail-stop--right .insight-pills {
  justify-content: flex-end;
}

.insight-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-900);
  background: var(--teal-100);
  padding: 4px 10px;
  border-radius: 6px;
}

/* --------- Signpost Consultation CTA --------- */
.signpost {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  background: linear-gradient(135deg, #168d87 0%, #9f8509 100%);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.signpost-flag {
  position: absolute;
  top: 24px;
  left: clamp(24px, 5vw, 54px);
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 20px;
  color: var(--gold-300);
  display: flex;
  align-items: center;
  gap: 6px;
  transform: rotate(-3deg);
}

.signpost-flag svg {
  width: 18px;
  height: 18px;
}

.signpost-copy {
  position: relative;
  z-index: 1;
  padding-top: 28px;
}

.signpost-copy h3 {
  color: #FFFFFF;
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 12px;
  max-width: 440px;
}

.signpost-copy p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .82);
  font-size: 16px;
  line-height: 1.6;
  max-width: 420px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #E2A03F 0%, #D97706 100%);
  color: #FFFFFF;
  border: none;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 12px 28px -8px rgba(226, 160, 63, 0.5);
  transition: transform .2s ease, background .3s var(--ease), box-shadow .3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  box-shadow: 0 16px 36px -8px rgba(226, 160, 63, 0.65);
  transform: translateY(-2px);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.signpost-photo-wrap {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.signpost-photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
}

.signpost-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signpost-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  color: var(--teal-900);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* --------- TRUST & GUARANTEE FEATURE CARDS (NO EMPTY SPACES) --------- */
.guarantee-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.guarantee-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.guarantee-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-500);
}

.guarantee-ring {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px dashed var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-100);
  color: var(--teal-900);
  transition: transform .4s var(--ease);
}

.guarantee-card:hover .guarantee-ring {
  transform: scale(1.1) rotate(10deg);
  background: var(--teal-100);
  color: var(--teal-700);
}

.guarantee-ring svg {
  width: 26px;
  height: 26px;
}

.guarantee-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--teal-950);
  margin-bottom: 6px;
}

.guarantee-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
}

/* ============================================================
   RESOURCES — PARENT'S CORKBOARD
   ============================================================ */
.board-section {
  background:
    radial-gradient(rgba(14, 77, 74, 0.08) 1px, transparent 1.4px) 0 0/18px 18px,
    var(--board);
  position: relative;
}

.board-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--cream) 0%, transparent 8%, transparent 92%, var(--cream) 100%);
  pointer-events: none;
}

/* Ribbon Tabs */
.tabs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
  justify-content: center;
}

.tab {
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--paper);
  padding: 12px 22px 16px;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
  box-shadow: var(--shadow-sm);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
  border-radius: 4px 4px 0 0;
}

.tab:hover {
  transform: translateY(-3px);
  color: var(--teal-900);
}

.tab.is-active {
  background: var(--teal-900);
  color: #FFFFFF;
}

.board {
  position: relative;
  z-index: 1;
  column-count: 3;
  column-gap: 28px;
}

.pin-card {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 32px;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  --rot: 0deg;
  transform: rotate(var(--rot)) translateY(24px);
  opacity: 0;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .45s var(--ease);
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.pin-card.is-visible {
  opacity: 1;
  transform: rotate(var(--rot)) translateY(0);
}

.pin-card:nth-child(6n+1) {
  --rot: -2deg;
}

.pin-card:nth-child(6n+2) {
  --rot: 1.5deg;
}

.pin-card:nth-child(6n+3) {
  --rot: -1deg;
}

.pin-card:nth-child(6n+4) {
  --rot: 2deg;
}

.pin-card:nth-child(6n+5) {
  --rot: -1.6deg;
}

.pin-card:nth-child(6n+6) {
  --rot: 1deg;
}

.pin-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  z-index: 5;
}

.pin-card.is-filtered-out {
  opacity: 0;
  transform: scale(0.88) translateY(12px);
  pointer-events: none;
}

.pin-card.is-hidden {
  display: none !important;
}

.pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .3);
}

.pin::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .9), transparent 55%);
}

.pin[data-cat="parenting"] {
  background: var(--gold-600);
}

.pin[data-cat="development"] {
  background: var(--teal-500);
}

.pin[data-cat="mental"] {
  background: var(--berry);
}

.pin[data-cat="schools"] {
  background: var(--plum);
}

.pin-thumb {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.pin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.pin-card:hover .pin-thumb img {
  transform: scale(1.08);
}

.pin-body {
  padding: 20px 22px 22px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.tag[data-cat="parenting"] {
  background: var(--tag-parenting-bg);
  color: var(--tag-parenting-fg);
}

.tag[data-cat="development"] {
  background: var(--tag-development-bg);
  color: var(--tag-development-fg);
}

.tag[data-cat="mental"] {
  background: var(--tag-mental-bg);
  color: var(--tag-mental-fg);
}

.tag[data-cat="schools"] {
  background: var(--tag-schools-bg);
  color: var(--tag-schools-fg);
}

.pin-body h3 {
  font-size: 18.5px;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--teal-950);
}

.pin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.read-time {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.read-time svg {
  width: 14px;
  height: 14px;
  opacity: .8;
  color: var(--teal-700);
}

.read-btn {
  font-size: 13px;
  font-weight: 800;
  color: var(--teal-700);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Folded corner on every note */
.pin-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 22px 22px;
  border-color: transparent transparent var(--cream-deep) transparent;
  filter: drop-shadow(-1px -1px 2px rgba(10, 42, 40, .14));
  border-radius: 0 0 16px 0;
}

/* --------- Modern Newsletter Banner --------- */
.newsletter-banner {
  position: relative;
  z-index: 1;
  margin-top: 52px;
  background: #F3F9F8;
  border: 2px dashed #0E4D4A;
  border-radius: 28px;
  padding: 46px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  overflow: hidden;
}

.nl-content {
  flex: 1 1 300px;
  max-width: 420px;
}

.nl-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #E2A03F;
}

.nl-sparkle {
  color: #E2A03F;
  animation: pulse 2s infinite;
}

.nl-content h2 {
  font-size: 2.8rem;
  font-family: 'Fraunces', serif;
  color: #0E4D4A;
  margin: 10px 0 16px;
  font-weight: 800;
  letter-spacing: -1px;
}

.nl-content p {
  color: #556B69;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.nl-btn {
  display: inline-flex;
  align-items: center;
  background: #0E4D4A;
  color: #FFF;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.nl-btn:hover {
  background: #14938D;
  color: #FFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(14, 77, 74, 0.2);
}

/* Illustration Middle */
.nl-illustration {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nl-blob {
  position: absolute;
  width: 240px;
  height: 240px;
  background: #D9EFE5;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: morph 8s ease-in-out infinite;
  z-index: 1;
}

.nl-card {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  width: 170px;
  height: 220px;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  padding: 16px;
  transform: rotate(-4deg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nl-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #14938D;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 2px solid #EAF5F0;
  padding-bottom: 8px;
}

.nl-line {
  height: 6px;
  background: #EAF5F0;
  border-radius: 4px;
  width: 100%;
}

.nl-line.short {
  width: 60%;
}

.nl-card-img {
  background: #84C5AA;
  border-radius: 6px;
  height: 70px;
  position: relative;
  overflow: hidden;
}

.nl-sun {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 16px;
  height: 16px;
  background: #FFD166;
  border-radius: 50%;
}

.nl-mountain {
  position: absolute;
  bottom: -10px;
  width: 60px;
  height: 60px;
  background: #0E4D4A;
  transform: rotate(45deg);
}

.nl-mountain.m1 {
  left: 10px;
}

.nl-mountain.m2 {
  left: 45px;
  background: #14938D;
  width: 50px;
  height: 50px;
}

.nl-plane {
  position: absolute;
  right: -20px;
  top: 40px;
  width: 40px;
  height: 40px;
  z-index: 3;
  transform: rotate(15deg);
  animation: floatPlane 4s ease-in-out infinite;
}

.nl-trail {
  position: absolute;
  width: 120px;
  height: 80px;
  right: 10px;
  top: 80px;
  z-index: 1;
}

/* Pills Right */
.nl-pills {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 200px;
  max-width: 240px;
}

.nl-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #FFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.pill-green {
  background: #EAF5F0;
  color: #166B67;
}

.pill-blue {
  background: #E8F2FB;
  color: #2B6CB0;
}

.pill-yellow {
  background: #FFF7E6;
  color: #B7791F;
}

.pill-purple {
  background: #F0EDFA;
  color: #553C9A;
}

.nl-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.06);
}

.nl-text {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

@keyframes morph {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }

  34% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
  }

  67% {
    border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
  }

  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
}

@keyframes floatPlane {

  0%,
  100% {
    transform: translateY(0) rotate(15deg);
  }

  50% {
    transform: translateY(-8px) rotate(18deg);
  }
}

/* ============================================================
   MODAL STYLES (Booking & Article Reader)
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(8, 41, 38, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--paper);
  border-radius: 28px;
  width: 100%;
  max-width: 540px;
  padding: clamp(28px, 4vw, 40px);
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform .35s var(--ease);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop.is-open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream-deep);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: background .2s ease;
}

.modal-close:hover {
  background: var(--line);
  color: var(--ink);
}

.modal-head {
  margin-bottom: 24px;
}

.modal-head h3 {
  font-size: 26px;
  margin-bottom: 6px;
  color: var(--teal-950);
}

.modal-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--teal-950);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: var(--cream);
  transition: border-color .2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal-500);
  background: #FFFFFF;
}

.btn-submit-modal {
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0E4D4A 0%, #14938D 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 15.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(14, 77, 74, 0.3);
  transition: background .2s ease, transform .2s ease;
  margin-top: 10px;
}

.btn-submit-modal:hover {
  background: linear-gradient(135deg, #0A4A45 0%, #106E67 100%);
  transform: translateY(-2px);
}

.article-modal-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 960px) {
  .trail-stop {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .trail-marker {
    display: none;
  }

  .trail-stop--left .trail-card,
  .trail-stop--right .trail-card,
  .trail-stop--left .trail-insight-box,
  .trail-stop--right .trail-insight-box {
    grid-column: 1;
    text-align: left;
  }

  .trail-stop--left .trail-icon-row,
  .trail-stop--right .insight-pills {
    justify-content: flex-start;
  }

  .trail-stop--left .feature-bullet-item {
    flex-direction: row;
  }

  .trail-line {
    display: none;
  }

  .guarantee-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .board {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .guarantee-grid {
    grid-template-columns: 1fr;
  }

  .board {
    column-count: 1;
  }

  .signpost {
    flex-direction: column;
    text-align: center;
  }

  .signpost-copy {
    padding-top: 12px;
  }

  .postcard {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .postcard-stamp {
    position: static;
    margin: 0 auto 16px;
  }

  .newsletter-form {
    max-width: none;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .glass-float-badge {
    transform: scale(0.8) !important;
    position: relative !important;
    margin: 10px auto !important;
    width: max-content;
  }
  .badge-top-right,
  .badge-bottom-left,
  .badge-mid-right {
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
  }
  .hero-visual {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}