/* =============================================================
   AskSara.care — Global shell styles
   Shared across every page: reset, base typography, header/nav,
   footer, buttons, trust banner, page hero, and editorial prose.
   Page-specific styles live in their own files (e.g. home.css).
   ============================================================= */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--off-white);
}
img { max-width: 100%; display: block; }
a { color: var(--soft-cyan); }
a:hover { color: var(--deep-teal); }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--deep-teal); }

/* Accessibility helpers */
.visually-hidden {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--deep-teal); color: var(--off-white);
  padding: 12px 18px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: var(--off-white); }

:focus-visible {
  outline: 3px solid var(--soft-cyan);
  outline-offset: 2px;
}

/* ---- Layout container ---- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--fog  { background: var(--light-fog); }
.section--white { background: var(--off-white); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--soft-cyan);
  color: var(--off-white);
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 30px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease), transform 0.2s ease;
}
.btn:hover { background: var(--cyan-dark); color: var(--off-white); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--deep-teal);
  border: 2px solid var(--soft-cyan);
}
.btn--ghost:hover { background: var(--soft-cyan); color: var(--off-white); }

/* =============================================================
   HEADER / NAV  (source: partials/header.html)
   ============================================================= */
.site-header {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--deep-teal);
  text-decoration: none;
  white-space: nowrap;
}
.brand .brand__tld { color: var(--soft-cyan); font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: var(--deep-teal);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--soft-cyan); }
.nav-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--soft-cyan);
  background: rgba(55, 150, 131, .10);
  border: 1px solid rgba(55, 150, 131, .25);
}
.nav-toggle { display: none; }

@media (max-width: 768px) {
  .site-nav { gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
  .site-nav a { font-size: 14px; }
}

/* =============================================================
   FOOTER  (source: partials/footer.html)
   ============================================================= */
.site-footer {
  background: var(--deep-teal);
  color: var(--off-white);
  padding: 56px 0 28px;
}
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--off-white); text-decoration: underline; }
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  color: var(--off-white);
  font-family: var(--font-heading);
  font-size: 18px;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; font-size: 15px; }
.footer-about p { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .85); margin: 0 0 16px; }
.footer-nonprofit {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.footer-nonprofit strong { display: block; margin-bottom: 6px; color: var(--off-white); }
.footer-nonprofit p { font-size: 14px; margin: 0; }
.footer-bottom {
  max-width: var(--maxw);
  margin: 36px auto 0;
  padding: 22px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  text-align: center;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* =============================================================
   PAGE HERO (interior pages: mission, privacy, guides)
   ============================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--light-fog) 0%, var(--off-white) 70%);
  padding: 64px 24px 56px;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--deep-teal), var(--soft-cyan));
}
.page-hero__inner { max-width: var(--maxw-hero); margin: 0 auto; }
.page-hero .kicker {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  color: var(--deep-teal); letter-spacing: .5px; margin: 0 0 12px;
}
.page-hero h1 { font-size: var(--fs-h1); line-height: 1.2; margin: 0 0 14px; }
.page-hero p { font-size: 19px; color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* Breadcrumb */
.breadcrumb { font-size: 14px; color: var(--text-muted); margin: 0 0 8px; }
.breadcrumb a { color: var(--soft-cyan); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* =============================================================
   EDITORIAL PROSE (guides, mission, privacy bodies)
   ============================================================= */
.prose {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  padding: 56px 24px;
}
.prose h2 {
  font-size: 28px;
  margin: 44px 0 14px;
  text-align: left;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 20px;
  margin: 32px 0 10px;
  color: var(--deep-teal);
}
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin-bottom: 10px; }
.prose a { color: var(--soft-cyan); }
.prose a:hover { color: var(--deep-teal); }

/* Inline citation references */
.prose a.ref {
  font-size: 0.72em;
  font-weight: 700;
  vertical-align: super;
  line-height: 0;
  text-decoration: none;
  color: var(--soft-cyan);
  padding: 0 1px;
}
.prose a.ref:hover { color: var(--deep-teal); }

/* Review / freshness dateline */
.review-note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin: -4px 0 24px;
}

/* Sources section */
.sources-note { font-size: 15px; color: var(--text-muted); }
.prose ol.sources-list { padding-left: 22px; }
.prose ol.sources-list li { font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.prose ol.sources-list li:target { background: var(--light-fog); border-radius: 6px; }

/* Callout box for honest, plain-language notes */
.callout {
  background: var(--light-fog);
  border-left: 4px solid var(--soft-cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 0 0 24px;
}
.callout p { margin: 0; }

/* "Related guides" footer block on articles */
.related {
  background: var(--light-fog);
  border-top: 1px solid var(--border);
}
.related .container { padding-top: 56px; padding-bottom: 56px; }
.related h2 { font-size: 24px; text-align: center; margin: 0 0 28px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.related-card {
  background: var(--off-white);
  border-top: 3px solid var(--soft-cyan);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform var(--ease), box-shadow var(--ease);
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.related-card h3 { font-size: 16px; margin: 0 0 8px; }
.related-card p { font-size: 14px; color: var(--text-muted); margin: 0; }

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