/* =========================================================
   Strawberry Fields Nursery School — global stylesheet
   Editorial-style design with cream palette and serif headlines.
   ========================================================= */

:root {
    --bg: #FAF8F4;
    --bg-alt: #F3EEE6;
    --bg-dark: #1E1A14;
    --text: #1F1B16;
    --text-muted: #6B6258;
    --accent: #B8413A;
    --accent-hover: #93312B;
    --line: rgba(31, 27, 22, 0.12);
    --gold: #B0934D;

    --font-script: "Allura", "Italianno", cursive;
    --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

    --container-max: 1240px;
    --measure: 680px;

    --radius: 4px;
    --transition: 200ms ease;
}

/* --- reset --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video, picture { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }

/* --- base typography --- */
body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    font-size: 17px;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.6em;
    color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }

p { margin: 0 0 1.1em; max-width: var(--measure); }
.center p, .hero p { margin-left: auto; margin-right: auto; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

::selection { background: var(--accent); color: #fff; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.script {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 1.5em;
    line-height: 1;
    color: var(--text);
}

/* --- layout helpers --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 28px;
}

.container-narrow {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 28px;
}

section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-bg { background: var(--bg-alt); }
.center { text-align: center; }

.divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 28px auto;
    border: 0;
}

/* --- header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 28px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    line-height: 1;
}
.brand__above {
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.brand__name {
    font-family: var(--font-script);
    font-size: 2.4rem;
    line-height: 1;
    margin: 2px 0;
}
.brand__below {
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav__link {
    color: var(--text);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
}
.nav__link.is-active { color: var(--accent); }
.nav__cta {
    padding: 11px 22px;
    background: var(--text);
    color: var(--bg);
    border-radius: var(--radius);
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    transition: background var(--transition);
}
.nav__cta:hover { background: var(--accent); color: #fff; }

.nav__toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    color: var(--text);
}
.nav__toggle svg { display: block; width: 26px; height: 26px; }

@media (max-width: 960px) {
    .nav {
        position: fixed;
        inset: 0;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        gap: 18px;
        transform: translateX(100%);
        transition: transform 300ms cubic-bezier(.4, 0, .2, 1);
        padding: 80px 28px;
    }
    .nav.is-open { transform: translateX(0); }
    .nav__link { font-size: 1rem; }
    .nav__toggle { display: inline-flex; }
    .nav__toggle.is-open { position: fixed; top: 22px; right: 22px; z-index: 110; }
    .brand__name { font-size: 2rem; }
}

/* --- buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform var(--transition), background var(--transition), color var(--transition);
    border: 1px solid var(--text);
    cursor: pointer;
    background: var(--text);
    color: var(--bg);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
.btn--inv { background: var(--bg); color: var(--text); border-color: var(--bg); }
.btn--inv:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* --- hero --- */
.hero {
    position: relative;
    height: 84vh;
    min-height: 540px;
    max-height: 820px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    color: #fff;
}
.hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
}
.hero__inner {
    position: relative;
    z-index: 2;
    padding: 0 28px 80px;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}
.hero__eyebrow {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.9;
    margin-bottom: 18px;
}
.hero h1 { color: #fff; margin-bottom: 24px; font-weight: 400; }
.hero p { color: rgba(255,255,255,0.92); font-size: 1.1rem; max-width: 560px; margin-bottom: 30px; }

/* --- page header (non-home pages) --- */
.page-header {
    padding: 100px 0 60px;
    text-align: center;
}
.page-header h1 { margin-bottom: 12px; }
.page-header .lead { font-family: var(--font-serif); font-style: italic; color: var(--text-muted); font-size: 1.2rem; max-width: 600px; margin: 0 auto; }

/* --- 2-column layout --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.two-col--reversed > :first-child { order: 2; }
.two-col img { border-radius: 2px; }
@media (max-width: 800px) {
    .two-col { grid-template-columns: 1fr; gap: 40px; }
    .two-col--reversed > :first-child { order: initial; }
}

/* --- cards / grid --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; gap: 40px; } .grid-2 { grid-template-columns: 1fr; gap: 32px; } }

.card {
    background: #fff;
    padding: 36px 32px;
    border-radius: 2px;
    box-shadow: 0 1px 0 var(--line);
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.96rem; color: var(--text-muted); }

.value {
    position: relative;
    overflow: hidden;
}
.value__img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 800ms ease;
}
.value:hover .value__img { transform: scale(1.04); }
.value__title {
    margin-top: 22px;
    font-family: var(--font-serif);
    font-size: 1.6rem;
}
.value__lead { color: var(--text-muted); }

/* --- quote --- */
.pull-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.4;
    text-align: center;
    color: var(--text);
    max-width: 760px;
    margin: 0 auto;
}
.pull-quote__cite {
    display: block;
    margin-top: 24px;
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-muted);
}

/* --- press / testimonials list --- */
.press-item {
    padding: 50px 0;
    border-bottom: 1px solid var(--line);
}
.press-item:last-child { border-bottom: 0; }
.press-item p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.55;
    color: var(--text);
}
.press-item__cite {
    display: block;
    margin-top: 18px;
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}

/* --- info lists --- */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.info-list li:last-child { border-bottom: 0; }
.info-list__label {
    font-weight: 500;
    min-width: 200px;
}

/* --- columns lists (clubs etc) --- */
.cols-3 {
    columns: 3;
    column-gap: 40px;
}
.cols-3 li {
    padding: 8px 0;
    break-inside: avoid;
    list-style: none;
    font-family: var(--font-serif);
    font-size: 1.15rem;
}
@media (max-width: 800px) { .cols-3 { columns: 2; } }
@media (max-width: 540px) { .cols-3 { columns: 1; } }

/* --- timeline / term dates --- */
.terms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.term-card {
    padding: 28px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 0 var(--line);
}
.term-card h3 {
    font-size: 1.15rem;
    margin-bottom: 14px;
    color: var(--accent);
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
}
.term-card dl { margin: 0; font-size: 0.94rem; }
.term-card dt { font-weight: 500; margin-top: 8px; }
.term-card dd { margin: 0; color: var(--text-muted); }

/* --- gallery strip --- */
.gallery-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}
.gallery-strip img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
}
@media (max-width: 800px) { .gallery-strip { grid-template-columns: repeat(2, 1fr); } }

/* --- features (cards on home) --- */
.feature {
    text-align: left;
}
.feature__img {
    aspect-ratio: 4 / 5;
    width: 100%;
    object-fit: cover;
    margin-bottom: 22px;
}
.feature h3 {
    font-size: 1.45rem;
    margin-bottom: 8px;
}
.feature p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 14px;
}
.feature__link {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

/* --- CTA panel --- */
.cta-panel {
    background: var(--bg-dark);
    color: var(--bg);
    padding: 100px 0;
    text-align: center;
}
.cta-panel h2 { color: var(--bg); }
.cta-panel p { color: rgba(255,255,255,0.78); margin: 0 auto 30px; }

/* --- footer --- */
.site-footer {
    background: var(--bg-dark);
    color: var(--bg);
    padding: 70px 0 30px;
}
.site-footer a { color: var(--bg); border-bottom: 1px solid rgba(255,255,255,0.2); }
.site-footer a:hover { color: #fff; border-color: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 60px;
    align-items: start;
}
@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.site-footer h4 { color: rgba(255,255,255,0.6); margin-bottom: 18px; font-size: 0.74rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; font-size: 0.95rem; }
.site-footer__brand p { font-size: 0.92rem; color: rgba(255,255,255,0.7); }
.site-footer__brand .brand__name { color: var(--bg); }
.site-footer__brand .brand__above, .site-footer__brand .brand__below { color: rgba(255,255,255,0.5); }
.site-footer__brand .brand { align-items: flex-start; }
.site-footer__bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}
.site-footer__ofsted img { height: 60px; }

/* --- utilities --- */
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* fade-in on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* logo image */
.brand img { height: 60px; width: auto; }

/* contact details */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    margin: 40px 0;
}
.contact-info h4 { color: var(--text-muted); margin-bottom: 10px; }
.contact-info p, .contact-info address { font-style: normal; margin: 0; font-size: 1rem; }

/* spacing reset for hero on page-header pages */
.page-header + section { padding-top: 0; }

/* video on home */
.home-video-section { padding: 0; background: var(--bg-dark); }
.home-video-section video { width: 100%; height: auto; display: block; }
