/* style.css — Hope & Healing foundation */
:root {
  --deep: #1c4e7d;      /* deep blue: header, footer, headings */
  --deep-2: #12385d;
  --sun: #f0b13a;       /* warm gold: accents, active state */
  --mist: #dcebf7;      /* soft mint: panels */
  --paper: #eef5fb;     /* page background */
  --ink: #15262c;       /* body text */
  --muted: #55696f;
  --line: #c5d8e8;
  --radius: 10px;
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
:root:not([data-theme="light"]) { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--deep); text-underline-offset: 3px; }
a:hover { color: var(--deep-2); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-head); color: var(--deep); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: 3.5rem 0; }
.section-alt { background: var(--mist); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* Header */
.site-header { background: var(--deep); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 1.25rem; }
.brand { display: flex; align-items: center; gap: .9rem; color: #fff; text-decoration: none; }
.brand-mark { display: grid; place-items: center; padding: .3rem .65rem; border-radius: 12px; background: #fff; }
.brand-mark img { display: block; height: 58px; width: auto; }
.site-header .wrap { width: min(1320px, 100% - 2.5rem); }
.brand-name { font: 700 1.45rem/1.1 var(--font-head); text-transform: uppercase; letter-spacing: .02em; }

.brand-name small { display: block; margin-top: .3rem; font: 600 1.05rem/1 var(--font-head); letter-spacing: .16em; color: var(--sun); }
.site-nav ul { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; }
.site-nav a { display: block; white-space: nowrap; padding: .5rem .6rem; color: #dcebe8; text-decoration: none; border-radius: 6px; font-weight: 600; font-size: .98rem; }
.site-nav li { position: relative; }
.submenu { display: none !important; position: absolute; left: 0; top: 100%; min-width: 300px; background: var(--deep-2); padding: .4rem; border-radius: 0 0 8px 8px; flex-direction: column; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: flex !important; }
.submenu li.is-sub a { padding-left: 1.6rem; font-weight: 400; }
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.site-nav a.is-active { color: #fff; box-shadow: inset 0 -3px 0 var(--sun); border-radius: 6px 6px 0 0; }

.nav-toggle, .nav-burger { display: none; }

/* Breadcrumb */
.breadcrumb { background: #fff; border-bottom: 1px solid var(--line); font-size: .95rem; }
.breadcrumb .wrap { padding: .7rem 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: var(--muted); }
.breadcrumb a { color: var(--deep); }
.breadcrumb .sep { color: var(--line); }

/* Cards (used by youth-skills.php) */
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; gap: .5rem; }
.card h3 { margin-bottom: .2em; }
.card p { color: var(--muted); }
.card .btn { margin-top: auto; align-self: flex-start; }

/* Buttons */
.btn { display: inline-block; padding: .7rem 1.3rem; border-radius: 8px; background: var(--deep); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--deep); }
.btn:hover { background: var(--deep-2); color: #fff; }
.btn-alt { background: transparent; color: var(--deep); }
.btn-alt:hover { background: var(--mist); color: var(--deep); }

/* Page hero (inner pages) */
.page-hero { background: var(--mist); padding: 3rem 0 2.5rem; border-bottom: 4px solid var(--sun); }
.page-hero p { font-size: 1.2rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--deep-2); color: #cfe1de; padding: 2.5rem 0 1.5rem; margin-top: 3rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand { font: 700 1.5rem/1.1 var(--font-head); color: #fff; margin: 0; text-transform: uppercase; letter-spacing: .02em; }
.footer-motto { font: 600 1.05rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--sun); margin: .4rem 0 .8rem; }
.footer-note { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-links a { color: #cfe1de; }
.footer-links a:hover { color: #fff; }
.footer-legal { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); }

/* Mobile nav */
@media (max-width: 1280px) {
  .nav-burger { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after { display: block; width: 22px; height: 2px; background: #fff; position: relative; content: ""; }
  .nav-burger span::before { position: absolute; top: -7px; }
  .nav-burger span::after { position: absolute; top: 7px; }
  .nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--sun); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--deep); padding: .5rem 1.25rem 1rem; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; }
  .submenu { display: flex !important; position: static; box-shadow: none; background: transparent; padding: 0 0 0 .75rem; min-width: 0; }
  .site-nav a.is-active { box-shadow: inset 4px 0 0 var(--sun); border-radius: 6px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.footer-cols { display: flex; gap: 3rem; flex-wrap: wrap; }

/* ---------- Home ---------- */
.btn-gold { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-gold:hover { background: #dba02c; border-color: #dba02c; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

.home-hero { background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%); padding: 3rem 0 3rem; }
.hero-text { max-width: 780px; }
.hero-text h1 { font-size: clamp(2rem, 5.2vw, 3.75rem); text-transform: uppercase; letter-spacing: .015em; margin-bottom: .25em; }
.hero-motto { margin: 0 0 1.25rem; font: 600 clamp(1.15rem, 2.6vw, 1.6rem)/1.1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: #9a6500; }
.lead { font-size: 1.3rem; color: var(--muted); max-width: 44ch; }

.section-title { margin-bottom: 1.5rem; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; }
.pillar { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--deep); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; gap: .4rem; }
.pillar .btn { margin-top: auto; align-self: flex-start; }
.pillar-heart { background: var(--mist); border-top-color: var(--sun); }
.heart-cue { position: absolute; right: -18px; top: -14px; width: 150px; fill: #fff; opacity: .7; }
.pillar > *:not(.heart-cue) { position: relative; }

.tick-list { list-style: none; padding: 0; margin: .5rem 0 1.5rem; display: grid; gap: .45rem; }
.tick-list li { padding-left: 1.5rem; position: relative; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--sun); }

.cta-band { background: var(--deep); color: #fff; padding: 2.5rem 0; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { margin: 0; color: #d3e3f1; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }

/* ---------- Language switch ---------- */
.site-nav { display: flex; align-items: center; gap: .75rem; }
.lang-switch { margin-left: .5rem; padding-left: .75rem; border-left: 1px solid rgba(255,255,255,.25); }
.lang-switch a { padding: .35rem .5rem; font-size: .85rem; }
.lang-switch a.is-lang { background: var(--sun); color: var(--ink); }

/* ---------- Inner pages ---------- */
.prose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.block { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--deep); border-radius: var(--radius); padding: 1.75rem; scroll-margin-top: 90px; }
.block-wide { grid-column: 1 / -1; border-left-color: var(--sun); }
.block h3 { font-size: 1.1rem; }
.muted { color: var(--muted); }
.jump-links { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.25rem 0 0; }
.jump-links a { display: block; padding: .4rem .9rem; border: 1px solid var(--deep); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.jump-links a:hover { background: var(--deep); color: #fff; }

@media (max-width: 1280px) {
  .site-nav { display: none; flex-direction: column; align-items: stretch; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .lang-switch { display: flex; margin: .5rem 0 0; padding: .5rem 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
}

/* contact form */
.contact-form { display: grid; gap: 1rem; max-width: 640px; margin-top: 1rem; }
.contact-form label { display: grid; gap: .35rem; font-weight: 600; color: var(--deep); }
.contact-form input, .contact-form textarea { font: inherit; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.contact-form button { justify-self: start; cursor: pointer; }
.contact-form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-msg { padding: .7rem 1rem; border-radius: 8px; font-weight: 600; }
.form-msg.ok { background: #e3f4e6; color: #1d5a2b; }
.form-msg.err { background: #fbe7e4; color: #8a2a1c; }

/* article page */
.article { max-width: 820px; margin-inline: auto; }
.article h2 { margin-top: 1.6em; }
.article .lead-in { font-size: 1.2rem; color: var(--muted); }
.article .tick-list { margin-bottom: 1.2rem; }
