/* =========================================================================
   The Lyman School — public site
   -------------------------------------------------------------------------
   Ported from the school portal's hand-coded design system, not copied
   wholesale: the portal is an authenticated app (gradebook grids, tab bars,
   bottom sheets) and this is a public marketing site, so only the tokens and
   the components that make sense outside a logged-in shell come along —
   --lift hard-offset shadows, the card/btn/badge vocabulary, the masthead
   wordmark treatment. Everything below is new: hero, pillars, cta-band,
   founder/quote blocks, and the compliance strip the footer must always
   show.

   Fonts are self-hosted from ../fonts/ per the no-CDN hosting policy.
   ========================================================================= */

@font-face {
    font-family: 'Inter';
    src: url('../fonts/InterVariable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Serif Display';
    src: url('../fonts/DMSerifDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink:        #14213D;
    --ink-soft:   #4A5670;
    --paper:      #F2F4F8;
    --surface:    #FFFFFF;
    --line:       #14213D;
    --primary:    #2F5AE0;
    --primary-dk: #1E3EA8;
    --accent:     #F2B705;
    --danger:     #C8452C;
    --success:    #1F7A5C;

    --radius:     12px;
    --border:     2.5px;
    --lift:       4px 4px 0 var(--ink);
    --lift-sm:    3px 3px 0 var(--ink);

    --space:      1rem;
    --maxw:       68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}

h1, h2, h3 {
    font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.6rem;
}

h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }
a { color: var(--primary-dk); text-decoration-thickness: 2px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

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

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ------------------------------------------------------------- layout --- */

.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.section { padding: 3rem 0; }
.section--tight { padding: 1.75rem 0; }
.section--paper { background: var(--paper); }
.section--surface { background: var(--surface); }

.section__head { max-width: 42rem; margin: 0 0 2rem; }
.section__head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-dk);
    margin-bottom: 0.5rem;
}

.muted { color: var(--ink-soft); }

/* --------------------------------------------------------------- head --- */

.masthead {
    background: var(--surface);
    border-bottom: var(--border) solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
}

.masthead__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.35rem;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.wordmark span { color: var(--primary); }

.masthead__logo {
    width: 2.1rem;
    height: 2.1rem;
    object-fit: contain;
    margin-right: 0.5rem;
}

.nav { display: none; gap: 0.25rem; margin-left: auto; align-items: center; }

@media (min-width: 58rem) {
    .nav { display: flex; }
}

.nav a {
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    color: var(--ink-soft);
}

.nav a:hover { color: var(--ink); background: var(--paper); }
.nav a[aria-current='page'] { background: var(--ink); color: #fff; }

.nav__cta { margin-left: 0.5rem; }

.nav-toggle {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border: var(--border) solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
}

@media (min-width: 58rem) {
    .nav-toggle { display: none; }
}

.mobile-nav {
    border-top: var(--border) solid var(--line);
    background: var(--surface);
    padding: 0.5rem 1.25rem 1rem;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav a {
    display: block;
    padding: 0.65rem 0.25rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
    border-top: 2px solid #DDE2EC;
}

.mobile-nav a:first-child { border-top: 0; }

@media (min-width: 58rem) {
    .mobile-nav { display: none !important; }
}

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

.hero {
    padding: 3.5rem 0 3rem;
    background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%);
    border-bottom: var(--border) solid var(--line);
}

.hero__inner {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 56rem) {
    .hero__inner { grid-template-columns: 3fr 2fr; }
}

.hero__eyebrow { color: var(--primary-dk); }
.hero__tagline { font-size: 1.1rem; color: var(--ink-soft); max-width: 34rem; }
.hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.hero__media {
    border: var(--border) solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--lift);
    overflow: hidden;
    background: var(--surface);
}

.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------- pillars --- */

.pillars {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 34rem) {
    .pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 56rem) {
    .pillars { grid-template-columns: repeat(3, 1fr); }
}

.pillar {
    background: var(--surface);
    border: var(--border) solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--lift-sm);
    padding: 1.5rem;
}

.pillar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: var(--border) solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    margin-bottom: 0.9rem;
    font-size: 1.3rem;
}

/* --------------------------------------------------------------- card --- */

.card {
    background: var(--surface);
    border: var(--border) solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--lift);
    padding: 1.5rem;
}

.card + .card { margin-top: 1.25rem; }
.card--flat { box-shadow: none; }
.card--attention { border-color: var(--accent); box-shadow: 4px 4px 0 var(--accent); }

/* ------------------------------------------------------------- quote --- */

.quote-block {
    border-left: var(--border) solid var(--accent);
    padding: 0.25rem 0 0.25rem 1.25rem;
    margin: 1.5rem 0;
}

.quote-block p {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--ink);
}

.quote-block cite { font-style: normal; font-weight: 600; color: var(--ink-soft); }

/* ------------------------------------------------------------- badge --- */

.badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border: 2px solid var(--line);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    background: var(--surface);
}

.badge--accent { background: var(--accent); }

/* ------------------------------------------------------------- button --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font: inherit;
    font-weight: 650;
    padding: 0.7rem 1.3rem;
    border: var(--border) solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--lift-sm);
    transition: transform 80ms ease, box-shadow 80ms ease;
}

.btn:hover { color: var(--ink); }

.btn:active {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 var(--ink);
}

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dk); color: #fff; }
.btn--quiet { box-shadow: none; border-color: var(--ink-soft); }
.btn--block { width: 100%; }

@media (prefers-reduced-motion: reduce) {
    .btn { transition: none; }
    .btn:active { transform: none; }
}

/* ----------------------------------------------------------- cta band --- */

.cta-band {
    background: var(--ink);
    color: #fff;
    border-top: var(--border) solid var(--line);
    border-bottom: var(--border) solid var(--line);
}

.cta-band h2 { color: #fff; }
.cta-band .muted { color: #B9C2D6; }
.cta-band .eyebrow { color: var(--accent); }

.cta-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2.5rem 0;
}

/* --------------------------------------------------------- sponsor row --- */

.sponsor-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 0;
}

.sponsor-row img {
    max-height: 2.75rem;
    width: auto;
    filter: grayscale(1);
    opacity: 0.75;
}

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

.site-footer {
    background: var(--surface);
    border-top: var(--border) solid var(--line);
    padding: 2.5rem 0 1.5rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-grid h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; font-family: 'Inter', sans-serif; font-weight: 700; }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--primary-dk); }

/* Florida DOE mandatory notices — must stay visible on every page. */
.compliance-strip {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #DDE2EC;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: center;
}

.compliance-strip a {
    font-weight: 650;
    font-size: 0.85rem;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
}

.footer-meta {
    margin-top: 1.5rem;
    color: var(--ink-soft);
    font-size: 0.8rem;
}

.social-row { display: flex; gap: 0.6rem; margin-top: 0.75rem; }

.social-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: var(--border) solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
}

.social-row a:hover { background: var(--paper); }

/* ----------------------------------------------------------- utilities -- */

.mt-lg { margin-top: 2rem; }

.cards-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
    .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.cards-grid .card { text-decoration: none; color: inherit; margin-top: 0; }
.cards-grid .card:hover { border-color: var(--primary); }
