/* ==========================================================================
   Dr. Sheena Susan Andrews — site-wide design system
   ========================================================================== */

:root {
  --teal-900: #003b32;
  --teal-800: #004d40;
  --teal-600: #00796b;
  --teal-500: #009688;
  --teal-100: #e0f2f1;
  --teal-50: #f2fbfa;
  --amber-600: #c9861a;
  --amber-100: #fdf1de;
  --ink: #223;
  --ink-soft: #55606a;
  --line: #e4e9e8;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(0, 61, 51, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 61, 51, 0.10);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: var(--teal-800);
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

a { color: var(--teal-600); }
a:hover { color: var(--teal-800); }

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--teal-900);
  color: #cfe9e4;
  font-size: 13px;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px;
}
.topbar a { color: #cfe9e4; text-decoration: none; margin-left: 18px; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .topbar-left span { margin-right: 18px; }

/* ---------- Header / nav ---------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 24px;
}
.brand {
  display: flex; flex-direction: column; text-decoration: none;
  flex: 0 0 auto; white-space: nowrap;
}
.brand .brand-name { font-size: 18px; font-weight: 700; margin: 0; line-height: 1.2; }
.brand .brand-sub { font-size: 11.5px; color: var(--ink-soft); letter-spacing: 0.02em; }

nav.main-nav {
  display: flex; align-items: center; gap: 20px;
  flex: 1 1 auto; justify-content: flex-end;
}
nav.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}
nav.main-nav a:hover { color: var(--teal-600); }
nav.main-nav a.nav-cta {
  background: var(--teal-600); color: #fff; padding: 9px 18px; border-radius: 30px;
  flex: 0 0 auto;
}
nav.main-nav a.nav-cta:hover { background: var(--teal-800); color: #fff; }

/* ---- "Conditions" dropdown (desktop: hover, mobile: inline) ---- */
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-dropdown-toggle {
  display: flex; align-items: center; gap: 5px; cursor: pointer;
  background: none; border: none; font: inherit; color: var(--ink); padding: 0;
}
.nav-dropdown > .nav-dropdown-toggle:hover { color: var(--teal-600); }
.nav-dropdown .caret { font-size: 9px; margin-top: 1px; transition: transform .15s ease; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md);
  min-width: 230px; padding: 8px; z-index: 60;
  opacity: 0; visibility: hidden; transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown:hover .caret { transform: rotate(180deg); }
.nav-dropdown-menu a {
  display: block; padding: 9px 12px; border-radius: 7px; font-size: 14px; font-weight: 600;
}
.nav-dropdown-menu a:hover { background: var(--teal-50); color: var(--teal-800); }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none; cursor: pointer; font-size: 26px; color: var(--teal-800); flex: 0 0 auto;
}

@media (max-width: 980px) {
  .nav-row { flex-wrap: wrap; }
  nav.main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 16px 24px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    gap: 4px; justify-content: flex-start;
  }
  .nav-toggle:checked ~ nav.main-nav { display: flex; }
  .nav-toggle-label { display: block; }
  nav.main-nav a.nav-cta { align-self: flex-start; margin-top: 8px; }

  /* Dropdown becomes a plain expanded sub-list on mobile */
  .nav-dropdown { width: 100%; }
  .nav-dropdown > .nav-dropdown-toggle { padding: 10px 0; width: 100%; justify-content: space-between; }
  .nav-dropdown-menu,
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    position: static; left: auto; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: var(--teal-50); width: 100%;
    padding: 4px 0 4px 14px; margin-bottom: 4px; display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown.open .caret { transform: rotate(180deg); }
  nav.main-nav a { padding: 10px 0; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--teal-50), var(--teal-100) 60%, #fff);
  padding: 56px 0 44px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-block; background: var(--amber-100); color: var(--amber-600);
  font-weight: 700; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 14px;
}
.hero h1 { font-size: 2.3rem; margin-bottom: 10px; }
.hero .lede { font-size: 17px; color: var(--ink-soft); max-width: 46ch; margin-bottom: 22px; }
.hero-photo-wrap {
  position: relative;
  width: 100%; max-width: 300px; margin: 0 auto;
}
.hero-photo-wrap::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  background: linear-gradient(135deg, var(--amber-100), var(--teal-100));
  border-radius: var(--radius); z-index: 0;
}
.hero-photo {
  position: relative; z-index: 1;
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md);
  aspect-ratio: 1/1; object-fit: cover; object-position: top center; background: var(--teal-100);
  border: 6px solid #fff;
}
@media (max-width: 820px) { .hero-photo-wrap { max-width: 240px; } }

.btn {
  display: inline-block; font-weight: 700; text-decoration: none; border-radius: 30px;
  padding: 13px 26px; font-size: 15px; transition: all .2s ease;
}
.btn-primary { background: var(--teal-600); color: #fff; }
.btn-primary:hover { background: var(--teal-800); color: #fff; }
.btn-ghost { background: #fff; color: var(--teal-700, var(--teal-600)); border: 2px solid var(--teal-600); }
.btn-ghost:hover { background: var(--teal-50); color: var(--teal-800); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 34px;
}
@media (max-width: 700px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-card .num { font-family: 'Poppins', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--teal-700, var(--teal-800)); }
.stat-card .label { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

/* ---------- Sections ---------- */
section { padding: 52px 0; }
section.alt { background: var(--teal-50); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.section-head h2 { font-size: 1.7rem; }
.section-head p { color: var(--ink-soft); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--teal-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--teal-700, var(--teal-800)); }
.card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.card ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; }
.card a.card-link { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 700; text-decoration: none; }

.doctor-card { text-align: center; }
.doctor-card .avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--teal-100); display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--teal-800); font-size: 22px;
  overflow: hidden;
}
.doctor-card .avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 3px solid #fff; box-shadow: var(--shadow-sm);
}
.doctor-card .role { color: var(--amber-600); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.doctor-card .desc { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Condition / disease cards ---------- */
.condition-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
@media (max-width: 900px) { .condition-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .condition-grid { grid-template-columns: repeat(2, 1fr); } }
.condition-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-align: center; text-decoration: none; display: block;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease;
}
.condition-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.condition-card .thumb {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
}
.condition-card .label {
  padding: 10px 8px; font-size: 12.5px; font-weight: 700; color: var(--teal-800);
  font-family: 'Poppins', sans-serif;
}
.image-note { text-align: center; font-size: 12px; color: var(--ink-soft); margin-top: 12px; font-style: italic; }

.article-figure { margin: 22px 0; }
.article-figure img {
  width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.article-figure figcaption { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; text-align: center; font-style: italic; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.badge {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: 6px 14px; font-size: 12.5px; font-weight: 600; color: var(--teal-800);
}

.prose h2 { font-size: 1.35rem; margin-top: 30px; }
.prose p, .prose li { color: var(--ink); font-size: 16px; }
.prose ul { padding-left: 20px; }

.callout {
  background: var(--teal-800); color: #eafaf6; border-radius: var(--radius);
  padding: 34px; text-align: center; margin-top: 10px;
}
.callout h2 { color: #fff; }
.callout p { color: #c8e6df; max-width: 50ch; margin: 0 auto 18px; }

.breadcrumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.disclaimer {
  font-size: 12.5px; color: #8a8f8e; border-top: 1px solid var(--line);
  padding-top: 14px; margin-top: 30px;
}

/* ---------- Footer ---------- */
footer.site-footer { background: var(--teal-900); color: #bfe1d9; padding: 46px 0 22px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
footer.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; font-family: 'Poppins', sans-serif; }
footer.site-footer a { color: #bfe1d9; text-decoration: none; font-size: 13.5px; }
footer.site-footer a:hover { color: #fff; text-decoration: underline; }
footer.site-footer li { margin-bottom: 8px; list-style: none; }
footer.site-footer ul { padding: 0; margin: 0; }
footer.site-footer p { font-size: 13.5px; margin: 0 0 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 30px; padding-top: 16px;
  font-size: 12.5px; color: #8fbdb2; text-align: center;
}
