/* ==========================================================================
   LIFE CARE — Homeopathic Clinic
   Design signature: "the dilution drop" — a single droplet motif (formed from
   two arcs) used as bullets, dividers and the loading mark, echoing how a
   homeopathic remedy is built one drop at a time. Everything else stays quiet
   so that motif reads as intentional rather than decorative.
   ========================================================================== */

:root {
  /* ---- Brand palette ---- */
  --clr-primary: #0F766E;
  --clr-primary-dark: #0B5C55;
  --clr-secondary: #14B8A6;
  --clr-accent: #22C55E;
  --clr-highlight: #F59E0B;
  --clr-bg: #F8FAFC;
  --clr-bg-alt: #F1F5F4;
  --clr-surface: #FFFFFF;
  --clr-text: #1F2937;
  --clr-text-soft: #5B6B72;
  --clr-border: #E3EBE9;

  --grad-brand: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
  --grad-warm: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-highlight) 100%);

  /* ---- Type ---- */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* ---- Elevation ---- */
  --shadow-sm: 0 2px 8px rgba(15, 118, 110, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 118, 110, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 118, 110, 0.16);
  --shadow-glass: 0 8px 32px rgba(15, 118, 110, 0.15);

  /* ---- Shape / rhythm ---- */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --container: 1240px;
  --header-h: 84px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--clr-text);
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.3rem; }

p { color: var(--clr-text-soft); }

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

section { position: relative; padding: 96px 0; }

.section-tight { padding: 64px 0; }

:focus-visible {
  outline: 3px solid var(--clr-highlight);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- eyebrow / section heading ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: rgba(15, 118, 110, 0.08);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ---- the dilution drop (signature mark) ---- */
.drop {
  display: inline-block;
  width: 9px;
  height: 12px;
  background: var(--clr-secondary);
  border-radius: 0 50% 50% 50%;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.eyebrow .drop { background: var(--clr-primary); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.btn-outline {
  background: var(--clr-surface);
  color: var(--clr-primary);
  border: 2px solid var(--clr-border);
}
.btn-outline:hover { border-color: var(--clr-primary); transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.btn-ghost-light {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.28); transform: translateY(-3px); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ==========================================================================
   Scroll progress + back to top
   ========================================================================== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-warm);
  z-index: 2000;
  transition: width 0.1s linear;
}

#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 900;
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { transform: translateY(-4px) scale(1.05); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.75);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(15, 118, 110, 0.08);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(248, 250, 252, 0.92); }

.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--clr-primary-dark); line-height: 1; }
.brand-text span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.05em; color: var(--clr-text-soft); margin-top: 3px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  color: var(--clr-text);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { background: rgba(15, 118, 110, 0.08); color: var(--clr-primary); }

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

/* Mobile 3-dot trigger */
.dots-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}
.dots-toggle span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--clr-primary);
  transition: transform var(--transition), background var(--transition);
}
.dots-toggle.active span:nth-child(1) { transform: translateX(4px) scale(1.3); }
.dots-toggle.active span:nth-child(3) { transform: translateX(-4px) scale(1.3); }
.dots-toggle.active span:nth-child(2) { background: var(--clr-highlight); }

/* Fullscreen mobile panel */
.mobile-panel {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, #0F766E 0%, #0B5C55 100%);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  clip-path: circle(2% at 92% 5%);
  transition: clip-path 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}
.mobile-panel.open { clip-path: circle(150% at 92% 5%); pointer-events: auto; }

.mobile-panel-close {
  position: absolute;
  top: 26px; right: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.mobile-panel nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-panel nav a {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  padding: 12px 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, color .3s ease;
}
.mobile-panel.open nav a { opacity: 1; transform: translateY(0); }
.mobile-panel.open nav a:nth-child(1) { transition-delay: 0.12s; }
.mobile-panel.open nav a:nth-child(2) { transition-delay: 0.18s; }
.mobile-panel.open nav a:nth-child(3) { transition-delay: 0.24s; }
.mobile-panel.open nav a:nth-child(4) { transition-delay: 0.30s; }
.mobile-panel.open nav a:nth-child(5) { transition-delay: 0.36s; }
.mobile-panel.open nav a:nth-child(6) { transition-delay: 0.42s; }
.mobile-panel nav a:hover { color: var(--clr-highlight); }
.mobile-panel .mp-contact { margin-top: 40px; opacity: 0; transition: opacity 0.6s ease 0.5s; }
.mobile-panel.open .mp-contact { opacity: 1; }
.mobile-panel .mp-contact a { color: rgba(255,255,255,0.85); font-size: 0.95rem; display: block; margin-bottom: 8px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.35;
  z-index: 0;
  animation: blobFloat 14s ease-in-out infinite;
}
.blob-a { width: 420px; height: 420px; background: var(--clr-secondary); top: -140px; right: -120px; }
.blob-b { width: 320px; height: 320px; background: var(--clr-accent); bottom: -100px; left: -100px; animation-delay: -6s; }
.blob-c { width: 200px; height: 200px; background: var(--clr-highlight); top: 40%; left: 46%; opacity: 0.18; animation-delay: -3s; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(24px, -28px) scale(1.08); }
  66% { transform: translate(-20px, 18px) scale(0.95); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy > p { font-size: 1.12rem; max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust { display: flex; align-items: center; gap: 14px; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 3px solid var(--clr-bg);
  margin-left: -12px;
  background: var(--grad-brand);
  display: grid; place-items: center;
  color: #fff; font-size: 0.7rem; font-weight: 700;
}
.hero-trust .avatars span:first-child { margin-left: 0; }
.hero-trust small { color: var(--clr-text-soft); font-weight: 500; }

.hero-visual { position: relative; }
.hero-illustration {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/4.4;
}
.hero-illustration svg { width: 100%; height: 100%; }
.treatment-media img,
.hero-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.floating-card {
  position: absolute;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  animation: floatCard 5s ease-in-out infinite;
}
.floating-card .fc-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad-brand);
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.floating-card.fc-1 { top: 6%; left: -8%; animation-delay: 0s; }
.floating-card.fc-2 { top: 32%; right: -10%; animation-delay: -1.5s; }
.floating-card.fc-3 { bottom: 18%; left: -12%; animation-delay: -3s; }
.floating-card.fc-4 { bottom: -4%; right: -4%; animation-delay: -4.2s; }

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

/* Wave divider */
.wave-divider { display: block; width: 100%; line-height: 0; margin-top: -2px; }
.wave-divider svg { width: 100%; height: auto; display: block; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
  background: var(--grad-brand);
  padding: 64px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
}
.stat-label { color: rgba(255,255,255,0.85); font-weight: 500; margin-top: 6px; font-size: 0.95rem; }

/* ==========================================================================
   About preview
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-visual { position: relative; }
.about-visual .illus-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-visual .stat-badge {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 18px 22px;
  text-align: center;
}
.about-visual .stat-badge b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--clr-primary); }
.about-visual .stat-badge span { font-size: 0.78rem; color: var(--clr-text-soft); }

.about-list { display: grid; gap: 18px; margin-top: 30px; }
.about-list li { display: flex; align-items: flex-start; gap: 14px; }
.about-list .check {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.14);
  color: var(--clr-accent);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-list strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.about-list p { margin: 0; font-size: 0.92rem; }

/* ==========================================================================
   Cards grid — generic
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Why choose us */
.feature-card {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  border: 1px solid var(--clr-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--grad-brand);
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 18px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; margin: 0; }

/* Treatments */
.treatment-card {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.treatment-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.treatment-media { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--clr-bg-alt); }
.treatment-media svg { width: 100%; height: 100%; transition: transform 0.6s ease; }
.treatment-card:hover .treatment-media svg { transform: scale(1.08); }
.treatment-media .t-icon {
  position: absolute;
  bottom: 12px; left: 12px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  color: var(--clr-primary);
  box-shadow: var(--shadow-sm);
}
.treatment-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.treatment-body .hindi { font-size: 0.85rem; color: var(--clr-secondary); font-weight: 600; }
.treatment-body p { font-size: 0.9rem; margin: 0; flex: 1; }
.treatment-body .btn { margin-top: 6px; align-self: flex-start; }

.treatments-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.chip {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--clr-border);
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--clr-surface);
  transition: all var(--transition);
}
.chip.active, .chip:hover { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-slider { position: relative; max-width: 760px; margin-inline: auto; }
.testimonial-track { overflow: hidden; }
.testimonial-slide {
  display: none;
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: 44px 46px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.testimonial-slide.active { display: block; animation: fadeSlide 0.5s ease; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: translateY(0);} }
.testimonial-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin-inline: auto 14px;
  display: grid; place-items: center;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}
.stars { color: var(--clr-highlight); font-size: 1rem; margin: 12px 0; letter-spacing: 2px; }
.testimonial-slide p.quote { font-size: 1.08rem; color: var(--clr-text); font-style: italic; margin-bottom: 18px; }
.testimonial-name { font-family: var(--font-display); font-weight: 600; }
.testimonial-loc { font-size: 0.85rem; color: var(--clr-text-soft); }

.slider-nav { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.slider-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--clr-border); transition: all var(--transition); }
.slider-dot.active { background: var(--clr-primary); width: 26px; border-radius: var(--radius-pill); }
.slider-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--clr-surface);
  box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  color: var(--clr-primary);
}
.slider-arrow:hover { background: var(--clr-primary); color: #fff; }
.slider-arrow.prev { left: -60px; }
.slider-arrow.next { right: -60px; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.faq-question .fq-plus {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--clr-bg-alt);
  color: var(--clr-primary);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
}
.faq-item.open .faq-question .fq-plus { transform: rotate(135deg); background: var(--clr-primary); color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p { padding: 0 24px 22px; font-size: 0.95rem; margin: 0; }
.faq-item.open .faq-answer { max-height: 400px; }

/* ==========================================================================
   Appointment page
   ========================================================================== */
.appointment-wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.appointment-side {
  background: var(--grad-brand);
  color: #fff;
  padding: 52px 44px;
  position: relative;
  overflow: hidden;
}
.appointment-side h2 { color: #fff; margin-bottom: 16px; }
.appointment-side p { color: rgba(255,255,255,0.85); }
.appointment-side ul { margin-top: 30px; display: grid; gap: 16px; }
.appointment-side li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: rgba(255,255,255,0.92); }
.appointment-form { padding: 52px 44px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; font-family: var(--font-display); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  background: var(--clr-bg-alt);
  transition: border-color var(--transition), background var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--clr-primary);
  background: #fff;
  outline: none;
}
.field textarea { resize: vertical; min-height: 100px; }
.field .error-msg { display: none; color: #DC2626; font-size: 0.8rem; margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #DC2626; }
.field.invalid .error-msg { display: block; }

.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form-success.show { display: block; animation: fadeSlide 0.5s ease; }
.form-success .check-circle {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: rgba(34,197,94,0.12);
  color: var(--clr-accent);
  display: grid; place-items: center;
  margin: 0 auto 18px;
}
.form-success h3 { margin-bottom: 8px; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; }
.contact-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--clr-border);
}
.contact-row { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--clr-border); }
.contact-row:last-of-type { border-bottom: none; }
.contact-row .c-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(15,118,110,0.08);
  color: var(--clr-primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-row h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-row p, .contact-row a { font-size: 0.92rem; }
.contact-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }

.map-mini { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); height: 340px; }
.map-mini iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Treatment details page
   ========================================================================== */
.td-hero {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 60px;
  background: var(--clr-bg-alt);
}
.td-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.td-hero .hindi-tag { color: var(--clr-secondary); font-weight: 600; font-family: var(--font-display); margin-bottom: 10px; display:block; }
.breadcrumb { font-size: 0.85rem; color: var(--clr-text-soft); margin-bottom: 20px; }
.breadcrumb a { color: var(--clr-primary); font-weight: 500; }

.td-body { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.td-section { margin-bottom: 44px; }
.td-section h2 { font-size: 1.5rem; margin-bottom: 16px; }
.td-list { display: grid; gap: 12px; }
.td-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.96rem; color: var(--clr-text-soft); }
.td-list .drop { margin-top: 8px; }

.td-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.td-sidebar h3 { margin-bottom: 14px; }
.td-sidebar-list { display: grid; gap: 6px; margin-bottom: 20px; }
.td-sidebar-list a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-soft);
}
.td-sidebar-list a:hover, .td-sidebar-list a.active { background: rgba(15,118,110,0.08); color: var(--clr-primary); }

.process-steps { display: grid; gap: 20px; }
.process-step { display: flex; gap: 18px; }
.process-step .ps-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
}
.process-step h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 4px; }
.process-step p { font-size: 0.9rem; margin: 0; }

.td-cta {
  background: var(--grad-brand);
  border-radius: var(--radius-lg);
  padding: 46px;
  text-align: center;
  color: #fff;
  margin-top: 20px;
}
.td-cta h2 { color: #fff; margin-bottom: 12px; }
.td-cta p { color: rgba(255,255,255,0.88); margin-bottom: 26px; }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 70px;
  background: linear-gradient(180deg, var(--clr-bg-alt) 0%, var(--clr-bg) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { max-width: 620px; margin-inline: auto; font-size: 1.05rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #0B2523; color: rgba(255,255,255,0.75); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr 1.1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 0.92rem; color: rgba(255,255,255,0.6); max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  transition: background var(--transition), transform var(--transition);
}
.footer-social a:hover { background: var(--clr-secondary); transform: translateY(-3px); }

.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-col a:hover { color: var(--clr-secondary); }
.footer-col address { font-style: normal; font-size: 0.92rem; }

.newsletter-form { display: flex; gap: 8px; margin-top: 16px; }
.newsletter-form input {
  flex: 1;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 0.88rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--grad-warm);
  color: #0B2523;
  font-weight: 700;
  font-size: 0.85rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--clr-secondary); }

/* ==========================================================================
   Reveal animation utility
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Loading screen */
#page-loader {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--clr-bg);
  display: grid; place-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hide { opacity: 0; visibility: hidden; }
.loader-drop { width: 26px; height: 34px; background: var(--grad-brand); border-radius: 0 50% 50% 50%; transform: rotate(45deg); animation: loaderPulse 1s ease-in-out infinite; }
@keyframes loaderPulse { 0%,100% { transform: rotate(45deg) scale(1); opacity: 1; } 50% { transform: rotate(45deg) scale(0.7); opacity: 0.6; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .td-body { grid-template-columns: 1fr; }
  .td-sidebar { position: static; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta .btn-outline { display: none; }
  .dots-toggle { display: inline-flex; }
  .hero-grid, .about-grid, .contact-grid, .td-hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .appointment-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .slider-arrow { display: none; }
  .floating-card { font-size: 0.75rem; padding: 10px 14px; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-actions { grid-template-columns: 1fr; }
  .floating-card.fc-1, .floating-card.fc-3 { left: 0; }
  .floating-card.fc-2, .floating-card.fc-4 { right: 0; }
  .appointment-side, .appointment-form { padding: 36px 26px; }

  /* Treatments grid: keep 3 columns even on phones, in a compact card layout */
  #treatments-grid.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  #treatments-grid .treatment-body { padding: 10px 8px 12px; gap: 6px; }
  #treatments-grid .treatment-body h3 { font-size: 0.78rem; line-height: 1.15; }
  #treatments-grid .treatment-body .hindi { font-size: 0.62rem; }
  #treatments-grid .treatment-body p { font-size: 0.68rem; line-height: 1.3; }
  #treatments-grid .treatment-media .t-icon { width: 28px; height: 28px; bottom: 6px; left: 6px; border-radius: 8px; }
  #treatments-grid .treatment-media .t-icon svg { width: 14px; height: 14px; }
  #treatments-grid .treatment-body .btn { font-size: 0.62rem; padding: 6px 10px; }
}
