/* ============================================================
   Faithful Schooling — shared styles
   Implements the brand kit (brand-kit/CLAUDE.md). Cream field,
   navy backbone, terracotta + sage as accents only.
   ============================================================ */

:root {
  /* primary & surfaces */
  --fs-navy: #1F2A36;
  --fs-cream: #F7F3EA;
  --fs-warm-white: #FDFBF6;
  /* accents */
  --fs-terracotta: #B85C3E;
  --fs-terracotta-hover: #A24E33;
  --fs-terracotta-active: #8F4129;
  --fs-sage: #7E9078;
  --fs-rose: #C9A29B;
  /* tints */
  --fs-terracotta-tint: #F0DCD2;
  --fs-sage-tint: #E3E9D9;
  --fs-sand: #EFE8DA;
  /* text & neutrals */
  --fs-ink: #2A333C;
  --fs-muted: #6A7079;
  --fs-border: #E4DCCD;
  /* navy button states */
  --fs-navy-hover: #16202A;
  --fs-navy-active: #0F1820;
  /* type */
  --fs-font-heading: 'Newsreader', Georgia, serif;
  --fs-font-body: 'Source Sans 3', system-ui, sans-serif;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fs-cream);
  color: var(--fs-ink);
  font-family: var(--fs-font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fs-terracotta); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--fs-font-heading); color: var(--fs-navy); font-weight: 600; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-size: 1.75rem; line-height: 1.2; }
h4 { font-family: var(--fs-font-body); font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--fs-navy); margin: 0 0 0.4em; }
p { margin: 0 0 1.1em; }
small, .fs-small { font-size: 0.875rem; line-height: 1.5; }

.fs-eyebrow {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fs-terracotta); font-weight: 600; line-height: 1.4;
  display: block; margin: 0 0 0.9rem;
}

/* ---------- layout ---------- */
.fs-container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.fs-prose { max-width: 680px; margin: 0 auto; }
section { padding: 96px 0; }
.fs-muted { color: var(--fs-muted); }

/* ---------- buttons ---------- */
.fs-btn-primary, .fs-btn-secondary, .fs-btn-ghost {
  display: inline-block; font-family: var(--fs-font-body); font-weight: 600;
  font-size: 1.0625rem; border-radius: 8px; cursor: pointer; transition: all .15s;
  text-decoration: none; border: none;
}
.fs-btn-primary { color: var(--fs-cream); background: var(--fs-navy); padding: 14px 30px; box-shadow: 0 1px 2px rgba(31,42,54,0.2); }
.fs-btn-primary:hover { background: var(--fs-navy-hover); transform: translateY(-1px); box-shadow: 0 7px 18px rgba(31,42,54,0.26); text-decoration: none; }
.fs-btn-primary:active { background: var(--fs-navy-active); transform: translateY(0); }

.fs-btn-secondary { color: var(--fs-warm-white); background: var(--fs-terracotta); padding: 14px 30px; box-shadow: 0 1px 2px rgba(184,92,62,0.25); }
.fs-btn-secondary:hover { background: var(--fs-terracotta-hover); transform: translateY(-1px); text-decoration: none; }
.fs-btn-secondary:active { background: var(--fs-terracotta-active); }

.fs-btn-ghost { color: var(--fs-navy); background: transparent; border: 1.5px solid var(--fs-navy); padding: 12.5px 28px; }
.fs-btn-ghost:hover { background: var(--fs-sand); text-decoration: none; }

.fs-textlink { color: var(--fs-navy); font-weight: 600; }
.fs-textlink:hover { color: var(--fs-terracotta); }

/* ---------- cards ---------- */
.fs-card {
  background: var(--fs-warm-white); border: 1px solid var(--fs-border);
  border-radius: 16px; padding: 26px; box-shadow: 0 1px 3px rgba(31,42,54,0.05);
}
.fs-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--fs-sage); background: var(--fs-sage-tint);
  border-radius: 999px; padding: 3px 12px; margin-top: 14px;
}

/* ---------- header / nav ---------- */
.fs-header { padding: 22px 0; }
.fs-header .fs-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.fs-brand { display: inline-flex; align-items: center; gap: 12px; }
.fs-brand img { height: 48px; width: auto; }
.fs-brand .fs-wordmark {
  font-family: var(--fs-font-heading); font-weight: 600; font-size: 1.4rem;
  letter-spacing: -0.015em; color: var(--fs-navy);
}
.fs-nav a { color: var(--fs-navy); font-weight: 600; font-size: 0.95rem; }
.fs-nav a:hover { color: var(--fs-terracotta); text-decoration: none; }

/* ---------- hero ---------- */
.fs-hero { padding: 20px 0 88px; text-align: center; }
.fs-hero .fs-prose { max-width: 760px; }
.fs-hero p.lead { font-size: 1.2rem; color: var(--fs-muted); margin: 0 auto 2rem; max-width: 620px; }
.fs-cta-row { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; }
.fs-trust { margin-top: 2rem; font-size: 0.9rem; color: var(--fs-muted); }
.fs-trust .dot { color: var(--fs-sage); }

/* ---------- generic section helpers ---------- */
.fs-section-tint { background: var(--fs-sage-tint); }
.fs-center { text-align: center; }
.fs-grid {
  display: grid; gap: 24px; margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.fs-lead-line { font-size: 1.15rem; color: var(--fs-muted); max-width: 620px; }
.fs-center .fs-lead-line { margin-left: auto; margin-right: auto; }

/* ---------- footer ---------- */
.fs-footer { background: var(--fs-navy); color: #D7DCE2; padding: 56px 0 40px; }
.fs-footer a { color: #D7DCE2; }
.fs-footer a:hover { color: #fff; text-decoration: none; }
.fs-footer .fs-brand .fs-wordmark { color: #fff; }
.fs-footer-top { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.fs-footer-tag { color: #AEB6C0; max-width: 360px; margin: 14px 0 0; }
.fs-footer-nav { display: flex; flex-wrap: wrap; gap: 22px; font-weight: 600; }
.fs-footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; color: #9AA3AE; }

/* ---------- prose page (privacy etc.) ---------- */
.fs-doc { padding: 64px 0 88px; }
.fs-doc h1 { margin-bottom: 0.25em; }
.fs-doc .fs-updated { color: var(--fs-muted); font-size: 0.95rem; margin-bottom: 2.5rem; }
.fs-doc h2 { font-size: 1.5rem; margin-top: 2.2em; }
.fs-doc h3 { font-size: 1.2rem; font-family: var(--fs-font-body); font-weight: 700; margin-top: 1.6em; }
.fs-doc ul { padding-left: 1.25em; }
.fs-doc li { margin-bottom: 0.4em; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .fs-container { padding: 0 24px; }
  section { padding: 56px 0; }
  .fs-hero { padding: 16px 0 56px; }
  .fs-nav { display: none; }
  /* Enlarge the logo on mobile; keep it left-aligned (nav is hidden) */
  .fs-brand img { height: 64px; }
}
