:root {
  --bg: #eef7f5;
  --bg-deep: #dcefeb;
  --surface: rgba(255,255,255,.88);
  --surface-solid: #ffffff;
  --text: #1f2f2d;
  --muted: #60736f;
  --line: rgba(53, 102, 92, .16);
  --primary: #2b7468;
  --primary-dark: #1f5d54;
  --accent: #b9ded6;
  --warning: #8c5a3c;
  --shadow: 0 20px 55px rgba(38, 84, 75, .12);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(196, 229, 222, .55), transparent 26%),
    radial-gradient(circle at 92% 22%, rgba(215, 236, 232, .75), transparent 30%),
    linear-gradient(180deg, #f7fbfa 0%, var(--bg) 38%, #f8fbfa 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; transition: .2s ease; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  backdrop-filter: blur(16px);
  background: rgba(247, 251, 250, .9);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.03em;
  color: var(--text);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav li { margin: 0; padding: 0; }
nav a {
  display: inline-block;
  padding: .5rem .3rem;
  color: var(--text);
  font-weight: 600;
  font-size: .96rem;
  position: relative;
}
nav a::after {
  content: "";
  position: absolute;
  left: .3rem;
  right: .3rem;
  bottom: .3rem;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
nav a:hover::after { transform: scaleX(1); }

.hero-section { padding: 2.5rem 0 1rem; }
.hero-section h1,
.section-heading h2,
.content-section h2,
.alert-panel h2 {
  letter-spacing: -.04em;
  line-height: 1.08;
  font-weight: 800;
}
.hero-section h1 { font-size: clamp(2.6rem, 5vw, 5.4rem); max-width: 900px; }
.hero-section .lead { font-size: 1.18rem; color: var(--muted); max-width: 840px; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .75rem;
}

.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.card-surface,
.info-card,
.step-card,
.side-card,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-visual { overflow: hidden; }
.hero-visual img,
.image-panel img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.visual-caption { padding: 1rem 1.2rem; color: var(--muted); }

.medical-note {
  max-width: 820px;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.section-heading { max-width: 840px; }
.section-heading p { color: var(--muted); }
.quick-facts-section,
.content-section { position: relative; }
.soft-section { background: linear-gradient(180deg, rgba(226, 242, 238, .55), rgba(242, 248, 246, .45)); }

.info-card,
.step-card,
.side-card,
.stat-card { padding: 1.5rem; }
.info-card h3,
.step-card h3,
.side-card h3,
.resource-links h3,
.check-panel h3 { font-size: 1.2rem; font-weight: 800; }
.card-number { font-size: .82rem; font-weight: 800; color: var(--primary); }
.step-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 1rem;
}

.content-list { padding-left: 1.2rem; margin-bottom: 0; }
.content-list li { margin-bottom: .55rem; }
.content-list.compact li { margin-bottom: .35rem; }
.long-copy p:last-child { margin-bottom: 0; }
.padded { padding: 1.6rem; }
.callout-box,
.check-panel {
  padding: 1.4rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
}
.side-card.warning { border-color: rgba(140, 90, 60, .2); background: rgba(255, 250, 247, .92); }

.accordion-item {
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  overflow: hidden;
  margin-bottom: .8rem;
  background: rgba(255,255,255,.8);
}
.accordion-button { font-weight: 700; background: rgba(255,255,255,.7); }
.accordion-button:not(.collapsed) { color: var(--primary-dark); background: rgba(216, 239, 234, .7); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(43,116,104,.12); }

.alert-panel {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), #3b8b7d);
  color: #fff;
  padding: 2rem;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.alert-panel .eyebrow { color: #d9f3ed; }
.alert-panel p { max-width: 900px; color: rgba(255,255,255,.9); }

.resource-links { padding: 1.4rem; }
.resource-links a {
  display: block;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.resource-links a:last-child { border-bottom: 0; }

.site-footer {
  margin-top: 2rem;
  background: #163b35;
  color: #d6e7e3;
}
.footer-brand { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; font-weight: 800; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #c6ddd8; }
.site-footer a:hover { color: #fff; }
.social-links { display: grid; gap: .55rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .92rem;
  color: #a9c3bd;
}

#backToTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  display: none;
  z-index: 1030;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 991.98px) {
  .site-header { position: static; }
  nav ul { gap: .15rem .65rem; }
  .hero-section { padding-top: 1rem; }
  .alert-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 575.98px) {
  .hero-section h1 { font-size: 2.55rem; }
  .info-card,
  .step-card,
  .side-card,
  .stat-card,
  .padded { padding: 1.2rem; }
  .card-surface,
  .info-card,
  .step-card,
  .side-card,
  .stat-card { border-radius: 18px; }
}
