/* ==========================================================================
   Nurture Early Learning — site styles
   Design tokens adapted from the Google Stitch concept (Playfair Display +
   Quicksand, forest/sage greens on warm cream).
   ========================================================================== */

:root {
    --background: #faf9f5;
    --surface: #ffffff;
    --surface-tint: #f4f4f0;
    --surface-strong: #e9e8e4;
    --panel: #dee4d9;
    --primary: #26412c;
    --primary-container: #3d5942;
    --primary-soft: #afcfb1;
    --sage: #d4e9ca;
    --text: #1b1c1a;
    --text-muted: #424842;
    --outline: #c2c8c0;

    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Quicksand", "Segoe UI", Arial, sans-serif;

    --container-max: 1200px;
    --gutter: 24px;
    --section-gap: 80px;
    --radius: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--primary-container);
    color: #ffffff;
}

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

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--primary);
    line-height: 1.2;
}

h1 {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(28px, 3.5vw, 34px);
    font-weight: 600;
    margin-bottom: 24px;
}

h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
}

p:last-child {
    margin-bottom: 0;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: 0;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button-primary {
    background: var(--primary-container);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(61, 89, 66, 0.25);
}

.button-primary:hover {
    background: var(--primary);
}

.button-lg {
    padding: 16px 36px;
    font-size: 14px;
}

.button-block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(250, 249, 245, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(38, 65, 44, 0.12);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 24px;
}

.wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
}

.wordmark-nurture {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 30px;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.wordmark-sub {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #8aa383;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a:not(.button) {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.nav-links a:not(.button):hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

.nav-cta-mobile {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--primary);
    cursor: pointer;
    padding: 4px;
}

.menu-toggle .icon-close {
    display: none;
}

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

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: var(--sage);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--background) 12%, rgba(250, 249, 245, 0.82) 42%, rgba(250, 249, 245, 0.15) 78%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 48px;
    padding-bottom: 48px;
}

.hero-content h1 {
    max-width: 14em;
    margin-bottom: 24px;
}

.lead {
    font-size: 18px;
    font-weight: 500;
    max-width: 34em;
    margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Subpage hero (compact title band used by every page except the home page)
   -------------------------------------------------------------------------- */

.page-hero {
    background: var(--sage);
    padding: 140px 0 56px;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(32px, 4vw, 44px);
}

.page-hero p {
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 500;
    max-width: 38em;
    margin: 12px auto 0;
}

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

.section {
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
}

.section-tinted {
    background: var(--surface-tint);
}

.section-heading {
    text-align: center;
    max-width: 44em;
    margin: 0 auto 56px;
}

.section-heading p {
    color: var(--text-muted);
}

/* Long-form text column for content pages */

.prose {
    max-width: 70ch;
    margin: 0 auto;
}

.prose h2 {
    margin-top: 48px;
}

.prose h2:first-child {
    margin-top: 0;
}

.text-link {
    font-weight: 700;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Two-column split (about, contact) */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.split-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--outline);
}

.split-media img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   Program cards
   -------------------------------------------------------------------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(38, 65, 44, 0.12);
    transform: translateY(-3px);
}

.card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--sage);
}

.card-body {
    padding: 24px;
}

.card-body h3 {
    font-size: 20px;
}

.card-body p {
    color: var(--text-muted);
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   Fees & enrolment panel
   -------------------------------------------------------------------------- */

.panel {
    background: var(--panel);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.panel-title {
    text-align: center;
}

.panel-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 16px;
}

.detail-list {
    list-style: none;
}

.detail-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.detail-icon {
    flex-shrink: 0;
    color: var(--primary-container);
    margin-top: 3px;
}

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

.contact-list {
    list-style: none;
    margin-top: 8px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--primary-container);
    color: var(--sage);
}

.cta-card {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(38, 65, 44, 0.08);
    padding: 40px;
}

.cta-card p {
    color: var(--text-muted);
}

.cta-card .button {
    margin-top: 12px;
}

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

.site-footer {
    background: var(--surface-strong);
    padding-top: var(--section-gap);
    padding-bottom: 32px;
}

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

.footer-brand p {
    color: var(--text-muted);
    max-width: 26em;
    margin-top: 16px;
}

.footer-social {
    display: inline-flex;
    margin-top: 8px;
    color: var(--primary);
    transition: color 0.3s ease;
}

.footer-social:hover {
    color: var(--primary-container);
}

.site-footer h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a,
.footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-contact p {
    color: var(--text-muted);
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(38, 65, 44, 0.15);
    font-size: 14px;
    color: var(--text-muted);
}

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

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 56px;
        --gutter: 20px;
    }

    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--background);
        border-bottom: 1px solid rgba(38, 65, 44, 0.12);
        padding: 8px 0 16px;
    }

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

    .nav-links li {
        width: 100%;
    }

    .nav-links a:not(.button) {
        display: block;
        padding: 12px var(--gutter);
    }

    .nav-links a.active {
        border-bottom: none;
    }

    .nav-cta-mobile {
        display: block;
        padding: 12px var(--gutter) 0;
    }

    .nav-links.open ~ * .icon-menu {
        display: none;
    }

    .menu-toggle[aria-expanded="true"] .icon-menu {
        display: none;
    }

    .menu-toggle[aria-expanded="true"] .icon-close {
        display: block;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-media::after {
        background: linear-gradient(to bottom, rgba(250, 249, 245, 0.9) 30%, rgba(250, 249, 245, 0.55));
    }

    .split {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .panel {
        padding: 32px 24px;
    }

    .panel-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta-card {
        padding: 28px 24px;
    }
}

@media (max-width: 560px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}
