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

:root {
    --green-900: #1a3a25;
    --green-800: #2D5A3D;
    --green-700: #3d7a52;
    --green-600: #4a9463;
    --green-500: #5fa876;
    --green-100: #d4e8d8;
    --green-50: #e8f0e4;
    --cream: #f8f7f4;
    --cream-dark: #f0ede8;
    --white: #ffffff;
    --text-dark: #1a1a18;
    --text-mid: #4a4a46;
    --text-light: #7a7a74;
    --line: rgba(45, 90, 61, 0.12);
    --line-strong: rgba(45, 90, 61, 0.25);
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Typography ─── */
.section-eyebrow {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-700);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.section-title em {
    font-style: italic;
    color: var(--green-800);
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-mid);
    max-width: 520px;
    line-height: 1.7;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.02em;
    padding: 14px 28px;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: var(--green-800);
    color: var(--white);
    border: 1.5px solid var(--green-800);
}

.btn-primary:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(45, 90, 61, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--green-800);
    border: 1.5px solid var(--green-800);
}

.btn-ghost:hover {
    background: var(--green-800);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

/* ─── Navigation ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 24px;
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    background: rgba(248, 247, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--green-800);
    font-weight: 500;
}

.nav.scrolled .nav-logo {
    color: var(--green-800);
}

.nav-logo-icon {
    flex-shrink: 0;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-mid);
    letter-spacing: 0.01em;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--green-800);
    transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
    color: var(--green-800);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--green-800) !important;
    border: 1.5px solid var(--green-800);
    padding: 8px 20px;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--green-800) !important;
    color: var(--white) !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    padding: 0;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--green-800);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(248, 247, 244, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--text-dark);
    font-weight: 400;
    transition: color 0.2s;
}

.mobile-menu-link:hover {
    color: var(--green-800);
}

.mobile-menu-cta {
    margin-top: 16px;
    font-family: var(--font-sans) !important;
    font-size: 14px !important;
    border: 1.5px solid var(--green-800);
    padding: 12px 32px;
    border-radius: 100px;
    color: var(--green-800) !important;
}

/* ─── Hero ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
    background: linear-gradient(
        160deg,
        #1a3a25 0%,
        #2D5A3D 30%,
        #3d7a52 55%,
        #5fa876 75%,
        #8cc4a0 100%
    );
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(26, 58, 37, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(95, 168, 118, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-eyebrow {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(232, 240, 228, 0.7);
    margin-bottom: 24px;
    font-weight: 400;
}

.hero-headline {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-headline em {
    font-style: italic;
    color: var(--green-100);
}

.hero-sub {
    font-size: 17px;
    color: rgba(232, 240, 228, 0.8);
    line-height: 1.8;
    max-width: 540px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-actions .btn-primary {
    background: var(--white);
    color: var(--green-800);
    border-color: var(--white);
}

.hero-actions .btn-primary:hover {
    background: var(--green-50);
    border-color: var(--green-50);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.hero-actions .btn-ghost {
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.hero-actions .btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--white);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 6px;
}

.hero-stat-label {
    font-size: 12px;
    color: rgba(232, 240, 228, 0.6);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 400;
}

.hero-divider {
    width: 1px;
    height: 40px;
    background: rgba(232, 240, 228, 0.2);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(232, 240, 228, 0.4);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 1;
}

/* ─── About ─── */
.about {
    padding: 120px 0;
    background: var(--cream);
}

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

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.about-image-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    z-index: -1;
}

.about-content {
    padding: 16px 0;
}

.about-content p {
    font-size: 16px;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.about-value {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 400;
}

.about-value svg {
    color: var(--green-700);
    flex-shrink: 0;
}

/* ─── Programs ─── */
.programs {
    padding: 120px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.program-card {
    background: var(--cream);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(45, 90, 61, 0.08);
}

.program-card-image {
    overflow: hidden;
    aspect-ratio: 4/3;
}

.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.program-card:hover .program-card-image img {
    transform: scale(1.03);
}

.program-card-body {
    padding: 28px;
}

.program-age {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-700);
    font-weight: 500;
    margin-bottom: 8px;
}

.program-card-body h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.program-card-body p {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 20px;
}

.program-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.program-features li {
    font-size: 13px;
    color: var(--text-mid);
    padding-left: 16px;
    position: relative;
}

.program-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-500);
}

/* ─── Philosophy ─── */
.philosophy {
    padding: 120px 0;
    background: var(--cream);
}

.philosophy-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.philosophy-content p {
    font-size: 16px;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 16px;
}

.philosophy-quotes {
    margin-top: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.philosophy-quotes blockquote {
    font-family: var(--font-serif);
    font-size: 20px;
    font-style: italic;
    color: var(--green-800);
    line-height: 1.5;
    margin-bottom: 8px;
}

.philosophy-quotes cite {
    font-family: var(--font-sans);
    font-size: 13px;
    font-style: normal;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

.philosophy-image-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.philosophy-img {
    overflow: hidden;
    border-radius: 12px;
}

.philosophy-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.philosophy-img:hover img {
    transform: scale(1.02);
}

.philosophy-img-offset {
    margin-top: 48px;
}

/* ─── Gallery ─── */
.gallery {
    padding: 120px 0;
    background: var(--white);
}

.gallery .section-header {
    margin-bottom: 48px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* ─── Visit ─── */
.visit {
    padding: 120px 0;
    background: var(--cream);
}

.visit .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.visit-content {
    padding: 16px 0;
}

.visit-text {
    font-size: 16px;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 40px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
    padding: 28px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--line);
}

.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.5;
}

.visit-detail svg {
    color: var(--green-700);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail strong {
    font-weight: 500;
}

.visit-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.visit-map {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--green-50);
    border: 1px solid var(--line);
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 24px;
}

.map-placeholder p {
    font-size: 14px;
    color: var(--text-mid);
}

.map-link {
    font-size: 13px;
    color: var(--green-700);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.map-link:hover {
    color: var(--green-800);
}

/* ─── Contact ─── */
.contact {
    padding: 120px 0;
    background: var(--white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info p {
    font-size: 16px;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-dark);
}

.contact-method svg {
    color: var(--green-700);
    flex-shrink: 0;
}

.contact-method a {
    transition: color 0.2s;
}

.contact-method a:hover {
    color: var(--green-700);
}

/* Form */
.contact-form-wrap {
    background: var(--cream);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--line);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 300;
    color: var(--text-dark);
    background: var(--white);
    border: 1.5px solid var(--line-strong);
    border-radius: 8px;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-600);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-note {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin-top: 4px;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    padding: 40px 20px;
}

.form-success.show {
    display: flex;
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--text-dark);
}

.form-success p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ─── Footer ─── */
.footer {
    background: var(--green-900);
    padding: 64px 0 0;
    color: rgba(232, 240, 228, 0.7);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(232, 240, 228, 0.1);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 12px;
    color: rgba(232, 240, 228, 0.5);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--white);
    font-weight: 500;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(232, 240, 228, 0.6);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.footer-contact a {
    color: rgba(232, 240, 228, 0.6);
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 13px;
    color: rgba(232, 240, 228, 0.35);
}

.footer-bottom a {
    color: rgba(232, 240, 228, 0.5);
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .about-grid,
    .philosophy-layout,
    .visit .container,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .philosophy-img-offset {
        margin-top: 0;
    }

    .about-image-wrap {
        max-width: 480px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 24px 80px;
    }

    .hero-headline {
        font-size: clamp(32px, 8vw, 48px);
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat-num {
        font-size: 22px;
    }

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

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .programs-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 24px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .visit-details {
        padding: 20px;
    }
}

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

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero-divider {
        width: 40px;
        height: 1px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
