/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --forest-deep: #0f2618;
    --forest: #1a3c2a;
    --forest-mid: #2d5a3f;
    --forest-light: #3d7a56;
    --gold: #c8a96e;
    --gold-light: #dbbe8a;
    --gold-pale: #f0e4cc;
    --cream: #f7f4ee;
    --cream-light: #faf8f4;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-mid: #3a3a3a;
    --text-light: #6b6b6b;
    --text-lighter: #999999;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--cream-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--forest-deep);
}

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

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

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

/* ===== Section Shared ===== */
.section {
    padding: 100px 0;
}

.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: var(--forest-deep);
}

.section-lead {
    font-size: 1.1rem;
    color: var(--text-mid);
    max-width: 600px;
    line-height: 1.7;
}

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

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

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(247, 244, 238, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 60, 42, 0.08);
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--forest);
}

.nav-logo {
    width: 32px;
    height: 32px;
    color: var(--forest);
}

.nav-brand-text {
    display: none;
}

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

.nav-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: color var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-menu a:hover {
    color: var(--forest);
}

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

.nav-cta {
    background: var(--forest);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: background var(--transition), transform var(--transition) !important;
}

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

.nav-cta:hover {
    background: var(--forest-mid);
    color: var(--white) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--forest);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 38, 24, 0.88) 0%,
        rgba(26, 60, 42, 0.82) 50%,
        rgba(45, 90, 63, 0.75) 100%
    );
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(200, 169, 110, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
    padding-top: 72px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 48px 44px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.15;
}

.hero-title em {
    font-style: italic;
    color: var(--gold-light);
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    border: 1.5px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--forest-deep);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 169, 110, 0.35);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ===== Floating Stat Cards ===== */
.hero-stats {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: calc(100% - 48px);
    max-width: 1100px;
    z-index: 3;
}

.stat-card {
    background: var(--white);
    padding: 28px 24px;
    text-align: center;
    border: 1px solid rgba(26, 60, 42, 0.08);
    transition: var(--transition);
}

.stat-card:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.stat-card:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.stat-card:hover {
    background: var(--forest);
    border-color: var(--forest);
}

.stat-card:hover .stat-number,
.stat-card:hover .stat-label {
    color: var(--white);
}

.stat-card:hover .stat-number {
    color: var(--gold-light);
}

.stat-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--forest);
    margin-bottom: 4px;
    transition: color var(--transition);
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    transition: color var(--transition);
}

/* ===== About ===== */
.about {
    background: var(--cream-light);
    padding-top: 140px;
}

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

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

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--gold-pale);
    border-radius: var(--radius-md);
    z-index: -1;
}

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

.about-content .section-lead {
    margin-bottom: 20px;
}

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

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.value-icon {
    width: 22px;
    height: 22px;
    color: var(--gold);
    flex-shrink: 0;
}

.value-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* ===== Programs ===== */
.programs {
    background: var(--cream);
}

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

.program-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid rgba(26, 60, 42, 0.06);
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.program-card-img {
    height: 180px;
    overflow: hidden;
}

.program-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

.program-grade {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-pale);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.program-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--forest-deep);
}

.program-card-body p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.65;
}

/* ===== Community ===== */
.community {
    background: var(--forest-deep);
    color: var(--white);
}

.community .section-eyebrow {
    color: var(--gold);
}

.community .section-title {
    color: var(--white);
}

.community .section-lead {
    color: rgba(255, 255, 255, 0.7);
}

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

.community-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all var(--transition);
}

.community-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(200, 169, 110, 0.3);
    transform: translateY(-4px);
}

.community-card-icon {
    width: 36px;
    height: 36px;
    color: var(--gold);
    margin-bottom: 20px;
}

.community-card h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 12px;
}

.community-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

/* ===== Campus ===== */
.campus {
    background: var(--cream-light);
}

.campus-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.campus-photo {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.campus-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.campus-photo:hover img {
    transform: scale(1.03);
}

/* ===== CTA ===== */
.cta {
    background: var(--forest);
    padding: 80px 0;
}

.cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-eyebrow {
    color: var(--gold) !important;
}

.cta-title {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 20px;
}

.cta-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Contact ===== */
.contact {
    background: var(--cream);
    padding-bottom: 120px;
}

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

.contact-detail {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-detail-icon {
    width: 24px;
    height: 24px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--forest-deep);
    margin-bottom: 4px;
}

.contact-detail p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.contact-detail a {
    color: var(--forest-mid);
    transition: color var(--transition);
}

.contact-detail a:hover {
    color: var(--gold);
}

/* ===== Contact Form ===== */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(26, 60, 42, 0.06);
}

.contact-form-title {
    font-size: 1.6rem;
    margin-bottom: 28px;
    color: var(--forest-deep);
}

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

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0ddd6;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--cream-light);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--forest-light);
    box-shadow: 0 0 0 3px rgba(61, 122, 86, 0.12);
    background: var(--white);
}

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

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b6b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 16px 20px;
    background: #f0f7f2;
    border: 1px solid #c8e6cc;
    border-radius: var(--radius-sm);
    color: var(--forest);
}

.form-success svg {
    width: 22px;
    height: 22px;
    color: var(--forest-light);
    flex-shrink: 0;
}

.form-success p {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ===== Footer ===== */
.footer {
    background: var(--forest-deep);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 14px;
}

.footer-logo-icon {
    width: 28px;
    height: 28px;
    color: var(--gold);
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
}

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-col address {
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
}

.footer-col address a {
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}

.footer-col address a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition);
}

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

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal.visible {
        opacity: 1;
        transform: none;
    }
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
    .nav-brand-text {
        display: inline;
    }
}

@media (max-width: 1024px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        bottom: -40px;
    }

    .stat-card:first-child {
        border-radius: var(--radius-md) 0 0 0;
    }

    .stat-card:nth-child(2) {
        border-radius: 0 var(--radius-md) 0 0;
    }

    .stat-card:nth-child(3) {
        border-radius: 0 0 0 var(--radius-md);
    }

    .stat-card:last-child {
        border-radius: 0 0 var(--radius-md) 0;
    }

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

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

    .community-grid .community-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(247, 244, 238, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(26, 60, 42, 0.08);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-card {
        padding: 36px 28px;
    }

    .hero-stats {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 40px;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .stat-card:first-child {
        border-radius: var(--radius-md) 0 0 0;
    }

    .stat-card:nth-child(2) {
        border-radius: 0 var(--radius-md) 0 0;
    }

    .stat-card:nth-child(3) {
        border-radius: 0 0 0 var(--radius-md);
    }

    .stat-card:last-child {
        border-radius: 0 0 var(--radius-md) 0;
    }

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

    .about-image {
        height: 360px;
    }

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

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .community-grid {
        grid-template-columns: 1fr;
    }

    .community-grid .community-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .campus-gallery {
        grid-template-columns: 1fr;
    }

    .campus-photo img {
        height: 240px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

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

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

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .cta-actions {
        flex-direction: column;
    }
}

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

    .stat-card {
        padding: 20px 16px;
    }

    .stat-number {
        font-size: 1.6rem;
    }
}
