/* ==================== VARIABLES ==================== */
:root {
  --navy: #1B2A4A;
  --navy-deep: #111D35;
  --navy-light: #243656;
  --gold: #D4A843;
  --gold-light: #E8C96A;
  --gold-dark: #B8912E;
  --cream: #FAF8F5;
  --white: #FFFFFF;
  --text: #3A3A50;
  --text-light: #6B6B80;
  --text-muted: #9A9AB0;
  --border: #E8E5E0;
  --shadow: rgba(27, 42, 74, 0.08);
  --shadow-md: rgba(27, 42, 74, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;

  /* Theme colours (light = day). Switched for evenings below. */
  --page: var(--cream);
  --surface: var(--white);
  --ink: var(--navy);
  color-scheme: light;
}

/* Evening theme: set by the script in <head> from 7 PM to 6 AM, or by the
   theme button. Navy and gold accent sections keep their colours. */
:root[data-theme="dark"] {
  --page: #0D1422;
  --surface: #162036;
  --ink: #F1E7D3;
  --text: #D6DAE4;
  --text-light: #A8B0C3;
  --text-muted: #7F889E;
  --border: #2A3653;
  --shadow: rgba(0, 0, 0, 0.35);
  --shadow-md: rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

:root[data-theme="dark"] img:not(.keep-bright) { filter: brightness(0.92); }
:root[data-theme="dark"] .btn-outline-navy:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }

/* Theme button in the header */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-left: 8px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.18);
  background: transparent; color: var(--gold-light); cursor: pointer;
  transition: var(--transition);
}
.theme-toggle:hover { background: rgba(255,255,255,0.08); }
.theme-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.theme-toggle .fa-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .fa-sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

/* ==================== RESET ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--page);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
}

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

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

::selection {
  background: var(--gold);
  color: var(--navy-deep);
}

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
}

.logo-icon {
  color: var(--gold);
  font-size: 1.3rem;
}

.logo-accent {
  color: var(--gold);
}

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

.nav-link {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
  font-weight: 600;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.nav-overlay.active { display: block; }

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 40%, var(--navy-light) 100%);
  overflow: hidden;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(212,168,67,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212,168,67,0.04) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(255,255,255,0.02) 0%, transparent 30%);
  background-size: 100% 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(212,168,67,0.15);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 24px;
  border-radius: 50px;
  border: 1px solid rgba(212,168,67,0.25);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.gold { color: var(--gold); }

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.hero-doctor {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.hero-credentials {
  font-size: 1.05rem;
  color: var(--gold-light);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.hero-role {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,168,67,0.35);
}

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

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.05rem;
}

.btn-instagram {
  background: linear-gradient(135deg, #833AB4, #E1306C, #F77737);
  color: white;
}

.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225,48,108,0.35);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

.btn-youtube {
  background: #FF0000;
  color: white;
}

.btn-youtube:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,0,0,0.3);
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 100px 0;
}

.section-light { background: var(--surface); }
.section-dark { background: var(--navy); }
.section-cream { background: var(--page); }
.section-navy { background: linear-gradient(160deg, var(--navy-deep), var(--navy-light)); }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-label.light { color: var(--gold-light); }

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-title.light { color: var(--white); }

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 3rem;
}

.section-subtitle.light { color: rgba(255,255,255,0.65); }

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ==================== INTRO ==================== */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.intro-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--text);
}

.intro-quote {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  position: relative;
}

.intro-quote i {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}

.intro-quote p {
  font-size: 1.05rem;
  line-height: 1.8;
  font-style: italic;
}

/* ==================== PILLARS ==================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.pillar-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,168,67,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.pillar-card.featured {
  background: rgba(212,168,67,0.08);
  border-color: rgba(212,168,67,0.2);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(212,168,67,0.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.pillar-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.pillar-card p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
}

.pillar-detail {
  margin-top: 0.75rem;
  font-size: 0.88rem !important;
  color: rgba(255,255,255,0.45) !important;
}

.pillar-list {
  margin-top: 1rem;
}

.pillar-list li {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.pillar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ==================== PLAYLISTS ==================== */
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.playlist-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.playlist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-md);
}

.playlist-header {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.playlist-header i { font-size: 1.3rem; }
.playlist-header h3 { font-size: 1.15rem; font-weight: 700; }

.playlist-header.materia { background: linear-gradient(135deg, #2D6A4F, #40916C); }
.playlist-header.organon { background: linear-gradient(135deg, #7B2D8B, #9B59B6); }
.playlist-header.repertory { background: linear-gradient(135deg, #1B4D89, #2980B9); }
.playlist-header.clinical { background: linear-gradient(135deg, #B8572A, #E67E22); }

.playlist-topics {
  padding: 1.5rem 2rem;
}

.playlist-topics li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.93rem;
  color: var(--text);
}

.playlist-topics li i {
  color: var(--gold-dark);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.playlist-btn {
  display: block;
  text-align: center;
  padding: 14px 2rem;
  background: var(--page);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border-top: 1px solid var(--border);
}

.playlist-btn:hover {
  background: var(--navy);
  color: var(--gold);
}

/* ==================== RESOURCES ==================== */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.resource-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--shadow);
  border-color: var(--gold);
}

.resource-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

.resource-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.resource-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-dark);
  background: rgba(212,168,67,0.12);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.resources-note {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.resources-note i {
  color: var(--gold-dark);
  margin-right: 6px;
}

/* ==================== MENTORSHIP ==================== */
.mentorship-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.mentorship-col h3 {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mentorship-list li {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mentorship-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.75rem;
}

.mentorship-highlight {
  background: rgba(212,168,67,0.1);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.mentorship-highlight i {
  color: var(--gold);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.mentorship-highlight p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-style: italic;
}

/* ==================== RESEARCH ==================== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.research-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.research-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--shadow);
}

.research-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-light);
  background: rgba(27,42,74,0.06);
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.research-card h4 {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.research-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.research-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.research-status.published {
  color: #2D6A4F;
  background: rgba(45,106,79,0.1);
}

.research-status.ongoing {
  color: var(--gold-dark);
  background: rgba(212,168,67,0.12);
}

.research-note {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 700px;
}

/* ==================== COMMUNITY ==================== */
.community-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 2.5rem 0;
}

.benefit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.benefit:hover {
  background: rgba(212,168,67,0.12);
  border-color: rgba(212,168,67,0.3);
  color: var(--white);
}

.benefit i {
  color: var(--gold);
  font-size: 0.85rem;
}

.community-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ==================== MISSION ==================== */
.mission-section {
  text-align: center;
}

.mission-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.mission-text {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.mission-pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.mission-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
  transition: var(--transition);
}

.mission-item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow);
}

.mission-item i {
  color: var(--gold);
  font-size: 1rem;
}

.mission-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
  opacity: 0.7;
}

/* ==================== CTA ==================== */
.cta-section {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  padding: 80px 24px;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  color: var(--navy-deep);
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.1rem;
  color: var(--navy);
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.8;
}

.cta-section .btn-gold {
  background: var(--navy-deep);
  color: var(--gold-light);
  border-color: var(--navy-deep);
}

.cta-section .btn-gold:hover {
  background: var(--navy);
  box-shadow: 0 8px 30px rgba(17,29,53,0.35);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--navy-deep);
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.1rem;
}

.footer-brand .logo-icon { color: var(--gold); font-size: 1.2rem; }

.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

.footer-tagline {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin: 0.5rem 0;
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-2px);
}

.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  border: 2px solid var(--gold);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 900;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

/* ==================== ANIMATIONS ==================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  .playlist-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .research-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 3rem; }
  .section-title { font-size: 2rem; }
}

@media (max-width: 1180px) {
  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 24px;
    gap: 4px;
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .nav.open { right: 0; }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .nav-cta { margin-left: 0; text-align: center; margin-top: 8px; }
}

@media (max-width: 768px) {
  .intro-grid { grid-template-columns: 1fr; }
  .mentorship-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-title { font-size: 2.4rem; }
  .hero-doctor { font-size: 1.3rem; }
  .section { padding: 70px 0; }
  .section-title { font-size: 1.8rem; }
  .cta-title { font-size: 1.8rem; }

  .logo-text { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-badge { font-size: 0.75rem; padding: 6px 16px; }
  .resources-grid { grid-template-columns: 1fr; }
  .community-buttons { flex-direction: column; align-items: center; }
  .community-buttons .btn { width: 100%; max-width: 280px; justify-content: center; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; justify-content: center; }
  .mission-pillars { flex-direction: column; align-items: center; }
}

/* ==================== MULTI-PAGE SITE ADDITIONS ==================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 2000;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { left: 8px; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.nav-link.active { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-cta.active { color: var(--navy-deep) !important; }
.header .nav-link { font-size: 0.82rem; padding: 8px 10px; }
.header .logo-text { font-size: 1.05rem; }

.hero-doctor-home .hero-title { font-size: 3.4rem; }
.hero-lead {
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.btn-outline-navy {
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.section-title.left { text-align: left; }
.text-link { color: var(--gold-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Inner page hero */
.page-hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--white);
  padding: 140px 0 60px;
  text-align: center;
}
.page-hero h1 { font-size: 2.6rem; margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 640px; margin: 0 auto; }
.page-hero-label {
  color: var(--gold) !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem !important;
}

/* Lists */
.list-heading { color: var(--ink); margin-bottom: 1rem; }
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 0.6rem;
}
.check-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--gold-dark);
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.75rem; }
.tag-list li {
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.85rem;
}

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px var(--shadow-md); border-color: var(--gold); }
.service-card i { font-size: 1.8rem; color: var(--gold-dark); margin-bottom: 1rem; }
.service-card h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 0.25rem; }
.service-card p { color: var(--text-light); font-size: 0.9rem; }

/* Clinic cards */
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 2rem;
}
.clinic-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: rgba(255,255,255,0.85);
}
.clinic-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 0.75rem;
}
.clinic-card h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 0.75rem; }
.clinic-address { margin-bottom: 1rem; }
.clinic-address i, .clinic-timings i { color: var(--gold); width: 18px; }
.clinic-timings li { margin-bottom: 0.35rem; font-weight: 500; }
.clinic-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  color: var(--gold-light);
  font-weight: 600;
}
.clinic-map:hover { color: var(--white); }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.testimonial-card {
  background: var(--page);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px;
}
.testimonial-card blockquote { font-style: italic; margin-bottom: 0.75rem; }
.testimonial-card figcaption { color: var(--ink); font-weight: 600; }

/* Academy teaser, video, quick links */
.academy-teaser { text-align: center; }
.academy-teaser .section-subtitle { margin-left: auto; margin-right: auto; }
.video-embed { position: relative; aspect-ratio: 16 / 9; max-width: 860px; margin: 1.5rem auto 0; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.quick-links-section { padding: 50px 0; }
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  transition: var(--transition);
}
.quick-links a:hover { border-color: var(--gold); background: var(--page); }
.quick-links i { color: var(--gold-dark); font-size: 1.2rem; }

/* About & clinical practice */
.about-grid, .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about-card, .step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.about-card > i { font-size: 1.8rem; color: var(--gold-dark); margin-bottom: 1rem; }
.about-card h3, .step-card h3 { color: var(--ink); margin-bottom: 0.75rem; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1rem;
}
.steps-grid { margin-top: 2rem; }

/* Treatments */
.treatment-list { max-width: 880px; }
.treatment {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.treatment h2 { font-size: 1.5rem; color: var(--ink); margin-bottom: 0.4rem; }
.treatment-icon {
  flex: 0 0 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--page);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.treatment-note {
  margin-top: 2rem;
  padding: 16px 20px;
  background: var(--page);
  border-radius: var(--radius);
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Blog, gallery, empty states */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.blog-card time { color: var(--text-muted); font-size: 0.85rem; }
.blog-card h3 { color: var(--ink); margin: 0.4rem 0; }
.blog-more { color: var(--gold-dark); font-weight: 600; }
.prose { max-width: 760px; }
.prose p, .prose li { margin-bottom: 1rem; }
.prose h2, .prose h3 { color: var(--ink); margin: 1.5rem 0 0.75rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery-item figcaption { font-size: 0.85rem; color: var(--text-light); margin-top: 0.4rem; }
.empty-state { text-align: center; padding: 40px 0; }
.empty-state > i { font-size: 2.5rem; color: var(--gold-dark); margin-bottom: 1rem; }
.empty-state h1, .empty-state h2 { color: var(--ink); margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-light); margin-bottom: 1.5rem; }

/* Booking */
.booking-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.booking-wrap.single { grid-template-columns: 1fr; max-width: 640px; text-align: center; }
.booking-form {
  background: var(--page);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.booking-form h2 { color: var(--ink); font-size: 1.5rem; }
.form-hint { color: var(--text-light); margin-bottom: 1.25rem; }
.booking-form label { font-weight: 600; color: var(--ink); margin: 0.75rem 0 0.35rem; }
.booking-form .optional { font-weight: 400; color: var(--text-muted); }
.booking-form input, .booking-form select, .booking-form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  width: 100%;
}
.booking-form button { margin-top: 1.5rem; align-self: flex-start; border: 0; cursor: pointer; }
.booking-side h2, .booking-side h3 { color: var(--ink); margin-bottom: 1rem; }
.booking-side p { margin-bottom: 1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.contact-card:hover { border-color: var(--gold); background: var(--page); }
.contact-card i { font-size: 1.6rem; color: var(--gold-dark); margin-bottom: 0.5rem; }
.contact-card span { color: var(--text-light); font-size: 0.85rem; }
.contact-card strong { color: var(--ink); word-break: break-word; }

/* Footer (multi-column) */
.footer { text-align: left; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 2rem; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-tagline { margin-top: 0.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; }
.footer-disclaimer { color: rgba(255,255,255,0.45); font-size: 0.8rem; margin-bottom: 0.5rem; }

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  z-index: 900;
}

.playlist-intro { padding: 0 24px; color: var(--text-light); font-size: 0.9rem; margin-top: 1rem; }

@media (max-width: 1024px) {
  .service-grid, .about-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-doctor-home .hero-title { font-size: 2.4rem; }
  .page-hero { padding: 110px 0 44px; }
  .page-hero h1 { font-size: 2rem; }
  .service-grid, .about-grid, .steps-grid, .clinic-grid, .booking-wrap, .footer-grid { grid-template-columns: 1fr; }
  .clinic-card { padding: 24px; }
  .treatment { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .hero-doctor-home .hero-title { font-size: 2rem; }
  .quick-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Header order: logo | nav | theme button | menu button */
.header-inner .logo { order: 0; margin-right: auto; }
.header-inner .nav { order: 1; }
.header-inner .theme-toggle { order: 2; }
.header-inner .hamburger { order: 3; margin-left: 8px; }

/* Published articles (About page) */
.publication-list { list-style: none; max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.publication-list li { background: var(--page); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.publication-list .text-link { font-weight: 600; }

/* Keep menu labels on one line on laptop widths */
@media (min-width: 1181px) {
  .nav { gap: 2px; }
  .nav-link { white-space: nowrap; padding: 8px 10px; font-size: 0.85rem; }
}

.playlist-header.webinars { background: linear-gradient(135deg, #1F7A7A, #2FA4A4); }

/* ==================== LIGHT (DAY) THEME: header and top banners ====================
   In the day theme the header, page banners and phone menu are light; in the
   evening theme they keep the original navy. Navy/gold bands lower down the
   page stay as accent strips in both themes. */
:root:not([data-theme="dark"]) {
  --gold-ink: #8F6C1E; /* readable gold on light backgrounds */
}
:root:not([data-theme="dark"]) .header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
}
:root:not([data-theme="dark"]) .header.scrolled { box-shadow: 0 4px 20px var(--shadow-md); }
:root:not([data-theme="dark"]) .logo { color: var(--navy); }
:root:not([data-theme="dark"]) .logo-accent,
:root:not([data-theme="dark"]) .logo-icon { color: var(--gold-ink); }
:root:not([data-theme="dark"]) .nav-link { color: var(--text-light); }
:root:not([data-theme="dark"]) .nav-link:hover { color: var(--navy); background: rgba(27, 42, 74, 0.06); }
:root:not([data-theme="dark"]) .nav-link.active { color: var(--navy); background: rgba(27, 42, 74, 0.08); }
:root:not([data-theme="dark"]) .hamburger span { background: var(--navy); }
:root:not([data-theme="dark"]) .theme-toggle { color: var(--navy); border-color: rgba(27, 42, 74, 0.2); }
:root:not([data-theme="dark"]) .theme-toggle:hover { background: rgba(27, 42, 74, 0.06); }
@media (max-width: 1180px) {
  :root:not([data-theme="dark"]) .nav { background: var(--white); box-shadow: -8px 0 30px var(--shadow-md); }
}

:root:not([data-theme="dark"]) .hero,
:root:not([data-theme="dark"]) .page-hero {
  background: linear-gradient(160deg, #FFFDF8 0%, #F8F1E2 55%, #F1E5CA 100%);
  color: var(--navy);
}
:root:not([data-theme="dark"]) .hero-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(212,168,67,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(27,42,74,0.05) 0%, transparent 40%);
}
:root:not([data-theme="dark"]) .hero-badge { color: var(--gold-ink); background: rgba(212,168,67,0.14); border-color: rgba(143,108,30,0.25); }
:root:not([data-theme="dark"]) .hero-title,
:root:not([data-theme="dark"]) .hero-doctor,
:root:not([data-theme="dark"]) .page-hero h1 { color: var(--navy); }
:root:not([data-theme="dark"]) .hero .gold,
:root:not([data-theme="dark"]) .hero-credentials,
:root:not([data-theme="dark"]) .page-hero-label { color: var(--gold-ink) !important; }
:root:not([data-theme="dark"]) .hero-role,
:root:not([data-theme="dark"]) .page-hero p { color: var(--text-light); }
:root:not([data-theme="dark"]) .hero-lead { color: var(--text); }
:root:not([data-theme="dark"]) .hero .btn-outline-light { color: var(--navy); border-color: rgba(27, 42, 74, 0.35); }
:root:not([data-theme="dark"]) .hero .btn-outline-light:hover { background: rgba(27, 42, 74, 0.06); border-color: var(--navy); }

/* Smooth switch between themes */
.header, .hero, .page-hero, body, .section-light, .section-cream { transition: background-color 0.4s ease, color 0.4s ease; }
