/* ==========================================================================
   The Learning Team — base stylesheet
   Plain, dependency-free CSS. Design tokens live in :root so the whole
   palette/typography can be re-skinned from one place as direction firms up.
   ========================================================================== */

:root {
  /* Color */
  --color-bg: #ffffff;
  --color-surface: #f5f7f7;
  --color-text: #1d2b2b;
  --color-muted: #54635f;
  --color-primary: #0f5a60;       /* deep teal — trust, calm */
  --color-primary-dark: #0a4146;
  --color-accent: #a05a1a;        /* warm amber — energy, optimism (AA-contrast on white) */
  --color-border: #e1e7e6;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  /* Layout */
  --maxw: 1080px;
  --maxw-prose: 720px;
  --space: 1rem;
  --radius: 8px;
}

/* --- Reset / base ------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; }
h3 { font-size: 1.15rem; }

a { color: var(--color-primary); }
a:hover { color: var(--color-primary-dark); }

/* --- Layout helpers ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--surface { background: var(--color-surface); }
.prose { max-width: var(--maxw-prose); }
.prose p { color: var(--color-muted); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn--outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary); color: #fff; }

/* --- Skip link (accessibility) ----------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* --- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand span { color: var(--color-primary); }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--color-primary); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
  line-height: 1;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 0.6rem; width: 100%; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding-block: clamp(3.5rem, 9vw, 6rem);
}
.hero h1 { margin: 0 0 0.5rem; }
.hero .lede { font-size: 1.25rem; opacity: 0.92; max-width: 40ch; }
.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}
.hero .btn--primary { background: var(--color-accent); }
.hero .btn--primary:hover { background: #b0631f; }

/* --- Page header (interior pages) -------------------------------------- */
.page-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.page-header p { color: var(--color-muted); max-width: 50ch; margin-bottom: 0; }

/* --- Cards / grids ------------------------------------------------------ */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin-top: 0; color: var(--color-primary-dark); }
.card p { color: var(--color-muted); margin-bottom: 0; }

/* Value / focus lists rendered as compact cards */
.feature h3 { margin: 0 0 0.25rem; color: var(--color-primary-dark); }
.feature p { margin: 0; color: var(--color-muted); }

/* --- Bio blocks --------------------------------------------------------- */
.bio { margin-bottom: 2.5rem; max-width: var(--maxw-prose); }
.bio h3 { color: var(--color-primary-dark); margin-bottom: 0.25rem; }
.bio .bio__role { color: var(--color-accent); font-weight: 600; margin: 0 0 0.75rem; }
.bio p { color: var(--color-muted); }

/* --- CTA band ----------------------------------------------------------- */
.cta {
  background: var(--color-primary-dark);
  color: #fff;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.85); max-width: 50ch; margin-inline: auto; }
.cta .btn--outline { border-color: #fff; color: #fff; }
.cta .btn--outline:hover { background: #fff; color: var(--color-primary-dark); }

/* --- Forms -------------------------------------------------------------- */
.form { max-width: var(--maxw-prose); }
.form__row { margin-bottom: 1.1rem; }
.form label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.form .req { color: var(--color-accent); }
.form input,
.form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 90, 96, 0.15);
}
.form textarea { min-height: 150px; resize: vertical; }
.form .hint { font-size: 0.85rem; color: var(--color-muted); margin-top: 0.3rem; }
/* Honeypot — hidden from people, catches bots */
.form__honey { position: absolute; left: -9999px; }

/* --- Contact details ---------------------------------------------------- */
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 0.5rem; color: var(--color-muted); }
.contact-list strong { color: var(--color-text); }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--color-text);
  color: #cdd6d4;
  padding-block: 2.5rem;
  font-size: 0.9rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.site-footer__brand { font-weight: 700; color: #fff; }
.site-footer__org { max-width: 34rem; }
.site-footer__tagline { margin: 0.25rem 0 0.75rem; }
.site-footer__mission { margin: 0 0 0.75rem; }
.site-footer__contact {
  font-style: normal;
  line-height: 1.5;
}
.site-footer__contact strong { color: #fff; }
/* Compliance details centered below the top row (brand/tagline + nav). */
.site-footer__legal {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
  font-size: 0.85rem;
}

/* --- Photo heroes & header bands --------------------------------------- */
/* Set the image per-page via the --bg custom property on the element, e.g.
   <section class="hero hero--photo" style="--bg:url('/img/home-hero.jpg')">
   The gradient sits on top of the photo to keep white text legible. */
.hero--photo {
  background-image:
    linear-gradient(135deg, rgba(10, 65, 70, 0.86), rgba(15, 90, 96, 0.66)),
    var(--bg);
  background-size: cover;
  background-position: center;
}

.page-header--photo {
  background-image:
    linear-gradient(rgba(18, 43, 43, 0.66), rgba(18, 43, 43, 0.66)),
    var(--bg);
  background-size: cover;
  background-position: center;
  border-bottom: 0;
  color: #fff;
  min-height: 280px;
  display: flex;
  align-items: center;
}
.page-header--photo h1 { color: #fff; }
.page-header--photo p { color: rgba(255, 255, 255, 0.92); }
.page-header--photo .eyebrow { color: #fff; opacity: 0.85; }

/* Solid color header band (no photo) */
.page-header--solid {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-bottom: 0;
  color: #fff;
}
.page-header--solid h1 { color: #fff; }
.page-header--solid p { color: rgba(255, 255, 255, 0.9); }
.page-header--solid .eyebrow { color: #fff; opacity: 0.85; }

/* Inline image block */
.media {
  margin-block: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.media img { width: 100%; height: auto; }
.media figcaption {
  font-size: 0.85rem;
  color: var(--color-muted);
  padding: 0.6rem 0.25rem 0;
}

/* --- Utilities ---------------------------------------------------------- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.5rem; }
.text-center { text-align: center; }
