/* ============================================
   SugarCARE — Homepage styles (index.html)
   Loaded after tokens.css + base.css.
   ============================================ */

/* ─── SECTION HEAD (used in 5+ sections) ───── */
.sec-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--s-xl);
}
.sec-head .pill { margin-bottom: var(--s-md); }
.sec-head h2 {
  font-size: var(--t-2xl);
  letter-spacing: -.025em;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: var(--s-md);
}
.sec-head p {
  color: var(--c-muted);
  font-size: var(--t-md);
  line-height: 1.65;
  max-width: 60ch;
  margin: 0 auto;
}
body.show-en .sec-head h2 { font-family: var(--font-en); }

/* ============================================
   1. HERO
   ============================================ */
.hero {
  position: relative;
  padding: var(--s-xl) 0 var(--s-2xl);
  background: var(--c-white);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-xl);
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-copy .pill { margin-bottom: var(--s-md); }
.hero-h1 {
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.06;
  color: var(--c-purple-deep);
  margin-bottom: var(--s-md);
}
.hero-h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--c-purple) 0%, var(--c-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.show-en .hero-h1 { font-family: var(--font-en); }
.hero-sub {
  font-size: var(--t-md);
  line-height: 1.65;
  color: var(--c-muted);
  margin-bottom: var(--s-lg);
  max-width: 52ch;
}
.hero-ctas {
  display: flex;
  gap: var(--s-md);
  flex-wrap: wrap;
  margin-bottom: var(--s-xl);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-md);
  padding-top: var(--s-lg);
}
.stat-card {
  background: var(--c-purple-tint-soft);
  border-radius: var(--r-lg);
  border-top: 3px solid var(--c-orange);
  padding: var(--s-md) var(--s-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-family: var(--font-en);
  font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--c-purple);
  line-height: 1;
}
.stat-label {
  font-size: var(--t-sm);
  color: var(--c-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 0.7rem;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-3);
  background: var(--c-purple-tint-soft);
}
.hero-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(74,47,160,.22) 0%, transparent 38%, transparent 62%, rgba(232,106,26,.22) 100%),
    linear-gradient(180deg, rgba(26,14,80,0) 65%, rgba(26,14,80,.22) 100%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero { padding: var(--s-lg) 0 var(--s-xl); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-lg); }
  .hero-visual { aspect-ratio: 16 / 9; max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 600px) {
  .hero { padding: var(--s-md) 0 var(--s-lg); }
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-sm);
    margin-bottom: var(--s-md);
  }
  .hero-ctas .btn {
    width: 90%;
    justify-content: center;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-sm);
  }
  .hero-stats .stat-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
  }
}

/* ============================================
   2. KERALA REALITY
   ============================================ */
.reality { padding: var(--s-2xl) 0; background: var(--c-bg); }
.reality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-md);
}
.reality-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  box-shadow: var(--sh-1);
  border: 1px solid var(--c-border);
  transition: transform var(--t-base-d), box-shadow var(--t-base-d);
}
.reality-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
}
.reality-stat {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 1.8rem + 2vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  color: var(--c-purple);
  margin-bottom: var(--s-md);
}
.reality-card h3 {
  font-size: var(--t-md);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--s-sm);
  line-height: 1.35;
}
.reality-card p {
  font-size: var(--t-sm);
  color: var(--c-muted);
  line-height: 1.6;
}
@media (max-width: 800px) {
  .reality-grid { grid-template-columns: 1fr; }
}

/* ============================================
   3. PROGRAMMES
   ============================================ */
.programmes { padding: var(--s-2xl) 0; }
.prog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-md);
}
.prog-card {
  position: relative;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-lg) var(--s-md);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base-d), box-shadow var(--t-base-d), border-color var(--t-base-d);
}
.prog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-2);
  border-color: var(--c-purple-tint);
}
.prog-card.featured {
  border: 2px solid var(--c-purple);
  box-shadow: var(--sh-2);
}
.prog-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--c-orange);
  color: var(--c-white);
  font-family: var(--font-en);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.prog-name {
  font-size: var(--t-md);
  font-weight: 800;
  color: var(--c-purple-deep);
  margin-bottom: 4px;
  line-height: 1.2;
}
body.show-en .prog-name { font-family: var(--font-en); }
.prog-for {
  font-size: var(--t-xs);
  color: var(--c-muted);
  margin-bottom: var(--s-md);
  min-height: 2.4em;
  line-height: 1.4;
}
.prog-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.prog-price-num {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--c-purple);
  line-height: 1;
}
.prog-price-unit {
  font-family: var(--font-en);
  font-size: .82rem;
  color: var(--c-muted);
  font-weight: 500;
}
.prog-actual {
  font-family: var(--font-en);
  font-size: .8rem;
  color: var(--c-muted);
  text-decoration: line-through;
  margin-bottom: var(--s-md);
}
.prog-actual strong { font-weight: 700; }
.prog-duration {
  font-size: .78rem;
  color: var(--c-purple);
  font-weight: 600;
  background: var(--c-purple-tint-soft);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-md);
  text-align: center;
}

/* ── LAUNCH PRICING (valid through May 31, 2026) ── */
.launch-badge {
  display: inline-block;
  background: var(--c-purple-tint-soft);
  color: var(--c-orange);
  font-family: var(--font-en);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 10px;
}
.price-block { margin-bottom: var(--s-md); }
.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin-bottom: 6px;
}
.price-live {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--c-purple);
  line-height: 1;
}
.price-unit {
  font-family: var(--font-en);
  font-size: .82rem;
  font-weight: 500;
  color: var(--c-muted);
}
.price-strike {
  font-family: var(--font-en);
  font-size: .82rem;
  font-weight: 500;
  color: var(--c-muted);
  text-decoration: line-through;
  margin-left: 6px;
  opacity: .7;
}
.duration-line {
  font-family: var(--font-en);
  font-size: .8rem;
  font-weight: 500;
  color: var(--c-text);
}
.total-strike {
  text-decoration: line-through;
  color: var(--c-muted);
  margin-left: 4px;
  opacity: .7;
}

.prog-includes {
  list-style: none;
  margin: 0 0 var(--s-md);
  padding: 0;
  flex: 1;
}
.prog-includes li {
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--c-text);
  padding: 6px 0 6px 22px;
  position: relative;
}
.prog-includes li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 14px; height: 14px;
  background: var(--c-mint-tint);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F8A5F' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 9px;
  background-position: center;
  background-repeat: no-repeat;
}
.prog-cancel {
  font-size: .72rem;
  color: var(--c-muted);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--s-md);
  padding: 6px;
  background: var(--c-bg);
  border-radius: var(--r-sm);
}
.prog-card .btn { width: 100%; }

@media (max-width: 1100px) {
  .prog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .prog-grid { grid-template-columns: 1fr; }
}

/* ============================================
   4. DOCTORS
   ============================================ */
.doctors { padding: var(--s-2xl) 0; background: var(--c-bg); }
.doc-feature {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--s-xl);
  background: var(--c-white);
  border-radius: var(--r-xl);
  padding: var(--s-xl);
  box-shadow: var(--sh-2);
  align-items: center;
  margin-bottom: var(--s-lg);
}
.doc-feature-photo {
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  background: var(--c-purple-tint-soft);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.doc-feature-photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.doc-feature-photo .doc-initials {
  font-family: var(--font-en);
  font-size: 5rem;
  font-weight: 800;
  color: var(--c-purple);
  letter-spacing: -.04em;
}
.doc-feature-info .pill { margin-bottom: var(--s-md); }
.doc-feature-name {
  font-family: var(--font-en);
  font-size: var(--t-2xl);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--c-purple-deep);
  margin-bottom: 4px;
}
.doc-feature-creds {
  font-family: var(--font-en);
  font-size: .9rem;
  color: var(--c-orange);
  font-weight: 700;
  margin-bottom: var(--s-md);
}
.doc-feature-bio {
  font-size: var(--t-base);
  color: var(--c-muted);
  line-height: 1.65;
  margin-bottom: var(--s-md);
}

.doc-team-row {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--s-md) var(--s-lg);
  box-shadow: var(--sh-1);
  flex-wrap: wrap;
}
.doc-avatars {
  display: flex;
}
.doc-avatars .doc-avatar {
  margin-left: -10px;
  border: 3px solid var(--c-white);
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c-purple-tint-soft);
}
.doc-avatars .doc-avatar:first-child { margin-left: 0; }
.doc-avatars .doc-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.doc-team-text {
  flex: 1;
  min-width: 200px;
}
.doc-team-text strong {
  font-family: var(--font-en);
  display: block;
  font-size: var(--t-md);
  color: var(--c-text);
  font-weight: 700;
  margin-bottom: 2px;
}
.doc-team-text span:not(.ml):not(.en) {
  font-size: var(--t-sm);
  color: var(--c-muted);
}
.doc-team-row .btn { flex-shrink: 0; }

@media (max-width: 800px) {
  .doc-feature { grid-template-columns: 1fr; padding: var(--s-lg); }
  .doc-feature-photo { max-width: 200px; margin: 0 auto; }
}

/* ============================================
   5. PATIENT OUTCOME — DARK REVEAL
   ============================================ */
.outcome-dark {
  background: var(--c-purple-deep);
  color: var(--c-white);
  padding: var(--s-2xl) 0;
  position: relative;
  overflow: hidden;
}
.outcome-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-xl);
  align-items: center;
  position: relative;
}
.outcome-quote {
  font-family: var(--font-ml);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.015em;
  margin-bottom: var(--s-lg);
}
body.show-en .outcome-quote { font-family: var(--font-en); }
.outcome-quote::before {
  content: '"';
  display: block;
  font-family: var(--font-en);
  font-size: 4rem;
  color: var(--c-orange);
  line-height: .5;
  margin-bottom: var(--s-sm);
}
.outcome-attr {
  font-family: var(--font-en);
  font-size: var(--t-sm);
  color: var(--c-purple-light);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: var(--s-lg);
}
.outcome-tag {
  font-size: var(--t-md);
  color: var(--c-purple-light);
  margin-bottom: var(--s-lg);
  font-style: italic;
}
.outcome-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-xl);
  padding: var(--s-xl) var(--s-lg);
  backdrop-filter: blur(10px);
}
.outcome-big {
  font-family: var(--font-en);
  font-size: clamp(4rem, 3rem + 5vw, 7rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  background: linear-gradient(135deg, #FFF 0%, var(--c-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--s-sm);
}
.outcome-side-label {
  font-family: var(--font-en);
  font-size: .82rem;
  color: var(--c-purple-light);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.outcome-side-meta {
  font-family: var(--font-en);
  font-size: var(--t-sm);
  color: var(--c-purple-light);
  margin-top: var(--s-sm);
}

@media (max-width: 900px) {
  .outcome-grid { grid-template-columns: 1fr; gap: var(--s-lg); }
}

/* ============================================
   6. CLINICS
   ============================================ */
.clinics { padding: var(--s-2xl) 0; }
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-md);
}
.clinic-card {
  position: relative;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base-d), box-shadow var(--t-base-d);
}
.clinic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
}
.clinic-pin {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--c-purple-tint);
  color: var(--c-purple);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-md);
  flex-shrink: 0;
}
.clinic-pin svg { width: 22px; height: 22px; }
.clinic-name {
  font-family: var(--font-en);
  font-size: var(--t-md);
  font-weight: 800;
  color: var(--c-purple-deep);
  margin-bottom: 4px;
}
.clinic-addr {
  font-size: var(--t-sm);
  color: var(--c-muted);
  margin-bottom: var(--s-md);
  line-height: 1.5;
  flex: 1;
}
.clinic-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.clinic-actions a {
  flex: 1;
  min-width: 70px;
  padding: 8px 10px;
  font-family: var(--font-en);
  font-size: .72rem;
  font-weight: 700;
  color: var(--c-purple);
  background: var(--c-purple-tint-soft);
  border-radius: var(--r-sm);
  text-align: center;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.clinic-actions a:hover {
  background: var(--c-purple);
  color: var(--c-white);
}
.clinic-card.soon {
  background: var(--c-bg);
  border-style: dashed;
}
.clinic-soon-badge {
  position: absolute;
  top: var(--s-md); right: var(--s-md);
  font-family: var(--font-en);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-orange);
  background: var(--c-orange-tint);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

@media (max-width: 1100px) { .clinic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .clinic-grid { grid-template-columns: 1fr; } }

/* ============================================
   7. FAQ TEASER
   ============================================ */
.faq-teaser { padding: var(--s-2xl) 0; background: var(--c-bg); }
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  margin-bottom: var(--s-sm);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.faq-item[open] {
  border-color: var(--c-purple-tint);
  box-shadow: var(--sh-1);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-md) var(--s-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  font-size: var(--t-md);
  font-weight: 600;
  color: var(--c-text);
}
body.show-en .faq-item summary { font-family: var(--font-en); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-purple-tint-soft);
  color: var(--c-purple);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform var(--t-base-d), background-color var(--t-fast);
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--c-purple);
  color: var(--c-white);
}
.faq-icon svg { width: 14px; height: 14px; }
.faq-body {
  padding: 0 var(--s-lg) var(--s-md);
  font-size: var(--t-sm);
  color: var(--c-muted);
  line-height: 1.65;
}
.faq-cta {
  text-align: center;
  margin-top: var(--s-lg);
}
.faq-cta a {
  color: var(--c-purple);
  font-weight: 600;
  font-family: var(--font-en);
  font-size: var(--t-sm);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: color var(--t-fast);
}
.faq-cta a:hover { color: var(--c-orange); }

/* ============================================
   8. FINAL CTA (DARK CLOSER)
   ============================================ */
.cta-final {
  background: var(--c-purple-deep);
  color: var(--c-white);
  padding: var(--s-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(232,106,26,.15), transparent 60%),
    radial-gradient(900px 500px at 50% 100%, rgba(107,77,208,.20), transparent 60%);
  pointer-events: none;
}
.cta-final-inner { position: relative; max-width: 720px; margin: 0 auto; }
.cta-final h2 {
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-bottom: var(--s-md);
  color: var(--c-white);
}
.cta-final h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--c-orange) 0%, #FFD9C2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.show-en .cta-final h2 { font-family: var(--font-en); }
.cta-final p {
  font-size: var(--t-md);
  color: var(--c-purple-light);
  margin-bottom: var(--s-lg);
  line-height: 1.65;
}
.cta-final .hero-ctas { justify-content: center; margin-bottom: 0; }
.cta-final .btn-ghost {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,.4);
}
.cta-final .btn-ghost:hover {
  background: var(--c-white);
  color: var(--c-purple-deep);
}
