/* ==========================================================================
   Pathways to Possibility Foundation — shared stylesheet
   ========================================================================== */

:root {
  /* Color: real brand palette, sampled from the logo */
  --navy:       #14335C; /* primary ink / Belonging */
  --slate:      #4E6A93; /* Empowerment */
  --teal:       #467D82; /* Possibility */
  --sage:       #739481; /* Accessibility */
  --gold:       #F8A65A; /* Compassion */
  --rust:       #C97B3D; /* Connection */

  --bg:         #FAF9F5;
  --surface:    #FFFFFF;
  --ink:        #1C2B3A;
  --ink-soft:   #5C6570;
  --border:     rgba(20, 51, 92, 0.12);
  --border-soft: rgba(20, 51, 92, 0.07);

  --shadow-sm:  0 1px 2px rgba(43, 42, 61, 0.06), 0 1px 1px rgba(43,42,61,0.04);
  --shadow-md:  0 8px 24px rgba(43, 42, 61, 0.10);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; }

.eyebrow {
  font-family: 'Figtree', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.9em;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

/* -------------------------- Buttons -------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-light { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* -------------------------- Header -------------------------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { width: 38px; height: 38px; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; object-fit: contain; }
.brand-name {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
}
.brand-name small { display: block; font-family: 'Figtree', sans-serif; font-weight: 500; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

nav.main-nav { display: flex; align-items: center; gap: 34px; }
nav.main-nav a.nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
nav.main-nav a.nav-link:hover,
nav.main-nav a.nav-link.active { color: var(--ink); border-color: var(--teal); }

.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.2s; }

@media (max-width: 860px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 28px 22px;
    border-bottom: 1px solid var(--border-soft);
    display: none;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a.nav-link { width: 100%; padding: 10px 0; }
  .nav-cta { margin-left: 0; margin-top: 10px; }
  .nav-toggle { display: block; }
}

/* -------------------------- Handprint signature -------------------------- */
.handmark { display: flex; }
.handmark span {
  display: block;
  width: 9px;
  height: 30px;
  border-radius: 999px;
  margin-right: 5px;
}
.handmark span:nth-child(1) { background: var(--navy); height: 22px; align-self: flex-end; }
.handmark span:nth-child(2) { background: var(--gold); height: 30px; align-self: flex-end; }
.handmark span:nth-child(3) { background: var(--teal); height: 34px; align-self: flex-end; }
.handmark span:nth-child(4) { background: var(--slate); height: 28px; align-self: flex-end; }
.handmark span:nth-child(5) { background: var(--rust); height: 20px; align-self: flex-end; }
.handmark span:nth-child(6) { background: var(--sage); height: 26px; align-self: flex-end; margin-right: 0; }

/* -------------------------- Hero -------------------------- */
.hero {
  padding: 76px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { max-width: 20ch; }
.hero .lede { font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-art { position: relative; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
}

/* -------------------------- Value fingers (signature element) -------------------------- */
.values-hand {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
@media (max-width: 900px) { .values-hand { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .values-hand { grid-template-columns: 1fr; } }

.value-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 26px 20px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 5px solid var(--c, var(--navy));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-card .num { width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--navy)); margin-bottom: 14px; display: block; font-size: 0; }
.value-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.value-card p { font-size: 0.93rem; margin: 0; }

/* -------------------------- Cards / grids -------------------------- */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.section-tint { background: var(--surface); }
.section-ink { background: var(--ink); color: var(--bg); }
.section-ink h2, .section-ink h3 { color: var(--bg); }
.section-ink p { color: rgba(251,247,239,0.78); }

/* -------------------------- Stat strip -------------------------- */
.stat-strip { display: flex; gap: 44px; flex-wrap: wrap; margin-top: 10px; }
.stat { min-width: 120px; }
.stat .num { font-family: 'Lora', serif; font-size: 2.1rem; font-weight: 600; display: block; }
.stat .label { font-size: 0.85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }

/* -------------------------- Placeholder styling -------------------------- */
.placeholder {
  border: 1.5px dashed var(--slate);
  background: rgba(59, 111, 166, 0.06);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  position: relative;
  margin: 14px 0;
}
.placeholder::before {
  content: "PLACEHOLDER — customize this";
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--surface);
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(59,111,166,0.3);
  margin-bottom: 10px;
}

/* -------------------------- Board / people -------------------------- */
.people-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 28px; }
@media (max-width: 700px) { .people-grid { grid-template-columns: 1fr; } }
.person {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.person .avatar {
  width: 54px; height: 54px; border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Lora', serif; font-weight: 600; color: white; font-size: 1.1rem;
}
.person.open { border: 1.5px dashed var(--border); box-shadow: none; }
.person.open .avatar { background: var(--border-soft); color: var(--ink-soft); }
.person .role { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--teal); font-weight: 700; margin-bottom: 3px; }

/* -------------------------- Program cards -------------------------- */
.program-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.program-card.flagship { border: 2px solid var(--navy); position: relative; }
.flagship-tag {
  position: absolute;
  top: -14px; left: 32px;
  background: var(--navy);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.tag {
  font-size: 0.8rem; font-weight: 600; color: var(--ink-soft);
  background: var(--bg); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 999px;
}

/* -------------------------- Forms -------------------------- */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  font-family: 'Figtree', sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--teal);
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* -------------------------- Footer -------------------------- */
footer.site {
  background: var(--ink);
  color: rgba(251,247,239,0.7);
  padding: 56px 0 30px;
}
footer.site .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
@media (max-width: 700px) { footer.site .foot-grid { grid-template-columns: 1fr; } }
footer.site h4 { color: var(--bg); font-size: 0.95rem; margin-bottom: 14px; font-family: 'Figtree', sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
footer.site a { color: rgba(251,247,239,0.7); text-decoration: none; }
footer.site a:hover { color: var(--bg); }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 9px; }
footer.site .foot-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(251,247,239,0.14);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.foot-tagline { font-family: 'Lora', serif; font-size: 1.2rem; color: var(--bg); max-width: 30ch; margin-bottom: 14px; }

/* -------------------------- Social icons -------------------------- */
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(250,249,245,0.08);
  border: 1px solid rgba(250,249,245,0.18);
  color: var(--bg);
  transition: background 0.18s ease, transform 0.18s ease;
}
.social-icon:hover { background: rgba(250,249,245,0.18); transform: translateY(-2px); }
.social-icon svg { width: 18px; height: 18px; }

/* -------------------------- Gallery -------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-slot {
  aspect-ratio: 4 / 3;
  border: 1.5px dashed var(--slate);
  background: rgba(78, 106, 147, 0.06);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.gallery-slot span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* -------------------------- Page hero (interior pages) -------------------------- */
.page-hero { padding: 56px 0 20px; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { max-width: 60ch; font-size: 1.08rem; }

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