/* ==========================================
   index.css — HOMEPAGE
   ========================================== */

:root {
    --green-dark: #205c3b;
    --green-main: #318354;
    --green-light: #eaf5ed;
    --green-pale: #f5faf6;
    --text-dark: #25372c;
    --text-muted: #68766d;
    --white: #ffffff;
    --border: #dce8df;
    --yellow: #ffd166;
    --shadow: 0 8px 25px rgba(32, 92, 59, .09);
}

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

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }

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

button, input, textarea, select { font: inherit; }

.container {
    width: min(1120px, 90%);
    margin-inline: auto;
}

/* Header and navigation */
.site-header {
    position: relative;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-content {
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

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

.brand-logo {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--green-dark);
    color: var(--white);
    font-size: 23px;
    font-weight: 800;
}

.brand-name {
    color: var(--green-dark);
    font-size: 17px;
    font-weight: 800;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active { color: var(--green-main); }

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--green-dark);
    font-size: 28px;
    cursor: pointer;
}

/* Buttons */
.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 21px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: .2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--green-dark);
    color: var(--white);
}

.btn-primary:hover { background: #174b2e; }

.btn-secondary {
    color: var(--green-dark);
    border-color: #b8d8c1;
    background: transparent;
}

.btn-secondary:hover { background: var(--white); }

.btn-light {
    color: var(--green-dark);
    background: var(--white);
}

/* Homepage hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    background: linear-gradient(135deg, #f5fbf6, #eaf7ee);
    text-align: center;
}

/* School photo behind the text, 50% transparent */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 720px;
    margin-inline: auto;
    /* soft glow keeps the text readable over a busy photo */
    text-shadow: 0 1px 14px rgba(255, 255, 255, .85), 0 0 4px rgba(255, 255, 255, .6);
}

.hero .btn { text-shadow: none; }

.eyebrow {
    margin-bottom: 12px;
    color: var(--green-main);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero h1 {
    margin-bottom: 20px;
    color: var(--green-dark);
    font-size: clamp(36px, 4vw, 53px);
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-text > p:not(.eyebrow) {
    margin-bottom: 28px;
    color: var(--text-dark);
    font-size: 17px;
}

.hero .eyebrow { color: var(--green-dark); }

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hero .btn-secondary {
    border-color: var(--green-dark);
    background: rgba(255, 255, 255, .7);
}

/* Sections */
.section { padding: 70px 0; }

.section-light { background: var(--green-pale); }

.section-heading {
    max-width: 680px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-heading h2,
.about-preview h2 {
    margin-bottom: 15px;
    color: var(--green-dark);
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.25;
}

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

.feature-grid,
.quick-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 23px;
}

.feature-card,
.quick-link {
    padding: 27px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform .2s ease;
}

.feature-card:hover,
.quick-link:hover { transform: translateY(-4px); }

.feature-icon,
.quick-link-icon {
    display: inline-grid;
    place-items: center;
    margin-bottom: 17px;
    color: var(--green-dark);
    font-size: 28px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--green-light);
}

.feature-card h3,
.quick-link h3 {
    margin-bottom: 10px;
    color: var(--green-dark);
    font-size: 19px;
}

.feature-card p,
.quick-link p {
    color: var(--text-muted);
    font-size: 14px;
}

.text-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--green-main);
    font-size: 14px;
    font-weight: 800;
}

.text-link:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

/* About preview */
.about-preview {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 55px;
}

.about-preview > div:first-child > p:not(.eyebrow) {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.about-highlight {
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.highlight-symbol {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 15px;
    border-radius: 50%;
    background: #fff4d7;
    color: #966b00;
    font-size: 25px;
}

.about-highlight h3 {
    margin-bottom: 12px;
    color: var(--green-dark);
    font-size: 22px;
}

.about-highlight p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Contact banner */
.contact-banner {
    padding: 42px 0;
    background: var(--green-dark);
    color: var(--white);
}

.contact-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.contact-banner h2 {
    margin-bottom: 8px;
    font-size: 29px;
}

.contact-banner p {
    color: #e0eee4;
    font-size: 14px;
}

/* Skip link (hidden until focused) */
.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--green-dark);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
}

.skip-link:focus { top: 12px; }

/* Logo image (replaces the "S" box) */
.brand-logo-img { width: 50px; height: 50px; object-fit: contain; }
.footer-logo .brand-logo-img { padding: 4px; border-radius: 50%; background: var(--white); }

/* Longer school name: let it wrap on tablets so the menu still fits */
@media (min-width: 701px) and (max-width: 900px) {
    .brand-name { max-width: 140px; font-size: 14px; line-height: 1.25; }
}

@media (max-width: 700px) {
    .brand-logo-img { width: 44px; height: 44px; }
}

@media (max-width: 420px) {
    .brand-name { max-width: 165px; font-size: 14px; line-height: 1.25; }
}

/* Footer */
.site-footer { padding-top: 55px; background: #173f2a; color: var(--white); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--white);
    font-size: 18px;
    font-weight: 800;
}

.footer-logo .brand-logo { background: var(--white); color: var(--green-dark); }

.footer-brand p { max-width: 340px; color: #cfe2d5; font-size: 14px; }

.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.footer-column h3 {
    margin-bottom: 6px;
    color: var(--white);
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-column a { color: #cfe2d5; font-size: 14px; }
.footer-column a:hover { color: var(--white); text-decoration: underline; }

.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.footer-bottom p { color: #b5ccbc; font-size: 13px; text-align: center; }

@media (max-width: 700px) {
    .site-footer { padding-top: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 30px; }
    .footer-brand { grid-column: 1 / -1; }
}

/* Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

/* Responsive */
@media (max-width: 900px) {
    .main-nav { gap: 12px; }
    .main-nav a { font-size: 12px; }
    .hero { padding: 90px 0; }
    .about-preview { gap: 30px; }
    .feature-grid, .quick-links { gap: 16px; }
}

@media (max-width: 700px) {
    .header-content { min-height: 72px; flex-wrap: wrap; }
    .brand-name { font-size: 15px; }
    .brand-logo { width: 39px; height: 39px; }

    .menu-toggle { display: block; }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-bottom: 14px;
    }

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

    .main-nav a {
        padding: 11px 10px;
        border-top: 1px solid var(--border);
        font-size: 14px;
    }

    .hero { padding: 60px 0; }

    .about-preview { grid-template-columns: 1fr; gap: 30px; }

    .hero h1 { font-size: 36px; }

    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }

    .section { padding: 50px 0; }

    .feature-grid,
    .quick-links { grid-template-columns: 1fr; }

    .contact-banner-content {
        align-items: flex-start;
        flex-direction: column;
    }

}