/* ============================================================
   Applied Learning Group — site styles
   Palette: navy #0d284a · deep navy #091e38 · gold #c09e58
            gold-light #eddec0 · gold-dark #a9812f · paper #fbfaf8
   Type:    Montserrat (headings) · Source Sans 3 (body)
   ============================================================ */

:root {
  --navy: #0d284a;
  --navy-deep: #091e38;
  --gold: #c09e58;
  --gold-light: #eddec0;
  --gold-dark: #a9812f;
  --paper: #fbfaf8;
  --ink: #1b2a3a;
  --body: #44526a;
  --muted: #5b6a80;
  --line: #e7e3db;
  --line-soft: #efece5;
  --heading: 'Montserrat', sans-serif;
  --text: 'Source Sans 3', sans-serif;
}

* { box-sizing: border-box; }

/* Scroll-reveal — subtle fade + slide up */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
}

body {
  font-family: var(--text);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }
::selection { background: var(--gold-light); }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { width: 30px; height: 32px; }

.brand-name {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.brand-name .gold { color: var(--gold); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--heading);
  font-size: 13.5px;
  font-weight: 600;
}

.site-nav a { color: var(--muted); }

.site-nav a.active {
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
}

.site-nav a.nav-cta {
  color: var(--paper);
  background: var(--navy);
  padding: 10px 22px;
  border-radius: 3px;
  border-bottom: none;
}

.site-nav a.nav-cta:hover { background: var(--gold-dark); color: var(--paper); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Typography ---------- */

.eyebrow {
  font-family: var(--heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.eyebrow-rule {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow-rule::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
}

h1 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 800;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.lede { font-size: 18px; line-height: 1.65; color: var(--body); text-wrap: pretty; margin: 0; }
.body-copy { font-size: 17.5px; line-height: 1.7; color: var(--body); text-wrap: pretty; margin: 0; }
.body-strong { font-weight: 600; color: var(--navy); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
}

.btn-primary { background: var(--navy); color: var(--paper); }
.btn-primary:hover { background: var(--gold-dark); color: var(--paper); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  padding: 14px 26px;
  border: 1.5px solid #cfc8bb;
}
.btn-outline:hover { border-color: var(--gold-dark); color: var(--gold-dark); }

.btn-gold { background: var(--gold); color: var(--navy); font-weight: 700; }
.btn-gold:hover { background: var(--gold-light); color: var(--navy); }

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

.hero { position: relative; overflow: hidden; background: var(--paper); }

.hero .container {
  padding-top: 75px;
  padding-bottom: 85px;
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 64px;
  align-items: center;
}

.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }

.hero-art { position: relative; padding: 0 0 22px 22px; }

.hero-art::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70%;
  height: 70%;
  background: var(--gold-light);
  border-radius: 4px;
}

.hero-art img.art {
  position: relative;
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 6px;
}

.hero-art .mark-badge {
  position: absolute;
  right: -18px;
  bottom: -8px;
  width: 76px;
  height: 80px;
  filter: drop-shadow(0 6px 18px rgba(13, 40, 74, 0.25));
}

/* ---------- Sections ---------- */

.section { padding-top: 75px; padding-bottom: 85px; }
.section-white { background: #ffffff; border-top: 1px solid var(--line-soft); }

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}

.split-wide-left { grid-template-columns: 7fr 5fr; }
.split-start { align-items: start; gap: 72px; }
.story-columns { grid-template-columns: 1fr 1fr; gap: 48px; }

.section-head { display: flex; flex-direction: column; gap: 18px; }
.copy-stack { display: flex; flex-direction: column; gap: 20px; }

.figure { position: relative; }
.figure img.art { width: 100%; height: 400px; object-fit: cover; border-radius: 6px; }
.figure.figure-short img.art { height: 340px; }

.figure-stat {
  position: absolute;
  left: 24px;
  bottom: -24px;
  background: var(--navy);
  color: var(--gold-light);
  border-radius: 4px;
  padding: 18px 24px;
  box-shadow: 0 10px 30px rgba(13, 40, 74, 0.25);
}

.figure-stat .num {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.figure-stat .label {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 12.5px;
  color: rgba(251, 250, 248, 0.8);
}

/* ---------- Navy band (stats / mission) ---------- */

.band-navy {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.band-navy .watermark {
  position: absolute;
  left: -120px;
  bottom: -180px;
  width: 520px;
  opacity: 0.06;
  pointer-events: none;
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 85px;
  padding-bottom: 85px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 26px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.stat-card .stat-icon {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 152px;
  height: auto;
  opacity: 1;
  pointer-events: none;
}

.stat-card > * { position: relative; z-index: 1; }
.stat-card .stat-icon { z-index: 0; }

.stat-card .value {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 42px;
  letter-spacing: -0.02em;
  color: var(--gold-light);
}

.stat-card .rule { width: 26px; height: 2px; background: var(--gold); }

.stat-card .label {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(251, 250, 248, 0.85);
}

/* ---------- Values grid (About) ---------- */

.mission {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.4;
  color: var(--paper);
  text-wrap: balance;
  margin: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.value-card .rule { width: 26px; height: 2px; background: var(--gold); }

.value-card h3 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--gold-light);
}

.value-card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(251, 250, 248, 0.82);
  text-wrap: pretty;
}

/* ---------- Team (About) ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.person-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--gold-light);
  flex-shrink: 0;
}

.avatar-sm { width: 58px; height: 58px; font-size: 18px; }

.avatar-photo { object-fit: cover; }

.person-card h3, .partner-card h3 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
}

.person-role {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.person-card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--body);
  text-wrap: pretty;
}

.partner-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 34px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.partner-head { display: flex; align-items: center; gap: 16px; }

.partner-card p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--body); text-wrap: pretty; }

/* ---------- Approvals placeholder ---------- */

.approvals .container {
  padding-top: 75px;
  padding-bottom: 85px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.approvals-placeholder {
  max-width: 620px;
  border: 1.5px dashed #d5cfc2;
  border-radius: 4px;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.approvals-placeholder h3 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}

.approvals-placeholder p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* ---------- Bottom CTA ---------- */

.cta-band { background: var(--navy); position: relative; overflow: hidden; }

.cta-band .watermark {
  position: absolute;
  right: -100px;
  top: -120px;
  width: 460px;
  opacity: 0.06;
  pointer-events: none;
}

.cta-band .container {
  max-width: 780px;
  position: relative;
  padding-top: 75px;
  padding-bottom: 85px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  text-align: center;
}

.cta-band h2 { color: var(--paper); font-size: 38px; text-wrap: balance; }
.cta-band .body-copy { color: rgba(251, 250, 248, 0.8); }

.subscribe {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.subscribe .eyebrow { color: var(--gold); }

.subscribe-form { display: flex; gap: 10px; width: 100%; max-width: 440px; }

.subscribe-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  font-family: var(--text);
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  border-radius: 3px;
  outline: none;
}

.subscribe-form input:focus { border-color: var(--gold); }

.subscribe-form button {
  padding: 13px 22px;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  color: var(--gold-light);
  border: 1.5px solid var(--gold);
  border-radius: 3px;
  cursor: pointer;
}

.subscribe-form button:hover { background: var(--gold); color: var(--navy); }

.subscribe-thanks { font-size: 16px; color: var(--gold-light); font-weight: 600; }

/* ---------- Contact page ---------- */

.contact-hero { position: relative; overflow: hidden; background: var(--paper); }

.contact-hero .container {
  padding-top: 75px;
  padding-bottom: 85px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-intro { display: flex; flex-direction: column; gap: 24px; }
.contact-hero h1 { font-size: 48px; }

.contact-details {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.contact-details .field-label {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.contact-details .field-value { font-size: 16.5px; }
.contact-details .field-value a { font-weight: 600; }

.contact-note {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
  text-wrap: pretty;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px 38px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--navy);
}

.req { font-weight: 400; color: var(--gold-dark); }
.opt { font-weight: 400; color: #8b97a8; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px 14px;
  font-family: var(--text);
  font-size: 15.5px;
  border: 1px solid #d5cfc2;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--navy); }

.contact-form textarea { resize: vertical; }

.form-error { font-size: 14.5px; color: var(--gold-dark); font-weight: 600; display: none; }
.form-error.visible { display: block; }

.form-success {
  display: none;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
}

.form-success.visible { display: flex; }

.form-success .check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 24px;
}

.form-success h3 { margin: 0; font-family: var(--heading); font-weight: 700; font-size: 20px; color: var(--navy); }
.form-success p { margin: 0; font-size: 16px; color: var(--muted); }

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

.site-footer { background: var(--navy-deep); }

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.footer-lockup { display: flex; align-items: center; gap: 16px; }
.footer-lockup img { width: 42px; height: 45px; }

.footer-wordmark {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: 16px;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.45;
  color: var(--paper);
}

.footer-wordmark .gold { color: var(--gold); }

.footer-nav {
  display: flex;
  gap: 28px;
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 600;
}

.footer-nav a { color: rgba(251, 250, 248, 0.75); }
.footer-nav a:hover { color: var(--gold); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 48px;
}

.footer-legal div {
  padding-top: 24px;
  font-size: 13.5px;
  color: rgba(251, 250, 248, 0.5);
}

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

@media (max-width: 900px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }

  .hero .container,
  .split,
  .contact-hero .container { grid-template-columns: 1fr; gap: 44px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid, .team-grid { grid-template-columns: 1fr; }
  .hero-art img.art { height: 380px; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 32px 20px;
    display: none;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-nav a.active { border-bottom: 1px solid var(--line-soft); }
  .site-nav a.nav-cta { text-align: center; margin-top: 12px; }

  .site-header .container { position: relative; }
}
