/* ================================================================
   EKAIVA SKIN CLINIC — MASTER STYLESHEET
   styles.css

   TABLE OF CONTENTS
   ─────────────────────────────────────────────────────────────────
   1.  DESIGN SYSTEM   ← CSS variables. Change colours/fonts here only.
   2.  GLOBAL RESETS   ← Box model, base rules.
   3.  NAVIGATION      ← Fixed top bar, logo, links, hamburger.
   4.  BUTTONS         ← Shared button styles (WhatsApp, Call).
   5.  HERO SECTION    ← Full-screen intro with doctor photo.
   6.  STUB SECTIONS   ← Placeholder blocks for future sections.
   7.  FAB BUTTONS     ← Floating action buttons (desktop).
   8.  MOBILE BAR      ← Sticky bottom bar (mobile only).
   9.  ANIMATIONS      ← Entry animation classes set by animations.js.
   10. RESPONSIVE      ← Media queries (mobile-specific overrides).

   HOW TO DEBUG IN DEVTOOLS:
   · Elements tab → select any element → Styles panel on right
   · Every CSS variable is visible at the top (:root) in Computed tab
   · Hover a colour swatch to see its hex value
   · Click the checkbox next to a rule to toggle it on/off instantly
================================================================ */

/* ================================================================
   1. DESIGN SYSTEM
================================================================ */
:root {
  --rose: #b5736a;
  --rose-light: #d4a09a;
  --rose-pale: #e8c5c0;
  --blush: #f2ddd9;
  --cream: #faf4f2;
  --teal: #6a9a8a;
  --teal-dark: #4e7a6c;
  --dark: #3a2626;
  --mid: #7a4a44;
  --text-light: #a08080;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --nav-height: 72px;
  --nav-height-scrolled: 58px;
  --ease-fast: 0.2s ease;
  --ease-normal: 0.35s ease;
  --ease-slow: 0.65s ease;
  --shadow-nav: 0 2px 24px rgba(58, 38, 38, 0.08);
  --shadow-card: 0 8px 40px rgba(58, 38, 38, 0.1);
  --shadow-card-lg: 0 16px 60px rgba(58, 38, 38, 0.14);
  --max-width: 1280px;
  --side-pad: 6vw;
}

/* ================================================================
   2. GLOBAL RESETS & BASE
================================================================ */

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

html {
  font-size: 17.5px;            /* Root scale — bumps all rem values ~9.4% site-wide */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ================================================================
   3. NAVIGATION
================================================================ */

#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background-color: rgba(250, 244, 242, 0);
  backdrop-filter: blur(0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--side-pad);
  transition:
    height var(--ease-normal),
    background-color var(--ease-normal),
    backdrop-filter var(--ease-normal),
    box-shadow var(--ease-normal);
}

#site-nav.is-scrolled {
  height: var(--nav-height-scrolled);
  background-color: rgba(250, 244, 242, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-nav);
  border-bottom: 1px solid rgba(181, 115, 106, 0.12);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-height: var(--nav-height);
}

.nav-logo__img {
  display: block;
  height: 60px;
  max-height: 60px;
  width: auto;
  max-width: 120px;
  transition:
    height var(--ease-normal),
    transform var(--ease-fast),
    opacity var(--ease-fast);
}

/* Clinic name alongside the logo SVG.
   Cormorant Garamond matches the hero headline — consistent brand voice.
   Hidden on very small screens via media query below 380px. */
.nav-logo__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--rose);
  letter-spacing: 0.14em;
  margin-left: 10px;
  line-height: 1;
  transition: color var(--ease-fast);
}

.nav-logo:hover .nav-logo__name {
  color: var(--mid);
}

#site-nav.is-scrolled .nav-logo__img {
  height: 46px;
  max-height: 46px;
}

.nav-logo:hover .nav-logo__img {
  transform: scale(1.03);
  opacity: 0.85;
}

/* ── Nav bottom gradient fade ───────────────────────────────
   A soft gradient below the nav bar so content scrolls behind
   it gracefully rather than hard-cutting at the nav edge.
   Only visible when the nav is in its scrolled (frosted glass) state.
   On page load (transparent nav), fade is invisible.

   TO DISABLE: comment out the opacity: 1 line in .is-scrolled::after
   TO ADJUST DEPTH: change the height value (currently 28px)
──────────────────────────────────────────────────────────── */
#site-nav::after {
  content: '';
  position: fixed;
  top: var(--nav-height);      /* Sits exactly at the bottom edge of the nav */
  left: 0;
  width: 100%;
  height: 28px;
  background: linear-gradient(
    to bottom,
    rgba(250, 244, 242, 0.7),  /* Matches frosted nav colour, semi-transparent */
    transparent
  );
  pointer-events: none;
  z-index: 999;                /* Just below nav (z-index: 1000), above content */
  opacity: 0;
  transition: opacity var(--ease-normal);
}

/* Fade appears only when nav is scrolled and frosted */
#site-nav.is-scrolled::after {
  opacity: 1;
  top: var(--nav-height-scrolled); /* Adjusts with the compact nav height */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem; /* Reduced from 2.5rem — accommodates 7 nav items on desktop */
}

.nav-link {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--ease-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--rose);
  transition: width var(--ease-normal);
}

.nav-link:hover {
  color: var(--rose);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-link.is-active {
  color: var(--rose);
}

.nav-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background-color: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background-color var(--ease-fast),
    color var(--ease-fast),
    transform var(--ease-fast);
}

.nav-whatsapp:hover {
  background-color: var(--teal);
  color: #fff;
  transform: translateY(-1px);
}

.nav-whatsapp__icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--mid);
  transition:
    transform var(--ease-normal),
    opacity var(--ease-fast);
  transform-origin: center;
}

.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ================================================================
   4. BUTTONS — SHARED STYLES
================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--ease-fast),
    color var(--ease-fast),
    border-color var(--ease-fast),
    transform var(--ease-fast);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn__icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn--whatsapp {
  background-color: var(--whatsapp);
  color: #fff;
  border-color: var(--whatsapp);
}
.btn--whatsapp .btn__icon {
  fill: #fff;
}
.btn--whatsapp:hover {
  background-color: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
}

.btn--call {
  background-color: transparent;
  color: var(--rose);
  border-color: var(--rose);
}
.btn--call .btn__icon {
  stroke: currentColor;
  fill: none;
}
.btn--call:hover {
  background-color: var(--rose);
  color: #fff;
}
.btn--call:hover .btn__icon {
  stroke: #fff;
}

/* ================================================================
   5. HERO SECTION
================================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: linear-gradient(
    145deg,
    var(--cream) 0%,
    var(--blush) 40%,
    var(--rose-pale) 68%,
    var(--cream) 100%
  );
}

.hero__bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero__bg-orb--rose {
  top: -120px;
  right: -80px;
  width: 680px;
  height: 680px;
  background: radial-gradient(
    circle,
    rgba(181, 115, 106, 0.1) 0%,
    transparent 68%
  );
}

.hero__bg-orb--teal {
  bottom: 60px;
  left: -60px;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(106, 154, 138, 0.08) 0%,
    transparent 68%
  );
}

.hero__container {
  flex: 1;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 4vw;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 84px var(--side-pad) 40px; /* Top = breathing room between nav and eyebrow */
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-self: start;            /* Anchors text to top — overrides grid align-items: center */
                                /* Photo stays centered; text no longer pushed ~155px down */
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.2rem;
}

/* Flanking rule lines — thin rose, fixed 28px width each side.
   Same visual language as the TAG divider between sections. */
.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--rose-pale);
  flex-shrink: 0;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin-bottom: 1.2rem;
}

/* "Mounika Reddy" — italic contrast against the upright "Dr. Parupalli" */
.hero__name--em {
  display: block;
  font-style: italic;
  font-weight: 500;
}

.hero__designation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--mid);
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
}

.hero__degree {
  color: var(--rose);
  font-weight: 600;
}

.hero__sep {
  color: var(--rose-pale);
  font-size: 1.1rem;
  line-height: 1;
}

/* Role title — italic Jost reads as a proper title, not a data field */
.hero__role {
  font-style: italic;
}

.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--rose);          /* was --rose-light; darkened for visibility against cream bg */
  letter-spacing: 0.04em;
  margin-bottom: 1.4rem;
  overflow: visible;
  line-height: 1.6;
}

.wave-char {
  display: inline-block;
  animation: charWave 2s ease-in-out infinite;
}

.wave-char--space {
  animation: none;
  min-width: 0.3em;
}

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

.hero__desc {
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--mid);
  max-width: 400px;
  margin-bottom: 2rem;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero__badges {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.80rem;
  font-weight: 400;
  color: var(--mid);
  letter-spacing: 0.04em;
}

/* Key terms — MD DVL, 12+, 13,000+, 3,000+ — rose and bold */
.hero__badge-key {
  font-weight: 600;
  color: var(--rose);
}

.hero__badge-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Right column — doctor photo ─────────────────────────────── */

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 2vw;
  padding-top: 0;
  padding-bottom: 20px;
}

.hero__leaf {
  position: absolute;
  top: -24px;
  right: 0;
  width: 72px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

/* ── Line art — behind the doctor photo ─────────────────────── */

.hero__lineart {
  position: absolute;
  width: 780px;
  max-width: none !important;
  top: 40%;
  right: -20px;
  transform: translateY(-50%);
  mix-blend-mode: multiply;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
}

/* ── Photo frame ────────────────────────────────────────────── */

.hero__photo-frame {
  position: relative;
  flex-shrink: 0;
  z-index: 1;
  overflow: visible;
}

/* ── Photo clip ─────────────────────────────────────────────── */

.hero__photo-clip {
  width: 500px;
  height: clamp(640px, calc(100vh - 200px), 1100px); /* 1100px fills iPad Pro (1366px tall) */
  margin-right: 90px;
  margin-top: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 90%);
          mask-image: linear-gradient(to bottom, black 55%, transparent 90%);
}

/* ── Doctor photo ───────────────────────────────────────────── */

.hero__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top; /* Face anchored to top of frame */
}

/* ── Hero bottom fade ───────────────────────────────────────── */

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  pointer-events: none;
  z-index: 1;
}

/* ================================================================
   6. STUB SECTIONS
================================================================ */

.section-stub {
  min-height: 120px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================================================================
   6a. CREDENTIALS STRIP
   ─────────────────────────────────────────────────────────────────
   Two-phase animation. Phase 1 = entry (stagger + counters).
   Phase 2 = marquee (continuous scroll, seamless loop).
   The section height is always maintained by .cred-entry's padding.
   .cred-marquee is position: absolute and overlays .cred-entry.
================================================================ */

.credentials {
  position: relative;
  background: var(--cream);
  overflow: hidden;
  border-top: 1px solid rgba(181, 115, 106, 0.12);
  border-bottom: 1px solid rgba(181, 115, 106, 0.12);
}

/* ── Entry phase ────────────────────────────────────────────── */

.cred-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.8rem var(--side-pad);
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.8s ease;
}

/* JS adds .is-exiting once entry animation completes */
.cred-entry.is-exiting {
  opacity: 0;
  pointer-events: none;
}

.cred-entry__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: nowrap;
  max-width: var(--max-width);
  width: 100%;
}

.cred-item {
  text-align: center;
  flex-shrink: 0;
  /* Hidden by default; JS adds .is-visible with stagger */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.cred-item__primary {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 300;
  color: var(--rose);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.05em;
}

.cred-item__suffix {
  font-size: 0.95rem;
  color: var(--rose-light);
}

.cred-item__secondary {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 0.35rem;
  white-space: nowrap;
}

.cred-sep {
  color: var(--rose-pale);
  font-size: 0.6rem;
  flex-shrink: 0;
  /* Staggered reveal same as .cred-item */
  opacity: 0;
  transition: opacity 0.55s ease;
}

.cred-sep.is-visible {
  opacity: 1;
}

/* ── Marquee phase ──────────────────────────────────────────── */

.cred-marquee {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Hidden until JS adds .is-active */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  z-index: 2;
}

.cred-marquee.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Soft fade on both edges — content blends into background */
.cred-marquee::before,
.cred-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 3;
  pointer-events: none;
}
.cred-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--cream), transparent);
}
.cred-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--cream), transparent);
}

.cred-marquee__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  /* Set 1 + Set 2 are identical. -50% = exactly one set width = seamless loop. */
  animation: credScroll 34s linear infinite;
  will-change: transform;
}

@keyframes credScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.cred-mitem {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 1.8rem 2.8rem;
  flex-shrink: 0;
}

.cred-mitem__primary {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 300;
  color: var(--rose);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.05em;
}

.cred-mitem__suffix {
  font-size: 0.9rem;
  color: var(--rose-light);
}

.cred-mitem__secondary {
  font-family: var(--font-body);
  font-size: 0.57rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 0.3rem;
  white-space: nowrap;
}

.cred-msep {
  color: var(--rose-pale);
  font-size: 0.58rem;
  padding: 0 0.5rem;
  flex-shrink: 0;
}

/* ================================================================
   6b. GLOBAL SECTION UTILITIES
   ─────────────────────────────────────────────────────────────────
   Shared header classes used across Treatments, About, Why Ekaiva,
   and any future sections with a centred header block.
================================================================ */

/* Small all-caps label above the section title */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.8rem;
}

/* Large display heading */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 0;
}

/* Italic portion of section title — rose accent */
.section-title em {
  color: var(--rose);
  font-style: italic;
}


/* ================================================================
   7. TREATMENTS SECTION
================================================================ */

.treatments {
  background: #fff;
  padding: 90px var(--side-pad) 16px; /* Bottom 16px — card internal padding (2rem) fills the rest.
                                          White bg makes empty space more visible than cream sections. */
}

.treatments__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3.5rem;
}

/* ── Card grid — 12-column system ───────────────────────────
   Cards 1–4 (nth-child 1–4): span 3 cols → 4 per row
   Cards 5–7 (nth-child n+5): span 4 cols → 3 per row
   gap: 1px + background on grid = thin rose divider lines.
──────────────────────────────────────────────────────────── */
.treatments__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--blush);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Individual card ─────────────────────────────────────── */
.treatment-card {
  background: #fff;
  grid-column: span 3;      /* Row 1: 4 cards × 3 cols = 12 */
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background-color var(--ease-normal);
}

/* Row 2: 3 cards × 4 cols = 12 */
.treatment-card:nth-child(n+5) {
  grid-column: span 4;
}

/* Rose underline on hover */
.treatment-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--rose);
  transition: width var(--ease-normal);
}

.treatment-card:hover {
  background: var(--cream);
}

.treatment-card:hover::before {
  width: 100%;
}

/* ── Icon ────────────────────────────────────────────────── */
.treatment-card__icon {
  width: 48px;
  height: 48px;
  color: var(--rose-light);  /* retained for any currentColor fallback */
  margin-bottom: 1.3rem;
  flex-shrink: 0;
}

/* ── Name ────────────────────────────────────────────────── */
.treatment-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--mid);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

/* ── Description ─────────────────────────────────────────── */
.treatment-card__desc {
  font-size: 0.90rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  flex-grow: 1;             /* Pushes tags + CTA to bottom — equal card heights */
}

/* ── Treatment tags ──────────────────────────────────────── */
.treatment-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.treatment-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.57rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  background: var(--blush);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
  text-decoration: none;        /* removes underline when tag is an <a> element */
  position: relative;           /* brings tag into positioned stacking layer… */
  z-index: 1;                   /* …above the CTA's ::after overlay (z-index: auto) */
  transition:
    background var(--ease-fast),
    color var(--ease-fast);
}

/* Only show pointer + colour shift for clickable tags (a.treatment-tag).
   Non-clickable span.treatment-tag elements are unaffected. */
a.treatment-tag {
  cursor: pointer;
}

a.treatment-tag:hover {
  background: var(--rose-pale);
  color: var(--dark);
}

/* ── Read More CTA ───────────────────────────────────────── */
.treatment-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  text-decoration: none;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rose-pale);
  width: 100%;
  margin-top: auto;
  transition:
    gap var(--ease-fast),
    color var(--ease-fast);
}

.treatment-card__cta:hover {
  gap: 10px;
  color: var(--dark);
}

/* Stretched link — makes the entire card clickable via the CTA anchor.
   The CTA's ::after pseudo-element is positioned absolute and fills the
   whole card. Works because .treatment-card has position: relative.
   No JS needed. Hover states on the card still fire normally because
   the pseudo-element is a descendant — CSS :hover propagates upward.
   Only applies to cards that have a CTA (info-only cards are excluded). */
.treatment-card__cta::after {
  content: '';
  position: absolute;   /* anchors to .treatment-card (nearest positioned ancestor) */
  inset: 0;             /* stretches to fill the entire card area */
  cursor: pointer;      /* explicit pointer cursor on the overlay */
}

.treatment-card__cta-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform var(--ease-fast);
}

.treatment-card__cta:hover .treatment-card__cta-arrow {
  transform: translateX(3px);
}

/* ── Info-only cards (no CTA) — extra bottom padding ─────── */
.treatment-card--info-only {
  padding-bottom: 3rem;
}

/* ================================================================
   8. ABOUT SECTION — Meet Our Expert Consultant
================================================================ */

/* ════════════════════════════════════════════════════════════
   CLINIC INTRO — About Us
   ────────────────────────────────────────────────────────────
   Centered prose layout. No columns — reads as a mission
   statement. Sits between Treatments (white) and Meet Your
   Doctor (cream).

   Background: cream — forms a unified warm zone with About.
   The TAG divider above handles the white → cream transition.

   Text is centred and max-width capped at 740px for comfortable
   line length (~70–75 characters per line at 1rem on desktop).
════════════════════════════════════════════════════════════ */

.clinic-intro {
  background: var(--cream);
  padding: 90px var(--side-pad) 50px; /* Bottom 50px — consistent with all sections before a TAG divider */
}

.clinic-intro__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 1.6rem; /* Tighter than other section headers — rule fills the gap */
}

/* Thin rose rule — visual pause between header and body text */
.clinic-intro__rule {
  width: 48px;
  height: 1px;
  background: var(--rose);
  opacity: 0.35;
  margin: 0 auto 3rem;
}

.clinic-intro__body {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* Body paragraphs — centred, generous line height for readability */
.clinic-intro__para {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--mid);
  text-align: center;
}


.about {
  background: var(--cream);
  padding: 90px var(--side-pad) 50px; /* Bottom reduced — less gap before TAG divider */
}

.about__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 4rem;
}

/* ── Two-column body ─────────────────────────────────────── */

.about__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

/* ── Left column — quote card / video container ──────────── */

.about__media {
  position: sticky;
  top: calc(var(--nav-height) + 2rem); /* Stays visible while user scrolls timeline */
}

.about__quote-card {
  background: #fff;
  padding: 2.8rem 2.5rem;
  border-left: 3px solid var(--rose-pale);
  position: relative;
}

.about__quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--rose-pale);
  line-height: 0.7;
  margin-bottom: 1.2rem;
  display: block;
  user-select: none;
}

.about__quote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.about__quote-cite {
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about__quote-cite span {
  color: var(--text-light);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  font-weight: 400;
}

/* Video frame — used when video replaces quote card.
   See VIDEO SWAP INSTRUCTIONS in index.html. */
.about__video-frame {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 landscape */
  height: 0;
  overflow: hidden;
  background: var(--dark);
}

.about__video-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Right column — name, credentials, summary, timeline ─── */

.about__title-block {
  margin-bottom: 1.2rem;
}

.about__name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.about__credentials {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  line-height: 1.9;
}

.about__summary {
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.95;
  color: var(--mid);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--blush);
}

/* Lead summary — used when two summary paragraphs are stacked.
   Removes the border so the divider only appears after the final paragraph. */
.about__summary--lead {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.2rem; /* tighter gap between the two paragraphs */
}

/* ── Narrative timeline ──────────────────────────────────── */

.about__timeline {
  position: relative;
  padding-left: 22px;
}

/* Vertical connecting line */
.about__timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--blush);
}

.about__stage {
  position: relative;
  margin-bottom: 1.6rem;
}

.about__stage:last-child {
  margin-bottom: 0;
}

.about__stage-dot {
  position: absolute;
  left: -22px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(181, 115, 106, 0.35);
  background: var(--cream);
  flex-shrink: 0;
}

/* Current stage — Ekaiva */
.about__stage-dot--current {
  background: var(--rose);
  border-color: var(--rose);
}

.about__stage-role {
  font-family: var(--font-body);
  font-size: 0.80rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--mid);
  margin-bottom: 2px;
}

.about__stage--current .about__stage-role {
  color: var(--rose);
}

.about__stage-inst {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 5px;
}

.about__stage-desc {
  font-size: 0.87rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-light);
}

/* ── Philosophy pillars — full width below body ──────────── */

.about__philosophy {
  max-width: var(--max-width);
  margin: 4rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid var(--blush);
}

.about__philosophy-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 1.8rem;
}

/* Same 1px-gap grid as treatment cards */
.about__pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--blush);
}

.about__pillar {
  background: var(--cream);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: background-color var(--ease-normal);
}

.about__pillar:hover {
  background: #fff;
}

.about__pillar-icon {
  width: 30px;
  height: 30px;
  color: var(--rose-light);
  flex-shrink: 0;
}

.about__pillar-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.35;
}

/* ================================================================
   8b. WHY EKAIVA SECTION
   ─────────────────────────────────────────────────────────────────
   Three reasons laid out in a horizontal grid.
   White background — contrasts with the cream About section.
   Each card has a teal top border (distinguishes from the rose
   accent on treatment cards).
================================================================ */

.why {
  background: #fff;
  padding: 90px var(--side-pad) 4px; /* Bottom 4px — why__reason cards have 3rem (≈48px) internal
                                         padding-bottom already. White bg requires minimal extra gap. */
}

.why__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 4rem;
}

/* ── Three-column card grid ──────────────────────────────────
   1px gap + white background on grid = thin rose-pale divider
   lines between cards (same visual language as treatments).
──────────────────────────────────────────────────────────── */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rose-pale);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Individual reason card ──────────────────────────────── */
.why__reason {
  background: #fff;
  padding: 3rem 2.5rem;
  border-top: 2px solid var(--teal);
  position: relative;
  transition: background-color var(--ease-normal);
}

.why__reason:hover {
  background: var(--cream);
}

/* ── Decorative number ───────────────────────────────────── */
.why__number {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 300;
  color: var(--rose-pale);
  line-height: 1;
  margin-bottom: 1.4rem;
  display: block;
  user-select: none;
  letter-spacing: -0.02em;
}

/* ── Reason title ────────────────────────────────────────── */
.why__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 1rem;
}

/* ── Body copy ───────────────────────────────────────────── */
.why__body {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-light);
}


/* ================================================================
   8c. TAG DIVIDER — "…Pure Skin Science"
   ─────────────────────────────────────────────────────────────────
   Standalone breathing-space element placed between sections.
   Uses the same wave-char animation as the hero tagline.
   Appears between every section pair except Hero and Credentials.

   Background variants match the section above the divider:
   · tag-divider--white  → use after white-background sections
   · tag-divider--cream  → use after cream-background sections
================================================================ */

.tag-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  padding: 0.6rem var(--side-pad);
}

/* Horizontal rule lines flanking the text */
.tag-divider::before,
.tag-divider::after {
  content: '';
  flex: 1;
  max-width: 180px;
  height: 1px;
  background: var(--rose-pale);
}

/* Background variants — match the section above */
.tag-divider--cream { background: var(--cream); }
.tag-divider--white { background: #fff; }

/* The wave text */
.tag-divider__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--rose-light);
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.6;
  overflow: visible;
}


/* ================================================================
   8d. REVIEWS SECTION
   ─────────────────────────────────────────────────────────────────
   CSS scroll-snap carousel. One card visible at a time.
   The track scrolls horizontally; JS handles arrows + dots.
================================================================ */

.reviews {
  background: var(--cream);
  padding: 90px var(--side-pad) 50px; /* Bottom reduced — less gap before TAG divider */
}

.reviews__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3.5rem;
}

/* ── Carousel wrapper ────────────────────────────────────────
   Relative so the arrow buttons can be positioned inside it.
──────────────────────────────────────────────────────────── */
.reviews__carousel-wrap {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Scrollable track ────────────────────────────────────────
   Scroll-snap container. Scrollbar hidden visually but still
   scrollable (keeps native touch swipe working).
──────────────────────────────────────────────────────────── */
.reviews__track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox */
}

.reviews__track::-webkit-scrollbar {
  display: none;                   /* Chrome / Safari */
}

/* ── Individual review card ──────────────────────────────── */
.reviews__card {
  flex-shrink: 0;
  width: 100%;
  scroll-snap-align: start;
  background: #fff;
  padding: 3.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* ── Star rating ─────────────────────────────────────────── */
.reviews__stars {
  color: var(--rose);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

/* ── Quote text ──────────────────────────────────────────── */
.reviews__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.65;
  max-width: 72ch;
}

/* ── Attribution row ─────────────────────────────────────── */
.reviews__footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

/* Circular initial avatar */
.reviews__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--rose);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reviews__name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.reviews__treatment {
  font-size: 0.80rem;
  font-weight: 300;
  color: var(--teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Arrow buttons ───────────────────────────────────────── */
.reviews__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rose-pale);
  background: #fff;
  color: var(--rose);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--ease-fast),
    border-color var(--ease-fast),
    opacity var(--ease-fast);
  z-index: 2;
}

.reviews__arrow--prev { left: -22px; }
.reviews__arrow--next { right: -22px; }

.reviews__arrow:hover:not(:disabled) {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

.reviews__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ── Dot indicators ──────────────────────────────────────── */
.reviews__dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.reviews__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--rose-pale);
  cursor: pointer;
  padding: 0;
  transition: background var(--ease-fast), transform var(--ease-fast);
}

.reviews__dot.is-active {
  background: var(--rose);
  transform: scale(1.25);
}


/* ================================================================
   8e. CONTACT SECTION
   ─────────────────────────────────────────────────────────────────
   Dark background #3a2626. Two columns: info left, map right.
   Footer strip sits inside the section with a hairline separator.
================================================================ */

.contact {
  background: var(--dark);
  padding: 90px var(--side-pad) 0;
}

/* ── Section header — override light-section defaults ────── */
.contact .section-eyebrow {
  color: var(--teal);
}

.contact .section-title {
  color: var(--cream);
}

.contact .section-title em {
  color: var(--rose-light);
}

.contact__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 4rem;
}

/* ── Two-column body ─────────────────────────────────────── */
.contact__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 90px;
  align-items: start;
}

/* ── Info column ─────────────────────────────────────────── */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Each info row: icon + text block */
.contact__item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

/* SVG icon wrapper */
.contact__item-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--teal);
}

.contact__item-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Item label — small teal uppercase */
.contact__item-label {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.35rem;
}

/* Item value — cream text */
.contact__item-value {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--cream);
}

/* Clickable values — phone, email, Instagram */
.contact__item-value a {
  color: var(--cream);
  text-decoration: none;
  transition: color var(--ease-fast);
}

.contact__item-value a:hover {
  color: var(--rose-light);
}

/* Service area note — smaller, muted. Lists target areas for local SEO.
   Appears below the address. Colour is cream at 50% opacity so it's
   readable on the dark background but clearly secondary to the address. */
.contact__area-note {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.65;
  color: rgba(250, 244, 242, 0.52); /* --cream at 52% opacity */
  margin-top: 0.55rem;
}

/* ── Map column ──────────────────────────────────────────── */
.contact__map {
  border-radius: 4px;
  overflow: hidden;
  min-height: 380px;
  height: 100%;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: none;
  display: block;
  filter: grayscale(15%) contrast(0.92);
}

/* ── Footer strip ────────────────────────────────────────── */
.contact__footer {
  border-top: 1px solid rgba(250, 244, 242, 0.1);
  padding: 1.6rem var(--side-pad);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.contact__copyright {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(250, 244, 242, 0.35);
}

/* Legal link in the index.html dark contact footer */
.contact__legal-link {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 244, 242, 0.28);
  text-decoration: none;
  transition: color var(--ease-fast);
}

.contact__legal-link:hover {
  color: var(--rose-light);
}



/* ================================================================
   9. FAB BUTTONS
================================================================ */

.fab-container {
  position: fixed;
  bottom: 28px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
  padding-bottom: env(safe-area-inset-bottom);
}

.fab {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition:
    transform var(--ease-fast),
    box-shadow var(--ease-fast);
}

.fab:hover {
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.26);
}

.fab__icon {
  width: 26px;
  height: 26px;
  fill: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.fab__label {
  position: absolute;
  right: 70px;
  background: rgba(42, 28, 28, 0.88);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.fab:hover .fab__label {
  opacity: 1;
  transform: translateX(0);
}

.fab-container.labels-visible .fab__label {
  opacity: 1;
  transform: translateX(0);
}

.fab--whatsapp {
  background-color: var(--whatsapp);
}

.fab--whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  opacity: 0;
  animation: fabPulse 4s ease-out infinite;
}

@keyframes fabPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70% {
    transform: scale(1.65);
    opacity: 0;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

.fab--call {
  background-color: var(--rose);
}


/* ================================================================
   10. INTERACTIONS — Click / Tap Ripple
   ─────────────────────────────────────────────────────────────────
   A soft rose radial pulse on every click or tap.
   Created by createRipple() in main.js and removed after 650ms.

   position: fixed — always viewport-accurate regardless of scroll.
   pointer-events: none — never blocks underlying click targets.
   z-index: 200 — above page content, below nav (1000) and FAB (900).

   The 600 × 600 px element is centred on the click point
   (left = clientX − 300, top = clientY − 300) by main.js.
   The keyframe scales it from 0 → 1 while fading opacity out.
================================================================ */

.page-ripple {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(181, 115, 106, 0.26) 0%,
    rgba(181, 115, 106, 0) 70%
  );
  pointer-events: none;
  transform: scale(0);
  animation: pageRippleExpand 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  z-index: 200;
}

@keyframes pageRippleExpand {
  0%   { transform: scale(0); opacity: 1;   }
  65%  { opacity: 0.5; }
  100% { transform: scale(1); opacity: 0;   }
}


/* ================================================================
   9. ANIMATIONS
================================================================ */

.anim-js [data-animate-item] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.anim-js [data-animate-item].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-js [data-animate-photo] {
  opacity: 0;
  transform: translateX(36px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.anim-js [data-animate-photo].is-visible {
  opacity: 1;
  transform: translateX(0);
}

.anim-js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.anim-js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   10. RESPONSIVE
================================================================ */

/* ── Below 900px ─────────────────────────────────────────── */
@media (max-width: 900px) {

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(250, 244, 242, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 0 0;
    box-shadow: 0 8px 24px rgba(58, 38, 38, 0.08);
    z-index: 999;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 14px var(--side-pad);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    border-bottom: 1px solid var(--rose-pale);
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-whatsapp {
    display: none;
  }

  .hero__container {
    grid-template-columns: 1fr;
    padding: 20px var(--side-pad) 80px;
    text-align: center;
  }

  /* Eyebrow: center the inline-flex and cap width so lines don't wrap awkwardly */
  .hero__eyebrow {
    justify-content: center;
    max-width: 100%;
  }
  .hero__eyebrow::before,
  .hero__eyebrow::after {
    width: 20px; /* Shorter lines on mobile */
  }

  /* Treatments: collapse to 2-column on tablet */
  .treatments__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .treatment-card,
  .treatment-card:nth-child(n+5) {
    grid-column: span 1;
  }

  /* Why Ekaiva: collapse to single column on tablet */
  .why__grid {
    grid-template-columns: 1fr;
  }

  /* Reviews: tighten card padding on tablet */
  .reviews__card {
    padding: 2.5rem 2rem;
  }

  /* Reviews: pull arrows inside the card on tablet */
  .reviews__arrow--prev { left: 0; }
  .reviews__arrow--next { right: 0; }

  /* Contact: single column on tablet */
  .contact__body {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact__map {
    min-height: 300px;
  }

  .contact__map iframe {
    min-height: 300px;
  }

  /* About: collapse to single column on tablet */
  .about__body {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Un-stick the quote card — no longer needs to track the timeline */
  .about__media {
    position: static;
  }

  /* Pillars: 2×2 on tablet */
  .about__pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__visual {
    order: -1;
    justify-content: center;
    padding: 0;
    margin-bottom: 1.2rem;    /* Reduced from 2rem — less gap between photo and text */
    /* min-height removed — content determines height naturally */
  }

  .hero__lineart {
    width: 480px;
    max-width: none !important;
    top: 50%;
    right: auto;
    left: 45%;
    transform: translate(-50%, -50%);
  }

  .hero__photo-clip {
    width: 240px;
    height: 305px;
    margin-right: 0;
    margin-top: 0;            /* Reset desktop margin-top — no downward shift on mobile */
  }

  .hero__photo {
    width: 100%;
    height: 100%;
  }

  .hero__ctas {
    justify-content: center;
  }

  .hero__badges {
    align-items: center;
  }

  .hero__desc {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__designation {
    justify-content: center;
  }
}

/* ── Below 768px ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .fab-container {
    bottom: 20px;
    right: 16px;
  }

  .fab {
    width: 62px;
    height: 62px;
  }
}

/* ── Below 600px ─────────────────────────────────────────── */
@media (max-width: 600px) {

  .hero__lineart {
    width: 300px;
    max-width: none !important;
  }

  .hero__photo-clip {
    width: 200px;
    height: 255px;
    margin-right: 0;
  }

  .hero__photo {
    width: 100%;
    height: 100%;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero__ctas .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Treatments: single column on mobile */
  .treatments__grid {
    grid-template-columns: 1fr;
  }

  /* Pillars: single column on mobile */
  .about__pillars {
    grid-template-columns: 1fr;
  }

  /* Reviews: compact card padding on mobile */
  .reviews {
    padding: 60px var(--side-pad) 50px;
  }

  .reviews__card {
    padding: 2rem 1.4rem;
  }

  /* Reviews: hide arrows on mobile — swipe is native */
  .reviews__arrow {
    display: none;
  }

  /* TAG divider: tighter on mobile */
  .tag-divider {
    gap: 1rem;
    padding: 0.4rem var(--side-pad);
  }

  .tag-divider::before,
  .tag-divider::after {
    max-width: 80px;
  }
}

/* ── Below 380px ─────────────────────────────────────────── */
@media (max-width: 380px) {
  .hero__name {
    font-size: 2.4rem;
  }

  .hero__photo {
    width: 200px;
  }
}

/* ================================================================
   11. SHARED FOOTER (injected by components.js on subpages,
       also used directly if added to index.html later)
================================================================ */

/* ================================================================
   11. SITE FOOTER (shared — injected by components.js)
   ─────────────────────────────────────────────────────────────────
   Three-column layout inside footer__inner:
   · footer__brand   — logo SVG + EKAIVA name (left)
   · footer__legal-link — Legal & Policies link (centre)
   · footer__tag     — "…Pure Skin Science" wave animation (right)
   · footer__bottom  — copyright strip (below, full width)
================================================================ */

.site-footer {
  background: #2a1c1c;
  padding: 28px var(--side-pad) 20px;
}

/* ── Top row — three columns ─────────────────────────────── */

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Left — logo image + EKAIVA name; mirrors the nav logo */
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.footer__logo-img {
  width: 36px;
  height: 36px;
  background: var(--cream);   /* cream bg makes transparent logo visible on dark footer */
  border-radius: 8px;
  padding: 4px;
  box-sizing: border-box;
}

.footer__logo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--rose-light);
  letter-spacing: 0.18em;
}

/* Centre — Legal & Policies link */
.footer__legal-link {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55); /* was 0.3 — brighter */
  text-decoration: none;
  transition: color var(--ease-fast);
}

.footer__legal-link:hover {
  color: var(--rose-light);
}

/* Right — TAG wave animation container */
.footer__tag {
  text-align: right;
}

/* Text is split into wave-char spans by buildTagDividers() in animations.js.
   Colour is muted to match the existing section divider tone on dark bg. */
.footer__tag-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.42); /* was 0.2 — brighter */
  letter-spacing: 0.06em;
  overflow: visible;
  line-height: 1.6;
}

/* ── Bottom row — copyright ──────────────────────────────── */

.footer__bottom {
  max-width: var(--max-width);
  margin: 1.2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer__copy {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.42); /* was 0.22 — brighter */
}

/* ================================================================
   12. TREATMENT DETAIL PAGES
   ─────────────────────────────────────────────────────────────────
   Used by: skin-treatments.html · hair-restoration.html ·
   dermatosurgery.html · laser-treatments.html · anti-ageing.html

   Each page: compact hero → treatment sections (alternating bg)
   → bottom CTA strip. Nav/FABs/Footer injected by components.js.
================================================================ */

/* ── Compact page hero ──────────────────────────────────────── */

.page-hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
  background: linear-gradient(145deg, var(--cream) 0%, var(--blush) 55%, var(--rose-pale) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(181, 115, 106, 0.1) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ← All Treatments breadcrumb link */
.page-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
  margin-bottom: 1.8rem;
  transition: gap var(--ease-fast), color var(--ease-fast);
  /* CSS-only entry animation — no JS dependency on subpages */
  animation: fadeUp 0.5s 0.05s both;
}

.page-hero__back:hover {
  gap: 10px;
  color: var(--mid);
}

.page-hero__eyebrow {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.8rem;
  animation: fadeUp 0.6s 0.15s both;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  animation: fadeUp 0.6s 0.25s both;
}

.page-hero__title em {
  color: var(--rose);
  font-style: italic;
}

.page-hero__desc {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--mid);
  max-width: 520px;
  animation: fadeUp 0.6s 0.38s both;
}

/* ── Individual treatment sections ──────────────────────────── */

.treatment-section {
  padding: 80px var(--side-pad);
}

/* Alternating backgrounds — handled by nth-child on <main> */
main > .treatment-section:nth-child(odd)  { background: #fff; }
main > .treatment-section:nth-child(even) { background: var(--cream); }

.treatment-section__inner {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0 2.5rem;
  align-items: start;
}

.treatment-section__icon {
  width: 44px;
  height: 44px;
  color: var(--rose-light);
  margin-top: 8px; /* visually aligns icon with first line of heading */
  flex-shrink: 0;
}

.treatment-section__name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.treatment-section__name em {
  color: var(--rose);
  font-style: italic;
}

.treatment-section__desc {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.95;
  color: var(--mid);
}

/* Spacing between multiple paragraphs in one section */
.treatment-section__desc + .treatment-section__desc {
  margin-top: 1rem;
}

/* ── Page bottom CTA ─────────────────────────────────────────── */

.page-cta {
  background: var(--rose);
  padding: 70px var(--side-pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-cta::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.page-cta__inner {
  position: relative;
  z-index: 1;
}

.page-cta__heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  color: #fff;
  margin-bottom: 0.6rem;
}

.page-cta__sub {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
  margin-bottom: 2.2rem;
}

.page-cta__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-cta__wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  background: var(--whatsapp);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--ease-fast), transform var(--ease-fast);
}

.page-cta__wa:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
}

.page-cta__wa-icon {
  width: 16px;
  height: 16px;
  fill: #fff;
  flex-shrink: 0;
}

.page-cta__call {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 100px;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  transition:
    border-color var(--ease-fast),
    background-color var(--ease-fast),
    transform var(--ease-fast);
}

.page-cta__call:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .treatment-section { padding: 60px var(--side-pad); }
}

@media (max-width: 600px) {
  .treatment-section__inner {
    grid-template-columns: 1fr;
    gap: 1.2rem 0;
  }
  .treatment-section__icon { margin-top: 0; }
  .page-hero__desc { max-width: 100%; }
}


/* ================================================================
   13. LEGAL PAGE — legal.html
   ─────────────────────────────────────────────────────────────────
   Three sections: Medical Disclaimer · Privacy Policy · Cookie Notice.
   Clean, readable prose layout. Max-width 780px for comfortable
   line length. White/cream alternating backgrounds like treatment
   sections. Nav/FABs/Footer injected by components.js.
================================================================ */

.legal-section {
  padding: 80px var(--side-pad);
  background: #fff;
}

/* Cream alternate — applied to even sections */
.legal-section--alt {
  background: var(--cream);
}

.legal-section__inner {
  max-width: 780px;
  margin: 0 auto;
}

/* Section title — H2 */
.legal-section__heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 2.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--blush);
}

.legal-section__heading em {
  color: var(--rose);
  font-style: italic;
}

/* Sub-heading — H3 (used in Privacy Policy) */
.legal-section__subheading {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

/* Body paragraphs */
.legal-section__body p {
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.95;
  color: var(--mid);
  margin-bottom: 1.2rem;
}

.legal-section__body p:last-child {
  margin-bottom: 0;
}

/* Links inside body copy */
.legal-section__body a {
  color: var(--rose);
  text-decoration: none;
  border-bottom: 1px solid var(--rose-pale);
  transition: border-color var(--ease-fast), color var(--ease-fast);
}

.legal-section__body a:hover {
  color: var(--dark);
  border-color: var(--rose);
}

/* Effective date — small muted line at bottom of each section */
.legal-section__effective {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .legal-section { padding: 60px var(--side-pad); }
}
