:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --cream-50: #fefdf8;
    --cream-100: #fefce8;
    --cream-200: #fef9c3;
    --cream-300: #fef08a;
    --cream-400: #fde68a;
    --cream-500: #f5f5dc;
    --cream-600: #e8e8c8;
    --cream-700: #d4d4a8;
    --cream-800: #c4c498;
    --cream-900: #b8b888;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #7a7a7a;
    --line: rgba(10, 10, 10, 0.08);
    --line-strong: rgba(10, 10, 10, 0.15);
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
}

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

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-primary);
    background: var(--cream-50);
    line-height: 1.6;
    font-size: 15px;
    letter-spacing: 0.01em;
}

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

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

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

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--emerald-800);
}

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

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.2s ease;
}

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

.nav-links a:hover {
    color: var(--emerald-700);
}

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

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

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 60px;
    background: var(--cream-50);
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-tagline {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 20px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero h1 .accent {
    color: var(--emerald-700);
    font-style: italic;
}

.hero-desc {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 440px;
    margin-bottom: 36px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--emerald-700);
    color: #fff;
    border-color: var(--emerald-700);
}

.btn-primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--line-strong);
}

.btn-outline:hover {
    border-color: var(--emerald-600);
    color: var(--emerald-700);
}

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

/* ── Hero Stat Cards ── */
.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 20px 22px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.stat-card.card-1 { grid-column: 1; grid-row: 1; }
.stat-card.card-2 { grid-column: 2; grid-row: 1; }
.stat-card.card-3 { grid-column: 1; grid-row: 2; }
.stat-card.card-4 { grid-column: 2; grid-row: 2; }

.stat-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.stat-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--emerald-800);
    line-height: 1.3;
    margin-bottom: 4px;
}

.stat-detail {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Section Labels ── */
.section-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 16px;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 48px;
    line-height: 1.2;
}

/* ── About ── */
.about {
    padding: 120px 0;
    background: #fff;
}

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

.about-image {
    overflow: hidden;
    border-radius: 2px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.about-text .section-heading {
    margin-bottom: 24px;
}

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

.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-stat-num {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--emerald-700);
}

.about-stat-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ── Departments ── */
.departments {
    padding: 120px 0;
    background: var(--cream-50);
}

.departments .section-heading {
    text-align: center;
}

.departments .section-label {
    text-align: center;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dept-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 32px;
    transition: box-shadow 0.3s ease;
}

.dept-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.dept-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
    margin-bottom: 20px;
}

.dept-card h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.dept-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.dept-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 1px;
    margin-top: auto;
}

/* ── Visit ── */
.visit {
    padding: 120px 0;
    background: #fff;
}

.visit .section-label,
.visit .section-heading {
    text-align: center;
}

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

.visit-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.visit-block {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.visit-block:first-child {
    border-top: 1px solid var(--line);
}

.visit-block-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.visit-block address,
.visit-block p {
    font-style: normal;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.visit-block a {
    color: var(--emerald-700);
    transition: color 0.2s ease;
}

.visit-block a:hover {
    color: var(--emerald-500);
}

.hours-note {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.visit-map {
    border-radius: 2px;
    overflow: hidden;
    min-height: 400px;
    border: 1px solid var(--line);
}

/* ── Contact ── */
.contact {
    padding: 120px 0;
    background: var(--emerald-800);
    color: #fff;
}

.contact .section-label {
    color: var(--emerald-300);
}

.contact .section-heading {
    color: #fff;
}

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

.contact-text p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 36px;
    font-size: 0.9375rem;
}

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

.contact-method {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: #fff;
    padding: 16px 20px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 2px;
    transition: all 0.25s ease;
    width: fit-content;
}

.contact-method:hover {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.05);
}

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

.contact-form-wrap {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2px;
    padding: 36px;
}

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

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 2px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    transition: border-color 0.2s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--emerald-400);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 2px;
    color: var(--emerald-200);
    font-size: 0.875rem;
    margin-top: 16px;
}

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

.form-success svg {
    color: var(--emerald-400);
    flex-shrink: 0;
}

/* ── Footer ── */
.footer {
    padding: 60px 0 32px;
    background: var(--emerald-900);
    color: rgba(255,255,255,0.6);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    color: #fff;
}

.footer-brand p {
    font-size: 0.8125rem;
    margin: 0;
    line-height: 1.6;
}

.footer-brand a {
    color: var(--emerald-300);
    transition: color 0.2s ease;
}

.footer-brand a:hover {
    color: var(--emerald-200);
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: rgba(255,255,255,0.9);
}

.footer-bottom {
    padding-top: 24px;
}

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

/* ── Mobile Menu ── */
.nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(254, 253, 248, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-cards {
        max-width: 480px;
    }

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

    .about-image {
        max-height: 400px;
    }

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

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

    .visit-map {
        min-height: 300px;
    }

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

    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }
}

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

    .nav-toggle {
        display: flex;
    }

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

    .hero {
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-cards {
        grid-template-columns: 1fr;
    }

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

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

    .about,
    .departments,
    .visit,
    .contact {
        padding: 80px 0;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

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

/* ── Scroll Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}
