/* Teachers Deserve More Foundation — brand system
   Colors drawn from the apple-heart logo: apple red, gold, leaf green. */

:root {
  --apple: #c8102e;
  --apple-deep: #9d0b23;
  --gold: #a87b2d;
  --gold-soft: #c49a4e;
  --leaf: #3fa542;
  --paper: #faf7f2;
  --cream: #f3ede2;
  --card: #ffffff;
  --ink: #26211d;
  --muted: #6e655c;
  --line: #e7dfd3;
  --font-display: "Palatino", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font: 17px/1.65 var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--apple); }

h1, h2, h3, .wordmark { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.topbar {
  background: var(--card);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand .wordmark { font-size: 19px; letter-spacing: 0.02em; }
.brand .wordmark small {
  display: block; font-family: var(--font-ui); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
}

nav.mainnav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
nav.mainnav a {
  text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 600;
  padding: 8px 12px; border-radius: 8px;
}
nav.mainnav a:hover { background: var(--cream); }
nav.mainnav a.active { color: var(--apple); }
nav.mainnav a.btn { margin-left: 6px; }

.navtoggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  font-size: 22px; padding: 2px 12px; cursor: pointer; color: var(--ink); }

@media (max-width: 900px) {
  .navtoggle { display: block; }
  nav.mainnav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 14px; }
  nav.mainnav.open { display: flex; }
  .topbar .container { flex-wrap: wrap; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block; text-decoration: none; text-align: center; cursor: pointer;
  font-family: var(--font-ui); font-weight: 700; font-size: 15px;
  padding: 12px 26px; border-radius: 10px; border: 2px solid transparent;
}
.btn-primary { background: var(--apple); color: #fff !important; }
.btn-primary:hover { background: var(--apple-deep); }
.btn-gold { background: var(--gold); color: #fff !important; }
.btn-gold:hover { background: #8f6825; }
.btn-outline { border-color: var(--apple); color: var(--apple); background: transparent; }
.btn-outline:hover { background: var(--apple); color: #fff; }
.btn-lg { padding: 15px 34px; font-size: 16.5px; }

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(160deg, #fff 0%, var(--cream) 70%, #eee3cf 100%);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}
.hero .container { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); color: var(--ink); }
.hero h1 em { color: var(--apple); font-style: normal; }
.hero p.lede { font-size: 19px; color: var(--muted); margin: 18px 0 28px; max-width: 46ch; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .heroart { text-align: center; }
.hero .heroart img { width: min(320px, 80%); margin: 0 auto; filter: drop-shadow(0 12px 24px rgba(158, 91, 26, 0.18)); }

@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero .heroart { order: -1; }
  .hero .heroart img { width: 180px; }
}

/* ---------- sections ---------- */

section.block { padding: 64px 0; }
section.block.alt { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.block.dark { background: var(--apple-deep); color: #fff; }
section.block.dark h2 { color: #fff; }
section.block.dark p { color: #f4d9d9; }

.kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
section.block h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 16px; }
.section-intro { max-width: 62ch; color: var(--muted); font-size: 17.5px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 40px; }
.stat { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--apple);
  border-radius: 12px; padding: 26px 24px; }
.stat b { display: block; font-family: var(--font-display); font-size: 40px; color: var(--apple); }
.stat span { color: var(--muted); font-size: 14.5px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 26px; box-shadow: 0 2px 6px rgba(38, 33, 29, 0.04);
}
.card .icon { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .cardlink { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14.5px; text-decoration: none; }

/* numbered steps */
.steps { counter-reset: step; display: grid; gap: 0; margin-top: 36px; }
.step {
  counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 20px;
  padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.step:last-child { border-bottom: none; }
.step::before {
  content: counter(step);
  font-family: var(--font-display); font-size: 26px; font-weight: 700; color: #fff;
  background: var(--gold); width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15.5px; max-width: 68ch; }

/* quote */
.pullquote {
  border-left: 5px solid var(--gold); background: var(--card); border-radius: 0 14px 14px 0;
  padding: 30px 34px; margin: 36px 0; font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 24px); line-height: 1.5; color: var(--ink);
}
.pullquote footer { font-family: var(--font-ui); font-size: 14px; color: var(--muted); margin-top: 14px; }

/* video placeholder */
.video-embed { position: relative; aspect-ratio: 16 / 9; background: #1d1815; border-radius: 14px;
  overflow: hidden; margin-top: 36px; display: flex; align-items: center; justify-content: center; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed .placeholder { color: #cbb489; text-align: center; padding: 24px; font-size: 15px; }

/* ---------- forms ---------- */

.formcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 38px; margin-top: 40px; box-shadow: 0 4px 14px rgba(38, 33, 29, 0.05);
}
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.formgrid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .formgrid { grid-template-columns: 1fr; } .formcard { padding: 26px 20px; } }

label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
label .req { color: var(--apple); }
input, select, textarea {
  width: 100%; font: 15.5px var(--font-ui); color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-soft); border-color: var(--gold); }
.formcard .btn { margin-top: 24px; }
.formnote { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
fieldset { border: none; margin-top: 8px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 400; }
.checkline input { width: auto; margin-top: 4px; }

.form-success {
  display: none; background: #eef7ee; border: 1px solid var(--leaf); color: #205c22;
  border-radius: 10px; padding: 16px 18px; margin-top: 18px; font-size: 15px;
}

/* ---------- callout band ---------- */

.band { background: var(--apple); color: #fff; padding: 52px 0; }
.band .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.band h2 { font-size: clamp(24px, 3vw, 32px); color: #fff; }
.band p { color: #f6d7d7; margin-top: 6px; max-width: 60ch; }
.band .btn { background: #fff; color: var(--apple) !important; }
.band .btn:hover { background: var(--cream); }

/* ---------- footer ---------- */

footer.site {
  background: #241d18; color: #cfc4b6; padding: 56px 0 40px; margin-top: 0;
  font-size: 14.5px;
}
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site h4 { color: #fff; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
footer.site a { color: var(--gold-soft); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
footer.site .legal { border-top: 1px solid #3c332c; margin-top: 40px; padding-top: 22px; font-size: 13px; color: #9c9084; }
footer.site .flogo { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
footer.site .flogo img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
footer.site .flogo b { color: #fff; font-family: var(--font-display); font-size: 17px; }

/* page hero (interior pages) */
.pagehead { background: linear-gradient(150deg, #fff, var(--cream)); border-bottom: 1px solid var(--line); padding: 54px 0 44px; }
.pagehead h1 { font-size: clamp(30px, 4.4vw, 44px); }
.pagehead p { color: var(--muted); font-size: 18px; margin-top: 12px; max-width: 62ch; }

/* misc */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; margin-top: 36px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.checklist { list-style: none; margin-top: 18px; }
.checklist li { padding-left: 34px; position: relative; margin-bottom: 14px; font-size: 16px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #fff; background: var(--leaf);
  width: 24px; height: 24px; border-radius: 50%; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.smallprint { font-size: 13.5px; color: var(--muted); margin-top: 22px; }
