/* ==========================================================================
   Cornerstone Learning & Advocacy — shared styles
   Palette pulled from the original site: sage green hero, cream sections,
   deep teal/navy headings, warm off-white body background.
   ========================================================================== */

:root {
  --sage: #7f9e93;
  --sage-dark: #5c8177;
  --sage-light: #a9c2b8;
  --cream: #f5f1e8;
  --cream-dark: #ece5d4;
  --teal: #2c6577;
  --teal-dark: #1f4a58;
  --navy: #1f3b52;
  --ink: #2c3335;
  --ink-soft: #52605f;
  --white: #ffffff;
  --gold: #a8651f;
  --gold-soft: #f3d9ad;
  --shadow: 0 10px 30px rgba(31, 59, 82, 0.09);
  --shadow-sm: 0 4px 14px rgba(31, 59, 82, 0.08);
  --radius: 18px;
  --radius-sm: 10px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Mulish", "Trebuchet MS", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Trebuchet MS", sans-serif;
  color: var(--teal);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}

.accent-script {
  font-family: "Caveat", cursive;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

ul { margin: 0; padding: 0; }

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

.section {
  padding: 84px 0;
}

.section--sm { padding: 56px 0; }

.section--cream { background: var(--cream); }
.section--sage {
  background:
    linear-gradient(135deg, rgba(19,41,44,0.55) 0%, rgba(19,41,44,0.72) 100%),
    linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  color: var(--white);
}
.section--teal { background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%); color: var(--white); }

.section--sage h1, .section--sage h2, .section--sage h3,
.section--teal h1, .section--teal h2, .section--teal h3 {
  color: var(--white);
}

.section--sage p, .section--teal p { color: rgba(255,255,255,0.94); }

.eyebrow {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

.section--sage .eyebrow, .section--teal .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold-soft); }

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 700px;
}

.section--sage .lede, .section--teal .lede {
  color: rgba(255,255,255,0.94);
}

.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* -------------------- Buttons -------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 30px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn--primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(201, 138, 62, 0.35);
}
.btn--primary:hover { background: #b67a30; }

.btn--outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,0.15); }

.btn--teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--teal:hover { background: var(--teal-dark); }

.btn--ghost {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}
.btn--ghost:hover { background: var(--teal); color: var(--white); }

/* -------------------- Header / Nav -------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 14px rgba(31,59,82,0.08);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-dots {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.brand-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.brand-dots span:nth-child(1) { background: var(--navy); }
.brand-dots span:nth-child(2) { background: var(--teal); }
.brand-dots span:nth-child(3) { background: var(--sage); }

.brand-text {
  font-family: "Poppins", sans-serif;
  line-height: 1.05;
}
.brand-text .brand-main {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.brand-text .brand-sub {
  display: block;
  font-family: "Caveat", cursive;
  font-size: 1rem;
  color: var(--teal);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--teal);
  border-color: var(--gold);
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--teal);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.2s;
}

/* -------------------- Hero -------------------- */

.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(19,41,44,0.5) 0%, rgba(19,41,44,0.72) 100%),
    linear-gradient(135deg, var(--sage-light) 0%, var(--sage) 55%, var(--sage-dark) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 90px 0 100px;
}

.hero::before {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -30%;
  width: 520px;
  height: 520px;
  border: 26px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -20%;
  width: 320px;
  height: 320px;
  border: 18px solid rgba(255,255,255,0.13);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero h1 { color: var(--white); }

.hero .lede {
  color: rgba(255,255,255,0.92);
  font-size: 1.2rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 44px;
  font-size: 0.92rem;
  font-weight: 600;
}
.hero-badges span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-badges span::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.95);
  color: var(--teal-dark);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
}

/* -------------------- Page header (non-home hero) -------------------- */

.page-hero {
  background:
    linear-gradient(135deg, rgba(19,41,44,0.55) 0%, rgba(19,41,44,0.72) 100%),
    linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  color: var(--white);
  padding: 70px 0 62px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero .lede { margin: 0 auto; color: rgba(255,255,255,0.92); }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: underline; }

/* -------------------- Cards / Grids -------------------- */

.grid {
  display: grid;
  gap: 26px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(31,59,82,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--teal);
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); margin-bottom: 0; }

.pill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pill-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.pill-list li::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* -------------------- CTA banner -------------------- */

.cta-banner {
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { margin-bottom: 6px; }
.cta-banner p { margin: 0; color: var(--ink-soft); }

/* -------------------- Team / bio -------------------- */

.bio-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
  align-items: start;
}
.bio-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-light), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  box-shadow: var(--shadow-sm);
  border: 4px solid var(--white);
  outline: 1px solid rgba(31,59,82,0.08);
}
.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bio-card h3 { margin-bottom: 2px; }
.bio-title { color: var(--gold); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }

/* -------------------- FAQ accordion -------------------- */

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--teal-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 24px 22px;
}
.faq-answer p { color: var(--ink-soft); margin: 0; }

/* -------------------- Contact / form -------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.contact-info-card {
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card a { color: var(--white); text-decoration: underline; }
.contact-info-row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-info-row .label {
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cfe6de;
  margin-bottom: 3px;
}

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid #d9d2c1;
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--white);
  color: var(--ink);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--teal);
}
.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* -------------------- Footer -------------------- */

.site-footer {
  background: var(--cream-dark);
  color: var(--ink-soft);
  padding: 56px 0 26px;
  border-top: 1px solid rgba(31,59,82,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.site-footer h4 {
  color: var(--teal-dark);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--teal); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(31,59,82,0.15);
  padding-top: 22px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink-soft);
}
.footer-brand .brand-main { color: var(--ink); }
.footer-brand .brand-sub { color: var(--teal); }
.footer-desc { color: var(--ink-soft); max-width: 340px; margin-top: 14px; }

/* -------------------- Utility -------------------- */

.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag {
  background: var(--cream-dark);
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
}

/* -------------------- Responsive -------------------- */

@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .bio-card { grid-template-columns: 140px 1fr; gap: 22px; padding: 26px; }
  .bio-photo { font-size: 1.8rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    gap: 16px;
  }
  .nav-cta.open { display: flex; padding: 0 24px 20px; background: var(--white); }
  .nav-toggle { display: block; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .bio-card { grid-template-columns: 1fr; text-align: left; }
  .bio-photo { width: 100px; height: 100px; }
  .section { padding: 60px 0; }
  .cta-banner { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
