/* Rooted Waters — see /includes/config.php for version */
/* ============================================================
   Rooted Waters Nurse Advocates — Design System
   Palette: sage + lavender + deep plum (from logo)
   ============================================================ */

:root {
  /* Brand palette */
  --plum-deep: #3d2a4d;      /* logo "Nurse Advocates" text */
  --plum: #6b3a78;           /* logo "Waters" */
  --plum-soft: #8a5e96;
  --sage: #8bbf73;           /* logo "Rooted" leaves */
  --sage-deep: #6fa356;
  --lavender: #b9a7d6;
  --lavender-mist: #ece6f4;  /* airy section wash */
  --water: #3f9fb8;          /* logo water ribbon accent */

  /* Neutrals */
  --ink: #2a2230;
  --slate: #5d5566;
  --mist: #f7f5fa;
  --cloud: #fdfcff;
  --line: #e8e2ef;
  --white: #ffffff;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --maxw: 1180px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -28px rgba(61, 42, 77, 0.35);
  --shadow-sm: 0 8px 24px -16px rgba(61, 42, 77, 0.3);
  --ease: cubic-bezier(0.4, 0, 0.1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cloud);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--plum); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--sage-deep); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.12; color: var(--plum-deep); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.eyebrow {
  font-family: var(--body); font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage-deep);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--sage); border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--slate); max-width: 60ch; }

/* Skip link for accessibility */
.skip { position: absolute; left: -999px; top: 0; background: var(--plum); color: #fff; padding: 0.7rem 1.2rem; border-radius: 0 0 8px 0; z-index: 200; }
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--body); font-weight: 800; font-size: 0.95rem;
  padding: 0.85rem 1.6rem; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; transition: all 0.25s var(--ease); text-align: center;
}
.btn-primary, a.btn-primary, .nav-links a.btn-primary { background: var(--plum); color: #ffffff; box-shadow: var(--shadow-sm); }
.btn-primary:hover, a.btn-primary:hover, .nav-links a.btn-primary:hover { background: var(--plum-deep); color: #ffffff; transform: translateY(-2px); }
.btn-ghost, a.btn-ghost { background: transparent; color: var(--plum); border-color: var(--lavender); }
.btn-ghost:hover, a.btn-ghost:hover { background: var(--lavender-mist); color: var(--plum-deep); border-color: var(--plum-soft); }
.btn-sage, a.btn-sage { background: var(--sage-deep); color: #ffffff; }
.btn-sage:hover, a.btn-sage:hover { background: #5f8e49; color: #ffffff; transform: translateY(-2px); }
/* Ensure nav CTA button keeps white text on hover/current (overrides .nav-links a rules) */
.nav-links a.btn-primary[aria-current="page"] { background: var(--plum); color: #ffffff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 252, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { height: 52px; width: auto; }
.brand-name { font-family: var(--display); font-size: 1.15rem; color: var(--plum-deep); line-height: 1.05; }
.brand-name span { display: block; font-family: var(--body); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-deep); }
.nav-links { display: flex; align-items: center; gap: 0.4rem; list-style: none; }
.nav-links a { font-weight: 700; font-size: 0.92rem; color: var(--slate); padding: 0.5rem 0.85rem; border-radius: 8px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--plum-deep); background: var(--lavender-mist); }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; color: var(--plum-deep); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .site-header { background: var(--cloud); backdrop-filter: none; position: sticky; z-index: 1000; }
  .nav-toggle { display: block; position: relative; z-index: 1002; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(84vw, 330px); height: 100vh; height: 100dvh;
    flex-direction: column; align-items: stretch; gap: 0.25rem; z-index: 1001;
    background: #ffffff; padding: 5.5rem 1.5rem 2rem; box-shadow: -12px 0 40px -20px rgba(61,42,77,0.45);
    transform: translateX(105%); transition: transform 0.35s var(--ease);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 0.9rem 1rem; font-size: 1.05rem; }
  .nav-cta { margin: 0.5rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* Scrim lives on <body> (outside header), so it must sit BELOW the drawer.
   Placed outside the media query with its own z-index below the drawer's. */
.nav-scrim {
  position: fixed; inset: 0; background: rgba(42,34,48,0.45);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease); z-index: 999;
}
.nav-scrim.show { opacity: 1; visibility: visible; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(168deg, var(--mist) 0%, var(--lavender-mist) 55%, #e3f0dc 100%); }
.hero::after {
  content: ""; position: absolute; right: -8%; top: -12%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(139,191,115,0.28), transparent 68%); border-radius: 50%; pointer-events: none;
}
.hero::before {
  content: ""; position: absolute; left: -10%; bottom: -18%; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(185,167,214,0.32), transparent 68%); border-radius: 50%; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); position: relative; z-index: 1; }
.hero h1 { margin-block: 1rem 1.2rem; }
.hero h1 em { font-style: italic; color: var(--plum); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-badge {
  position: absolute; bottom: -22px; left: -18px; background: #fff; border-radius: 14px;
  padding: 0.9rem 1.15rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 0.7rem; max-width: 250px;
}
.hero-badge .dot { width: 38px; height: 38px; border-radius: 50%; background: var(--lavender-mist); display: grid; place-items: center; flex-shrink: 0; }
.hero-badge strong { display: block; font-family: var(--display); color: var(--plum-deep); font-size: 1rem; }
.hero-badge small { color: var(--slate); font-size: 0.78rem; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.5rem; }
  .hero-figure { order: -1; max-width: 320px; margin-inline: auto; }
  .hero-figure img { max-height: 300px; width: auto; object-fit: contain; margin-inline: auto; }
  .hero-badge { left: auto; right: 0; bottom: -18px; max-width: 220px; }
  .stat-row { gap: 1.5rem 2rem; }
}
@media (max-width: 480px) {
  .hero-figure { max-width: 240px; }
  .hero-figure img { max-height: 240px; }
  .hero-badge { position: static; margin-top: 1.25rem; max-width: 100%; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
}

/* ---------- Trust strip ---------- */
.trust { background: var(--plum-deep); color: #fff; }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: center; align-items: center; padding-block: 1.6rem; }
.trust-item { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 0.9rem; color: #f0eaf6; }
.trust-item svg { width: 22px; height: 22px; color: var(--sage); flex-shrink: 0; }

/* ---------- Cards / services ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem; background: var(--lavender-mist); color: var(--plum); }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--slate); font-size: 0.97rem; }
.card.sage .card-icon { background: #e6f1de; color: var(--sage-deep); }
.card.water .card-icon { background: #def0f4; color: var(--water); }

/* Section heading block */
.sec-head { max-width: 64ch; margin-bottom: 2.6rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin-block: 0.8rem 0.7rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-size: 1.5rem; color: var(--sage-deep);
  background: #e6f1de; width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; font-weight: 600;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.step p { color: var(--slate); font-size: 0.96rem; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; display: grid; gap: 0.85rem; margin-top: 1.4rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink); }
.checklist svg { width: 22px; height: 22px; color: var(--sage-deep); flex-shrink: 0; margin-top: 2px; }

/* ---------- Section washes ---------- */
.wash-lav { background: var(--lavender-mist); }
.wash-mist { background: var(--mist); }
.wash-sage { background: linear-gradient(135deg, #eef5e8, #e6f1de); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--plum) 0%, var(--plum-deep) 100%); color: #fff; border-radius: var(--radius); padding: clamp(2.5rem, 5vw, 4rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -6%; top: -40%; width: 360px; height: 360px; background: radial-gradient(circle, rgba(139,191,115,0.3), transparent 70%); border-radius: 50%; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #e8def0; max-width: 52ch; margin: 0.9rem auto 1.8rem; position: relative; }
.cta-band .btn-primary { background: #fff; color: var(--plum-deep); position: relative; }
.cta-band .btn-primary:hover { background: var(--sage); color: var(--plum-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-deep); color: #d9cfe4; padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-family: var(--body); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: #d9cfe4; }
.site-footer a:hover { color: var(--sage); }
.footer-links { list-style: none; display: grid; gap: 0.6rem; font-size: 0.93rem; }
.footer-brand img { height: auto; width: 150px; max-width: 60%; background: #fff; padding: 10px; border-radius: 12px; margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: 0.9rem; max-width: 32ch; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,0.1); color: #fff; transition: all 0.25s var(--ease);
}
.footer-social a:hover { background: var(--sage); color: var(--plum-deep); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 0.82rem; color: #b3a6c4; }
.footer-disclaimer { font-size: 0.78rem; color: #9d8fb0; max-width: 70ch; margin-top: 0.5rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: linear-gradient(168deg, var(--lavender-mist), var(--mist)); padding-block: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.page-hero h1 { margin-block: 0.8rem 0.8rem; }
.page-hero .lead { margin-inline: auto; }
.breadcrumb { font-size: 0.85rem; color: var(--slate); }
.breadcrumb a { font-weight: 700; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--plum-deep); margin-bottom: 0.45rem; }
.field .req { color: var(--plum); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: 0.8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cloud); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--plum-soft); box-shadow: 0 0 0 3px rgba(138,94,150,0.15); }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--slate); margin-top: 0.4rem; }
.form-status { padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.92rem; margin-bottom: 1.2rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e6f1de; color: var(--sage-deep); }
.form-status.err { background: #fbe9ec; color: #b03a4e; }

.privacy-callout { background: var(--lavender-mist); border-left: 4px solid var(--plum-soft); border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-size: 0.9rem; color: var(--slate); margin-bottom: 1.5rem; display: flex; gap: 0.7rem; }
.privacy-callout svg { width: 22px; height: 22px; color: var(--plum); flex-shrink: 0; }

/* HIPAA warning — warm amber "heads up" tone, placed before submit */
.hipaa-notice {
  display: flex; gap: 0.7rem; align-items: flex-start;
  background: #fdf6ec; border: 1.5px solid #efd8b0; border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem; margin-bottom: 1.3rem;
  font-size: 0.88rem; line-height: 1.5; color: #7a5a22;
}
.hipaa-notice strong { color: #6b4d1c; }
.hipaa-notice svg { width: 22px; height: 22px; color: #c8881f; flex-shrink: 0; margin-top: 1px; }

/* ---------- Contact layout ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.info-block { display: grid; gap: 1.6rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--lavender-mist); color: var(--plum); display: grid; place-items: center; flex-shrink: 0; }
.info-item .ic svg { width: 22px; height: 22px; }
.info-item strong { display: block; color: var(--plum-deep); font-family: var(--display); font-size: 1.1rem; }
.info-item span, .info-item a { color: var(--slate); font-size: 0.95rem; }

/* ---------- Pricing ---------- */
/* Free discovery call banner — prominent, above the pricing tiers */
.discovery-banner {
  display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap;
  background: linear-gradient(120deg, #eef5e8 0%, #e3f0dc 100%);
  border: 2px solid var(--sage); border-radius: var(--radius);
  padding: 1.4rem 1.8rem; margin-bottom: 2.5rem; box-shadow: var(--shadow-sm);
}
.discovery-badge {
  background: var(--sage-deep); color: #fff; font-weight: 800; font-size: 1.05rem;
  padding: 0.5rem 1.2rem; border-radius: 100px; letter-spacing: 0.04em; flex-shrink: 0;
  text-transform: uppercase;
}
.discovery-text { flex: 1; min-width: 240px; }
.discovery-text strong { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--plum-deep); line-height: 1.2; }
.discovery-text span { color: var(--slate); font-size: 0.95rem; }
.discovery-banner .btn { flex-shrink: 0; }
@media (max-width: 620px) {
  .discovery-banner { flex-direction: column; align-items: flex-start; text-align: left; }
  .discovery-banner .btn { width: 100%; justify-content: center; }
}

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
@media (max-width: 980px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; display: flex; flex-direction: column; position: relative; }
.price-card.featured { border-color: var(--plum-soft); box-shadow: var(--shadow); }
.price-card.featured::before { content: "Most requested"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--sage-deep); color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.9rem; border-radius: 100px; white-space: nowrap; }
.price-card h3 { margin-bottom: 0.4rem; }
.price-card .price { font-family: var(--display); font-size: 2.2rem; color: var(--plum); margin-block: 0.6rem; }
.price-card .price small { font-family: var(--body); font-size: 0.9rem; color: var(--slate); font-weight: 600; }
.price-card .price.tbd { font-size: 1.5rem; color: var(--slate); }
.price-card ul { list-style: none; display: grid; gap: 0.7rem; margin: 1.2rem 0 1.8rem; }
.price-card li { display: flex; gap: 0.6rem; font-size: 0.93rem; color: var(--slate); }
.price-card li svg { width: 20px; height: 20px; color: var(--sage-deep); flex-shrink: 0; }
.price-card .btn { margin-top: auto; justify-content: center; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
a.post-card { text-decoration: none; color: inherit; cursor: pointer; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--lavender-mist), #e6f1de); display: grid; place-items: center; color: var(--plum-soft); overflow: hidden; }
.post-thumb svg { width: 48px; height: 48px; opacity: 0.6; }
.post-thumb-icon svg { width: 48px; height: 48px; opacity: 0.6; }
.post-thumb-image { padding: 0; }
.post-thumb-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-tag { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 0.6rem; }
.post-body h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.post-body p { color: var(--slate); font-size: 0.93rem; flex: 1; }
.post-meta { margin-top: 1.1rem; font-size: 0.82rem; color: var(--slate); display: flex; gap: 0.5rem; align-items: center; }

.blog-article { max-width: 720px; }
.blog-article p { margin-top: 1.2rem; color: var(--slate); line-height: 1.75; font-size: 1.02rem; }
.blog-article p:first-child { margin-top: 0; }
.page-hero .post-tag { display: inline-block; margin-bottom: 0.8rem; }
.post-hero-meta { font-size: 0.95rem !important; margin-top: 0.5rem; }

/* ---------- Login ---------- */
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 880px) { .login-shell { grid-template-columns: 1fr; } }
.login-aside { background: linear-gradient(160deg, var(--plum) 0%, var(--plum-deep) 100%); color: #fff; padding: clamp(2.5rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-aside::after { content: ""; position: absolute; right: -20%; bottom: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(139,191,115,0.25), transparent 70%); border-radius: 50%; }
.login-aside img { height: auto; width: 130px; max-width: 50%; background: #fff; padding: 10px; border-radius: 12px; display: block; }
.login-aside h2 { color: #fff; position: relative; }
.login-aside p { color: #e3d8ee; position: relative; max-width: 38ch; }
.login-main { display: grid; place-items: center; padding: clamp(2rem, 5vw, 4rem); background: var(--cloud); }
.login-box { width: 100%; max-width: 400px; }
.login-box h1 { font-size: 2rem; margin-bottom: 0.4rem; }
.login-box .sub { color: var(--slate); margin-bottom: 2rem; }
.login-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; font-size: 0.88rem; }
.login-meta label { display: flex; gap: 0.5rem; align-items: center; color: var(--slate); font-weight: 600; }
.secure-note { display: flex; align-items: center; gap: 0.5rem; justify-content: center; font-size: 0.82rem; color: var(--slate); margin-top: 1.8rem; }
.secure-note svg { width: 16px; height: 16px; color: var(--sage-deep); }

/* ---------- Misc reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Rich text from CMS */
.rich-text img { max-width: 100%; height: auto; border-radius: var(--radius-sm, 8px); margin: 0.75rem 0; }
.rich-text p { margin-bottom: 0.85em; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text ul, .rich-text ol { margin: 0.75em 0 0.75em 1.2em; color: var(--slate); }
.rich-text a { color: var(--plum); font-weight: 600; }

.stat-row { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2rem; }
.stat strong { display: block; font-family: var(--display); font-size: 2.4rem; color: var(--plum); line-height: 1; }
.stat span { font-size: 0.88rem; color: var(--slate); font-weight: 600; }

/* ---------- Error pages ---------- */
.error-hero { padding-block: clamp(3rem, 8vw, 5rem); }
.error-panel {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--shadow-sm);
}
.error-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--lavender-mist), #e6f1de);
  color: var(--plum-soft);
}
.error-icon-svg { width: 36px; height: 36px; }
.error-code {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1;
  color: var(--plum);
  margin-bottom: 0.5rem;
  opacity: 0.35;
}
.error-panel .eyebrow { justify-content: center; }
.error-panel h1 { margin-top: 0.6rem; margin-bottom: 0.8rem; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.error-panel .lead { margin-inline: auto; }
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.6rem;
}
.error-support {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  color: var(--slate);
}
.error-support a { font-weight: 700; }
.error-links .sec-head { margin-bottom: 2rem; }
.error-link-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.error-link-card:hover {
  color: inherit;
  transform: translateY(-4px);
}
.error-link-card h3 { margin-bottom: 0.45rem; }
.error-link-card p { color: var(--slate); font-size: 0.95rem; }
.error-link-card .card-icon svg { width: 26px; height: 26px; }
