:root {
  --brand-maroon: #7b0012;
  --brand-maroon-2: #950018;
  --brand-orange: #f6871f;
  --brand-orange-soft: #ffd9b0;
  --ink: #2a1e1b;
  --ink-soft: #5f4a45;
  --bg: #fff9f4;
  --white: #ffffff;
  --line: rgba(123, 0, 18, 0.14);
  --shadow: 0 12px 32px rgba(123, 0, 18, 0.12);
  --radius: 16px;
  --transition: 0.28s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 2%, rgba(246, 135, 31, 0.12), transparent 26%),
    radial-gradient(circle at 3% 16%, rgba(123, 0, 18, 0.08), transparent 28%),
    var(--bg);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-maroon);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-header { text-align: center; margin-bottom: 36px; }
.section-header h1,
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--brand-maroon); }
.lead-line { font-size: 1.08rem; color: var(--ink-soft); max-width: 760px; margin: 12px auto 0; }

#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 249, 244, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition);
}

#site-header.scrolled { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); }

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.logo-image {
  width: 66px;
  height: 66px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--white);
}

.logo-name { font-size: 1.3rem; color: var(--brand-maroon); }
.logo-tagline { font-size: 0.74rem; color: var(--ink-soft); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  font-weight: 700;
  font-size: 0.87rem;
  color: var(--ink-soft);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--brand-orange);
  transition: width var(--transition);
}

.main-nav a:hover { color: var(--brand-maroon); }
.main-nav a:hover::after { width: 100%; }

.hamburger {
  display: none;
  border: none;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--brand-maroon);
  transition: var(--transition);
}

.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); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 12px 20px 20px;
}

.mobile-nav a {
  padding: 10px 0;
  font-weight: 700;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(123, 0, 18, 0.08);
}

.mobile-nav.open { display: flex; }

main section { padding: 72px 0; }

.clinics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.combined-care-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.combo-card {
  padding: 0;
  overflow: hidden;
}

.combo-top {
  padding: 28px 28px 22px;
}

.combo-top h2 {
  color: var(--brand-maroon);
  margin-bottom: 8px;
  font-size: 1.9rem;
}

.combo-top p {
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.combo-top ul {
  margin: 0 0 10px 18px;
  color: var(--ink-soft);
}

.combo-doctor {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  padding: 22px 28px 26px;
}

.combo-image {
  max-width: 100%;
  margin-bottom: 14px;
}

.combo-doctor h3 {
  color: var(--brand-maroon);
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.combo-doctor p {
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.combo-doctor ul {
  margin: 0 0 10px 18px;
  color: var(--ink-soft);
}

.clinic-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.clinic-card.active {
  border-color: rgba(246, 135, 31, 0.5);
  background: linear-gradient(180deg, #fffefc, #fff5ea);
}

.clinic-card.upcoming {
  background: linear-gradient(180deg, #fff, #fffaf6);
  opacity: 0.92;
}

.chip {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--brand-maroon);
  color: var(--white);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.clinic-card.upcoming .chip { background: var(--brand-orange); }

.clinic-card h2 { color: var(--brand-maroon); margin-bottom: 8px; font-size: 1.6rem; }
.clinic-card p { color: var(--ink-soft); margin-bottom: 12px; }
.clinic-card ul { margin: 0 0 12px 18px; color: var(--ink-soft); }

.card-cta {
  display: inline-block;
  margin-top: 4px;
  color: var(--brand-maroon);
  font-weight: 800;
}

.card-cta.muted { color: #9b6d46; }

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.intro-grid h2 { color: var(--brand-maroon); margin-bottom: 12px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.intro-grid p { color: var(--ink-soft); margin-bottom: 10px; }
.intro-grid ul { margin: 0 0 10px 20px; color: var(--ink-soft); }

.logo-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.logo-panel img { width: 100%; border-radius: 12px; }

.mvw-section {
  background: linear-gradient(140deg, #7b0012, #a1071d);
  color: var(--white);
}

.mvw-section .section-label { color: #ffd8ab; }
.mvw-section h2 { color: var(--white); }

.mvw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mvw-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 22px;
}

.mvw-card h3 { margin-bottom: 10px; color: #fff; }
.mvw-card p { color: rgba(255, 255, 255, 0.9); margin-bottom: 10px; }
.mvw-card ul { margin-left: 18px; color: rgba(255, 255, 255, 0.92); }

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.doctor-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.doctor-card.pending { background: #fffdf9; }

.doctor-image-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff2e2, #ffe0c0);
  border: 1px dashed rgba(123, 0, 18, 0.25);
  margin-bottom: 14px;
}

.doctor-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-fallback {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-weight: 700;
  color: var(--brand-maroon);
}

.doctor-card h3 { color: var(--brand-maroon); margin-bottom: 10px; font-size: 1.5rem; }
.doctor-card p { color: var(--ink-soft); margin-bottom: 10px; }
.doctor-card ul { margin: 0 0 10px 18px; color: var(--ink-soft); }

.conditions-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.conditions-list span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink-soft);
  font-weight: 600;
}

.diagnostic-section,
.philosophy-section {
  background: #fffdfb;
}

.diagnostic-section h2,
.philosophy-section h2,
.conditions-section h2,
.doctor-section h2,
.contact-section h2 { color: var(--brand-maroon); margin-bottom: 10px; font-size: clamp(1.7rem, 3vw, 2.3rem); }

.diagnostic-section p,
.philosophy-section p,
.contact-section p { color: var(--ink-soft); margin-bottom: 10px; }

.diagnostic-section ul { margin: 0 0 10px 20px; color: var(--ink-soft); }

blockquote {
  margin-top: 14px;
  border-left: 4px solid var(--brand-orange);
  padding: 10px 14px;
  background: #fff6eb;
  color: var(--brand-maroon);
  border-radius: 8px;
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.contact-card h3 { color: var(--brand-maroon); margin-bottom: 6px; }
.contact-card a { color: var(--brand-orange); font-weight: 700; }

#site-footer {
  background: #2f0c12;
  color: rgba(255, 255, 255, 0.84);
  padding: 48px 0 22px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

#site-footer h3,
#site-footer h4 { color: #fff; margin-bottom: 8px; }
#site-footer p,
#site-footer li { color: rgba(255, 255, 255, 0.82); }
#site-footer ul { list-style: none; }
#site-footer a { color: #ffd7ab; }
.footer-line { margin-top: 8px; }
.footer-bottom { padding-top: 12px; font-size: 0.84rem; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.02s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.14s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .hamburger { display: block; }

  .clinics-grid,
  .combined-care-grid,
  .mvw-grid,
  .doctor-grid,
  .contact-grid,
  .conditions-list,
  .footer-inner,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .header-inner { min-height: 84px; }
  main section { padding: 56px 0; }
}
