/* ============================================================
   Rizzuto Psychiatry and Wellness — main stylesheet
   Calm, professional wellness aesthetic.
   Palette:
     --teal-900  deep teal (primary brand)
     --teal-700  teal (buttons, links)
     --teal-100  pale teal (tinted sections)
     --cream     warm neutral page background
     --sand      warm neutral alt section
     --ink       primary text
     --muted     secondary text
     --gold      warm accent (sparingly)
   ============================================================ */

:root {
  --teal-900: #0c4f4c;
  --teal-700: #0f766e;
  --teal-600: #149085;
  --teal-100: #e3efec;
  --teal-50:  #f0f7f5;
  --cream:    #faf8f4;
  --sand:     #f2ede4;
  --ink:      #22312f;
  --muted:    #5b6b69;
  --gold:     #c39a5b;
  --white:    #ffffff;
  --border:   #e2dccf;
  --danger:   #b3402e;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(12, 79, 76, 0.08);
  --shadow-md: 0 8px 28px rgba(12, 79, 76, 0.10);
  --max-width: 1140px;
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  overflow-x: clip;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--teal-900);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-900); }

/* Visible, consistent keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link for screen readers / keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal-900);
  color: #fff;
  padding: 0.7rem 1.2rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.container {
  width: min(var(--max-width), 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--teal-50); }
.section--sand { background: var(--sand); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 0.8rem;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 44rem; }
.hero-subhead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--teal-700);
  margin: 0.4rem 0 1rem;
}
.provider-specialty {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--teal-700);
  letter-spacing: 0.04em;
  margin: -0.4rem 0 1rem;
}
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary {
  background: var(--teal-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--teal-900); color: #fff; transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--teal-900);
  border-color: var(--teal-700);
}
.btn--outline:hover { background: var(--teal-100); color: var(--teal-900); }
.btn--light {
  background: #fff;
  color: var(--teal-900);
}
.btn--light:hover { background: var(--teal-50); color: var(--teal-900); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header .container {
  width: min(86rem, 100% - 2rem);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--teal-900);
  flex: none;
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  flex: none;
}
img.brand-mark {
  object-fit: cover;
  padding: 0;
}
/* Straight serif "f" to replace the wavy Fraunces "f" in display type */
.f-fix { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.brand-text { line-height: 1.15; white-space: nowrap; }
.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}
.brand-text small {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  color: var(--teal-900);
}
.nav-toggle svg { display: block; width: 22px; height: 22px; }

.main-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.main-nav a {
  display: block;
  padding: 0.5rem 0.45rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--teal-100); color: var(--teal-900); }
.main-nav a[aria-current="page"] {
  background: var(--teal-900);
  color: #fff;
}
.nav-cta { margin-left: 0.35rem; }
.nav-cta .btn { padding: 0.6rem 1.3rem; font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, var(--teal-100) 0%, transparent 60%),
    radial-gradient(800px 420px at -10% 110%, var(--sand) 0%, transparent 55%),
    var(--cream);
  padding: clamp(1.25rem, 3vw, 2.25rem) 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: 0.35em; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.12; }
.hero h1 .accent { color: var(--teal-600); font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.2rem; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 1.2rem; padding: 0; list-style: none;
}
.hero-badges li {
  font-size: 0.88rem; font-weight: 600;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  color: var(--teal-900);
  box-shadow: var(--shadow-sm);
}
.hero-art {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: var(--teal-100);
  min-height: 260px;
  position: relative;
}
/* Decorative abstract panel (replace with real photography later) */
.hero-art .art-inner {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(20,144,133,0.35), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(195,154,91,0.35), transparent 50%),
    linear-gradient(140deg, var(--teal-100), var(--sand));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}
.hero-art .art-inner p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--teal-900);
  max-width: 20rem;
  margin: 0;
}

/* ---------- Flip card (hero quotes) ---------- */
.flip-card { perspective: 1400px; }
.flip-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.9s ease;
}
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-face.flip-back { transform: rotateY(180deg); }
.flip-back p { font-size: 1.02rem; max-width: 24rem; }
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); }
a.card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
a.card .card-more {
  font-weight: 600;
  color: var(--teal-700);
  margin-top: 0.8rem;
  font-size: 0.95rem;
}

/* ---------- Blog ---------- */
.post-card { padding: 0; overflow: hidden; }
.post-card img { width: 100%; height: 210px; object-fit: cover; }
.post-card .post-body { padding: 1.4rem 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.5rem; }
.post-card h3 { margin: 0 0 0.5rem; }
.post-card .post-body > p { color: var(--muted); font-size: 0.99rem; flex: 1; margin: 0 0 0.5rem; }
.article-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin: 0 0 2rem; }
.article-img--full { max-height: none; object-fit: contain; }
.prose p { line-height: 1.8; font-size: 1.04rem; margin: 0 0 1.3rem; color: var(--ink); }
.prose .signature { font-style: italic; font-family: var(--font-display); font-size: 1.25rem; }
.prose .post-note { font-size: 0.85rem; color: var(--muted); margin-top: 2rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-weight: 600; color: var(--teal-700); }

/* ---------- Condition detail pages ---------- */
.container.narrow { max-width: 44rem; }
.muted { color: var(--muted); }
.paper-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.25rem;
}
.paper-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.paper-list .paper-title { font-weight: 700; font-size: 1.05rem; margin: 0 0 0.3rem; }
.paper-list .paper-title a { color: var(--teal-800); }
.paper-list .paper-cite { font-size: 0.88rem; color: var(--muted); margin: 0 0 0.5rem; }
.paper-list .paper-finding { margin: 0; font-size: 0.98rem; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--teal-100);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
  color: var(--teal-700);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.99rem; flex: 1; }
.card .card-link { font-weight: 600; margin-top: 0.6rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ---------- Split (about snippet) ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.portrait {
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--teal-100), var(--sand));
  border: 1px solid var(--border);
  min-height: 380px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--teal-900);
  box-shadow: var(--shadow-sm);
}
.portrait p { font-style: italic; font-family: var(--font-display); font-size: 1.2rem; }
img.portrait {
  width: 100%;
  min-height: 380px;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
  display: block;
  padding: 0;
}
.checklist { list-style: none; padding: 0; margin: 1.4rem 0; }
.checklist li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.7rem;
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  font-weight: 700;
  display: grid; place-items: center;
  font-size: 0.85rem;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.testimonial {
  background: #fff;
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  position: relative;
}
.testimonial .stars { color: var(--gold); letter-spacing: 0.2em; margin-bottom: 0.7rem; }
.testimonial blockquote { margin: 0 0 1rem; font-style: italic; color: var(--muted); }
.testimonial cite { font-style: normal; font-weight: 600; font-size: 0.92rem; color: var(--teal-900); }
.placeholder-flag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #fdf3e3;
  color: #8a5a17;
  border: 1px solid #ecd9ae;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.8rem;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 2.2rem auto 0; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  color: var(--teal-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 36rem; margin: 0 auto 1.8rem; }
.cta-band .btn--light { margin: 0 0.4rem 0.6rem; }

/* ---------- Service detail ---------- */
.service-detail {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.service-detail h2 { display: flex; align-items: center; gap: 0.8rem; }
.service-detail h2 .card-icon { margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
.two-col h3 { font-size: 1.12rem; font-family: var(--font-body); font-weight: 700; color: var(--teal-900); }
.note-box {
  background: var(--teal-50);
  border-left: 4px solid var(--teal-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.3rem;
  margin-top: 1.5rem;
  font-size: 0.97rem;
  color: var(--muted);
}
.note-box strong { color: var(--teal-900); }

/* ---------- Forms ---------- */
.form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-sm);
  max-width: 680px;
}
.form-field { margin-bottom: 1.3rem; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--teal-900);
}
.form-field label .req { color: var(--danger); }
.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--teal-600);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 144, 133, 0.18);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-hint { font-size: 0.87rem; color: var(--muted); margin-top: 0.35rem; }
.privacy-notice {
  background: #fff8ec;
  border: 1px solid #ecd9ae;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.93rem;
  color: #6b4d16;
  margin-bottom: 1.5rem;
}
.privacy-notice strong { display: block; margin-bottom: 0.25rem; color: #6b4d16; }
.form-status {
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.3rem;
  display: none;
  font-size: 0.96rem;
}
.form-status--success { display: block; background: var(--teal-50); border: 1px solid var(--teal-600); color: var(--teal-900); }
.form-status--error { display: block; background: #fdf0ee; border: 1px solid var(--danger); color: #7c2d20; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}
.site-footer h3, .site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-brand { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1rem; }
.footer-brand .brand-mark { background: rgba(255,255,255,0.14); }
.footer-brand strong { font-family: var(--font-display); color: #fff; font-size: 1.1rem; }
.disclaimer {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding: 1.6rem 0 2rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}
.disclaimer p { margin-bottom: 0.7em; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.8rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--teal-50), var(--cream));
  border-bottom: 1px solid var(--border);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  text-align: center;
}
.page-hero p.lead { margin: 0 auto; }

/* ---------- Contact layout ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-info .card { margin-bottom: 1.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 240px; order: -1; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 1280px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 0.8rem; gap: 0.2rem; }
  .main-nav a { padding: 0.8rem 1rem; }
  .main-nav a[aria-current="page"] { border-radius: var(--radius-sm); }
  .nav-cta { margin: 0.4rem 0 0; }
  .nav-cta .btn { display: block; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

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

/* ============ Medication education page ============ */
.med-frame {
  background: var(--teal-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  font-size: 1.02rem;
}
.med-class { margin-top: 3rem; }
.med-class__head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.4rem; }
.med-dot { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.med-class__head h2 { margin: 0; font-size: 1.7rem; }
.med-blurb { color: var(--muted); max-width: 62ch; margin-bottom: 1.6rem; }
.med-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.3rem;
}
.med-card {
  --accent: var(--teal-700);
  background: #fff;
  border: 1px solid var(--border);
  border-top: 6px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.med-card.accent-teal  { --accent: #0f766e; }
.med-card.accent-gold  { --accent: #c39a5b; }
.med-card.accent-plum  { --accent: #8a5aa8; }
.med-card.accent-sky   { --accent: #3f7fae; }
.med-card.accent-sage  { --accent: #6a9a6b; }
.med-card h3 { margin: 0; font-size: 1.3rem; text-transform: capitalize; }
.med-brand {
  display: inline-block;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  align-self: flex-start;
}
.med-card p { margin: 0; font-size: 0.97rem; }
.med-label { font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); margin-bottom: -0.35rem; }
.med-halflife {
  margin-top: auto;
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  font-size: 0.92rem;
}
.med-halflife strong { color: var(--accent); }
.med-notes { margin: 0; padding-left: 1.1rem; font-size: 0.93rem; color: var(--muted); }
.med-notes li { margin-bottom: 0.35rem; }
.prn-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  margin-bottom: 1.6rem;
}
@media (max-width: 700px) { .prn-split { grid-template-columns: 1fr; } }
.prn-box {
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border);
}
.prn-box h3 { margin-top: 0; }
.prn-box.prn-asneeded { background: #f3ecf8; border-top: 6px solid #8a5aa8; }
.prn-box.prn-daily { background: #eef5ee; border-top: 6px solid #6a9a6b; }
.med-jump { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.6rem 0 0; }
.med-jump a {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
}
.med-jump a:hover { border-color: var(--teal-600); color: var(--teal-700); }

/* ============ Medication page additions ============ */
.med-card.accent-terra   { --accent: #b4643a; }
.med-card.accent-indigo  { --accent: #5b6bb8; }
.med-card.accent-rose    { --accent: #b4506a; }
.boost-box {
  background: linear-gradient(135deg, #fdf6f0, #f7ecec);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  margin: 3rem 0 0;
}
.boost-box h2 { margin-top: 0; }
.boost-box .btn { margin-top: 0.6rem; }
.med-table-wrap { overflow-x: auto; margin-bottom: 2rem; border-radius: var(--radius); border: 1px solid var(--border); }
.med-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.94rem; min-width: 640px; }
.med-table caption { text-align: left; font-weight: 700; font-size: 1.15rem; padding: 1rem 1.2rem; background: var(--cream); }
.med-table th { text-align: left; padding: 0.7rem 1rem; background: var(--teal-50); color: var(--teal-900); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.med-table td { padding: 0.8rem 1rem; border-top: 1px solid var(--border); vertical-align: top; }
.med-table tr:nth-child(even) td { background: #fdfcfa; }
.med-table td.med-gen { font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.med-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700; border-radius: 999px;
  padding: 0.15rem 0.65rem; margin-bottom: 0.3rem;
}
.med-tag.tag-stim { background: #e8f3ef; color: #0f766e; }
.med-tag.tag-nonstim { background: #f3ecf8; color: #8a5aa8; }
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
}
.food-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.3rem 1.35rem; box-shadow: var(--shadow-sm);
}
.food-card h3 { margin-top: 0; font-size: 1.12rem; }
.food-card p { font-size: 0.95rem; margin-bottom: 0; }
.food-card.warn { border-top: 6px solid var(--danger); }
.food-card.info { border-top: 6px solid var(--gold); }
.med-dose {
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  font-size: 0.92rem;
}
.med-dose strong { color: var(--accent, var(--teal-700)); }
.med-clear {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  font-size: 0.92rem;
}
.med-clear strong { color: var(--accent, var(--teal-700)); }
.table-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0.5rem 0 1.5rem;
}
.table-note strong { color: var(--accent, var(--teal-700)); }

/* ================= THEME SAMPLE (Elizabeth's pick) =================
   Bold left/right two tone: soft mint on the left, warm cream on the right. */
:root {
  --teal-900: #175e57;
  --teal-700: #1d7f73;
  --teal-600: #2a9c8d;
  --teal-100: #cfe7e0;
  --teal-50:  #e9f4f0;
  --cream:    #fbf8ee;
  --sand:     #f2e4c8;
  --ink:      #2e3d3a;
  --muted:    #5f6f6c;
  --gold:     #c39a5b;
  --white:    #ffffff;
  --border:   #e3d5b6;
  --shadow-sm: 0 1px 3px rgba(146, 116, 66, 0.10);
  --shadow-md: 0 8px 28px rgba(146, 116, 66, 0.12);
}
/* Left/right two tone wash used across hero bands */
:root {
  --two-tone: linear-gradient(90deg, #c4e2d9 0%, #d8ece5 40%, #f1e6cb 60%, #eedcB8 100%);
}
body {
  background: #faf6ea;
  color: var(--ink);
}
.site-header { background: rgba(250, 246, 234, 0.95); }
/* Homepage hero: mint left, cream right */
.hero { background: var(--two-tone); }
/* Interior page heroes: mint left, cream right */
.page-hero {
  background: var(--two-tone);
  border-bottom: 1px solid var(--border);
}
/* CTA band: mint left, cream right */
.cta-band {
  background: var(--two-tone);
  border: 1px solid var(--border);
}
.cta-band h2 { color: var(--teal-900); }
.cta-band p { color: var(--muted); }
.cta-band .kicker { color: var(--teal-700); }
/* Alternating sections: mint left, cream right */
.section--alt { background: var(--two-tone); }
/* Footer stays warm light and readable */
.site-footer { background: #ece0c2; color: var(--muted); }
.site-footer h3, .site-footer h4 { color: var(--teal-900); }
.footer-brand strong { color: var(--teal-900); }
.footer-brand .brand-mark { background: rgba(23, 94, 87, 0.12); color: var(--teal-900); }
.site-footer a { color: var(--teal-700); }
.footer-bottom { border-top: 1px solid var(--border); color: var(--muted); }
.disclaimer { border-top: 1px solid var(--border); color: var(--muted); }
/* Cards pick up the warm tint */
.card, .condition-card, .med-card, .blog-card, .quote-card {
  background: #fffdf8;
  border-color: var(--border);
}
