/* ================================================================
   ReBalance Wellness — Landing Page
   Color palette extracted from brand logo:
     --rose-deep   #8B4D5B   (mauve wordmark — primary text/CTA)
     --rose-soft   #C98A95   (primary accent / hover)
     --blush       #F5D5D5   (soft pink halo)
     --blush-pale  #FBF1EE   (palest blush — page background)
     --peach       #E8B89C   (warm stone)
     --lavender    #C4B5D9   (lavender stone)
     --sand        #F0DFD2   (wooden plank tone)
     --ink         #4B2A33   (headline ink)
     --muted       #8A6B72   (secondary text)
   ================================================================ */

:root {
  --rose-deep: #8B4D5B;
  --rose-soft: #C98A95;
  --blush: #F5D5D5;
  --blush-pale: #FBF1EE;
  --peach: #E8B89C;
  --lavender: #C4B5D9;
  --sand: #F0DFD2;
  --ink: #4B2A33;
  --muted: #8A6B72;
  --white: #FFFFFF;

  --shadow-sm: 0 4px 12px rgba(139, 77, 91, 0.06);
  --shadow-md: 0 10px 30px rgba(139, 77, 91, 0.10);
  --shadow-lg: 0 20px 50px rgba(139, 77, 91, 0.14);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================== RESET ================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--blush-pale);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

/* ================== CUSTOM CURSOR ================== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform, width, height, opacity;
  mix-blend-mode: multiply;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--rose-deep);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
    opacity 0.25s var(--ease);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(139, 77, 91, 0.45);
  background: rgba(245, 213, 213, 0.18);
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
    border-color 0.3s var(--ease), background 0.3s var(--ease),
    opacity 0.25s var(--ease);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.cursor-ring.hover {
  width: 70px;
  height: 70px;
  border-color: rgba(139, 77, 91, 0.7);
  background: rgba(245, 213, 213, 0.32);
}

.cursor-ring.click {
  width: 26px;
  height: 26px;
  border-color: var(--rose-deep);
  background: rgba(139, 77, 91, 0.18);
}

.cursor-dot.hover {
  width: 0;
  height: 0;
  opacity: 0;
}

.cursor-dot.hidden,
.cursor-ring.hidden {
  opacity: 0;
}

/* Hide custom cursor on touch devices */
@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* ================== TYPOGRAPHY ================== */
h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1rem; font-family: "Inter", sans-serif; font-weight: 600; letter-spacing: 0.02em; }

p { color: var(--muted); }

em {
  color: var(--rose-deep);
  font-style: italic;
}

.eyebrow {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-deep);
  padding: 6px 14px;
  background: rgba(139, 77, 91, 0.08);
  border-radius: 999px;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.125rem;
  color: var(--ink);
  font-weight: 400;
}

/* ================== LAYOUT ================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.section {
  padding: clamp(70px, 10vw, 130px) 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-title {
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
}

/* ================== BUTTONS ================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
}

.btn span {
  position: relative;
  z-index: 2;
  display: inline-block;
  transition: transform 0.4s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.3),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: 1;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--rose-deep);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(139, 77, 91, 0.25);
}

.btn-primary:hover {
  background: #6f3947;
  box-shadow: 0 14px 34px rgba(139, 77, 91, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--rose-deep);
  border: 1.5px solid rgba(139, 77, 91, 0.25);
}

.btn-ghost:hover {
  background: rgba(139, 77, 91, 0.06);
  border-color: var(--rose-deep);
}

.btn-sm {
  padding: 11px 24px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 42px;
  font-size: 1rem;
}

/* ================== NAVBAR ================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(251, 241, 238, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: padding 0.3s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(251, 241, 238, 0.92);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img {
  height: 50px;
  transition: height 0.3s var(--ease);
}

.navbar.scrolled .nav-logo img {
  height: 42px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: var(--rose-deep);
  transition: width 0.3s var(--ease);
}

.nav-links a:not(.nav-cta):hover {
  color: var(--rose-deep);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--rose-deep);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}

.nav-cta:hover {
  background: #6f3947;
  box-shadow: 0 8px 18px rgba(139, 77, 91, 0.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ================== HERO ================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 100px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #FBF1EE 0%, #F8E5E0 100%);
  z-index: -1;
  overflow: hidden;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(139, 77, 91, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
}

/* Floating orbs that respond to cursor parallax */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  transition: transform 0.6s var(--ease);
  will-change: transform;
  pointer-events: none;
}

.orb-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--blush) 0%, transparent 70%);
  top: 8%;
  left: 10%;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--lavender) 0%, transparent 70%);
  top: 12%;
  right: 8%;
  opacity: 0.45;
}

.orb-3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--peach) 0%, transparent 70%);
  bottom: 5%;
  left: 25%;
  opacity: 0.4;
}

.orb-4 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--rose-soft) 0%, transparent 70%);
  bottom: 18%;
  right: 18%;
  opacity: 0.4;
}

/* Cursor-following spotlight on hero */
.hero-spotlight {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  left: 50%;
  top: 50%;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  will-change: transform, opacity;
  mix-blend-mode: soft-light;
}

.hero:hover .hero-spotlight {
  opacity: 1;
}

.hero-inner {
  max-width: 880px;
  position: relative;
  z-index: 1;
}

.hero-title {
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-sub {
  font-size: 1.18rem;
  max-width: 620px;
  margin: 0 auto 38px;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.78;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 70px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: clamp(40px, 8vw, 90px);
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid rgba(139, 77, 91, 0.12);
  max-width: 600px;
  margin: 0 auto;
}

.hero-meta div {
  text-align: center;
}

.hero-meta strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--rose-deep);
  line-height: 1;
}

.hero-meta span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(139, 77, 91, 0.4);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 8px;
  z-index: 1;
}

.scroll-cue span {
  width: 3px;
  height: 8px;
  background: var(--rose-deep);
  border-radius: 2px;
  animation: scrollCue 1.8s infinite var(--ease);
}

@keyframes scrollCue {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ================== ABOUT ================== */
.about {
  background: var(--white);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.col-text .lead {
  margin: 18px 0;
}

.col-text p {
  margin-bottom: 14px;
  font-size: 1.02rem;
  line-height: 1.8;
}

.col-visual {
  display: flex;
  justify-content: center;
}

/* Tilt cards — driven by JS via CSS variables, with hover magnify scale */
.tilt {
  transform: perspective(900px)
    rotateX(var(--tx, 0deg))
    rotateY(var(--ty, 0deg))
    scale(var(--scale, 1));
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .tilt:hover {
    --scale: 1.05;
  }
}

.visual-card {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--blush) 0%, var(--sand) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.visual-card::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 70%);
  top: -60px;
  right: -60px;
}

.visual-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateZ(40px);
}

.visual-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  margin-bottom: 28px;
  position: relative;
}

.visual-stack .dot {
  border-radius: 50%;
  display: block;
  box-shadow: 0 4px 12px rgba(75, 42, 51, 0.15);
}

.dot.d1 { width: 38px; height: 38px; background: var(--rose-soft); }
.dot.d2 { width: 46px; height: 46px; background: var(--lavender); }
.dot.d3 { width: 54px; height: 54px; background: var(--peach); }
.dot.d4 {
  width: 110px;
  height: 22px;
  border-radius: 999px;
  background: var(--rose-deep);
  margin-top: 6px;
}
.dot.pivot {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--rose-soft), var(--rose-deep));
  margin-top: -2px;
}

.visual-quote {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.2rem;
  text-align: center;
  color: var(--rose-deep);
  margin-top: 18px;
}

/* ================== PILLARS ================== */
.pillars {
  background: var(--blush-pale);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 44px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(139, 77, 91, 0.06);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(245, 213, 213, 0.45) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush) 0%, var(--sand) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--rose-deep);
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease);
}

.card:hover .card-icon {
  transform: translateZ(40px) scale(1.08);
}

.card-icon svg {
  width: 30px;
  height: 30px;
}

.card h3 {
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.card p {
  font-size: 0.97rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ================== QUOTE ================== */
.quote-section {
  padding: clamp(80px, 10vw, 140px) 0;
  background: linear-gradient(135deg, var(--rose-deep) 0%, #6f3947 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-section::before,
.quote-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(245, 213, 213, 0.08);
}

.quote-section::before {
  width: 360px;
  height: 360px;
  top: -120px;
  left: -120px;
}

.quote-section::after {
  width: 480px;
  height: 480px;
  bottom: -180px;
  right: -180px;
}

.quote-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(245, 213, 213, 0.18) 0%,
    transparent 65%
  );
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  left: 50%;
  top: 50%;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  will-change: transform, opacity;
}

.quote-section:hover .quote-glow {
  opacity: 1;
}

.quote-mark {
  width: 56px;
  height: 56px;
  color: var(--blush);
  opacity: 0.55;
  margin: 0 auto 28px;
  display: block;
  position: relative;
}

.quote-text {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.55;
  color: var(--white);
  max-width: 880px;
  margin: 0 auto 32px;
  position: relative;
}

.quote-author {
  color: var(--blush);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
}

/* ================== PROBLEM / SOLUTION ================== */
.problem {
  background: var(--white);
}

.solution {
  background: linear-gradient(180deg, var(--blush-pale) 0%, #F5E1DA 100%);
}

.blocks-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.block {
  padding: 36px 28px;
  border-radius: var(--radius-md);
  background: var(--blush-pale);
  border-left: 3px solid var(--rose-soft);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
}

.block:hover {
  transform: translateX(8px);
  border-left-color: var(--rose-deep);
}

.block.solid {
  background: var(--white);
  border-left: 0;
  border: 1px solid rgba(139, 77, 91, 0.08);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.block.solid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(232, 184, 156, 0.32) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.block.solid:hover {
  box-shadow: var(--shadow-md);
}

.block.solid:hover::before {
  opacity: 1;
}

.block-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--rose-soft);
  display: block;
  margin-bottom: 4px;
  line-height: 1;
}

.block-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blush) 0%, var(--peach) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-deep);
  margin: 0 auto 22px;
  transition: transform 0.4s var(--ease);
  position: relative;
  z-index: 1;
}

.block.solid:hover .block-icon {
  transform: translateZ(40px) rotate(-6deg);
}

.block-icon svg {
  width: 26px;
  height: 26px;
}

.block h3 {
  margin: 8px 0 10px;
  position: relative;
  z-index: 1;
}

.block p {
  font-size: 0.96rem;
  position: relative;
  z-index: 1;
}

/* ================== TESTIMONIALS ================== */
.testimonials {
  background: linear-gradient(180deg, #F5E1DA 0%, var(--blush-pale) 100%);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.testimonial {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: "“";
  position: absolute;
  top: 6px;
  left: 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: 5rem;
  color: var(--blush);
  line-height: 1;
  opacity: 0.6;
  pointer-events: none;
}

.testimonial::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(196, 181, 217, 0.18) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.testimonial:hover::after {
  opacity: 1;
}

.testimonial:hover {
  box-shadow: var(--shadow-md);
}

.testimonial p {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.t-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.t-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--white);
  font-size: 1.05rem;
  font-family: "Inter", sans-serif;
}

.t-meta strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
}

.t-meta small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

/* ================== TRAINER ================== */
.trainer {
  background: var(--white);
}

.trainer-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blush) 0%, var(--lavender) 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trainer-photo {
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-soft) 0%, var(--rose-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(75, 42, 51, 0.25);
  transition: transform 0.5s var(--ease);
}

.trainer-card:hover .trainer-photo {
  transform: translateZ(60px) scale(1.04);
}

.trainer-photo .initials {
  font-family: "Cormorant Garamond", serif;
  font-size: 5rem;
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.trainer-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--white);
  color: var(--rose-deep);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

a.trainer-badge:hover {
  box-shadow: 0 18px 38px rgba(75, 42, 51, 0.22);
}

.trainer-card:hover .trainer-badge {
  transform: translateZ(50px);
}

.lead-link {
  color: var(--rose-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 77, 91, 0.45);
  padding-bottom: 1px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.lead-link:hover {
  color: var(--rose);
  border-bottom-color: var(--rose);
}

/* ================== FINAL CTA ================== */
.final-cta {
  padding: clamp(80px, 10vw, 130px) 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(196, 181, 217, 0.4), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(232, 184, 156, 0.4), transparent 50%),
    linear-gradient(135deg, var(--blush) 0%, var(--sand) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.5) 0%,
    transparent 60%
  );
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  left: 50%;
  top: 50%;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  will-change: transform, opacity;
  mix-blend-mode: soft-light;
}

.final-cta:hover .cta-glow {
  opacity: 1;
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  margin-bottom: 18px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta p {
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--ink);
  opacity: 0.78;
}

/* ================== FOOTER ================== */
.footer {
  background: #2D1A20;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-logo {
  height: 70px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1) opacity(0.95);
}

.footer-tag {
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  max-width: 260px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-cols h4 {
  color: var(--white);
  margin-bottom: 18px;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-cols a {
  display: block;
  padding: 6px 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s var(--ease), padding 0.3s var(--ease);
}

.footer-cols a:hover {
  color: var(--blush);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom small {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ================== REVEAL ANIMATIONS ================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

/* Stagger children */
.cards-3 > *,
.blocks-3 > *,
.cards-grid > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible .cards-3 > *,
.reveal.visible .blocks-3 > *,
.reveal.visible .cards-grid > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal.visible .cards-3 > *:nth-child(1),
.reveal.visible .blocks-3 > *:nth-child(1),
.reveal.visible .cards-grid > *:nth-child(1) { transition-delay: 0.1s; }
.reveal.visible .cards-3 > *:nth-child(2),
.reveal.visible .blocks-3 > *:nth-child(2),
.reveal.visible .cards-grid > *:nth-child(2) { transition-delay: 0.2s; }
.reveal.visible .cards-3 > *:nth-child(3),
.reveal.visible .blocks-3 > *:nth-child(3),
.reveal.visible .cards-grid > *:nth-child(3) { transition-delay: 0.3s; }
.reveal.visible .cards-grid > *:nth-child(4) { transition-delay: 0.4s; }

/* ================== PER-LETTER CURSOR MAGNIFY ================== */
/* Words wrap as a unit so per-letter transforms don't break lines mid-word. */
.word {
  display: inline-block;
  white-space: nowrap;
}

.char {
  display: inline-block;
  transform-origin: 50% 100%;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  /* slight backface fix to prevent subpixel jitter on transform */
  backface-visibility: hidden;
}

/* ================== ROCKS MASCOT (cute balancing stones, fixed corner) ================== */
.rocks-mascot {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 200px;
  height: 200px;
  z-index: 60;
  pointer-events: none;
  opacity: 0.95;
  filter: drop-shadow(0 14px 28px rgba(75, 42, 51, 0.22));
  animation: rocksFloat 6s ease-in-out infinite;
}

.rocks-mascot svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rocks-mascot .rocker {
  transform-origin: 50% 80%;
  transform-box: fill-box;
  animation: rocksSwing 4.6s ease-in-out infinite;
}

.rocks-mascot .top-stone {
  transform-origin: 50% 90%;
  transform-box: fill-box;
  animation: rocksTopSway 3.1s ease-in-out infinite;
}

@keyframes rocksSwing {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
}

@keyframes rocksTopSway {
  0%, 100% { transform: rotate(8deg); }
  50% { transform: rotate(-8deg); }
}

@keyframes rocksFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 960px) {
  .rocks-mascot {
    width: 160px;
    height: 160px;
    right: 20px;
    bottom: 20px;
  }
}

@media (max-width: 720px) {
  .rocks-mascot {
    width: 130px;
    height: 130px;
    right: 14px;
    bottom: 14px;
    opacity: 0.92;
  }
}

@media (max-width: 380px) {
  .rocks-mascot {
    width: 110px;
    height: 110px;
    right: 10px;
    bottom: 10px;
  }
}

/* ================== CONTACT SECTION ================== */
.contact-section {
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(245, 213, 213, 0.0) 0%,
    rgba(245, 213, 213, 0.18) 50%,
    rgba(245, 213, 213, 0.0) 100%
  );
}

.contact-inner .eyebrow {
  margin-bottom: 14px;
}

.contact-inner .section-title {
  margin-bottom: 12px;
}

.contact-inner .lead {
  max-width: 540px;
  margin: 0 auto 38px;
  color: var(--rose-deep);
  opacity: 0.82;
}

.contact-channels {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto;
}

.contact-channel {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(139, 77, 91, 0.15);
  border-radius: 16px;
  color: var(--rose-deep);
  text-decoration: none;
  transition: transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}

.contact-channel:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(139, 77, 91, 0.32);
  box-shadow: 0 14px 30px rgba(75, 42, 51, 0.12);
}

.contact-channel-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 213, 213, 0.85), rgba(196, 181, 217, 0.65));
  color: var(--rose-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-channel-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.contact-channel-text small {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-deep);
  opacity: 0.62;
  margin-bottom: 3px;
}

.contact-channel-text strong {
  font-weight: 600;
  font-size: 15px;
  color: var(--rose-deep);
  word-break: break-all;
}

@media (max-width: 720px) {
  .contact-section { padding: 60px 0 80px; }
  .contact-channels { flex-direction: column; align-items: stretch; }
  .contact-channel { padding: 14px 18px; }
  .contact-channel-text strong { font-size: 14px; }
}

/* ================== DRIFTING LEAF (all devices, occasional) ================== */
/* A single big leaf glides across the entire viewport from off-screen left
   to off-screen right, swaying in the wind. JS schedules ~3 drifts per
   visit. Low opacity so it sits softly above the background but never
   competes with text. */
.leaf-drift {
  position: fixed;
  left: 0;
  top: var(--leaf-top, 28vh);
  width: clamp(520px, 72vw, 1100px);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  will-change: transform, opacity;
  filter: blur(0.5px) drop-shadow(0 14px 24px rgba(75, 42, 51, 0.12));
  transform: translate3d(-1200px, 0, 0) rotate(-8deg);
}

.leaf-drift svg {
  width: 100%;
  height: auto;
  display: block;
}

.leaf-drift.is-flying {
  animation: leafDrift var(--leaf-dur, 16s) cubic-bezier(0.42, 0, 0.58, 1) forwards;
}

@keyframes leafDrift {
  0% {
    transform: translate3d(-1200px, 0, 0) rotate(-10deg);
    opacity: 0;
  }
  6%  { opacity: var(--leaf-op, 0.22); }
  18% { transform: translate3d(calc(15vw - 200px), -32px, 0) rotate(6deg); }
  34% { transform: translate3d(calc(32vw - 200px),  22px, 0) rotate(-9deg); }
  52% { transform: translate3d(calc(50vw - 200px), -26px, 0) rotate(11deg); }
  70% { transform: translate3d(calc(68vw - 200px),  28px, 0) rotate(-5deg); }
  86% { transform: translate3d(calc(85vw - 200px), -12px, 0) rotate(7deg); }
  94% { opacity: var(--leaf-op, 0.22); }
  100% {
    transform: translate3d(calc(100vw + 200px), 16px, 0) rotate(10deg);
    opacity: 0;
  }
}

/* ================== TAP-TO-BLOOM RIPPLE ================== */
.btn,
.contact-channel {
  position: relative;
  overflow: hidden;
}

.btn-bloom {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(245, 213, 213, 0.55) 0%,
    rgba(139, 77, 91, 0.25) 55%,
    transparent 100%
  );
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  width: 18px;
  height: 18px;
  opacity: 0.7;
  animation: bloomOut 720ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bloomOut {
  0%   { transform: translate(-50%, -50%) scale(0);   opacity: 0.65; }
  100% { transform: translate(-50%, -50%) scale(16); opacity: 0; }
}

/* ================== SCROLL-DRIVEN LETTER RIPPLE (mobile-friendly) ================== */
.char.ripple-pop {
  animation: letterRipple 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes letterRipple {
  0%   { transform: translateY(0)    scale(1); }
  35%  { transform: translateY(-5px) scale(1.18); }
  70%  { transform: translateY(-2px) scale(1.06); }
  100% { transform: translateY(0)    scale(1); }
}

/* ================== DEVICE TILT (mobile gyroscope) ================== */
:root {
  --tilt-x: 0;   /* -1 .. 1 left/right tilt */
  --tilt-y: 0;   /* -1 .. 1 forward/back tilt */
}

.mascot-tilt {
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(calc(var(--tilt-x) * 6deg));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: 50% 80%;
}

.hero-bg {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.tilt-active .hero-bg {
  transform: translate3d(
    calc(var(--tilt-x) * -12px),
    calc(var(--tilt-y) * -12px),
    0
  );
}

.rocks-mascot.bounced .mascot-tilt {
  animation: mascotBounce 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mascotBounce {
  0%   { transform: rotate(calc(var(--tilt-x) * 6deg)) scale(1);    }
  35%  { transform: rotate(calc(var(--tilt-x) * 6deg)) scale(1.12); }
  65%  { transform: rotate(calc(var(--tilt-x) * 6deg)) scale(0.96); }
  100% { transform: rotate(calc(var(--tilt-x) * 6deg)) scale(1);    }
}

/* ================== MOTION PERMISSION CHIP (iOS only) ================== */
.motion-chip {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 24px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(139, 77, 91, 0.28);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(75, 42, 51, 0.15);
  font-size: 13px;
  color: var(--rose-deep);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.motion-chip.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.motion-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(139, 77, 91, 0.12);
  font-size: 14px;
  line-height: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .orb,
  .hero-spotlight,
  .quote-glow,
  .cta-glow,
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  .rocks-mascot,
  .rocks-mascot .rocker,
  .rocks-mascot .top-stone,
  .mascot-tilt,
  .leaf-drift {
    animation: none !important;
  }

  .char,
  .char.ripple-pop {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .leaf-drift { display: none !important; }
  .btn-bloom { display: none !important; }
}

/* ================== RESPONSIVE ================== */
@media (max-width: 960px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .col-visual {
    order: -1;
  }

  .cards-3,
  .blocks-3 {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(251, 241, 238, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(139, 77, 91, 0.07);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-links a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 120px 0 80px;
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 50px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-meta {
    gap: 36px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .visual-card {
    padding: 36px;
  }

  .testimonial {
    padding: 28px;
  }

  .session-body {
    padding: 24px;
  }
}
