/* ==========================================================================
   HealthVitalMiora - Clinical Longevity & Wellness Design System
   Domain: healthvitalmiora.org
   Pure HTML/CSS/JS - Zero React/Vite dependencies
   ========================================================================== */

:root {
  /* Brand Palette */
  --ink: #0F1B2D;            /* Deep clinical navy */
  --ink-light: #1E2E46;      /* Lighter navy */
  --ink-muted: #5A6A80;      /* Slate secondary text */
  --vital: #14B8A6;          /* Vibrant clinical teal (Primary) */
  --vital-dark: #0D9488;     /* Darker teal for hover */
  --vital-soft: rgba(20, 184, 166, 0.12); /* Soft teal tint */
  --miora: #FF7A59;          /* Coral CTA */
  --miora-hover: #E76644;    /* Coral hover */
  --miora-soft: rgba(255, 122, 89, 0.14); /* Soft coral tint */
  --gold: #F4B860;           /* Amber highlight */
  --sand: #F7F3EC;           /* Warm clinical background */
  --sand-card: #FFFFFF;      /* Clean card surface */
  --mist: #E6EEF0;           /* Structural borders and image background */
  --mist-dark: #CBD5E1;      /* Crisp border stroke */
  --white: #FFFFFF;
  
  /* Typography Scale */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Radii (Strictly rounded squares 8-12px, NO 50% circle shapes) */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 2px 8px rgba(15, 27, 45, 0.04);
  --shadow-card: 0 8px 24px -4px rgba(15, 27, 45, 0.08), 0 2px 6px -1px rgba(15, 27, 45, 0.04);
  --shadow-hover: 0 16px 36px -6px rgba(15, 27, 45, 0.12), 0 4px 12px -2px rgba(15, 27, 45, 0.06);
  
  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 180ms;
  --duration-med: 320ms;
  
  /* Header Height */
  --header-height: 76px;
}

/* Reset & Universal Rules */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
  min-height: 100%;
  background-color: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy - No Clipping */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
h4 { font-size: clamp(1.05rem, 1.8vw, 1.3rem); }

p {
  color: var(--ink-muted);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.65;
  text-align: left;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

ul, ol {
  list-style: none;
}

/* Layout Containers & Spacing */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 64px);
  min-width: 0;
}

.section {
  padding-block: clamp(48px, 8vw, 88px);
  position: relative;
  width: 100%;
  min-width: 0;
}

.section--sand { background-color: var(--sand); }
.section--white { background-color: var(--white); }
.section--navy {
  background-color: var(--ink);
  color: var(--white);
}
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 {
  color: var(--white);
}
.section--navy p {
  color: rgba(255, 255, 255, 0.82);
}

/* Section Intros */
.section-header {
  margin-bottom: clamp(28px, 4.5vw, 48px);
  max-width: 760px;
  text-align: left;
}

.section-header.text-center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vital-dark);
  margin-bottom: 12px;
}

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: var(--vital);
}

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

.section-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--ink-muted);
}

/* ==========================================================================
   IMAGE RULES: ALL SQUARE, NO ROUND SHAPES
   ========================================================================== */
.img-box {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #E6EEF0;
  display: block;
  position: relative;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  transition: transform var(--duration-med) var(--ease-smooth);
}

.card:hover .img-box img,
.service-card:hover .service-card__img img {
  transform: scale(1.04);
}

/* Avatars & Team: Rounded Squares (8-12px), NOT Circles */
.avatar-square {
  width: 60px;
  height: 60px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #E6EEF0;
  border: 2px solid var(--vital);
  flex-shrink: 0;
  display: block;
}

.avatar-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Navigation Bar (Sticky)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mist);
  z-index: 1000;
  transition: all var(--duration-med) var(--ease-smooth);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(15, 27, 45, 0.06);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--vital), #0D9488);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.brand-link span.brand-accent {
  color: var(--vital-dark);
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-muted);
  position: relative;
  padding-block: 6px;
  white-space: nowrap;
}

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

.nav-link.active {
  color: var(--vital-dark);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--vital);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Mobile Hamburger Button */
.hamburger-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: transparent;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  z-index: 1010;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform var(--duration-fast) var(--ease-smooth), opacity var(--duration-fast) var(--ease-smooth);
}

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

/* Mobile Drawer (Left-to-Right) */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(340px, 86vw);
  height: 100vh;
  height: 100dvh;
  background-color: var(--white);
  border-right: 1px solid var(--mist);
  box-shadow: 10px 0 35px rgba(15, 27, 45, 0.15);
  z-index: 1050;
  transform: translateX(-100%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--mist);
}

.mobile-drawer-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mist);
  background: var(--sand);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink);
  font-size: 1.2rem;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background-color: var(--sand);
  color: var(--vital-dark);
  border-color: var(--mist);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--mist);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 27, 45, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease-smooth);
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 46px;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.btn-primary {
  background-color: var(--vital);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.28);
}

.btn-primary:hover {
  background-color: var(--vital-dark);
  transform: translateY(-1px);
}

.btn-coral {
  background-color: var(--miora);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(255, 122, 89, 0.3);
}

.btn-coral:hover {
  background-color: var(--miora-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--mist-dark);
}

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

.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.88rem;
  min-height: 44px;
  white-space: nowrap;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   SERVICES GRID & STRICT SERVICE CARD ARCHITECTURE
/* ==========================================================================
   SERVICES GRID & STRICT SERVICE CARD ARCHITECTURE
   Fixed equal heights, no clipping, no middle card popouts, auto-fill
   ========================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

.services__grid.has-open-card {
  align-items: start;
}

@media (max-width: 320px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background-color: var(--sand-card);
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2.5vw, 24px);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  transform: none;
  margin: 0;
  box-sizing: border-box;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--duration-fast) var(--ease-smooth), box-shadow var(--duration-fast) var(--ease-smooth), border-color var(--duration-fast) var(--ease-smooth);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(20, 184, 166, 0.35);
}

.service-card.is-hidden {
  display: none !important;
}

.service-card__img {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #E6EEF0;
  display: block;
  flex-shrink: 0;
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card__title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 14px;
  margin-bottom: 8px;
  text-align: left;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card__desc {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.5em; /* Ensures equal description height across all cards */
}

/* Accordion inside card: fixed header height 48px, smooth inside-card expansion */
.service-card__accordion {
  margin-bottom: 16px;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  background: var(--sand);
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-smooth);
}

.service-card__accordion.active {
  border-color: var(--vital);
  background: var(--white);
}

.service-card__accordion-header {
  width: 100%;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: transparent;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.service-card__accordion-header:hover {
  color: var(--vital-dark);
}

.service-card__accordion-icon {
  font-size: 0.95rem;
  color: var(--vital-dark);
  transition: transform 240ms var(--ease-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.service-card__accordion.active .service-card__accordion-icon {
  transform: rotate(180deg);
}

.service-card__accordion-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms var(--ease-smooth);
  background-color: var(--white);
}

.service-card__accordion-body {
  padding: 12px 14px 14px 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-muted);
  border-top: 1px solid var(--mist);
}

/* Footer: pinned to bottom, no clipping, nowrap button */
.service-card__footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--mist);
  width: 100%;
  box-sizing: border-box;
}

.service-card__meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--sand);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.service-card__btn {
  white-space: nowrap !important;
  min-height: 42px !important;
  padding: 9px 16px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm) !important;
  flex-shrink: 0;
}

/* General Equal Height Cards for Home / About */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 3vw, 28px);
  align-items: stretch;
  width: 100%;
}

.card {
  background-color: var(--sand-card);
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2.5vw, 24px);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--duration-fast) var(--ease-smooth), box-shadow var(--duration-fast) var(--ease-smooth);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(20, 184, 166, 0.35);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 14px;
  margin-bottom: 8px;
  text-align: left;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.5em;
}

.card-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--mist);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

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

@media (min-width: 768px) {
  .grid-cards-minimal {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* ==========================================================================
   Pricing Cards
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 3vw, 28px);
  align-items: stretch;
  width: 100%;
}

.plan-card {
  background-color: var(--sand-card);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  box-shadow: var(--shadow-subtle);
}

.plan-card-img {
  height: 160px;
  aspect-ratio: unset;
  margin-bottom: 14px;
}

.plan-card.featured {
  border: 2px solid var(--vital);
  box-shadow: 0 10px 30px -6px rgba(20, 184, 166, 0.22);
}

.plan-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--vital);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
  min-height: 2.8em;
  margin-top: 8px;
  margin-bottom: 14px;
}

.plan-price-box {
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-currency {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

.plan-amount {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.plan-period {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.plan-features-list {
  margin-block: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink);
}

.plan-feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--vital);
  flex-shrink: 0;
  margin-top: 3px;
}

.plan-card .btn {
  margin-top: auto;
}

.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: clamp(28px, 4.5vw, 44px);
}

.toggle-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
}

.toggle-label.active {
  color: var(--ink);
}

.billing-switch {
  position: relative;
  width: 54px;
  height: 30px;
  background-color: var(--mist);
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid var(--mist-dark);
}

.billing-switch.yearly {
  background-color: var(--vital);
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background-color: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.18);
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.billing-switch.yearly .switch-thumb {
  transform: translateX(24px);
}

.save-badge {
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--miora-soft);
  color: var(--miora);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Testimonial Slider
   ========================================================================== */
.testimonial-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  background-color: var(--sand-card);
  border: 1px solid var(--mist);
  padding: clamp(24px, 5vw, 44px);
  box-shadow: var(--shadow-card);
  width: 100%;
  box-sizing: border-box;
}

.testimonial-viewport {
  overflow: hidden;
  width: 100%;
}

.testimonial-track {
  display: flex;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  width: 100%;
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: var(--gold);
}

.testimonial-quote {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--ink);
  line-height: 1.55;
  font-style: italic;
  text-align: left;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--mist);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background-color: var(--mist);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.testimonial-dot.active {
  width: 26px;
  background-color: var(--vital);
}

.testimonial-arrows {
  display: flex;
  gap: 10px;
}

.carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--mist);
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.carousel-arrow:hover {
  background-color: var(--vital);
  color: var(--white);
}

/* ==========================================================================
   Filter Bar & Responsive Controls
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  background-color: var(--sand-card);
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  padding: 16px;
  width: 100%;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.filter-tab {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--mist);
  background-color: var(--sand);
  color: var(--ink-muted);
  cursor: pointer;
  white-space: nowrap;
}

.filter-tab.active {
  background-color: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.filter-search-box {
  position: relative;
  width: 280px;
  max-width: 100%;
}

.filter-search-input {
  width: 100%;
  height: 44px;
  padding: 8px 16px 8px 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--mist);
  background-color: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
}

.filter-search-input:focus {
  border-color: var(--vital);
}

.filter-search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-muted);
  pointer-events: none;
}

@media (max-width: 768px) {
  .filter-search-box {
    width: 100%;
  }
}

.no-results {
  display: none;
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px dashed var(--mist-dark);
}

.no-results.visible {
  display: block;
}

/* Accordions */
.accordion-item {
  background-color: var(--sand-card);
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
  transition: transform 250ms var(--ease-smooth);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  background: var(--vital-soft);
  color: var(--vital-dark);
}

.accordion-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-body {
  padding: 0 20px 20px 20px;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.65;
  border-top: 1px solid var(--mist);
  padding-top: 16px;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background-color: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  outline: none;
}

textarea.form-control {
  height: auto;
  min-height: 110px;
  padding-block: 12px;
  resize: vertical;
}

.form-control:focus {
  border-color: var(--vital);
}

.form-error {
  font-size: 0.82rem;
  color: #EF4444;
  display: none;
  margin-top: 4px;
}

.form-group.has-error .form-error {
  display: block;
}

.form-group.has-error .form-control {
  border-color: #EF4444;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  cursor: pointer;
}

.form-check input {
  margin-top: 4px;
  accent-color: var(--vital);
}

/* Toasts & Modals */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(92%, 460px);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: var(--ink);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(15, 27, 45, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-left: 4px solid var(--vital);
}

.toast.toast-error {
  border-left-color: #EF4444;
}

.toast-msg {
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 500;
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 27, 45, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms var(--ease-smooth);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 20px 50px rgba(15, 27, 45, 0.25);
  position: relative;
  border: 1px solid var(--mist);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--sand);
  border: 1px solid var(--mist);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

/* Trust Strip */
.trust-strip {
  background-color: var(--white);
  border-block: 1px solid var(--mist);
  padding-block: 24px;
}

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--vital-soft);
  color: var(--vital-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.trust-item p {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* Footer */
.site-footer {
  background-color: var(--ink);
  color: var(--white);
  padding-top: clamp(48px, 8vw, 76px);
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: clamp(36px, 6vw, 60px);
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-link:hover {
  color: var(--vital);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--vital);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.footer-input {
  flex-grow: 1;
  height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-disclaimer {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background-color: var(--ink);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: var(--vital);
}

/* Responsive */
@media (min-width: 480px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: block;
  }
  .hamburger-btn {
    display: none;
  }
  .mobile-drawer {
    display: none;
  }
}

/* ==========================================================================
   Clean Utility Classes (Eliminating all inline styles across pages)
   ========================================================================== */
.text-vital { color: var(--vital) !important; }
.text-miora { color: var(--miora) !important; }
.text-white { color: var(--white) !important; }
.text-ink { color: var(--ink) !important; }
.text-ink-muted { color: var(--ink-muted) !important; }
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }

.header-hero-h1 { margin-inline: auto; max-width: 800px; }
.header-hero-p { margin-inline: auto; max-width: 660px; color: rgba(255, 255, 255, 0.85); font-size: 1.15rem; }
.section-intro-h2 { margin-inline: auto; max-width: 640px; }
.section-intro-p { margin-inline: auto; max-width: 540px; margin-bottom: 28px; }
.brand-footer-link { color: var(--white); margin-bottom: 12px; display: inline-flex; }

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 2px !important; }
.mb-4 { margin-bottom: 4px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-14 { margin-bottom: 14px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-28 { margin-bottom: 28px !important; }
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: 4px !important; }
.mt-6 { margin-top: 6px !important; }
.mt-8 { margin-top: 8px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-14 { margin-top: 14px !important; }
.mt-36 { margin-top: 36px !important; }

.fs-95 { font-size: 0.95rem !important; }
.fs-92 { font-size: 0.92rem !important; }
.fs-88 { font-size: 0.88rem !important; }
.fs-86 { font-size: 0.86rem !important; }
.fs-85 { font-size: 0.85rem !important; }
.fs-84 { font-size: 0.84rem !important; }
.fs-78 { font-size: 0.78rem !important; }
.fs-75 { font-size: 0.75rem !important; }
.fw-600 { font-weight: 600 !important; }
.font-year { font-size: 1.8rem; font-weight: 800; color: var(--miora); font-family: var(--font-display); }
.font-year-vital { font-size: 1.8rem; font-weight: 800; color: var(--vital); font-family: var(--font-display); }
.font-year-miora { font-size: 1.8rem; font-weight: 800; color: var(--miora); font-family: var(--font-display); }

.about-mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.about-mission-box { background: var(--sand); padding: 18px; border-radius: var(--radius-sm); border-left: 3px solid var(--vital); }
.about-vision-box { background: var(--sand); padding: 18px; border-radius: var(--radius-sm); border-left: 3px solid var(--miora); }
.physician-role { font-size: 0.82rem; font-weight: 700; color: var(--vital-dark); margin-bottom: 6px; }


.card-desc--auto { min-height: unset; margin-bottom: 12px; }
.home-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 4vw, 48px); align-items: center; }
.home-img-max { max-height: 400px; }
.home-btn-group { display: flex; gap: 14px; flex-wrap: wrap; }
.home-cta-wrap { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.home-lead-h2 { margin-inline: auto; max-width: 720px; }
.home-lead-p { margin-inline: auto; max-width: 600px; margin-bottom: 28px; }

.contact-layout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-img-box { max-height: 280px; margin-bottom: 20px; }
.contact-dir-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.contact-dir-card { padding: 12px; }
.contact-dir-btn { font-size: 0.75rem; min-height: 30px; padding: 4px 8px; }
.contact-hours-list { font-size: 0.86rem; color: var(--ink-muted); display: flex; flex-direction: column; gap: 6px; }
.contact-hours-item { display: flex; justify-content: space-between; }
.contact-form-card { padding: clamp(20px, 3.5vw, 32px); }

.plans-table tr { border-bottom: 1px solid var(--mist); }
.plans-table td { padding: 14px 20px; }
.plans-table-feature { font-weight: 600; color: var(--ink); }
.plans-table-highlight { color: var(--ink); font-weight: 600; }

.table-responsive-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  background: var(--white);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  text-align: left;
}

.comparison-table th {
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--ink);
  background-color: var(--sand);
  border-bottom: 2px solid var(--mist);
}

.comparison-table th.highlight {
  color: var(--vital-dark);
  font-weight: 700;
}

.comparison-table tbody {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.comparison-table td {
  padding: 14px 20px;
}

.comparison-table tr {
  border-bottom: 1px solid var(--mist);
}

.comparison-table tr:last-child {
  border-bottom: none;
}


.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff; /* Set your header's background color so content doesn't show behind it */
}

/* Add top padding/margin to the page content so the header doesn't overlap the hero section */
body {
  padding-top: 75px; /* Adjust this value to match your actual header height */
}
@media (max-width: 768px) {
  .header-actions {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .grid-cards {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px; /* Cards ke beech gap ke liye */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px; /* Scrollbar ke liye thodi padding */
  }

  .grid-cards .card {
    flex: 0 0 80%; /* Har card screen ka 80% width lega taaki side wala card thoda dikhe */
    scroll-snap-align: start;
  }
}@media (max-width: 768px) {
  .home-btn-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px; /* Dono buttons ke beech gap ke liye */
  }

  .home-btn-group .btn {
    width: 100%;
    text-align: center;
    justify-content: center; /* Center alignment for flex inner content */
  }
}
@media (max-width: 768px) {
  .contact-dir-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 16px;
    padding-bottom: 12px; /* Scrollbar space ke liye */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .contact-dir-grid .card.contact-dir-card {
    flex: 0 0 85% !important; /* Ek bar me lagbhag ek card visible rahega */
    min-width: 260px;
    scroll-snap-align: start;
  }

  /* Optional: Smooth horizontal scrollbar hide karne ya styling ke liye */
  .contact-dir-grid::-webkit-scrollbar {
    height: 6px;
  }
  .contact-dir-grid::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
  }
}