/* ===================================================================
   Mayukha Wellness Clinic — Design System & Aesthetic Heritage UI
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Color — sourced from the clinic building */
  --color-bg: #FAF3E6;
  --color-surface: #FFFDF8;
  --color-surface-raised: #FFFFFF;
  --color-ink: #2A2118;
  --color-forest: #5C3A21;
  --color-forest-dark: #2E2013;
  --color-terracotta: #A8461F;
  --color-saffron: #D9A82E;
  --color-sage: #C9A25A;
  --color-sage-soft: #F3E7CE;
  --color-muted: #6E6255;
  --color-border: #E3D5BC;
  --color-error: #B3261E;
  --color-success: #8A5A16;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --fs-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --fs-sm: clamp(0.875rem, 0.84rem + 0.18vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-md: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);
  --fs-lg: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
  --fs-xl: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --fs-2xl: clamp(2.25rem, 1.8rem + 2.2vw, 3.5rem);
  --fs-3xl: clamp(2.75rem, 2.1rem + 3.2vw, 4.5rem);

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --container: 1240px;
  --container-narrow: 800px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* Motion */
  --transition-fast: 150ms ease;
  --transition-normal: 280ms cubic-bezier(0.2, 0.7, 0.3, 1);

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(42, 33, 24, 0.06), 0 1px 1px rgba(42, 33, 24, 0.04);
  --shadow-md: 0 8px 24px rgba(42, 33, 24, 0.08), 0 2px 6px rgba(42, 33, 24, 0.05);
  --shadow-lg: 0 24px 64px rgba(42, 33, 24, 0.14), 0 4px 12px rgba(42, 33, 24, 0.06);

  /* Margins */
  --m-1: 0.25rem;
  --m-2: 0.5rem;
  --m-3: 0.75rem;
  --m-4: 1rem;
  --m-5: 1.5rem;
  --m-6: 2rem;
  --m-7: 3rem;
  --m-8: 4rem;
  --m-9: 6rem;
  --m-10: 8rem;
  /* Padding */
  --p-1: 0.25rem;
  --p-2: 0.5rem;
  --p-3: 0.75rem;
  --p-4: 1rem;
  --p-5: 1.5rem;
  --p-6: 2rem;
  --p-7: 3rem;
  --p-8: 4rem;
  --p-9: 6rem;
  --p-10: 8rem;	
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100dvh;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul[class], ol[class] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
p { max-width: 100%; text-align: justify; text-justify: inter-word; }
address { font-style: normal; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: var(--space-4); top: -60px; background: var(--color-forest-dark);
  color: #fff; padding: var(--space-3) var(--space-5); border-radius: var(--radius-sm);
  z-index: 1000; transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-4); }
:focus-visible { outline: 2px solid var(--color-terracotta); outline-offset: 3px; border-radius: var(--radius-sm); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--space-5); }
.section { padding-block: var(--space-7); }
.section--tight { padding-block: var(--space-6); }
.section--surface { background: var(--color-surface); padding-bottom: var(--space-3); }
.section--forest { background: var(--color-forest-dark); color: #F5ECDA; }
.section--forest h2, .section--forest h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-terracotta); margin-bottom: var(--space-3);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--color-terracotta); }
.section-head { width: min(100% - 30px, 1000px); margin-bottom: var(--space-7); }
.section-head-sub { width: 100%; margin-bottom: var(--space-7); }
.section-head p { color: var(--color-muted); font-size: var(--fs-md); margin-top: var(--space-3); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head-sub p { color: var(--color-muted); font-size: var(--fs-md); margin-top: var(--space-3); }
.section-head-sub--center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-weight: 600; font-size: var(--fs-sm); padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full); border: 1px solid transparent;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-terracotta); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #9c4930; box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--color-forest-dark); border-color: var(--color-border); }
.btn-secondary:hover { border-color: var(--color-forest-dark); background: var(--color-sage-soft); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; opacity: 0.85; }
.btn-ghost:hover { opacity: 1; background: rgba(255,255,255,0.08); }
.btn-text { padding: 0; border-radius: 0; gap: var(--space-1); color: var(--color-terracotta); font-weight: 600; }
.btn-text .icon { transition: transform var(--transition-fast); width: 16px; height: 16px; }
.btn-text:hover .icon { transform: translateX(3px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-sm-star { width: 16px; height: 16px; display: inline; }

/* ===================================================================
   Fixed Black Navigation Header & Submenu
   =================================================================== */

.aesthetic-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9000;
  background-color: var(--color-forest-dark); 
  padding: 15px 50px;
  border-bottom: 1px solid rgba(207, 165, 99, 0.2); 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9); 
  width: 100%;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

/* Logo & Brand Colors */
.aesthetic-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e5c378; 
}

.aesthetic-brand .brand-mark {
  width: 36px;
  height: 36px;
  color: #e5c378;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text .title {
  font-family: var(--font-display); 
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
  color: #e5c378;
}

.brand-text .subtitle {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: #d1a751;
  text-transform: uppercase;
}

/* Nav Links & Submenu System */
.aesthetic-nav {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 30px;
}

.aesthetic-nav .nav-links > li > a {
  font-family: var(--font-body); 
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5d2a8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.aesthetic-nav .nav-links > li > a:hover {
  color: #ffffff;
}

/* Parent dropdown item wrapper */
.nav-item-dropdown {
  position: relative;
}

/* Dropdown Panel */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--color-forest-dark, #2E2013);
  border: 1px solid rgba(229, 195, 120, 0.3);
  border-radius: var(--radius-md, 14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
  padding: var(--space-2) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.2, 0.7, 0.3, 1);
  z-index: 9100;
}

/* Show dropdown on hover or focus */
.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li {
  list-style: none;
  margin: 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #e5d2a8 !important;
  font-family: var(--font-body);
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.nav-dropdown-menu a:hover {
  background: rgba(229, 195, 120, 0.12);
  color: #ffffff !important;
  padding-left: 24px;
}

/* Dropdown Indicator Arrow */
.nav-item-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.nav-item-dropdown:hover > a::after {
  transform: rotate(-135deg);
}

/* Mobile Toggle Button */
.nav-toggle {
  display: none; 
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(229, 195, 120, 0.1);
  border: 1px solid rgba(229, 195, 120, 0.3);
  color: #e5c378;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(229, 195, 120, 0.2);
}

/* Mobile Responsiveness for Header */
@media (max-width: 920px) {
  .aesthetic-nav .nav-links {
    display: none; 
  }
  .aesthetic-nav .btn-gold {
    display: none; 
  }
  .nav-toggle {
    display: inline-flex;
  }
  .aesthetic-header {
    padding: 15px 20px; 
  }
}

/* ===================================================================
   Aesthetic Hero Redesign
   =================================================================== */

.aesthetic-hero-wrapper {
  position: relative;
  min-height: 100vh;
  background-image: url('../assets/images/watermarked_img_4474577254188938326.png'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.aesthetic-hero-wrapper-sub-page {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.aesthetic-hero-wrapper.subpage-hero {
  position: relative;
  background-image: none; 
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.aesthetic-hero-wrapper.subpage-hero .hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

.aesthetic-hero-wrapper.subpage-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(46, 32, 19, 0.5);
  z-index: -1;
}

.aesthetic-hero {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  z-index: 10;
  padding: 120px 0 var(--space-6) 0%;
}

.center-view {
  flex: 1;
}

/* Wood Panels */
.wood-panel {
  width: 30%;
  max-width: 500px;
  background: linear-gradient(145deg, #3A2312 0%, #1A0C05 100%);
  border-radius: 4px;
  padding: 12px;
  box-shadow: 15px 15px 40px rgba(0,0,0,0.6);
  color: #E8D5A5;
}

.panel-inner-border {
  border: 1px solid rgba(232, 213, 165, 0.4);
  outline: 1px solid rgba(232, 213, 165, 0.2);
  outline-offset: -6px;
  height: 100%;
  padding: var(--space-7) var(--space-6);
  display: flex;
  flex-direction: column;
}

.left-panel h1 {
  color: #E8D5A5;
  font-size: 2.8rem;
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.left-panel .lede {
  color: #C5B58D;
  margin-bottom: var(--space-6);
  font-size: 1.05rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }
.trust-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-7); justify-content: space-between; }

/* Custom Buttons */
.btn-gold {
  background: linear-gradient(to bottom, #CDA153, #A67B2E);
  color: #2A1608;
  border-radius: 40px;
  border: none;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0.85rem 1.5rem; font-size: var(--fs-sm); transition: transform var(--transition-fast);
}

.btn-gold:hover {
  background: linear-gradient(to bottom, #DEB466, #B98C3F);
  transform: translateY(-1px);
}

.btn-outline-gold {
  background: transparent;
  color: #E8D5A5;
  border: 1px solid #CDA153;
  border-radius: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0.85rem 1.5rem; font-size: var(--fs-sm); font-weight: 600; transition: background var(--transition-fast);
}

.btn-outline-gold:hover {
  background: rgba(205, 161, 83, 0.1);
}

.left-panel .trust-item {
  color: #C5B58D;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-weight: 400;
  font-size: var(--fs-xs);
  gap: var(--space-2);
}

.left-panel .trust-item .icon {
  color: #CDA153;
  width: 28px;
  height: 28px;
}

/* Right Panel - Dosha Cards */
.dosha-stack {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.aesthetic-dosha-card {
  background: linear-gradient(145deg, #444c33 0%, #29301d 100%);
  border: 3px solid #b89b4f;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: 
    0 15px 25px rgba(0,0,0,0.7), 
    inset 0 0 0 3px rgba(34, 40, 24, 0.8), 
    inset 0 0 0 4px rgba(184, 155, 79, 0.4);
}

.dosha-icon-wrapper {
  width: 75px;
  height: 95px;
  border-radius: 35px;
  border: 2px solid #b89b4f;
  flex-shrink: 0;
  background: radial-gradient(circle at center, rgba(229, 195, 120, 0.2) 0%, rgba(0,0,0,0.4) 100%);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 0 15px rgba(229, 195, 120, 0.1);
}

.dosha-content {
  flex: 1;
}

.dosha-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.dosha-name {
  color: #f0dfa8;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.dosha-tag {
  color: #b5a886;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
}

.dosha-content h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.dosha-content p {
  color: #d1cbb8;
  font-size: 0.8rem;
  margin-bottom: 12px;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}
.dosha-engraving {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 33px;
  filter: sepia(0.8) hue-rotate(350deg) brightness(0.9) contrast(1.2);
  mix-blend-mode: screen; 
  opacity: 0.9;
}

.aesthetic-meter {
  height: 10px;
  background: #181d11;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.9), 0 1px 1px rgba(255,255,255,0.1);
}

.aesthetic-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(to bottom, #fceabb 0%, #d89f3c 40%, #8a5a19 100%);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.6), inset 0 -1px 2px rgba(0,0,0,0.4);
}

.aesthetic-foreground {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, rgba(70, 90, 50, 0.9) 0%, rgba(70, 90, 50, 0) 100%);
  pointer-events: none;
  z-index: 5;
}

@media (max-width: 1024px) {
  .aesthetic-hero {
    flex-direction: column;
    align-items: center;
  }
  .wood-panel {
    width: 100%;
    max-width: 600px;
  }
  .center-view {
    min-height: 200px;
  }
}

/* ---------- Mobile Drawer ---------- */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 9200;
  background: rgba(42, 33, 24, 0.35);
  opacity: 0; pointer-events: none; transition: opacity var(--transition-normal);
}
.mobile-drawer[data-open="true"] { opacity: 1; pointer-events: auto; }
.mobile-drawer-panel {
  position: absolute; top: var(--space-4); right: var(--space-4); left: var(--space-4);
  background: var(--color-surface-raised); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--shadow-lg);
  transform: translateY(-16px); transition: transform var(--transition-normal);
  max-height: 90vh; overflow-y: auto;
}
.mobile-drawer[data-open="true"] .mobile-drawer-panel { transform: translateY(0); }
.mobile-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-5); }
.mobile-drawer-close { width: 40px; height: 40px; border-radius: var(--radius-full); border: 1px solid var(--color-border); background: transparent; display: inline-flex; align-items: center; justify-content: center; }

/* Mobile Links & Nested Subgroups */
.mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.mobile-links > a, .mobile-links > span {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  color: var(--color-ink);
}

.mobile-subgroup {
  padding-left: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  border-left: 2px solid #CDA153;
  margin: var(--space-1) 0 var(--space-3) var(--space-2);
  background: rgba(205, 161, 83, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding-block: var(--space-2);
}

.mobile-subgroup a {
  font-family: var(--font-body);
  font-size: 0.9rem !important;
  color: var(--color-muted);
  border-bottom: none !important;
  padding-block: 6px !important;
}

.mobile-subgroup a:hover {
  color: var(--color-terracotta);
}

/* ---------- Quick Answer ---------- */
.quick-answer {
  background: var(--color-forest-dark); color: #F5ECDA;
  border-radius: var(--radius-lg); padding: var(--space-7);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7);
}
.quick-answer h2 { color: #fff; margin-bottom: var(--space-3); }
.quick-answer p { color: #E8D9BB; }
.quick-answer ul { display: flex; flex-direction: column; gap: var(--space-3); }
.quick-answer li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-sm); }
.quick-answer .icon { color: var(--color-saffron); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 780px) { .quick-answer { grid-template-columns: 1fr; } }

/* ---------- Bento grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: var(--space-4);
}
.bento-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}
.bento-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.bento-card .icon-badge {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-sage-soft); color: var(--color-forest); margin-bottom: var(--space-4);
}
.bento-card p { color: var(--color-muted); font-size: var(--fs-sm); }
.bento-card--wide { grid-column: span 2; }
.bento-card--tall { grid-row: span 2; }
.bento-card--dark { background: var(--color-forest-dark); color: #F5ECDA; border-color: var(--color-forest-dark); }
.bento-card--dark p { color: #D9C7A3; }
.bento-card--dark .icon-badge { background: rgba(255,255,255,0.12); color: var(--color-saffron); }
@media (max-width: 980px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card--wide { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--wide, .bento-card--tall { grid-column: span 1; grid-row: span 1; }
}

/* ---------- Card systems ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.service-card, .treatment-card, .article-card, .practitioner-card, .feature-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal), border-color var(--transition-fast);
}
.service-card:hover, .treatment-card:hover, .article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--color-sage); }
.service-card .icon-badge, .feature-card .icon-badge {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-sage-soft); color: var(--color-forest);
}
.service-card p, .treatment-card p, .feature-card p { color: var(--color-muted); font-size: var(--fs-sm); }
.card-media { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; background: var(--color-sage-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-tag { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; color: var(--color-terracotta); letter-spacing: 0.05em; }
.card-meta { display: flex; gap: var(--space-3); font-size: var(--fs-xs); color: var(--color-muted); }

.testimonial-card {
  background: var(--color-surface-raised); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-6);
}
.testimonial-card p { font-size: var(--fs-md); font-family: var(--font-display); color: var(--color-ink); margin-bottom: var(--space-4); }
.testimonial-meta { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-xs); color: var(--color-muted); }
.testimonial-meta strong { color: var(--color-ink); display: block; font-size: var(--fs-sm); }

.practitioner-card { flex-direction: row; align-items: center; gap: var(--space-5); }
.practitioner-card .avatar { width: 88px; height: 88px; border-radius: 50%; background: var(--color-sage-soft); flex-shrink: 0; overflow: hidden; }
.practitioner-card .avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Process list ---------- */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: step; }
.process-step { position: relative; padding-top: var(--space-6); border-top: 2px solid var(--color-border); }
.process-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--color-terracotta);
  display: block; margin-bottom: var(--space-3);
}
@media (max-width: 900px) { .process-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); max-width: var(--container-narrow); margin-inline: auto; }
.faq-item {
  background: var(--color-surface-raised); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-2) var(--space-5);
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding-block: var(--space-4); font-weight: 600; font-size: var(--fs-md);
  list-style: none; cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform var(--transition-fast); color: var(--color-terracotta); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { padding-bottom: var(--space-5); color: var(--color-muted); }

/* ---------- Location ---------- */
.location-block { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); aspect-ratio: 4/3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.location-list { display: flex; flex-direction: column; gap: var(--space-4); margin-block: var(--space-5); }
.location-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.location-list .icon { color: var(--color-terracotta); margin-top: 2px; }
@media (max-width: 860px) { .location-block { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: var(--fs-sm); font-weight: 600; }
.form-field .hint { font-size: var(--fs-xs); color: var(--color-muted); }
.form-field input, .form-field select, .form-field textarea {
  padding: 0.8rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--color-border);
  background: var(--color-surface-raised); transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--color-forest); box-shadow: 0 0 0 3px rgba(92,58,33,0.12); outline: none;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field[data-state="error"] input,
.form-field[data-state="error"] select,
.form-field[data-state="error"] textarea { border-color: var(--color-error); }
.form-field .error-msg { display: none; font-size: var(--fs-xs); color: var(--color-error); gap: var(--space-1); align-items: center; }
.form-field[data-state="error"] .error-msg { display: flex; }
.form-field input:disabled, .form-field select:disabled, .form-field textarea:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status { display: none; padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); font-size: var(--fs-sm); margin-top: var(--space-5); }
.form-status[data-state="success"] { display: flex; gap: var(--space-2); background: #F3E7CE; color: var(--color-success); }
.form-status[data-state="error"] { display: flex; gap: var(--space-2); background: #F6E4E2; color: var(--color-error); }
.form-status[data-state="loading"] { display: flex; gap: var(--space-2); background: var(--color-sage-soft); color: var(--color-forest-dark); }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(92,58,33,0.25);
  border-top-color: var(--color-forest); animation: spin 0.7s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 1.4s; } }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-field.full { grid-column: 1; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); color: var(--color-muted); margin-bottom: var(--space-5); flex-wrap: wrap; }
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-terracotta); }
.breadcrumbs .sep { opacity: 0.5; }
.breadcrumbs [aria-current="page"] { color: var(--color-ink); font-weight: 600; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-block: var(--space-8) var(--space-7); }
.page-hero h1 { max-width: 95%; }
.page-hero .lede { font-size: var(--fs-md); color: var(--color-muted); max-width: 100%; margin-top: var(--space-4); text-align: justify; }
.direct-answer {
  background: var(--color-sage-soft); border-left: 3px solid var(--color-forest);
  border-radius: var(--radius-sm); padding: var(--space-5); margin-top: var(--space-6); max-width: 100%;
}
.direct-answer .eyebrow { color: var(--color-forest); }
.direct-answer .eyebrow::before { background: var(--color-forest); }

/* ---------- Table (comparison / hours) ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.data-table th, .data-table td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); }
.data-table th { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  font-size: var(--fs-xs); color: var(--color-muted); border-top: 1px solid var(--color-border);
  padding-top: var(--space-5); margin-top: var(--space-7); max-width: var(--container-narrow);
}

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--color-forest-dark); color: #fff; border-radius: var(--radius-lg);
  padding: var(--space-8); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-5);
}
.final-cta h2 { color: #fff; max-width: 90%; }
.final-cta .cta-row { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-forest-dark); color: #D3C2A0; padding-block: var(--space-8) var(--space-6); margin-top: var(--space-9); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-6); padding-bottom: var(--space-7); border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-grid span { font-size: 1rem; }
.footer-brand { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-size: var(--fs-md); color: #fff; margin-bottom: var(--space-3); }
.footer-brand .brand-mark { width: 26px; height: 26px; color: var(--color-saffron); }
.footer-col h4 { font-family: var(--font-body); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: #C9A25A; margin-bottom: var(--space-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-6); font-size: var(--fs-xs); flex-wrap: wrap; gap: var(--space-3); }
.footer-social { display: flex; gap: var(--space-3); }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--space-5); padding-block: var(--space-9); }
.error-code { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--color-terracotta); letter-spacing: 0.1em; }

/* ---------- Misc utility ---------- */
.mt-0 { margin-top: 0; }
.text-muted { color: var(--color-muted); }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }

/* ===================================================================
   Heritage Padippura Gate Animation (Slatted Top, Solid Bottom)
   =================================================================== */

.door-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  perspective: 1500px;
  background-color: transparent; 
  pointer-events: none; 
}

.door-panel {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 3.5s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: auto;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
  background-color: rgba(50, 20, 5, 0.4); 
}

.door-left {
  transform-origin: left;
  border-right: 4px solid #2a1408; 
}

.door-right {
  transform-origin: right;
  border-left: 2px solid rgba(229, 210, 168, 0.3); 
}

.gate-top-slats {
  height: 35%; 
  width: 100%;
  border-bottom: 20px solid #2a1408; 
  background: repeating-linear-gradient(
    to right,
    transparent,
    transparent 30px,
    #63391d 30px, 
    #3d1f0d 55px  
  );
  box-shadow: inset 0 15px 30px rgba(0,0,0,0.6);
}

.gate-solid-bottom {
  height: 65%;
  width: 100%;
  background: linear-gradient(to bottom, #2b1d12, #1c110a);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.carved-inset {
  width: 100%;
  height: 100%;
  background-image: 
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 30c-8.284 0-15-6.716-15-15 0-8.284 6.716-15 15-15 8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15zm0-28C22.82 2 17 7.82 17 15s5.82 13 13 13 13-5.82 13-13S37.18 2 30 2zm0 54c-8.284 0-15-6.716-15-15 0-8.284 6.716-15 15-15 8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15zm0-28c-7.18 0-13 5.82-13 13s5.82 13 13 13 13-5.82 13-13-5.82-13-13-13zm-15-15c0-8.284-6.716-15-15-15C-8.284 0-15 6.716-15 15c0 8.284 6.716 15 15 15 8.284 0 15-6.716 15-15zm-28 0c0-7.18 5.82-13 13-13s13 5.82 13 13-5.82 13-13 13-13-5.82-13-13zm45 0c0-8.284-6.716-15-15-15C22.284 0 15.568 6.716 15.568 15c0 8.284 6.716 15 15 15 8.284 0 15-6.716 15-15zm-28 0c0-7.18 5.82-13 13-13s13 5.82 13 13-5.82 13-13 13-13-5.82-13-13z' fill='%23e5c378' fill-opacity='0.15' fill-rule='evenodd'/%3E%3C/svg%3E"), 
    linear-gradient(135deg, #5c3216, #2a1408);
  border: 4px solid #2a1408;
  border-radius: 4px;
  box-shadow: 
    inset 4px 4px 15px rgba(0,0,0,0.8), 
    inset -2px -2px 5px rgba(255,255,255,0.08),
    1px 1px 2px rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: center;
  padding: 15px;
}

.door-text-primary {
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 3vw, 2rem); 
  font-weight: 700;
  color: #e5c378; 
  text-transform: uppercase;
  letter-spacing: 0.2em; 
  text-shadow: 
    0px -2px 2px rgba(0, 0, 0, 0.95), 
    0px 1px 1px rgba(255, 255, 255, 0.25), 
    0px 0px 15px rgba(229, 195, 120, 0.2);
  line-height: 1.2;
}

.door-text-secondary {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 2.2vw, 1.3rem);
  font-style: normal; 
  font-weight: 600;
  color: #d1a751; 
  text-transform: uppercase; 
  letter-spacing: 0.15em;
  text-shadow: 
    0px -1.5px 2px rgba(0, 0, 0, 0.95), 
    0px 1px 1px rgba(255, 255, 255, 0.2),
    0px 0px 10px rgba(209, 167, 81, 0.15);
}

.door-handle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 160px;
  background: linear-gradient(90deg, #8a5a19, #e5d2a8, #8a5a19);
  border-radius: 10px;
  box-shadow: 5px 10px 20px rgba(0,0,0,0.9), inset 2px 2px 4px rgba(255,255,255,0.4);
  z-index: 5;
}

.door-handle::before, 
.door-handle::after {
  content: '';
  position: absolute;
  left: -10px;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, #e5d2a8 10%, #a47c3e 60%, #4a2e09 100%);
  border-radius: 50%;
  box-shadow: 3px 5px 10px rgba(0,0,0,0.8);
}
.door-handle::before { top: -20px; }
.door-handle::after { bottom: -20px; }

.left-handle { right: -25px; }
.right-handle { left: -25px; }

.door-loader.is-open .door-left {
  transform: rotateY(-105deg);
}
.door-loader.is-open .door-right {
  transform: rotateY(105deg);
}

.door-loader.is-open {
  visibility: hidden;
  transition: visibility 0s 3.5s;
}

@media (max-width: 768px) {
  .gate-solid-bottom { padding: 20px; }
  .gate-top-slats { height: 25%; }
  .gate-solid-bottom { height: 75%; }
  .left-handle { right: -15px; }
  .right-handle { left: -15px; }
}

/* --- Treatments Layout & Refined Cards --- */
.treatments-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 900px) {
  .treatments-layout {
    grid-template-columns: 1fr;
  }
}

.treatment-sidebar {
  position: sticky;
  top: 100px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.treatment-sidebar h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-4);
  color: var(--color-forest-dark);
  border-bottom: 2px solid var(--color-sage-soft);
  padding-bottom: var(--space-2);
}

.treatment-sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.treatment-sidebar nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  font-weight: 500;
  transition: var(--transition-fast);
  background: var(--color-bg);
}

.treatment-sidebar nav a:hover {
  background: var(--color-sage-soft);
  color: var(--color-forest-dark);
  transform: translateX(4px);
}

.treatment-card-refined {
  background: var(--color-surface, #FFFDF8);
  border: 1px solid var(--color-border, #E3D5BC);
  border-radius: var(--radius-lg, 24px);
  padding: var(--space-7, 3rem);
  margin-bottom: var(--space-7, 3rem);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(42, 33, 24, 0.08));
  position: relative;
  overflow: hidden;
}

.treatment-card-refined::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-terracotta, #A8461F), var(--color-saffron, #D9A82E));
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4, 1rem);
  margin-top: var(--space-6, 2rem);
}

.stack-item {
  background: var(--color-bg, #FAF3E6);
  padding: var(--space-4, 1rem);
  border-radius: var(--radius-sm, 8px);
  border-left: 3px solid var(--color-sage, #C9A25A);
}

.stack-item h4 {
  font-size: var(--fs-sm);
  color: var(--color-forest-dark);
  margin-bottom: var(--space-1);
}

.stack-item p {
  font-size: var(--fs-xs);
  color: var(--color-muted);
  margin: 0;
}
/* --- WhatsApp Floating Action Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #FFFFFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.25s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
    color: #FFFFFF;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}
