/* ============================================================
   Education Foundations — stylesheet
   Palette: deep navy blue + complementary warm amber/gold
   ============================================================ */

:root {
    --navy-900: #0b1f3a;
    --navy-800: #12294a;
    --navy-700: #1c3a63;
    --blue-600: #2563a8;
    --blue-500: #3b7dc4;
    --blue-100: #e8f0f9;

    --amber-600: #c9821f;
    --amber-500: #e6952a;
    --amber-400: #f2a541;
    --amber-100: #fdf1dd;

    --ink:      #14212e;
    --slate:    #4b5a6b;
    --muted:    #6b7a8a;
    --line:     #e2e8ef;
    --bg:       #ffffff;
    --bg-alt:   #f5f8fb;
    --bg-navy:  #0b1f3a;

    --radius:   14px;
    --radius-sm: 8px;
    --shadow:   0 10px 30px rgba(11, 31, 58, 0.08);
    --shadow-lg: 0 20px 50px rgba(11, 31, 58, 0.14);

    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans:  'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; color: var(--navy-900); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 .6em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
p { margin: 0 0 1rem; }
a { color: var(--blue-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--amber-600); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--amber-500);
    color: #fff;
    font-family: var(--sans);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .01em;
    padding: 13px 28px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
    box-shadow: 0 6px 16px rgba(230, 149, 42, 0.3);
}
.btn:hover { background: var(--amber-600); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(201, 130, 31, 0.38); }
.btn-small { padding: 9px 18px; font-size: .85rem; box-shadow: none; }
.btn-light { background: #fff; color: var(--navy-900); box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.btn-light:hover { background: var(--amber-100); color: var(--navy-900); }
.btn-outline { background: transparent; color: var(--navy-900); border: 2px solid var(--navy-700); box-shadow: none; }
.btn-outline:hover { background: var(--navy-900); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy-900); font-weight: 700; }
.brand:hover { color: var(--navy-900); }
.brand-mark {
    font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
    background: var(--navy-900); color: #fff; padding: 8px 11px; border-radius: 9px;
    letter-spacing: .02em;
    border-bottom: 3px solid var(--amber-500);
}
.brand-text { font-family: var(--serif); font-size: 1.15rem; letter-spacing: -.01em; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.main-nav a {
    color: var(--slate); font-weight: 500; font-size: .93rem;
    padding: 9px 12px; border-radius: 8px; display: inline-block;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy-900); background: var(--blue-100); }
.caret { font-size: .6em; opacity: .6; }

.has-dropdown { position: relative; }
.dropdown {
    position: absolute; top: 100%; left: 0; min-width: 250px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); padding: 8px; display: none; flex-direction: column;
}
/* .open (set by JS) works on every device. Hover-open is limited to real
   mouse pointers so a tap on a touchscreen doesn't leave the menu stuck open. */
/* Dropdown opens ONLY when JS adds .open (on click). No hover anywhere. */
.has-dropdown.open .dropdown { display: flex; }
.caret { transition: transform .2s; }
.has-dropdown.open > a .caret { transform: rotate(180deg); }
.dropdown li { width: 100%; }
.dropdown a { display: block; width: 100%; font-size: .9rem; }
.nav-cta { margin-left: 8px; }
.nav-cta a { color: #fff !important; background: var(--amber-500) !important; }
.nav-cta a:hover { background: var(--amber-600) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--navy-900); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--blue-600) 120%);
    color: #fff;
    overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; right: -120px; top: -120px;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(242,165,65,.28), transparent 65%);
}
.hero::before {
    content: ""; position: absolute; left: -80px; bottom: -140px;
    width: 340px; height: 340px; border-radius: 50%;
    background: radial-gradient(circle, rgba(59,125,196,.35), transparent 65%);
}
.hero-inner { position: relative; z-index: 2; padding: 84px 24px 80px; max-width: 820px; }
.hero-home .hero-inner { padding: 120px 24px 112px; }
.hero-eyebrow {
    text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
    font-weight: 600; color: var(--amber-400); margin-bottom: 14px;
}
.hero-heading {
    color: #fff; font-size: clamp(2.1rem, 5vw, 3.5rem); margin: 0 0 18px; font-weight: 600;
}
.hero-heading .accent { color: var(--amber-400); }
.hero-sub { font-size: 1.2rem; color: #d7e2f0; max-width: 640px; margin: 0; }
.breadcrumb { margin-top: 22px; font-size: .82rem; color: #9fb4cd; letter-spacing: .02em; }

/* ---------- Sections ---------- */
section.block { padding: 78px 0; }
section.block.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--amber-600); margin-bottom: 12px; }
.lede { font-size: 1.15rem; color: var(--slate); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 28px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .num {
    font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
    color: var(--amber-600); display: inline-block; margin-bottom: 10px;
    background: var(--amber-100); width: 42px; height: 42px; line-height: 42px;
    text-align: center; border-radius: 10px;
}
.card p:last-child { margin-bottom: 0; }
.card .card-tag {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
    font-weight: 700; color: var(--blue-500);
}

/* Feature list with left accent */
.feature { border-left: 3px solid var(--amber-500); padding-left: 20px; margin-bottom: 26px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--slate); margin: 0; }

/* ---------- Stats band ---------- */
.stats { background: var(--navy-900); color: #fff; padding: 66px 0; }
.stats h2 { color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 8px; }
.stat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 26px 24px; }
.stat .big { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--amber-400); display: block; margin-bottom: 6px; }
.stat p { color: #c6d4e6; margin: 0; font-size: .96rem; }

/* ---------- Quote ---------- */
.quote { background: var(--bg-alt); border-radius: var(--radius); padding: 44px 40px; border-left: 5px solid var(--amber-500); }
.quote blockquote { font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; color: var(--navy-900); margin: 0 0 16px; font-weight: 500; }
.quote cite { font-style: normal; font-weight: 600; color: var(--amber-600); font-size: .95rem; }
.quote.on-navy { background: var(--navy-800); border-left-color: var(--amber-400); }
.quote.on-navy blockquote { color: #fff; }
.quote.on-navy cite { color: var(--amber-400); }

/* ---------- Pills / tags ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: var(--blue-100); color: var(--navy-800); border-radius: 999px; padding: 8px 16px; font-size: .88rem; font-weight: 500; }
.pill-amber { background: var(--amber-100); color: var(--amber-600); }

/* ---------- Team card ---------- */
.team-card { display: grid; grid-template-columns: 200px 1fr; gap: 34px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.headshot { width: 200px; height: 240px; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); font-family: var(--serif); font-size: 1rem; text-align: center; }
.team-card .role { color: var(--amber-600); font-weight: 600; margin: -4px 0 14px; }
.team-card .email { font-weight: 600; }

/* ---------- Lists ---------- */
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--slate); }
.tick-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--amber-500); font-weight: 700; }
.tick-list li strong { color: var(--ink); }

.talk-list { list-style: none; padding: 0; margin: 0; }
.talk-list li { padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--slate); }
.talk-list li:last-child { border-bottom: none; }
.talk-list .talk-title { font-family: var(--serif); font-size: 1.1rem; color: var(--navy-900); font-weight: 600; }
.talk-list .talk-meta { display: block; font-size: .9rem; color: var(--amber-600); margin-top: 4px; }

/* ---------- Two-column prose ---------- */
.prose { max-width: 780px; }
.prose p { font-size: 1.06rem; color: var(--slate); }
.prose h2 { margin-top: 1.6em; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--amber-500), var(--amber-600)); color: #fff; padding: 56px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-text { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 0; max-width: 680px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c6d4e6; padding: 62px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-mark { display: inline-block; margin-bottom: 14px; }
.footer-name { font-family: var(--serif); color: #fff; font-size: 1.1rem; font-weight: 600; margin: 0 0 8px; }
.footer-muted { color: #97a9c0; font-size: .92rem; }
.footer-muted a { color: var(--amber-400); }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { color: #c6d4e6; font-size: .93rem; }
.footer-col ul a:hover { color: var(--amber-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; }
.footer-bottom p { color: #7d8ea6; font-size: .85rem; margin: 0; }

/* ---------- Contact form ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 38px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--navy-900); }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-family: var(--sans); font-size: .98rem; color: var(--ink); background: #fff; transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.field textarea { min-height: 130px; resize: vertical; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-weight: 500; }
.notice.ok { background: #e6f4ea; color: #1f6b39; border: 1px solid #b7e0c4; }
.notice.err { background: #fdecec; color: #b3261e; border: 1px solid #f4c2c0; }
.info-panel { background: var(--navy-900); color: #d7e2f0; border-radius: var(--radius); padding: 38px; }
.info-panel h3 { color: #fff; }
.info-panel a { color: var(--amber-400); }
.info-panel .pill { background: rgba(255,255,255,.08); color: #e5edf6; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); border: none; margin: 40px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .grid-3, .grid-2, .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .team-card { grid-template-columns: 1fr; }
    .headshot { width: 100%; height: 200px; }
    .contact-cols { grid-template-columns: 1fr !important; }
}

@media (max-width: 780px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; top: 72px; right: 0; width: 280px; height: calc(100vh - 72px);
        background: #fff; border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
        transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; padding: 16px;
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .main-nav a { padding: 12px; }
    .dropdown { position: static; display: none; box-shadow: none; border: none; border-left: 2px solid var(--blue-100); border-radius: 0; padding: 0 0 0 12px; margin: 4px 0 8px; }
    .has-dropdown.open .dropdown { display: flex; }
    .has-dropdown > a .caret { float: right; }
    .nav-cta { margin: 12px 0 0; }
    .nav-cta a { text-align: center; }
    .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .brand-text { display: none; }
    .hero-home .hero-inner { padding: 80px 24px 72px; }
}
