/* ============================================================
   Asthra Ayurveda — Design System
   Premium · Restrained · Technology-forward
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..700,0..100&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --banner-height: 44px;
  /* — Palette — */
  --bg:           #F5F0E6;
  --bg-soft:      #EBE3D0;
  --bg-deep:      #E0D5BC;
  --ink:          #1C1F1A;
  --ink-soft:     #4A4F45;
  --ink-muted:    #7A7B6E;
  --sage:         #5C6B4F;
  --sage-deep:    #3D4A33;
  --sage-soft:    #8A977A;
  --terracotta:   #B5613E;
  --terracotta-deep: #8E4A2D;
  --gold:         #9B7E3F;
  --line:         #D9D0BC;
  --line-soft:    #E8E1CD;
  --white:        #FBF8F1;

  /* — Type — */
  --font-serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* — Rhythm — */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* — Radius — */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 24px;
  --r-full: 999px;

  /* — Layout — */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  /* — Motion — */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-1: 200ms;
  --dur-2: 400ms;
  --dur-3: 700ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

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

ul { list-style: none; }

::selection { background: var(--sage); color: var(--white); }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.6rem, 6vw + 1rem, 5.5rem);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 300;
}
h2 {
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3.5rem);
  font-variation-settings: "opsz" 96, "SOFT" 30;
}
h3 {
  font-size: clamp(1.4rem, 1.5vw + 0.5rem, 2rem);
  font-variation-settings: "opsz" 48;
}
h4 {
  font-size: clamp(1.1rem, 0.8vw + 0.6rem, 1.4rem);
  font-variation-settings: "opsz" 24;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--sage);
}

.lead {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.15rem, 0.8vw + 0.8rem, 1.5rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 36;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(64px, 8vw, 128px) 0;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur-2) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 10px 0;
  border-radius: 0;
}
.btn-ghost::after {
  content: '→';
  transition: transform var(--dur-2) var(--ease);
}
.btn-ghost:hover::after { transform: translateX(6px); }

.btn .arrow {
  width: 18px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width var(--dur-2) var(--ease);
}
.btn .arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 28px; }

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all var(--dur-2) var(--ease);
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--header-solid);
  border-bottom-color: var(--line-soft);
  padding: 12px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 24;
  color: var(--ink);
}
.logo-mark {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: var(--sage);
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px;
  width: 0;
  background: var(--ink);
  transition: width var(--dur-2) var(--ease);
}
.nav-link:hover, .nav-link.active {
  color: var(--ink);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 200;
}
.menu-toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--ink);
  transition: all var(--dur-2) var(--ease);
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 19px; width: 14px; }
.menu-toggle span:nth-child(3) { top: 24px; }
.menu-toggle.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform var(--dur-3) var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu .nav-link {
  font-family: var(--font-serif);
  font-size: 32px;
  letter-spacing: -0.01em;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  display: block;
}
.mobile-menu .nav-link::after { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 160px 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hero-content { position: relative; z-index: 2; }

.hero-title {
  margin: 24px 0 32px;
  max-width: 12ch;
}
.hero-title em {
  font-style: italic;
  color: var(--sage);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero-lead {
  max-width: 50ch;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-soft);
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(155, 126, 63, 0.18), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(92, 107, 79, 0.22), transparent 50%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-deep) 100%);
}
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
}
.hero-visual .badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 16px 20px;
  background: rgba(28, 31, 26, 0.7);
  backdrop-filter: blur(20px);
  border-radius: var(--r-md);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  z-index: 3;
}
.hero-visual .badge-dot {
  width: 8px; height: 8px;
  background: var(--sage-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(138, 151, 122, 0.3);
}

.hero-meta {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  font-variation-settings: "opsz" 48;
}
.hero-meta-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  background: var(--ink);
  color: var(--bg);
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  align-items: center;
}
.marquee-item {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  font-variation-settings: "opsz" 36, "SOFT" 30;
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee-item::after {
  content: '✦';
  font-size: 12px;
  color: var(--gold);
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Philosophy (About)
   ============================================================ */
.philosophy {
  background: var(--white);
  position: relative;
}
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.philosophy-text h2 { margin: 20px 0 32px; max-width: 18ch; }
.philosophy-text p { color: var(--ink-soft); margin-bottom: 20px; max-width: 60ch; }
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pillar {
  padding: 32px 28px;
  background: var(--bg);
  transition: background var(--dur-2) var(--ease);
}
.pillar:hover { background: var(--white); }
.pillar-num {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--terracotta);
  font-variation-settings: "opsz" 14;
  margin-bottom: 16px;
}
.pillar h4 { margin-bottom: 10px; }
.pillar p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============================================================
   Products (Featured / Showcase)
   ============================================================ */
.products-section {
  background: var(--bg);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(48px, 5vw, 80px);
  flex-wrap: wrap;
}
.section-head h2 { max-width: 18ch; }
.section-head .lead { max-width: 36ch; }

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

.product-card {
  position: relative;
  background: transparent;
  transition: all var(--dur-3) var(--ease);
}
.product-card:hover { transform: translateY(-4px); }

.product-img {
  aspect-ratio: 4/5;
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}
.product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(28, 31, 26, 0.05));
}
.product-img svg, .product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  background: var(--white);
  border-radius: var(--r-full);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  z-index: 2;
}
/* Coming Soon diagonal ribbon on product image */
.product-soon-ribbon {
  position: absolute;
  top: 18px;
  right: -42px;
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--bg);
  padding: 6px 50px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(28,31,26,0.15);
}

/* Coming-soon price area replacement */
.product-card--soon .product-price { display: none; }
.product-status {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.product-card--soon .product-status { display: flex; }
.status-label {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ink);
  font-style: italic;
  font-variation-settings: "opsz" 24;
  line-height: 1;
}
.status-link {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  transition: color var(--dur-1) var(--ease);
}
.status-link:hover { color: var(--ink); }

/* Coming soon banner */
.soon-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--section-dark);
  color: var(--bg);
  text-align: center;
  padding: 14px var(--gutter);
  font-size: 13px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
body.has-soon-banner .site-header {
  top: var(--banner-height);
}
.soon-banner-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(155,126,63,0.25);
  animation: pulse 2.4s ease-in-out infinite;
}
.soon-banner strong { font-weight: 500; color: var(--gold); letter-spacing: 0.06em; }
.soon-banner a { color: var(--bg); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}
.product-info {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.product-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-variation-settings: "opsz" 24;
  margin-bottom: 4px;
}
.product-cat {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.product-price {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink);
  white-space: nowrap;
}

/* ============================================================
   Process / How it works
   ============================================================ */
.process {
  background: var(--section-dark);
  color: var(--bg);
}
.process .eyebrow { color: var(--gold); }
.process .eyebrow::before { background: var(--gold); }
.process h2 { color: var(--bg); max-width: 18ch; margin: 20px 0 80px; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  opacity: 0.2;
}

.process-step {
  position: relative;
}
.process-num {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 56px;
  display: block;
}
.process-step h4 {
  color: var(--bg);
  font-size: 22px;
  margin-bottom: 12px;
}
.process-step p {
  color: rgba(245, 240, 230, 0.6);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   Reels / Instagram
   ============================================================ */
.reels-section { background: var(--bg); }
.reels-section .section-head {
  align-items: center;
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.reel-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--line);
  transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease);
}
.reel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(28, 31, 26, 0.18);
}

/* Instagram embed fills the card once rendered */
.reel-card .instagram-media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  border-radius: var(--r-lg) !important;
}

/* Fallback shown only while embed is loading or if URL is still a placeholder */
.reel-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--ink-soft);
  pointer-events: none;
  z-index: 1;
}
.reel-fallback-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  color: var(--sage);
  margin-bottom: 16px;
  box-shadow: 0 0 0 1px var(--line), 0 8px 24px -8px rgba(28, 31, 26, 0.18);
}
.reel-fallback p {
  font-size: 12px;
  max-width: 22ch;
  line-height: 1.5;
}
.reel-fallback code {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 11px;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--sage-deep);
}
/* hide fallback when Instagram embed actually loaded */
.reel-card:has(iframe) .reel-fallback,
.reel-card:has(.instagram-media-rendered) .reel-fallback { display: none; }

/* Placeholder slot — visually distinct "add a 3rd reel" */
.reel-card--placeholder {
  background: transparent;
  border: 1.5px dashed var(--line);
  display: grid;
  place-items: center;
}
.reel-card--placeholder:hover {
  border-color: var(--sage);
  background: var(--bg-soft);
  transform: none;
  box-shadow: none;
}
.reel-placeholder {
  text-align: center;
  padding: 24px;
  max-width: 28ch;
}
.reel-placeholder-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  color: var(--sage);
  margin: 0 auto 16px;
  border: 1px solid var(--line);
}
.reel-placeholder-label {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 6px;
  font-variation-settings: "opsz" 24;
}
.reel-placeholder-hint {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.5;
}
.reel-placeholder-hint code {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 10px;
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--sage-deep);
}

@media (max-width: 1024px) {
  .reels-grid { gap: 16px; }
}
@media (max-width: 720px) {
  .reels-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 48px auto 0;
  }
  .reel-card { aspect-ratio: 9 / 14; }
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials {
  background: var(--bg-soft);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.testimonial {
  background: var(--white);
  padding: 32px;
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  font-weight: 300;
}
.testimonial-quote::before {
  content: '"';
  font-size: 40px;
  line-height: 0;
  vertical-align: -10px;
  color: var(--terracotta);
  margin-right: 4px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-deep);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--sage-deep);
  font-variation-settings: "opsz" 24;
}
.testimonial-name {
  font-size: 14px;
  font-weight: 500;
}
.testimonial-role {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ============================================================
   CTA Banner
   ============================================================ */
.cta-banner {
  background: var(--bg);
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner-inner {
  background: var(--section-dark);
  border-radius: var(--r-xl);
  padding: clamp(48px, 6vw, 96px);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(155, 126, 63, 0.15), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(92, 107, 79, 0.2), transparent 40%);
}
.cta-banner h2 {
  color: var(--bg);
  max-width: 18ch;
  margin: 20px auto 28px;
  position: relative;
}
.cta-banner .lead {
  color: rgba(245, 240, 230, 0.7);
  max-width: 50ch;
  margin: 0 auto 40px;
  position: relative;
}
.cta-banner .btn-primary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
  position: relative;
}
.cta-banner .btn-primary:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--section-dark);
  color: var(--bg);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand p {
  color: rgba(245, 240, 230, 0.6);
  max-width: 32ch;
  margin-top: 20px;
  font-size: 14px;
}
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14px;
  color: rgba(245, 240, 230, 0.7);
  transition: color var(--dur-1) var(--ease);
}
.footer-col a:hover { color: var(--bg); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(245, 240, 230, 0.1);
  font-size: 12px;
  color: rgba(245, 240, 230, 0.4);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .socials { display: flex; gap: 24px; }
.footer-bottom .socials a:hover { color: var(--bg); }

/* ============================================================
   Page Header (sub-pages)
   ============================================================ */
.page-header {
  padding: 180px 0 80px;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 126, 63, 0.12), transparent 60%);
}
.page-header-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: end;
  position: relative;
  z-index: 2;
}
.page-header h1 {
  max-width: 16ch;
  margin: 20px 0 24px;
}
.page-header h1 em {
  font-style: italic;
  color: var(--sage);
}
.page-header .lead { max-width: 40ch; }

/* ============================================================
   Consultation Page
   ============================================================ */
.consult-info {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.consult-info-text h2 { margin: 20px 0 24px; max-width: 16ch; }
.consult-info-text p { color: var(--ink-soft); margin-bottom: 20px; }
.consult-features {
  margin-top: 40px;
  display: grid;
  gap: 24px;
}
.consult-feature {
  display: flex;
  gap: 16px;
  align-items: start;
}
.consult-feature-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  color: var(--sage);
  flex-shrink: 0;
}
.consult-feature h4 { font-family: var(--font-sans); font-size: 15px; font-weight: 600; margin-bottom: 4px; letter-spacing: 0; }
.consult-feature p { font-size: 13px; margin: 0; color: var(--ink-muted); }

.consult-form-wrap {
  background: var(--white);
  padding: clamp(32px, 4vw, 56px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  position: relative;
}
.consult-form-head {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.consult-form-head h3 { margin-bottom: 6px; font-variation-settings: "opsz" 36; }
.consult-form-head p { color: var(--ink-muted); font-size: 14px; }

.form-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.form-step {
  flex: 1;
  height: 3px;
  background: var(--line-soft);
  border-radius: var(--r-full);
  position: relative;
  overflow: hidden;
}
.form-step.active::after,
.form-step.done::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sage);
  transition: transform var(--dur-3) var(--ease);
}
.form-step.active::after { transform: translateX(-50%); }
.form-step.done::after { transform: translateX(0); }

.form-panel { display: none; }
.form-panel.active { display: block; animation: fadeUp 0.4s var(--ease); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: all var(--dur-1) var(--ease);
}
.form-control:focus {
  outline: none;
  border-color: var(--sage);
  background: var(--white);
}
textarea.form-control {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.choice {
  position: relative;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--dur-2) var(--ease);
  text-align: center;
}
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
}
.choice-sub {
  font-size: 12px;
  color: var(--ink-muted);
}
.choice:hover { border-color: var(--ink-soft); }
.choice:has(input:checked) {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.choice:has(input:checked) .choice-sub { color: rgba(245, 240, 230, 0.6); }

.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.form-nav .btn-prev {
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.form-nav .btn-prev::before {
  content: '←';
  transition: transform var(--dur-1) var(--ease);
}
.form-nav .btn-prev:hover::before { transform: translateX(-4px); }

.form-success {
  text-align: center;
  padding: 32px 0;
  display: none;
}
.form-success.show { display: block; animation: fadeUp 0.5s var(--ease); }
.form-success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  background: var(--sage);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
}
.form-success h3 { margin-bottom: 12px; }
.form-success p { color: var(--ink-soft); max-width: 40ch; margin: 0 auto; }

/* Practitioners */
.practitioners {
  background: var(--white);
}
.pract-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}
.pract-card { text-align: left; }
.pract-img {
  aspect-ratio: 4/5;
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}
.pract-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(28, 31, 26, 0.1));
}
.pract-name {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 4px;
  font-variation-settings: "opsz" 36;
}
.pract-title {
  font-size: 13px;
  color: var(--sage);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.pract-bio { font-size: 14px; color: var(--ink-soft); }

/* Lead Practitioner (spotlight) */
.lead-pract {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.lead-pract-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-soft);
}
.lead-pract-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lead-pract-overlay {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 20px 24px;
  background: rgba(28, 31, 26, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-md);
  color: var(--bg);
}
.lead-pract-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-variation-settings: "opsz" 36;
  line-height: 1.1;
  margin-bottom: 4px;
}
.lead-pract-title {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lead-pract-content h2 {
  margin: 20px 0 24px;
  max-width: 14ch;
}
.lead-pract-content h2::first-letter {
  /* keep it natural */
}
.lead-pract-content .lead { margin-bottom: 32px; max-width: 48ch; }
.lead-pract-credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.cred-num {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 4px;
  font-variation-settings: "opsz" 36;
}
.cred-label {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}
.lead-pract-bio {
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 50ch;
}

@media (max-width: 1024px) {
  .lead-pract { grid-template-columns: 1fr; gap: 32px; }
  .lead-pract-visual { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .lead-pract-credentials { grid-template-columns: 1fr; gap: 16px; }
  .cred-num { font-size: 22px; }
  .lead-pract-overlay { left: 16px; right: 16px; bottom: 16px; padding: 16px 18px; }
  .lead-pract-name { font-size: 22px; }
}

/* FAQ */
.faq { background: var(--bg); }
.faq-grid {
  margin-top: 64px;
  max-width: 800px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 19px;
  font-variation-settings: "opsz" 36;
  color: var(--ink);
  padding: 0;
  gap: 24px;
}
.faq-icon {
  width: 28px; height: 28px;
  position: relative;
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--ink);
  transition: transform var(--dur-2) var(--ease);
}
.faq-icon::before { width: 14px; height: 1px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 1px; height: 14px; transform: translate(-50%, -50%); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-3) var(--ease);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 200px;
  padding-top: 12px;
}

/* ============================================================
   Products Page
   ============================================================ */
.products-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 100px;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}
.filter-panel h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.filter-group { margin-bottom: 32px; }
.filter-list { display: flex; flex-direction: column; gap: 4px; }
.filter-item {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--dur-1) var(--ease);
  border: none;
  background: none;
  text-align: left;
  width: 100%;
}
.filter-item:hover { background: var(--bg-soft); color: var(--ink); }
.filter-item.active { background: var(--ink); color: var(--bg); }
.filter-count {
  font-size: 11px;
  color: var(--ink-muted);
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: var(--r-full);
}
.filter-item.active .filter-count {
  background: rgba(245, 240, 230, 0.2);
  color: rgba(245, 240, 230, 0.7);
}

.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.products-count {
  font-size: 14px;
  color: var(--ink-muted);
}
.products-count strong { color: var(--ink); font-weight: 500; }

.products-sort {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}
.products-sort select {
  border: none;
  background: none;
  font: inherit;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--r-sm);
}
.products-sort select:focus { outline: none; }

.product-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Categories Strip */
.cats {
  background: var(--white);
  padding: 64px 0;
}
.cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--r-lg);
  background: var(--bg-soft);
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  cursor: pointer;
  transition: transform var(--dur-3) var(--ease);
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(28, 31, 26, 0.5));
}
.cat-card-name {
  position: relative;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--white);
  font-variation-settings: "opsz" 36;
  z-index: 2;
}
.cat-card-sub {
  position: relative;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 4px;
  z-index: 2;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { aspect-ratio: 4/4; max-width: 560px; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  .process-grid::before { display: none; }
  .testimonial-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .page-header-inner { grid-template-columns: 1fr; gap: 24px; }
  .consult-info { grid-template-columns: 1fr; }
  .pract-grid { grid-template-columns: 1fr; }
  .products-layout { grid-template-columns: 1fr; }
  .filter-panel {
    position: static;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
  }
  .filter-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
  }
  .filter-item { white-space: nowrap; flex-shrink: 0; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .product-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .section { padding: 64px 0; }

  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-cta .btn-secondary { display: none; }

  .hero {
    min-height: auto;
    padding: 130px 0 64px;
  }
  .hero-title { font-size: clamp(2.4rem, 12vw, 3.5rem); }
  .hero-meta {
    gap: 24px;
    flex-wrap: wrap;
  }
  .hero-meta-num { font-size: 22px; }

  .marquee-item { font-size: 17px; gap: 32px; }
  .marquee-track { gap: 32px; }

  .product-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-grid { grid-template-columns: 1fr; gap: 32px; }
  .process h2 { margin-bottom: 48px; }
  .process-num { margin-bottom: 16px; }

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

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: start; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .choice-grid { grid-template-columns: 1fr; }

  .cats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-card { aspect-ratio: 5/4; padding: 16px; }
  .cat-card-name { font-size: 18px; }

  .product-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .product-info { flex-direction: column; align-items: start; gap: 4px; }

  .cta-banner-inner { padding: 48px 24px; }
  .cta-banner-inner .btn { width: 100%; justify-content: center; }

  .products-toolbar {
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .cats-grid { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: 1fr; }
}

/* Reveal animation — only hides if JS class is on html */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}
/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   THEME STUDIO — 5 design variations
   Switch via the floating "Design Studio" widget.
   ============================================================ */

/* Theme 1: Warm Parchment (original direction — still selectable) */
:root,
[data-theme="warm-parchment"] {
  --bg:           #F5F0E6;
  --bg-soft:      #EBE3D0;
  --bg-deep:      #E0D5BC;
  --ink:          #1C1F1A;
  --ink-soft:     #4A4F45;
  --ink-muted:    #7A7B6E;
  --sage:         #5C6B4F;
  --sage-deep:    #3D4A33;
  --sage-soft:    #8A977A;
  --terracotta:   #B5613E;
  --terracotta-deep: #8E4A2D;
  --gold:         #9B7E3F;
  --line:         #D9D0BC;
  --line-soft:    #E8E1CD;
  --white:        #FBF8F1;
  --section-dark: #1C1F1A;
  --hero-img-filter: none;
  --header-bg:    rgba(245, 240, 230, 0.6);
  --header-solid: rgba(251, 248, 241, 0.95);
}

/* Theme 2: Forest Apothecary — deep moss + brass, editorial */
[data-theme="forest-apothecary"] {
  --bg:           #ECE6D2;
  --bg-soft:      #D4CCB0;
  --bg-deep:      #B8AE8C;
  --ink:          #141A12;
  --ink-soft:     #3A4530;
  --ink-muted:    #6B7560;
  --sage:         #2D3B2A;
  --sage-deep:    #1A2517;
  --sage-soft:    #5C6E50;
  --terracotta:   #8B5A3C;
  --terracotta-deep: #6B4029;
  --gold:         #B89455;
  --line:         #B5AA86;
  --line-soft:    #D2CAA8;
  --white:        #F0E8D2;
  --section-dark: #141A12;
  --hero-img-filter: brightness(0.95) contrast(1.05);
  --header-bg:    rgba(236, 230, 210, 0.7);
  --header-solid: rgba(240, 232, 210, 0.97);
}

/* Theme 3: Midnight Ayurveda — dark mode, saffron gold */
[data-theme="midnight-ayurveda"] {
  --bg:           #14110E;
  --bg-soft:      #1F1B16;
  --bg-deep:      #2A241D;
  --ink:          #F0E8D6;
  --ink-soft:     #B8AC95;
  --ink-muted:    #7E7460;
  --sage:         #7A8866;
  --sage-deep:    #5C6E50;
  --sage-soft:    #A3B58A;
  --terracotta:   #C97A56;
  --terracotta-deep: #A55E3F;
  --gold:         #D4A656;
  --line:         #3A322A;
  --line-soft:    #2A241D;
  --white:        #1F1B16;
  --section-dark: #0A0805;
  --hero-img-filter: brightness(1.05) contrast(0.92) saturate(1.1);
  --header-bg:    rgba(20, 17, 14, 0.7);
  --header-solid: rgba(20, 17, 14, 0.96);
}

/* Theme 4: Sunset Botanica — terracotta-dominant, golden hour */
[data-theme="sunset-botanica"] {
  --bg:           #F4E2C8;
  --bg-soft:      #E8CFAA;
  --bg-deep:      #D6B58C;
  --ink:          #2B1810;
  --ink-soft:     #4F3525;
  --ink-muted:    #8B6E50;
  --sage:         #6B7B47;
  --sage-deep:    #4A5A2A;
  --sage-soft:    #8FA063;
  --terracotta:   #C76F47;
  --terracotta-deep: #9A4F2A;
  --gold:         #B58838;
  --line:         #C9A878;
  --line-soft:    #DBB98A;
  --white:        #FAE8D0;
  --section-dark: #2B1810;
  --hero-img-filter: brightness(1.02) saturate(1.1);
  --header-bg:    rgba(244, 226, 200, 0.7);
  --header-solid: rgba(250, 232, 208, 0.97);
}

/* Theme 5: Monochrome Pharmacie — black + cream, ultra-minimal */
[data-theme="monochrome-pharmacie"] {
  --bg:           #F8F5EE;
  --bg-soft:      #ECE7DA;
  --bg-deep:      #DDD6C5;
  --ink:          #0A0A0A;
  --ink-soft:     #3A3A3A;
  --ink-muted:    #757575;
  --sage:         #2A3A2A;
  --sage-deep:    #1A2A1A;
  --sage-soft:    #5C6E5C;
  --terracotta:   #0A0A0A;
  --terracotta-deep: #000000;
  --gold:         #8B7E5A;
  --line:         #C7C0AE;
  --line-soft:    #DCD5BE;
  --white:        #FFFFFF;
  --section-dark: #0A0A0A;
  --hero-img-filter: grayscale(0.4) contrast(1.05);
  --header-bg:    rgba(248, 245, 238, 0.7);
  --header-solid: rgba(255, 255, 255, 0.97);
}

/* Theme 6: Light Green — Sage Garden */
[data-theme="sage-garden"] {
  --bg:           #ECF1E5;
  --bg-soft:      #D8E0CE;
  --bg-deep:      #C5D2B5;
  --ink:          #1F2A1A;
  --ink-soft:     #3E4A36;
  --ink-muted:    #6E7A60;
  --sage:         #6B8E5A;
  --sage-deep:    #4A6840;
  --sage-soft:    #95B383;
  --terracotta:   #C49A6C;
  --terracotta-deep: #9A7848;
  --gold:         #A89060;
  --line:         #BCCAA8;
  --line-soft:    #D5DEC4;
  --white:        #F5F8F0;
  --section-dark: #2A3825;
  --hero-img-filter: brightness(1.05) saturate(0.9);
  --header-bg:    rgba(236, 241, 229, 0.7);
  --header-solid: rgba(245, 248, 240, 0.97);
}

/* Theme 7: Dark Green — Emerald Canopy */
[data-theme="emerald-canopy"] {
  --bg:           #0F1A14;
  --bg-soft:      #182620;
  --bg-deep:      #1F3329;
  --ink:          #C8D8B8;
  --ink-soft:     #95A88A;
  --ink-muted:    #607560;
  --sage:         #4A8C5E;
  --sage-deep:    #2D5A3D;
  --sage-soft:    #6FB585;
  --terracotta:   #D4A574;
  --terracotta-deep: #A57F4E;
  --gold:         #E8C77A;
  --line:         #2A4035;
  --line-soft:    #1F3329;
  --white:        #182620;
  --section-dark: #0A1410;
  --hero-img-filter: brightness(0.9) contrast(1.1) saturate(1.3) hue-rotate(10deg);
  --header-bg:    rgba(15, 26, 20, 0.75);
  --header-solid: rgba(15, 26, 20, 0.97);
}

/* Theme 8: Golden — Saffron Palace */
[data-theme="saffron-palace"] {
  --bg:           #F4E4C1;
  --bg-soft:      #E8D199;
  --bg-deep:      #D9BC7A;
  --ink:          #2A1F0E;
  --ink-soft:     #4D3D26;
  --ink-muted:    #8B7548;
  --sage:         #7A8B40;
  --sage-deep:    #566325;
  --sage-soft:    #9FAB5F;
  --terracotta:   #B86838;
  --terracotta-deep: #8A4825;
  --gold:         #C9932E;
  --line:         #C9A878;
  --line-soft:    #DBB98A;
  --white:        #FAEAD0;
  --section-dark: #2A1F0E;
  --hero-img-filter: brightness(1.08) saturate(1.2) sepia(0.1);
  --header-bg:    rgba(244, 228, 193, 0.7);
  --header-solid: rgba(250, 234, 208, 0.97);
}

/* Theme 9: Light Blue — Aqua Vaidya */
[data-theme="aqua-vaidya"] {
  --bg:           #E8F0F2;
  --bg-soft:      #D4E0E4;
  --bg-deep:      #BAD0D7;
  --ink:          #1A2A30;
  --ink-soft:     #3A4E55;
  --ink-muted:    #6B7E85;
  --sage:         #5A8B95;
  --sage-deep:    #3D6973;
  --sage-soft:    #85B0B8;
  --terracotta:   #C97A56;
  --terracotta-deep: #9F5A38;
  --gold:         #B89455;
  --line:         #B5C8CE;
  --line-soft:    #D0DCE0;
  --white:        #F5FAFB;
  --section-dark: #1A2A30;
  --hero-img-filter: brightness(1.05) saturate(0.85) hue-rotate(170deg);
  --header-bg:    rgba(232, 240, 242, 0.7);
  --header-solid: rgba(245, 250, 251, 0.97);
}

/* Theme 10: GTA 6 Purple — Vice City Ayurveda */
[data-theme="gta6-purple"] {
  --bg:           #1A0A1F;
  --bg-soft:      #251430;
  --bg-deep:      #321C42;
  --ink:          #FFE8F5;
  --ink-soft:     #D4B8C8;
  --ink-muted:    #907890;
  --sage:         #FF3D9A;
  --sage-deep:    #C72373;
  --sage-soft:    #FF7BB8;
  --terracotta:   #00E5D4;
  --terracotta-deep: #00BFB0;
  --gold:         #FFD700;
  --line:         #4A2A5C;
  --line-soft:    #321C42;
  --white:        #2A1A35;
  --section-dark: #0A0510;
  --hero-img-filter: brightness(1.15) contrast(1.05) saturate(1.5) hue-rotate(290deg);
  --header-bg:    rgba(26, 10, 31, 0.78);
  --header-solid: rgba(26, 10, 31, 0.97);
}

/* Theme-specific hero visual filter */
.hero-visual img {
  filter: var(--hero-img-filter);
  transition: filter var(--dur-3) var(--ease);
}

/* ============================================================
   THEME STUDIO — switcher UI (floating panel)
   ============================================================ */
.theme-studio {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  font-family: var(--font-sans);
}
.theme-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--section-dark);
  color: var(--bg);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
  cursor: pointer;
}
.theme-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.theme-toggle::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg);
  animation: theme-pulse 2.4s ease-in-out infinite;
}
@keyframes theme-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.theme-panel {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: 80vh;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.theme-panel-scroll {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.theme-panel-scroll::-webkit-scrollbar {
  width: 6px;
}
.theme-panel-scroll::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}
.theme-section-head {
  padding: 14px 18px 6px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}
.theme-section-head:first-child { border-top: none; }
.theme-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.theme-panel-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-soft);
}
.theme-panel-head span {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.theme-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  transition: background var(--dur-1) var(--ease);
}
.theme-close:hover {
  background: var(--ink);
  color: var(--bg);
}
.theme-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: none;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--dur-1) var(--ease);
  position: relative;
}
.theme-option:last-of-type {
  border-bottom: none;
}
.theme-option:hover {
  background: var(--bg-soft);
}
.theme-option.active {
  background: var(--bg-soft);
}
.theme-option.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--ink);
}
.theme-swatches {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.theme-swatches span {
  display: block;
  width: 18px;
  height: 36px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.theme-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.theme-option-text strong {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  font-variation-settings: "opsz" 24;
  line-height: 1.2;
}
.theme-option-text span {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.theme-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  color: transparent;
  transition: all var(--dur-1) var(--ease);
}
.theme-option.active .theme-check {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.theme-panel-foot {
  padding: 12px 18px;
  background: var(--bg-soft);
  text-align: center;
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .theme-studio { bottom: 16px; right: 16px; }
  .theme-toggle { width: 48px; height: 48px; }
}