/* ========================================================================
   PS Ayurveda — Stylesheet
   Color system: sage green + warm amber + cream
   Type: Cormorant Garamond (serif) + Inter (sans)
   ======================================================================== */

:root {
  --color-primary: #2f6a3e;
  --color-primary-dark: #214d2c;
  --color-primary-soft: #e7f0ea;
  --color-accent: #c8a55b;
  --color-accent-dark: #a8843c;
  --color-cream: #f7f2e8;
  --color-cream-2: #faf6ee;
  --color-ink: #2a2a26;
  --color-ink-soft: #4a4a44;
  --color-muted: #7c7c75;
  --color-line: #e6e2d6;
  --color-white: #ffffff;

  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 28, 22, 0.06), 0 2px 8px rgba(20, 28, 22, 0.04);
  --shadow-md: 0 6px 20px rgba(20, 28, 22, 0.08), 0 2px 6px rgba(20, 28, 22, 0.04);
  --shadow-lg: 0 24px 48px rgba(20, 28, 22, 0.12), 0 4px 12px rgba(20, 28, 22, 0.06);

  --header-h: 88px;
  --container: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--color-primary-dark); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--color-ink-soft); }
ul, ol { color: var(--color-ink-soft); }
.text-muted { color: var(--color-muted); }
.center { text-align: center; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================================================
   Header & Navigation
   ======================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(8, 10, 14, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
  flex-wrap: nowrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
}
.brand-mark {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--color-primary);
  color: var(--color-cream);
  border-radius: 50%;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: 0.05em;
  object-fit: cover;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark[src] {
  /* PS Ayurveda logo (horizontal, native 190×49). Render at prominent size;
     object-fit: contain keeps the FULL image visible (no crop). */
  display: block;
  width: 195px;            /* 50 * (190/49) ≈ 195 */
  height: 50px;
  max-width: 45vw;         /* shrink on narrow viewports */
  /* Reset base .brand-mark styling so rectangle + full image shows */
  border-radius: 0 !important;
  object-fit: contain !important;
  background: transparent;
  color: transparent;
  font-size: 0;
  border: 0;
  flex-shrink: 0;
  /* Slight brightness boost on dark bg so colors pop */
  filter: brightness(1.05) drop-shadow(0 1px 6px rgba(255, 255, 255, 0.12));
}
@media (min-width: 1200px) {
  .brand-mark[src] { width: 220px; height: 56px; }
}
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0; padding: 0;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(201, 164, 76, 0.15);
}
.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 8px;
  background: #15181f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.dropdown a:hover {
  background: rgba(201, 164, 76, 0.15);
  color: #fff;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.nav-phone svg { color: var(--color-accent); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-line);
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease), opacity .2s;
}
.nav-toggle span { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle span::before { content: ''; top: -7px; transform: translateX(-50%); }
.nav-toggle span::after { content: ''; top: 7px; transform: translateX(-50%); }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ========================================================================
   Buttons
   ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  text-align: center;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--color-primary);
  color: var(--color-cream);
}
.btn-primary:hover { background: var(--color-primary-dark); color: var(--color-cream); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: var(--color-cream); }
.btn-accent {
  background: var(--color-accent);
  color: #2a2010;
}
.btn-accent:hover { background: var(--color-accent-dark); color: var(--color-cream); }
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  padding: 8px 0;
  border-radius: 0;
}
.btn-ghost:hover { color: var(--color-primary-dark); }

/* ========================================================================
   Hero
   ======================================================================== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 96px;
  background: var(--color-cream-2);
  overflow: hidden;
}
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  transform: scale(1.05);
  animation: kenBurns 14s ease-in-out infinite alternate;
}
.hero-slide.is-active { opacity: 0.60; }
@keyframes kenBurns {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -1%); }
}
.hero-carousel-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 50% 50%, rgba(248,243,230,0.30) 0%, rgba(248,243,230,0.08) 55%, rgba(248,243,230,0) 100%);
  pointer-events: none;
}
.hero-carousel-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(47, 106, 62, 0.30);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.hero-dot.is-active { width: 30px; background: var(--color-primary); border-radius: var(--radius-pill); }
.hero-dot:hover { background: var(--color-primary); }
.hero .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; transform: none; }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  text-align: left;
}
.hero-content { max-width: 760px; margin: 0; }
.hero-content .hero-actions { justify-content: flex-start; }
.hero-content .hero-trust   { justify-content: flex-start; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 18px;
}
.hero-title {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  text-shadow: 0 2px 24px rgba(248, 243, 230, 0.85), 0 1px 2px rgba(248, 243, 230, 0.6);
}
.hero-title em {
  font-style: italic;
  color: var(--color-primary);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--color-ink-soft);
  max-width: 540px;
  margin-bottom: 32px;
  text-shadow: 0 1px 12px rgba(248, 243, 230, 0.9);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}
.hero-trust {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  font-size: 0.9rem;
  color: var(--color-ink);
}
.hero-trust > span:not(.pill) {
  color: var(--color-ink);
  font-weight: 600;
  text-shadow: 0 1px 12px rgba(248, 243, 230, 0.9);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(47, 106, 62, 0.10);
  color: var(--color-primary);
  font-weight: 600;
}
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  background: var(--color-white);
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-badge .dot {
  width: 10px; height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(47, 106, 62, 0.2);
  animation: pulse 1.6s infinite;
}
.hero-badge.top { top: 20px; left: 20px; color: var(--color-ink); }
.hero-badge.bottom { bottom: 20px; right: 20px; background: var(--color-primary); color: var(--color-cream); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 106, 62, 0.45); }
  100% { box-shadow: 0 0 0 14px rgba(47, 106, 62, 0); }
}

/* ========================================================================
   Sections & Layout
   ======================================================================== */
.section {
  padding: 96px 0;
}
.section-tight {
  padding: 64px 0;
}
.section-cream {
  background: var(--color-cream);
}
.section-title {
  max-width: 720px;
  margin: 0 auto 40px;
}
.section-title.center {
  text-align: center;
}
.section-title p {
  font-size: 1.05rem;
  color: var(--color-ink-soft);
}
.section-title h2 em {
  font-style: italic;
  color: var(--color-primary);
}

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ========================================================================
   Service Cards
   ======================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 32px 26px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  color: inherit;
  position: relative;
  overflow: hidden;
  /* Background image support (set per-card via inline style) */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.service-card::before {
  /* Light overlay for readability — kept transparent so the background image
     shows through clearly. Slight dark gradient at bottom anchors text. */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.35) 60%, rgba(0, 0, 0, 0.08) 100%);
  opacity: 1;
  transition: background .3s var(--ease);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-soft);
}
.service-card:hover::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.2) 60%, rgba(0, 0, 0, 0.05) 100%); }
.service-card .service-title,
.service-card .service-desc {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.85), 0 1px 8px rgba(255, 255, 255, 0.55);
}
.service-card .service-icon { position: relative; z-index: 1; }
.service-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.service-icon svg { width: 26px; height: 26px; }
.service-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin: 0;
}
.service-title a {
  color: var(--color-ink);
  text-decoration: none;
  transition: color 0.2s var(--ease);
  position: relative;
  z-index: 2;
}
.service-title a:hover {
  color: var(--color-primary);
}
.service-desc {
  color: var(--color-ink-soft);
  margin: 0;
  flex: 1;
}

/* ========================================================================
   About / Founder
   ======================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-grid-flip {
  grid-template-columns: 1.1fr 1fr;
}
.about-grid-flip > .about-visual { order: 2; }
.about-grid-flip > div:not(.about-visual) { order: 1; }
.about-grid.center {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  gap: 32px;
}
.about-grid.center .about-visual { order: -1; max-width: 560px; margin: 0 auto; }
.about-grid.center .about-visual img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
  overflow: hidden;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
}
.about-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: top center;
  background: var(--color-white);
}
.about-visual .founder-actions {
  padding: 20px;
  margin-top: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-white);
}
.about-visual .founder-actions .btn {
  width: 100%;
  margin-left: 0 !important;
}
.about-quote {
  margin: 24px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-cream);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-ink);
}
.about-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.about-meta div {
  display: flex; flex-direction: column;
}
.about-meta strong {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-primary);
  line-height: 1;
}
.about-meta span {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 4px;
}

/* ---- Founder (post-hero) ---- */
.founder-section {
  background:
    radial-gradient(circle at 90% 10%, rgba(200, 165, 91, 0.10), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(47, 106, 62, 0.08), transparent 50%),
    var(--color-cream-2);
}
.founder-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.founder-visual {
  position: relative;
}
.founder-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #f8f3e6 0%, #e9ddc4 100%);
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.founder-badges {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.founder-badge {
  flex: 1;
  min-width: 160px;
  background: var(--color-white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid var(--color-primary);
}
.founder-badge strong {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-primary);
  line-height: 1;
}
.founder-badge {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 500;
}
.founder-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-ink);
}
.founder-name {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500;
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}
.founder-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ========================================================================
   Stats
   ======================================================================== */
.stats {
  background: var(--color-primary);
  color: var(--color-cream);
  padding: 56px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  background-image:
    radial-gradient(circle at 90% 10%, rgba(200, 165, 91, 0.20), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.10), transparent 50%);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50%      { transform: translateX(100%); }
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}
.stats-grid > div {
  opacity: 0;
  transform: translateY(24px);
  animation: statRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.stats-grid > div:nth-child(1) { animation-delay: 0.10s; }
.stats-grid > div:nth-child(2) { animation-delay: 0.30s; }
.stats-grid > div:nth-child(3) { animation-delay: 0.50s; }
@keyframes statRise {
  to { opacity: 1; transform: translateY(0); }
}
.stats-grid > div:hover { transform: translateY(-4px); }
.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--color-cream);
  position: relative;
  display: inline-block;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}
.stats.is-counting .stat-value {
  animation: numPulse 2.2s cubic-bezier(0.4, 0, 0.2, 1) 1;
}
@keyframes numPulse {
  0%   { transform: scale(0.85); letter-spacing: -0.05em; opacity: 0.4; }
  60%  { transform: scale(1.08); letter-spacing: 0.02em;  opacity: 1;   }
  100% { transform: scale(1);    letter-spacing: 0;        opacity: 1;   }
}
.stat-label {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease);
}
.stats-grid > div:hover .stat-label { opacity: 1; }
.stats .center.mt-3 { color: #ffffff; opacity: 0.95; transition: opacity 0.3s var(--ease); }
.stats .center.mt-3:hover { opacity: 1; }
.stats .btn-accent {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s var(--ease);
}
.stats .btn-accent:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.20); }
@media (prefers-reduced-motion: reduce) {
  .stats::before { animation: none; }
  .stats-grid > div, .stats.is-counting .stat-value { animation: none; opacity: 1; transform: none; }
}

/* ========================================================================
   Gallery
   ======================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  /* Square cells — bigger than before so images appear larger and clearer */
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
}
.gallery-item.wide { aspect-ratio: auto; grid-column: span 2; grid-row: span 2; }
.gallery-item.tall { aspect-ratio: 1 / 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center;
  /* Use browser default smooth rendering — `-webkit-optimize-contrast` was
     causing aggressive resampling that made images look pixelated. */
  transition: transform .6s var(--ease);
  image-rendering: auto;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ========================================================================
   Testimonials
   ======================================================================== */
.testimonials { background: var(--color-cream-2); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--color-white);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testimonial-stars {
  color: var(--color-accent);
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-ink);
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.testimonial-author strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-ink);
}
.testimonial-author span {
  font-size: 0.82rem;
  color: var(--color-muted);
}
.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ========================================================================
   Why Ayurveda Cards
   ======================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  padding: 36px 30px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.why-card .ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--color-accent);
  color: #fff;
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.why-card h4 { margin-bottom: 8px; }

/* Why + Video side-by-side */
.why-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-top: 32px;
}
.why-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
}
.why-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.why-video-frame .yt-poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
  font: inherit;
  color: inherit;
  text-align: left;
}
.why-video-frame .yt-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, opacity .25s ease;
}
.why-video-frame .yt-poster:hover img { transform: scale(1.03); }
.why-video-frame .yt-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.why-video-frame .yt-poster:hover .yt-play { transform: scale(1.08); }
.why-video-frame .yt-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  letter-spacing: .2px;
}
.why-video-frame .yt-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.35) 100%);
  pointer-events: none;
}
.why-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.why-copy h3 { margin-bottom: 14px; }
.why-copy .text-muted { max-width: 56ch; }

/* ========================================================================
   Page Header (interior pages)
   ======================================================================== */
.page-header {
  padding: calc(var(--header-h) + 64px) 0 64px;
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-2) 100%);
  text-align: center;
  border-bottom: 1px solid var(--color-line);
}
.page-header h1 {
  max-width: 820px;
  margin: 0 auto 16px;
}
.page-header p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--color-ink-soft);
}
.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--color-primary); }
.breadcrumbs span:not(:last-child) { color: var(--color-line); }
.breadcrumbs span:last-child { color: var(--color-ink); }

/* ========================================================================
   Treatment hero (variant)
   ======================================================================== */
.treatment-hero {
  padding: calc(var(--header-h) + 64px) 0 80px;
  background:
    radial-gradient(circle at 80% 20%, rgba(200, 165, 91, 0.12), transparent 50%),
    radial-gradient(circle at 10% 70%, rgba(47, 106, 62, 0.10), transparent 50%),
    var(--color-cream-2);
  overflow: hidden;
}

/* ========================================================================
   Conditions List
   ======================================================================== */
.cond-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cond-list li {
  padding: 28px 26px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
  transition: transform .2s var(--ease);
  text-align: center;
}
.cond-list li:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cond-list h4 { margin-bottom: 8px; }
.cond-list p { font-size: 0.95rem; margin: 0; color: var(--color-ink-soft); }

/* ========================================================================
   Approach / Process Steps
   ======================================================================== */
.approach-list {
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}
.approach-item {
  display: flex;
  gap: 20px;
  align-items: center;
  text-align: center;
  padding: 24px 28px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.approach-item:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.approach-num {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-cream);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
}
.approach-item h4 { margin-bottom: 6px; }
.approach-item p { margin: 0; color: var(--color-ink-soft); }

/* ========================================================================
   CTA Banner
   ======================================================================== */
.cta-banner {
  background: var(--color-primary);
  color: var(--color-cream);
  padding: 48px 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background-image:
    radial-gradient(circle at 80% 10%, rgba(200, 165, 91, 0.20), transparent 50%),
    radial-gradient(circle at 20% 90%, rgba(255, 255, 255, 0.08), transparent 50%);
}
.cta-banner h2 { color: var(--color-cream); margin-bottom: 8px; }
.cta-banner p { color: rgba(247, 242, 232, 0.85); margin: 0; }
.cta-banner .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ========================================================================
   Footer
   ======================================================================== */
.site-footer {
  background: var(--color-ink);
  color: rgba(247, 242, 232, 0.78);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(247, 242, 232, 0.10);
}
.footer-brand {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-cream);
  margin-bottom: 14px;
}
.footer-brand-img {
  /* Footer logo: prominent horizontal display, rectangle (not circle),
     object-fit contain ensures full image shows. */
  display: block;
  width: 310px;            /* 80 * (190/49) ≈ 310 */
  height: 80px;
  max-width: 90%;
  margin-bottom: 20px;
  border-radius: 0 !important;
  object-fit: contain !important;
  background: transparent;
}
@media (min-width: 768px) {
  .footer-brand-img { width: 342px; height: 88px; }
}
@media (min-width: 1200px) {
  .footer-brand-img { width: 372px; height: 96px; }
}
.site-footer p { color: rgba(247, 242, 232, 0.7); font-size: 0.92rem; }
.site-footer h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-cream);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: rgba(247, 242, 232, 0.75);
  font-size: 0.92rem;
  transition: color .2s var(--ease);
}
.footer-links a:hover { color: var(--color-accent); }
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(247, 242, 232, 0.08);
  display: inline-flex;
  align-items: center; justify-content: center;
  color: rgba(247, 242, 232, 0.85);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.social-links a:hover {
  background: var(--color-accent);
  color: var(--color-ink);
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(247, 242, 232, 0.6);
  flex-wrap: wrap;
}

/* ========================================================================
   Floating WhatsApp
   ======================================================================== */
.float-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 40;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  animation: wp-pulse 2.4s infinite;
}
.float-whatsapp:hover { transform: scale(1.08); color: #fff; }
@keyframes wp-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ========================================================================
   Forms
   ======================================================================== */
.form-card {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 5;
  isolation: isolate;
  touch-action: manipulation;
  transform: none !important;
}
.form-card,
.form-field,
.form-field input,
.form-field select,
.form-field textarea {
  transform: none !important;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-cream-2);
  font-family: inherit;
  font-size: 16px; /* iOS Safari auto-zoom prevention */
  color: var(--color-ink);
  position: relative;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
/* Larger custom dropdown arrow — replaces tiny native arrow */
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231f2a22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 8 11 13 6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px 18px;
  padding-right: 48px;
  cursor: pointer;
}
.form-field textarea { min-height: 110px; resize: vertical; padding-top: 12px; }
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(47, 106, 62, 0.14);
}
.form-card button[type="submit"] {
  white-space: normal !important;
  word-break: normal !important;
  line-height: 1.35 !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 20px;
  font-size: 0.95rem;
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
}
.form-success {
  display: none;
  padding: 14px 18px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
}
.form-success.is-visible { display: block; }
.form-errors.is-visible { display: block !important; }

/* ========================================================================
   Booking Pop-up Modal
   ======================================================================== */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(12, 18, 14, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.booking-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.booking-modal-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  padding: 32px;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.3s var(--ease);
}
.booking-modal-overlay.is-open .booking-modal-container {
  transform: scale(1) translateY(0);
}
.booking-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-cream-2);
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 2;
}
.booking-modal-close:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: rotate(90deg);
}
.booking-modal-header {
  margin-bottom: 20px;
  padding-right: 36px;
}
.booking-modal-header h2 {
  font-size: 1.75rem;
  margin-bottom: 4px;
}
.booking-modal-form {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}
body.modal-open {
  overflow: hidden !important;
}
@media (max-width: 640px) {
  .booking-modal-container {
    padding: 24px 18px;
  }
  .booking-modal-form .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ========================================================================
   Doctor Card
   ======================================================================== */
.doctor-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.doctor-card-media {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.doctor-card .portrait {
  border-radius: var(--radius-md);
  background:
    radial-gradient(ellipse at 50% 35%, #ffffff 0%, #f3ede0 60%, #ece4d2 100%);
  overflow: hidden;
}
.doctor-card .portrait img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}
.portrait-actions {
  width: 100%;
}
.portrait-actions .btn {
  width: 100%;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  justify-content: center;
  line-height: 1.35;
  padding: 12px 16px;
  font-size: 0.92rem;
  box-sizing: border-box;
}
.doctor-card h3 { margin-bottom: 4px; }
.doctor-card .role {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-dark);
  margin-bottom: 16px;
}

/* ========================================================================
   Blog
   ======================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  color: inherit;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.blog-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.blog-meta {
  display: flex;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--color-muted);
}
.blog-body h3 { margin-bottom: 0; font-size: 1.4rem; }
.blog-body h3 a {
  color: var(--color-ink);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.blog-body h3 a:hover {
  color: var(--color-primary);
}
.blog-body p { margin: 0; color: var(--color-ink-soft); font-size: 0.95rem; flex: 1; }
.blog-body .btn { align-self: flex-start; }

/* Blog detail */
.blog-detail h1 { margin: 16px 0 8px; }
.blog-detail .lead { font-family: var(--font-serif); font-size: 1.25rem; color: var(--color-muted); margin-bottom: 32px; }
.blog-detail h2 { margin-top: 40px; font-size: 1.6rem; color: var(--color-primary-dark); }
.blog-detail h3 { margin-top: 32px; }
.blog-detail ul, .blog-detail ol { padding-left: 22px; }
.blog-detail ul li, .blog-detail ol li { margin-bottom: 8px; }
.blog-detail .hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 24px 0;
  box-shadow: var(--shadow-md);
}

/* ========================================================================
   Reveal on Scroll
   ======================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ========================================================================
   Responsive
   ======================================================================== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  :root { --header-h: 72px; }
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #0d0f14;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease), visibility .25s;
  }
  body.menu-open .nav-menu {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-link {
    padding: 14px;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(201, 164, 76, 0.12);
  }
  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 8px 16px;
  }
  .has-dropdown .dropdown a {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 14px;
  }
  .has-dropdown .dropdown a:hover {
    color: #fff;
    background: rgba(201, 164, 76, 0.1);
  }
  .nav-cta .nav-phone { display: none; }
  .nav-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
  }
  .hero { padding: calc(var(--header-h) + 40px) 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .founder-grid { grid-template-columns: 1fr; gap: 40px; }
  .founder-photo { max-width: 380px; margin: 0 auto; }
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .cond-list { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-video-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-item { aspect-ratio: 1 / 1; }
  .gallery-item.wide { aspect-ratio: 1 / 1; grid-column: span 2; grid-row: span 2; }
  .gallery-item.tall { aspect-ratio: 1 / 1; grid-row: auto; }
  .form-row { grid-template-columns: 1fr; }
  .doctor-card { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .doctor-card-media { width: 100%; max-width: 340px; margin: 0 auto; }
  .doctor-card .portrait { width: 100%; max-width: 240px; margin: 0 auto; }
  .cta-banner { flex-direction: column; padding: 32px 24px; text-align: center; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
  .container { padding: 0 18px; }
  p { font-size: 0.95rem; line-height: 1.6; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 0.85rem; }
  .float-whatsapp { right: 16px; bottom: 16px; width: 50px; height: 50px; }

  /* Sections & spacing */
  .section { padding: 48px 0; }
  .section-tight { padding: 32px 0; }
  .reveal:not(.is-visible) { transform: none; opacity: 1; }   /* avoid jank on small screens */

  /* Buttons: ensure 44px tap target */
  .btn { min-height: 44px; padding: 12px 20px; font-size: 0.95rem; }
  .btn-sm { min-height: 36px; padding: 8px 14px; }

  /* Header — drop the CTA, keep logo + toggle */
  .nav { gap: 12px; }
  .brand-mark[src] { width: 140px; height: 36px; }            /* logo slightly smaller on phones */
  .nav-cta .btn { display: none; }                              /* hide Book Now header button — keep in body CTAs */
  .nav-menu { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav-menu .nav-link { padding: 16px 14px; font-size: 1rem; }

  /* Hero — stack, tighten */
  .hero { padding: calc(var(--header-h) + 24px) 0 48px; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { flex-wrap: wrap; gap: 8px; }
  .hero-badge { font-size: 0.78rem; padding: 6px 10px; }
  .hero-visual { margin-top: 24px; }

  /* Founder / about sections */
  .founder-section { padding: 48px 0; }
  .founder-grid { gap: 24px; }
  .founder-photo { max-width: 280px; }
  .founder-name { font-size: 1.5rem; }
  .founder-actions { flex-direction: column; align-items: stretch; }
  .founder-actions .btn { width: 100%; }

  .about-grid { gap: 24px; }
  .about-quote { font-size: 0.95rem; }

  /* Service cards — larger tap, tighter */
  .service-card { padding: 24px 18px; gap: 12px; }
  .service-title { font-size: 1.25rem; }
  .service-desc { font-size: 0.92rem; }

  /* CTA banner — full-width buttons */
  .cta-banner { padding: 28px 20px; }
  .cta-banner .actions { flex-direction: column; align-items: stretch; }
  .cta-banner .actions .btn { width: 100%; }
  .cta-banner h2 { font-size: 1.4rem; }

  /* Page header */
  .page-header { padding: 32px 0 12px; }
  .page-header h1 { font-size: 1.85rem; }
  .page-header p { font-size: 0.95rem; }

  /* Stats */
  .stats { padding: 40px 0; }
  .stat-value { font-size: 2rem; }

  /* Forms — single column stack on mobile, 48px min touch target, 16px font-size to prevent iOS zoom */
  .form-card { padding: 22px 16px; border-radius: 14px; gap: 14px; }
  .form-row { grid-template-columns: 1fr !important; gap: 14px; }
  .form-field input, .form-field select, .form-field textarea { font-size: 16px !important; min-height: 48px; padding: 12px 14px; }
  .form-card button[type="submit"] { font-size: 0.92rem !important; padding: 13px 14px !important; border-radius: 12px !important; width: 100% !important; box-sizing: border-box !important; }

  /* Treatment hero — pin badges off the image */
  .treatment-hero { padding: calc(var(--header-h) + 24px) 0 32px; }
  .hero-visual .hero-badge { font-size: 0.72rem; padding: 5px 9px; }

  /* Doctor card */
  .doctor-card { padding: 18px; gap: 16px; }
  .doctor-card h3 { font-size: 1.3rem; }

  /* Blog */
  .blog-detail { padding: calc(var(--header-h) + 16px) 0 24px; }
  .blog-detail .hero-img { border-radius: 12px; }
  .blog-body { font-size: 1rem; line-height: 1.7; }
  .blog-body img { border-radius: 8px; }
  .blog-body pre, .blog-body code { font-size: 0.85rem; }

  /* Breadcrumbs */
  .breadcrumbs { font-size: 0.85rem; flex-wrap: wrap; }

  /* Gallery */
  .gallery-grid { gap: 10px; }
  .gallery-lightbox { padding: 12px; }

  /* Tables (any admin/blog tables) — scroll horizontally if too wide */
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Pull footer logo in a touch */
  .footer-brand-img { height: 64px !important; width: 248px !important; }
}

/* === Global safety nets (apply at all sizes) === */
html { overflow-x: clip; }
body { overflow-x: hidden; position: relative; }
img, svg, video { max-width: 100%; height: auto; }
table { max-width: 100%; }

/* Hamburger toggle: hidden by default in base, shown on mobile via
   @media (max-width: 960px) rule earlier in this file (display: inline-flex). */

/* Founder section: image on left, text+actions on right.
   On desktop, "Book Consultation" lives below the image (left column) for stronger call-to-action.
   On mobile (stacked), it naturally appears under the badges. */
.founder-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 16px; }
.founder-actions .btn { width: 100%; }

/* Doctor card portrait-actions: button below the portrait image */
.portrait-actions { margin-top: 16px; }
.portrait-actions .btn { width: 100%; }

/* Slightly smaller buttons on inline form rows */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  h1 { font-size: 1.75rem; }
  .brand-mark[src] { width: 120px; height: 32px; }
}

/* ========================================================================
   Reduced motion
   ======================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ========================================================================
   Page-scoped: Pain Management centering
   ======================================================================== */
.page-pain .service-card,
.page-pain .cond-list li,
.page-pain .approach-item { text-align: center; }
.page-pain .service-card { align-items: center; }
.page-pain .approach-item { align-items: center; }
.page-pain .approach-list { max-width: 820px; margin: 0 auto; }
.page-pain .about-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  gap: 32px;
}
.page-pain .about-grid .about-visual { order: -1; max-width: 560px; margin: 0 auto; aspect-ratio: auto; max-height: none; }
.page-pain .about-grid .about-visual img { width: 100%; height: auto; object-fit: contain; border-radius: var(--radius-lg); }
.page-pain .section-title.center,
.page-pain .hero-grid { text-align: center; }
.page-pain .hero-actions,
.page-pain .hero-trust { justify-content: center; }
.page-pain .hero-actions { display: flex; flex-wrap: wrap; }
.page-pain .hero-trust { display: flex; }
