/* ==========================================================================
   Teaching Staff Trust — Reskin
   Font: Rubik | Design system + shared components
   ========================================================================== */

:root {
  /* Brand palette */
  --tst-purple:      #8a1e6d;
  --tst-purple-dark: #6d1657;
  --tst-gold:        #f6a81e;
  --tst-teal:        #00aea6;
  --tst-teal-dark:   #018a83;
  --tst-blue:        #1f9cd7;
  --tst-slate:       #515f9c;

  /* Neutrals */
  --ink:      #2f3033;
  --muted:    #5b5f66;
  --line:     #e4e8ec;
  --bg:       #ffffff;
  --bg-soft:  #f4f7f9;
  --white:    #ffffff;

  --radius:   14px;
  --radius-lg: 22px;
  --shadow:   0 10px 30px rgba(20, 24, 40, 0.08);
  --shadow-sm: 0 4px 14px rgba(20, 24, 40, 0.08);
  --maxw:     1180px;
  --gutter:   24px;

  --ff: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--tst-teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--ff); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); }        /* ~48px */
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }   /* ~36px */
h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); }     /* ~32px */
h4 { font-size: clamp(1.2rem, 2vw, 1.75rem); }     /* ~28px */
p  { margin: 0 0 1.1em; }
.lead { font-size: 1.18rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 500; font-size: .95rem; color: var(--tst-teal-dark); margin-bottom: .4em; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 52px 0; }
.center { text-align: center; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 28px; }
.mt-0 { margin-top: 0; }

/* ---------- Buttons (all rounded / pill, consistent) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--ff); font-weight: 500; font-size: 1rem; line-height: 1;
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--tst-teal); color: #fff; }
.btn--primary:hover { background: var(--tst-teal-dark); color: #fff; }
.btn--purple { background: var(--tst-purple); color: #fff; }
.btn--purple:hover { background: var(--tst-purple-dark); color: #fff; }
.btn--gold { background: var(--tst-gold); color: #3a2600; }
.btn--gold:hover { background: #e2960b; color: #3a2600; }
.btn--white { background: #fff; color: var(--tst-purple); }
.btn--white:hover { background: #f4eaf5; color: var(--tst-purple-dark); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn--outline:hover { background: #fff; color: var(--tst-purple); }
.btn--outline-ink { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline-ink:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 11px 22px; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 0; position: relative;
}
.nav__logo img { height: 82px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__menu > li { position: relative; }
.nav__menu a {
  display: inline-block; padding: 10px 14px; color: var(--ink); font-weight: 500; border-radius: 999px;
}
.nav__menu a:hover { color: var(--tst-purple); text-decoration: none; background: #f6eef7; }
.nav__actions { display: flex; align-items: center; gap: 12px; }

/* Dropdown */
.has-sub > .nav__toggle-sub { cursor: pointer; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.has-sub:hover .dropdown, .has-sub:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; border-radius: 10px; padding: 10px 14px; font-weight: 400; }
.caret { display: inline-block; margin-left: 4px; border: solid var(--muted); border-width: 0 2px 2px 0; padding: 3px; transform: rotate(45deg); position: relative; top: -2px; }

/* Mobile toggle */
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav__burger span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .2s; }

/* ---------- Hero (home) ---------- */
.hero { display: grid; grid-template-columns: 1.02fr 1fr; align-items: stretch; }
.hero__text { background: var(--tst-purple); color: #fff; padding: clamp(48px, 6.5vw, 92px) clamp(28px, 5.5vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.hero__text .eyebrow { color: #eec9e6; letter-spacing: .1em; margin-bottom: 1.1em; }
.hero__text h1 { color: var(--tst-gold); margin-bottom: .6em; line-height: 1.12; }
.hero__text p { color: rgba(255,255,255,.92); font-size: 1.08rem; line-height: 1.7; max-width: 48ch; margin-bottom: 2em; }
.hero__text .btn { align-self: flex-start; }
.hero__img { min-height: 540px; background-size: cover; background-position: center; }

/* ---------- Angled stat boxes ("Making a difference") ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stat {
  position: relative; color: #fff; padding: 44px 30px 34px; border-radius: var(--radius);
  text-align: center; margin-top: 18px;
}
.stat::before { /* top arrow notch */
  content: ""; position: absolute; top: -17px; left: 50%; transform: translateX(-50%);
  border-left: 20px solid transparent; border-right: 20px solid transparent;
  border-bottom: 18px solid var(--_c);
}
.stat { background: var(--_c); }
.stat--slate { --_c: var(--tst-slate); }
.stat--blue  { --_c: var(--tst-blue); }
.stat--teal  { --_c: var(--tst-teal); }
.stat__icon { width: 54px; height: 54px; margin: 0 auto 14px; display: grid; place-items: center; border: 3px solid rgba(255,255,255,.9); border-radius: 12px; }
.stat__icon svg { width: 28px; height: 28px; }
.stat h3 { color: #fff; font-size: 1.4rem; margin-bottom: .5em; }
.stat p { color: rgba(255,255,255,.92); font-size: .98rem; }
.stat .btn { margin-top: 8px; }

/* ---------- Split feature (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.tick-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.tick-list li { position: relative; padding: 8px 0 8px 36px; border-bottom: 1px solid var(--line); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 22px; height: 22px; border-radius: 6px;
  background: var(--tst-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/15px no-repeat;
}

/* ---------- Professions ---------- */
.professions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.profession { text-align: center; }
.profession__img { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); margin-bottom: 12px; }
.profession__img img { width: 100%; height: 100%; object-fit: cover; }
.profession h4 { font-size: 1.08rem; margin: 0; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.card h3 { font-size: 1.3rem; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quote { background: #fff; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); border-top: 5px solid var(--tst-teal); }
.quote:nth-child(2) { border-top-color: var(--tst-purple); }
.quote:nth-child(3) { border-top-color: var(--tst-blue); }
.quote p { font-style: italic; font-size: 1.05rem; }
.quote .who { font-weight: 600; font-style: normal; color: var(--tst-purple); margin: 0; }
.quote .role { color: var(--muted); font-size: .92rem; }

/* Pull quotes (from PDF style sheet) */
.pullquote { padding: 30px 34px; border-radius: var(--radius); font-size: 1.25rem; font-weight: 500; line-height: 1.4; margin: 30px 0; }
.pullquote--solid { background: var(--tst-teal); color: #fff; }
.pullquote--keyline { border: 2px solid var(--tst-teal); color: var(--tst-teal-dark); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.member { text-align: left; }
.member__photo { width: 170px; max-width: 100%; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 16px; background: var(--bg-soft); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.25rem; margin-bottom: .15em; }
.member .role { color: var(--tst-purple); font-weight: 500; margin-bottom: .6em; font-size: .98rem; }
.member p { font-size: .98rem; color: var(--muted); }

/* ---------- Banner CTA ---------- */
.cta-banner { background: linear-gradient(120deg, var(--tst-purple), var(--tst-purple-dark)); color: #fff; border-radius: var(--radius-lg); padding: 54px clamp(24px,5vw,60px); text-align: center; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.9); max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--tst-purple); color: #fff; padding: 64px 0; }
.page-hero .eyebrow { color: #f3d9f5; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 62ch; margin-top: .6em; margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--ff); font-size: 1rem; background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.info-row .ico { flex: 0 0 44px; height: 44px; border-radius: 12px; background: #f6eef7; color: var(--tst-purple); display: grid; place-items: center; }
.info-row .ico svg { width: 22px; height: 22px; }

/* ---------- Beacon donate embed wrapper ---------- */
.donate-embed { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); min-height: 200px; }

/* ---------- Footer ---------- */
.site-footer { background: #23202a; color: #cfccd6; padding: 60px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; }
.site-footer img { height: 54px; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1em; }
.site-footer a { color: #cfccd6; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: .9rem; color: #9a97a3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #cfccd6; transition: background .2s ease, color .2s ease; }
.footer-social a:hover { background: var(--tst-teal); color: #fff; }
.footer-social svg { width: 20px; height: 20px; }

/* ---------- Utility ---------- */
.section-title { text-align: center; margin-bottom: 54px; }
.section-title p { color: var(--muted); max-width: 60ch; margin: .4em auto 0; }
.pill-label { display: inline-block; background: #f6eef7; color: var(--tst-purple); padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 500; margin-bottom: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero__img { min-height: 300px; order: -1; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .stats, .cards, .quotes { grid-template-columns: 1fr; }
  .professions { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  /* Mobile nav */
  .nav__burger { display: flex; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 10px; gap: 2px; display: none;
  }
  .nav__menu.open { display: flex; }
  .nav__menu a { padding: 12px 14px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 3px solid var(--line); border-radius: 0; margin: 0 0 4px 14px; padding: 0; }
  .dropdown { display: none; }
  .has-sub.open .dropdown { display: block; }
  .nav__actions .btn { padding: 11px 20px; }
}
@media (max-width: 560px) {
  .professions { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .nav__actions .btn--sm.hide-xs { display: none; }
}
