/* ═══════════════════════════════════════════════════
   Mad Funnel Labs — Design System
   Stack: Vanilla HTML + Custom CSS + GSAP
   Fonts: Playfair Display (headings) + Inter (body)
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── Tokens ─────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:         #06040A;
  --bg-card:    #0F0C1A;
  --bg-card2:   #141022;
  --bg-overlay: rgba(6,4,10,0.8);

  /* Borders */
  --border:     rgba(255,255,255,0.06);
  --border-md:  rgba(255,255,255,0.10);
  --border-hi:  rgba(255,255,255,0.16);

  /* Text */
  --text:       #F0EEF8;
  --text-muted: #7A7894;
  --text-dim:   #3D3A55;

  /* Accent — Electric Blue */
  --blue:       #4D7CFF;
  --blue-light: #6B94FF;
  --blue-glow:  rgba(77,124,255,0.18);
  --blue-glow2: rgba(77,124,255,0.08);

  /* Gold — for premium/medical trust */
  --gold:       #F5A623;
  --gold-glow:  rgba(245,166,35,0.12);

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Nav */
  --nav-h: 72px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset ──────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--border-md) transparent;
}
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 1.2s var(--ease);
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
::selection { background: var(--blue-glow); color: var(--text); }

/* ─── Typography ─────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(3rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.1rem; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0; }
p { color: var(--text-muted); line-height: 1.75; }
em { font-style: italic; }
strong { font-weight: 600; color: var(--text); }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow-accent { color: var(--blue); }

/* ─── Layout ─────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: 120px 0; }

/* ─── Visibility helpers (for GSAP) ─────────── */
/* Initial states are set via gsap.set() in main.js — not CSS — so GSAP
   can correctly animate TO opacity:1 without fighting the cascade. */

/* ─── Navigation ─────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,4,10,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-6deg); }
.logo-mark svg { width: 22px; height: 17px; }
.logo-wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-weight: 700; font-size: 0.95rem; }
.logo-tag { font-weight: 400; font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.04em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: var(--r-sm) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
  background: var(--blue-light) !important;
  box-shadow: 0 4px 20px var(--blue-glow) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--r-sm);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: var(--r-md);
  transition: all 0.25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 0 var(--blue-glow);
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--blue-glow);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-md);
}
.btn-outline:hover {
  border-color: var(--border-hi);
  background: rgba(255,255,255,0.04);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-sm { padding: 10px 20px; font-size: 0.82rem; border-radius: var(--r-sm); }

/* ─── Hero ───────────────────────────────────── */
.s-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

/* Background glow orbs (CSS animated) */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  will-change: transform;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(77,124,255,0.14) 0%, transparent 70%);
  top: -150px; left: -100px;
  animation: orb-drift-1 18s ease-in-out infinite;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,166,35,0.07) 0%, transparent 70%);
  bottom: -100px; right: -80px;
  animation: orb-drift-2 22s ease-in-out infinite;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(77,124,255,0.08) 0%, transparent 70%);
  top: 50%; right: 20%;
  animation: orb-drift-3 15s ease-in-out infinite;
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0,0); }
  33%  { transform: translate(40px, 30px); }
  66%  { transform: translate(-20px, 50px); }
}
@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-30px, -40px); }
}
@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0,0); }
  40% { transform: translate(20px, -30px); }
  80% { transform: translate(-15px, 20px); }
}

/* Grid texture overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 100%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 900px; }

/* Text line reveal wrapper */
.line-wrap { overflow: hidden; display: block; }
.line-inner { display: block; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding: 8px 16px 8px 10px;
  background: rgba(77,124,255,0.08);
  border: 1px solid rgba(77,124,255,0.18);
  border-radius: 999px;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
}
.hero-headline {
  margin-bottom: 28px;
}
.hero-headline em {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.35);
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 44px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  animation: scroll-hint-appear 1s 2s forwards;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scroll-line-drop 1.5s 2.5s ease-in-out infinite;
}
@keyframes scroll-hint-appear {
  to { opacity: 1; }
}
@keyframes scroll-line-drop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ─── Stats strip ────────────────────────────── */
.s-stats {
  padding: 0;
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
}
.stat-item {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  margin-bottom: 8px;
}
.stat-num span { color: var(--blue); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ─── Proof bar ──────────────────────────────── */
.s-proof { padding: 64px 0; }
.proof-label {
  text-align: center;
  margin-bottom: 32px;
}
.proof-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}
.proof-track {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: proof-scroll 25s linear infinite;
  width: max-content;
}
.proof-track:hover { animation-play-state: paused; }
@keyframes proof-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.proof-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
  cursor: default;
}
.proof-chip:hover { border-color: var(--border-md); color: var(--text); }
.proof-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ─── Divider ────────────────────────────────── */
.divider { height: 1px; background: var(--border); }

/* ─── Pillars ────────────────────────────────── */
.s-pillars { padding: 120px 0; }
.section-header { margin-bottom: 72px; }
.section-header h2 { margin-top: 14px; }
.section-header p { margin-top: 18px; max-width: 520px; font-size: 1.05rem; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.pillar-card {
  background: var(--bg-card);
  padding: 48px 40px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card:hover { background: var(--bg-card2); }

.pillar-icon-wrap {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  background: var(--blue-glow2);
  border: 1px solid rgba(77,124,255,0.15);
  display: grid;
  place-items: center;
  margin-bottom: 28px;
}
.pillar-icon-wrap svg { width: 24px; height: 24px; color: var(--blue); }
.pillar-card h3 { margin-bottom: 14px; font-size: 1.6rem; }
.pillar-card > p { font-size: 0.9rem; line-height: 1.7; }
.pillar-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.pillar-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pillar-list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  opacity: 0.6;
}
.pillar-proof {
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ─── Portfolio ──────────────────────────────── */
/* Top padding retained for section-header breathing room.
   Bottom padding reduced — the track's own padding-bottom handles spacing. */
.s-portfolio { padding: 100px 0 0; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
}
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
  cursor: pointer;
}
.portfolio-card:hover {
  border-color: var(--border-md);
  transform: translateY(-4px);
}
.portfolio-thumb {
  height: 220px;
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.portfolio-thumb-bg {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.6s var(--ease);
}
.portfolio-card:hover .portfolio-thumb-bg { opacity: 0.9; transform: scale(1.05); }
.thumb-buffalo  { background: linear-gradient(135deg, #1a0a2e 0%, #2d1244 50%, #1a0a2e 100%); }
.thumb-myntra   { background: linear-gradient(135deg, #0a1a2e 0%, #0d2848 50%, #0a1a2e 100%); }
.thumb-central  { background: linear-gradient(135deg, #0a1a0e 0%, #0d2814 50%, #0a1a0e 100%); }
.thumb-fbb      { background: linear-gradient(135deg, #2e1a0a 0%, #482d12 50%, #2e1a0a 100%); }
.thumb-apt9     { background: linear-gradient(135deg, #1a1a2e 0%, #24245e 50%, #1a1a2e 100%); }

/* Video preview inside portfolio card thumb — plays on hover */
.portfolio-thumb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
  z-index: 1;
}
.portfolio-card.is-inview .portfolio-thumb-video { opacity: 1; }
.portfolio-card.is-inview .portfolio-thumb-bg { opacity: 0.25; transition: opacity 0.7s ease; }
.portfolio-card.is-inview .portfolio-thumb-label { opacity: 0; transition: opacity 0.4s ease; }

.portfolio-thumb-label {
  position: relative;
  z-index: 1;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  user-select: none;
}
.portfolio-category-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  display: flex;
  gap: 6px;
  z-index: 1;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.tag-blue { background: rgba(77,124,255,0.15); color: var(--blue-light); border: 1px solid rgba(77,124,255,0.2); }
.tag-gold { background: rgba(245,166,35,0.12); color: var(--gold); border: 1px solid rgba(245,166,35,0.2); }
.tag-dim  { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }

.portfolio-body { padding: 28px; }
.portfolio-client {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.portfolio-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.3;
}
.portfolio-body p { font-size: 0.875rem; line-height: 1.65; }

/* ─── Doctor CTA ─────────────────────────────── */
.s-doctors { padding: 120px 0; }
.doctors-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.doctors-content {
  padding: 72px 64px;
  border-right: 1px solid var(--border);
}
.doctors-content h2 { margin-top: 14px; margin-bottom: 20px; }
.doctors-content > p { margin-bottom: 36px; font-size: 1rem; }
.doctors-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.doctors-visual {
  padding: 64px 48px;
  background: linear-gradient(135deg, rgba(77,124,255,0.05) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.2s, background 0.2s;
}
.feature-item:hover {
  border-color: rgba(77,124,255,0.2);
  background: rgba(77,124,255,0.04);
}
.feature-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--blue-glow2);
  border: 1px solid rgba(77,124,255,0.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 18px; height: 18px; color: var(--blue); }
.feature-text h4 { font-size: 0.9rem; margin-bottom: 4px; }
.feature-text p { font-size: 0.82rem; line-height: 1.5; }

/* ─── Pricing ────────────────────────────────── */
.s-pricing { padding: 120px 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.pricing-card:hover { transform: translateY(-3px); }
.pricing-card.featured {
  border-color: var(--blue);
  background: linear-gradient(160deg, rgba(77,124,255,0.07) 0%, var(--bg-card) 60%);
}
.pricing-badge {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 0 0 10px 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pricing-tier {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.pricing-price {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  margin-bottom: 4px;
}
.pricing-price sup { font-size: 1.2rem; vertical-align: super; margin-right: 2px; }
.pricing-price sub { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  margin-top: 8px;
}
.pricing-divider { height: 1px; background: var(--border); margin-bottom: 28px; }
.pricing-features { flex: 1; display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.pricing-feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.pricing-feat-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(77,124,255,0.1);
  border: 1px solid rgba(77,124,255,0.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-feat-check svg { width: 10px; height: 10px; color: var(--blue); }
.pricing-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 14px;
}
.pricing-note span { color: var(--text-muted); }

/* ─── Testimonials ───────────────────────────── */
.s-testimonials { padding: 120px 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 64px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  position: relative;
  transition: border-color 0.3s;
}
.testimonial-card:hover { border-color: var(--border-md); }
.testimonial-card::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--blue);
  opacity: 0.2;
  position: absolute;
  top: 20px; left: 32px;
}
.testimonial-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  padding-top: 28px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 1px solid var(--border-md);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
}
.author-avatar svg { width: 22px; height: 22px; color: var(--text-muted); }
.author-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.author-role { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }

/* ─── CTA ────────────────────────────────────── */
.s-cta { padding: 120px 0; }
.cta-inner {
  text-align: center;
  padding: 100px 64px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, var(--blue-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner h2 { position: relative; z-index: 1; margin-bottom: 18px; }
.cta-inner p { position: relative; z-index: 1; font-size: 1.05rem; max-width: 520px; margin: 0 auto 44px; }
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

/* ─── Footer ─────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 260px;
}
.footer-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-dim); }
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background 0.2s;
}
.social-link:hover { border-color: var(--border-md); background: var(--bg-card2); }
.social-link svg { width: 16px; height: 16px; color: var(--text-muted); }

/* ─── Custom Cursor ──────────────────────────── */
/* Hidden on touch devices via JS. pointer-events:none so it never
   blocks clicks. Uses transform for GPU compositing (no layout cost). */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  opacity: 0; /* JS sets to 1 on first mouse move */
  transition: opacity 0.3s;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--blue);
  margin: -4px 0 0 -4px; /* center on pointer */
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(77,124,255,0.5);
  margin: -20px 0 0 -20px;
  transition: width 0.25s var(--ease-out),
              height 0.25s var(--ease-out),
              margin 0.25s var(--ease-out),
              border-color 0.25s,
              opacity 0.3s;
}
/* Expanded state — applied on hover over interactive elements */
.cursor-ring.is-hovering {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-color: rgba(77,124,255,0.8);
}
.cursor-ring.is-clicking {
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
}
/* Hide native cursor when custom cursor is active */
body.custom-cursor-active *  { cursor: none !important; }

/* ─── Horizontal Portfolio Scroll ────────────── */
/* Track sits OUTSIDE .container so it can span full viewport width.
   padding-left aligns the first card with the container's content edge.
   On desktop JS pins .s-portfolio and translates the track left.
   On mobile: flex-direction:column, no pinning, normal scroll.       */
.s-portfolio {
  overflow: hidden; /* clip the horizontal track so cards don't spill right */
}
.portfolio-track {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: stretch;
  will-change: transform;
  /* Align first card with container left edge on any screen width:
     max(32px, (100vw - 1200px)/2 + 32px) mirrors how .container centers */
  padding-left:  max(32px, calc((100vw - 1200px) / 2 + 32px));
  padding-right: 80px;  /* breathing room after last card */
  padding-top: 48px;    /* space below section-header */
  padding-bottom: 100px; /* space above next section */
}
.portfolio-track .portfolio-card {
  flex: 0 0 400px; /* fixed width — cards don't grow or shrink */
  width: 400px;
}
/* Mobile: stack vertically, padding resets to container style */
@media (max-width: 767px) {
  .s-portfolio { overflow: visible; }
  .portfolio-track {
    flex-direction: column;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 32px;
    gap: 16px;
  }
  .portfolio-track .portfolio-card {
    flex: none;
    width: 100%;
  }
}

/* ─── Stats pin: full-height during count-up ─── */
.s-stats-pin {
  /* JS adds padding-bottom to account for pin distance */
}

/* ─── Prefers reduced motion ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .hero-orb-1, .hero-orb-2, .hero-orb-3 { animation: none; }
  .proof-track { animation: none; }
  .scroll-line { animation: none; }
  .hero-scroll-hint { opacity: 1; }
}

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .doctors-card { grid-template-columns: 1fr; }
  .doctors-content { border-right: none; border-bottom: 1px solid var(--border); padding: 56px 48px; }
  .pillars-grid { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 900px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  section { padding: 80px 0; }
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: rgba(6,4,10,0.97);
    backdrop-filter: blur(24px);
    padding: 32px 24px;
    gap: 4px;
    z-index: 199;
    align-items: flex-start;
  }
  .nav-links.mobile-open a { font-size: 1.5rem; padding: 14px 0; width: 100%; color: var(--text); }
  .nav-links.mobile-open .nav-cta { margin-top: 8px; width: 100%; justify-content: center; font-size: 1rem !important; padding: 16px !important; border-radius: var(--r-md) !important; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; border-radius: var(--r-md); }
  .stat-item { padding: 28px 20px; }
  .cta-inner { padding: 60px 28px; }
  .doctors-content { padding: 48px 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════
   INNER PAGE SHARED STYLES
   Used by work.html, services.html, about.html, etc.
   ═══════════════════════════════════════════════════ */

/* ─── Compact page hero ──────────────────────────── */
.s-page-hero {
  padding: calc(var(--nav-h) + 80px) 0 64px;
  min-height: 38vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.page-hero-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}
.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.page-hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════
   WORK PAGE
   ═══════════════════════════════════════════════════ */

/* ─── Work cards — full-width stacked ───────────── */
.s-work { padding: 0; }

.work-card {
  position: relative;
  height: 65vh;
  min-height: 480px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

/* Coloured bg per project — shows before video loads */
.work-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease);
}
.work-card:hover .work-card-bg { transform: scale(1.04); }

.bg-buffalo  { background: linear-gradient(135deg, #1a0620 0%, #2e0f3a 100%); }
.bg-myntra   { background: linear-gradient(135deg, #060e2a 0%, #0d1e4a 100%); }
.bg-central  { background: linear-gradient(135deg, #050f08 0%, #0a1e10 100%); }
.bg-fbb      { background: linear-gradient(135deg, #1a0a04 0%, #321508 100%); }
.bg-apt9     { background: linear-gradient(135deg, #0a0a1e 0%, #131340 100%); }

/* Video fills the card — hidden until playing */
.work-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
  z-index: 1;
}
.work-card.is-playing .work-card-video { opacity: 1; }

/* Gradient overlay — always on, keeps text readable */
.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6,4,10,0.95) 0%,
    rgba(6,4,10,0.55) 45%,
    rgba(6,4,10,0.15) 100%
  );
  z-index: 2;
}

/* Content sits above video + overlay */
.work-card-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 48px;
}

/* Top row — project number + tags */
.work-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.work-card-number {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.14em;
}
.work-card-tags { display: flex; gap: 6px; }

/* Bottom row — logo + title | stat */
.work-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.work-card-info { flex: 1; }

/* Client logos — forced white on dark bg */
.work-logo {
  height: 36px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 18px;
  display: block;
  transition: opacity 0.3s;
}
.work-card:hover .work-logo { opacity: 1; }

/* Buffalo logo has black bg — screen blend removes it instead of inverting */
.work-logo.logo-screen {
  filter: none;
  mix-blend-mode: screen;
  opacity: 1;
}

/* Apt9 — text logo */
.work-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  display: block;
  transition: color 0.3s;
}
.work-card:hover .work-logo-text { color: #fff; }

.work-card-info h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 14px;
  max-width: 580px;
}

/* Stat block — right side */
.work-card-stat { text-align: right; flex-shrink: 0; }
.work-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.work-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 140px;
  line-height: 1.5;
}

/* Play button hint — fades out when video starts */
.work-card-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: opacity 0.4s, transform 0.3s var(--ease-out), background 0.3s;
}
.work-card-play svg { width: 20px; height: 20px; color: #fff; margin-left: 3px; }
.work-card:hover .work-card-play { background: rgba(255,255,255,0.18); transform: translate(-50%, -50%) scale(1.1); }
.work-card.is-playing .work-card-play { opacity: 0; pointer-events: none; }

/* ─── "Also worked with" proof strip ────────────── */
.s-work-proof {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

/* ─── Work mobile overrides ─────────────────────── */
@media (max-width: 768px) {
  .work-card { height: 75vw; min-height: 320px; }
  .work-card-content { padding: 24px 20px; }
  .work-card-info h2 { font-size: 1.15rem; }
  .work-card-stat { display: none; }
  .work-card-play { width: 48px; height: 48px; }
}
@media (max-width: 640px) {
  .s-page-hero { min-height: auto; padding-bottom: 48px; }
  .page-hero-title { font-size: 3rem; }
}

/* ═══════════════════════════════════════════════════
   SERVICES PAGE
   ═══════════════════════════════════════════════════ */

.s-services { padding: 80px 0 120px; }
.services-pillars {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin-top: 64px;
}
.service-pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.service-pillar:hover { border-color: var(--border-md); transform: translateY(-3px); }
.service-pillar-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  background: var(--blue-glow2);
  border: 1px solid rgba(77,124,255,0.15);
  display: grid; place-items: center;
  margin-bottom: 24px;
}
.service-pillar-icon svg { width: 22px; height: 22px; color: var(--blue); }
.service-pillar h3 { font-size: 1.4rem; margin-bottom: 12px; }
.service-pillar p { font-size: 0.875rem; }

/* ─── Packages ─────────────────────────────────── */
.s-packages {
  padding: 80px 0 120px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin-top: 64px;
}
.package-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.package-card:hover { transform: translateY(-4px); border-color: var(--border-md); }
.package-card.featured {
  border-color: var(--blue);
  background: linear-gradient(160deg, rgba(77,124,255,0.07) 0%, var(--bg) 60%);
}
.package-badge {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 0 0 10px 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.package-tier-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.package-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.package-price {
  font-size: 0.92rem;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 6px;
}
.package-focus {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.package-includes {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.pkg-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.pkg-feat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 7px;
  opacity: 0.7;
}

/* Add-on card */
.addon-card {
  margin-top: 40px;
  background: var(--bg-card2);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  padding: 36px 40px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.addon-icon {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: var(--r-sm);
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.2);
  display: grid; place-items: center;
}
.addon-icon svg { width: 24px; height: 24px; color: var(--gold); }
.addon-label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.addon-name {
  font-size: 1.3rem; font-weight: 700;
  font-family: 'Playfair Display', serif;
  margin-bottom: 8px;
  color: var(--text);
}
.addon-desc { font-size: 0.875rem; color: var(--text-muted); }

/* Process steps */
.s-process { padding: 120px 0; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  margin-top: 64px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 10%; right: 10%;
  height: 1px;
  background: var(--border);
}
.process-step { text-align: center; padding: 0 20px; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  display: grid; place-items: center;
  margin: 0 auto 20px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--text);
  position: relative; z-index: 1;
  transition: background 0.3s, border-color 0.3s;
}
.process-step.active .step-num {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 24px var(--blue-glow);
}
.process-step h4 { margin-bottom: 8px; font-size: 0.95rem; }
.process-step p { font-size: 0.82rem; }

@media (max-width: 900px) {
  .services-pillars { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .process-steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .process-steps::before { display: none; }
  .addon-card { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════
   SHARED FORM STYLES (doctors + contact pages)
   ═══════════════════════════════════════════════════ */

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
.form-input::placeholder { color: var(--text-dim); }
.form-textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; margin-top: 8px; justify-content: center; }

/* ═══════════════════════════════════════════════════
   FOR DOCTORS PAGE (LIGHT THEME)
   ═══════════════════════════════════════════════════ */

body.page-doctors {
  --bg:         #F5F0E8;
  --bg-card:    #FFFFFF;
  --bg-card2:   #EDE8DC;
  --bg-overlay: rgba(245,240,232,0.8);
  --border:     rgba(0,0,0,0.07);
  --border-md:  rgba(0,0,0,0.13);
  --border-hi:  rgba(0,0,0,0.22);
  --text:       #0D0B18;
  --text-muted: #5A5870;
  --text-dim:   #9A97B0;
  --blue-glow2: rgba(77,124,255,0.06);
}

/* Nav always dark on light page */
body.page-doctors .nav,
body.page-doctors .nav.scrolled {
  background: rgba(6,4,10,0.97);
  border-bottom-color: rgba(255,255,255,0.08);
}
body.page-doctors .nav .logo { color: #F0EEF8; }
body.page-doctors .nav .logo-tag { color: #7A7894; }
body.page-doctors .nav .nav-links a { color: #7A7894; }
body.page-doctors .nav .nav-links a:hover,
body.page-doctors .nav .nav-links a.active { color: #F0EEF8; }
body.page-doctors .nav .hamburger span { background: #F0EEF8; }

/* Doctor pain points */
.s-dr-pain {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.dr-pain-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin-top: 48px;
}
.dr-pain-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
}
.dr-pain-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.22;
  line-height: 1;
  margin-bottom: 16px;
}
.dr-pain-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.dr-pain-card p { font-size: 0.875rem; }

/* Doctor channels */
.s-dr-channels { padding: 100px 0; }
.dr-channels-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin-top: 56px;
}
.dr-channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.dr-channel-card:hover { border-color: var(--border-md); transform: translateY(-3px); }
.dr-channel-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: var(--blue-glow2);
  border: 1px solid rgba(77,124,255,0.15);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.dr-channel-icon svg { width: 20px; height: 20px; color: var(--blue); }
.dr-channel-card h4 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.dr-channel-card p { font-size: 0.82rem; }

/* Clinic audit form on page */
.s-dr-audit {
  padding: 100px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.audit-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  padding: 56px 48px;
}
.audit-form-wrap h2 { margin-bottom: 10px; }
.audit-form-wrap > p { margin-bottom: 36px; }

/* Doctor pricing context note */
.dr-pricing-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .dr-pain-grid { grid-template-columns: 1fr; }
  .dr-channels-grid { grid-template-columns: 1fr 1fr; }
  .audit-form-wrap { padding: 40px 28px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dr-channels-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════ */

.s-about-story { padding: 120px 0; }
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 56px;
}
.about-values { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.about-value {
  display: flex; gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.about-value-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--blue-glow2);
  border: 1px solid rgba(77,124,255,0.15);
  display: grid; place-items: center;
}
.about-value-icon svg { width: 18px; height: 18px; color: var(--blue); }
.about-value h4 { font-size: 0.9rem; margin-bottom: 4px; }
.about-value p { font-size: 0.82rem; }
.about-stat-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 24px;
  text-align: center;
}
.about-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.about-stat-num span { color: var(--blue); }
.about-stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* ─── Team horizontal scroll ─────────────────── */
/* Wrapper clips horizontal overflow of scrolling track.
   Section itself stays overflow:visible so video can
   extend above the card border (Option B depth illusion). */
.team-outer { overflow: hidden; }
.s-team {
  /* Extra top padding = breathing room for video that
     rises above the card box top border */
  padding: 180px 0 100px;
  overflow: visible;
  position: relative;
}
.team-section-header {
  /* Header lives inside .container above the track */
  padding: 0 max(32px, calc((100vw - 1200px) / 2 + 32px));
  margin-bottom: 0;
}
.team-track {
  display: flex;
  flex-direction: row;
  gap: 24px;
  will-change: transform;
  padding-left:  max(32px, calc((100vw - 1200px) / 2 + 32px));
  padding-right: 80px;
  padding-top: 0;
  margin-top: 56px;
}
.team-card {
  position: relative;
  flex: 0 0 360px;
  width: 360px;
}
.team-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  padding: 36px 32px 32px;
  height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  /* No overflow:hidden — so video can break out above */
  transition: border-color 0.3s;
}
.team-card-box:hover { border-color: var(--border-hi); }
.team-card-number {
  position: absolute;
  top: 28px; left: 32px;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* Transparent-bg video — positioned to break out above card top.
   User must export as WebM (VP9 alpha) for Chrome/Firefox and
   HEVC .mov with alpha for Safari. Add both as <source> tags.
   Video should show the person standing, body fills lower portion,
   head/arms extend above — these overflow the card top border. */
.team-video {
  position: absolute;
  bottom: 50px;      /* sit the video base near card bottom */
  right: -8px;       /* slight right offset for depth */
  width: 60%;
  height: 115%;      /* extends ~15% above card top = "breaking out" */
  object-fit: contain;
  object-position: bottom center;
  z-index: 2;        /* renders above card border */
  pointer-events: none;
}

/* Placeholder shown until real videos are uploaded */
.team-video-placeholder {
  position: absolute;
  bottom: 50px;
  right: -8px;
  width: 60%;
  height: 115%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  padding-bottom: 32px;
}
.team-avatar-circle {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--blue-glow2);
  border: 2px dashed rgba(77,124,255,0.25);
  display: grid; place-items: center;
  color: var(--text-dim);
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.5;
  padding: 16px;
}

.team-card-content { position: relative; z-index: 3; }
.team-member-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.team-member-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.team-member-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.team-social { display: flex; gap: 10px; }
.team-social-link {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: border-color 0.2s, background 0.2s;
}
.team-social-link:hover { border-color: var(--border-md); }
.team-social-link svg { width: 14px; height: 14px; color: var(--text-muted); }

@media (max-width: 767px) {
  .s-team { padding: 80px 0 60px; overflow: hidden; }
  .team-track {
    flex-direction: column;
    padding-left: 20px;
    padding-right: 20px;
    gap: 20px;
    margin-top: 40px;
  }
  .team-card { flex: none; width: 100%; }
  .team-card-box { height: auto; min-height: 280px; }
  .team-video, .team-video-placeholder { display: none; }
  .team-section-header { padding: 0 20px; }
}
@media (max-width: 900px) {
  .about-story-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ═══════════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════════ */

.s-contact { padding: 80px 0 120px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 64px;
}
.contact-col-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.contact-col h3 { font-size: 1.8rem; margin-bottom: 12px; }
.contact-col > p { font-size: 0.9rem; margin-bottom: 28px; }
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 44px 40px;
}
.contact-wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: var(--r-md);
  transition: background 0.2s, transform 0.2s;
  margin-top: 8px;
}
.contact-wa-cta:hover { background: #1da851; transform: translateY(-2px); }
.contact-wa-cta svg { width: 20px; height: 20px; }
.contact-divider { height: 1px; background: var(--border); margin: 28px 0; }
.contact-info-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: grid; place-items: center;
}
.contact-info-icon svg { width: 16px; height: 16px; color: var(--blue); }
.contact-info-text h5 { font-size: 0.875rem; font-weight: 600; margin-bottom: 2px; color: var(--text); }
.contact-info-text p { font-size: 0.82rem; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-card { padding: 36px 28px; }
}
