/* ===== CSS Custom Properties ===== */
:root {
    --emerald-950: #042f23;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-100: #d1fae5;
    --emerald-50:  #ecfdf5;
    --cream:       #faf8f0;
    --cream-dark:  #f5f0e1;
    --cream-mid:   #f0ead6;
    --text-dark:   #1a1a1a;
    --text-mid:    #3d3d3d;
    --text-light:  #6b6b6b;
    --white:       #ffffff;
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:   0 4px 14px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.06);
    --shadow-lg:   0 10px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   20px;
    --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:   'Lato', 'Segoe UI', system-ui, sans-serif;
    --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

a {
    color: var(--emerald-700);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--emerald-500); }

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

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--emerald-900);
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-mid);
    max-width: 600px;
    margin: 0 auto;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.2;
}

.btn-primary {
    background: var(--emerald-800);
    color: var(--white);
    border-color: var(--emerald-800);
}
.btn-primary:hover {
    background: var(--emerald-700);
    border-color: var(--emerald-700);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--emerald-800);
    border-color: var(--emerald-800);
}
.btn-outline-light:hover {
    background: var(--emerald-800);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
    transition: box-shadow var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--emerald-900);
}
.logo:hover { color: var(--emerald-900); }

.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.logo span {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}
.logo-sub {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    display: block;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.main-nav a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-mid);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.main-nav a:hover {
    color: var(--emerald-700);
    background: var(--emerald-50);
}

.nav-cta {
    background: var(--emerald-800) !important;
    color: var(--white) !important;
    font-weight: 700 !important;
    border-radius: var(--radius-sm) !important;
    margin-left: 8px;
}
.nav-cta:hover {
    background: var(--emerald-700) !important;
    color: var(--white) !important;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--emerald-900);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.mobile-menu-btn:hover { background: var(--emerald-50); }

/* Mobile nav overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav-overlay.active {
    transform: translateX(0);
}
.mobile-nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--emerald-900);
    padding: 8px;
    border-radius: var(--radius-sm);
}
.mobile-nav-close:hover { background: var(--emerald-50); }
.mobile-nav-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.mobile-nav-link:hover {
    color: var(--emerald-700);
    background: var(--emerald-50);
}
.mobile-nav-cta {
    margin-top: 16px;
    background: var(--emerald-800);
    color: var(--white);
    padding: 16px 36px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
}
.mobile-nav-cta:hover {
    background: var(--emerald-700);
    color: var(--white);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--emerald-950);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(4, 47, 35, 0.88) 0%,
        rgba(6, 78, 59, 0.80) 50%,
        rgba(10, 120, 87, 0.70) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 24px 80px;
    width: 100%;
}

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

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--emerald-100);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

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

/* ===== About ===== */
.about {
    background: var(--cream);
}

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

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

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

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--emerald-100);
    border-radius: var(--radius-lg);
    z-index: -1;
}

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

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

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

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

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

.program-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.program-card-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}
.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.program-card:hover .program-card-image img {
    transform: scale(1.05);
}

.program-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--emerald-800);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.program-card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
    color: var(--emerald-900);
}

.program-card-body p {
    color: var(--text-mid);
    margin-bottom: 20px;
    font-size: 0.98rem;
}

.program-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.program-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-dark);
}

/* ===== Testimonials ===== */
.testimonials {
    background: var(--cream);
}

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

.testimonial-card {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-quote-mark {
    font-family: var(--font-serif);
    font-size: 5rem;
    line-height: 1;
    color: var(--emerald-100);
    position: absolute;
    top: 16px;
    left: 28px;
    pointer-events: none;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author-avatar {
    width: 44px;
    height: 44px;
    background: var(--emerald-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-name {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
}
.testimonial-role {
    display: block;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--emerald-900);
    padding: 100px 0;
}

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

.cta-eyebrow { color: var(--emerald-100); }

.cta-title {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-text {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

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

/* ===== Contact ===== */
.contact {
    background: var(--white);
}

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

.contact-description {
    color: var(--text-mid);
    font-size: 1.05rem;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--emerald-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--emerald-900);
    margin-bottom: 4px;
}
.contact-detail span,
.contact-detail a {
    color: var(--text-mid);
    font-size: 0.95rem;
}
.contact-detail a:hover { color: var(--emerald-600); }

/* Form */
.contact-form-wrap {
    background: var(--cream);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

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

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    border: 1.5px solid var(--cream-mid);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-600);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 20px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: var(--radius-sm);
    color: var(--emerald-800);
    font-weight: 600;
    font-size: 0.95rem;
}
.form-success.visible {
    display: flex;
}

/* ===== Map ===== */
.map-section {
    background: var(--cream-dark);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--emerald-950);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}

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

.logo-footer { margin-bottom: 16px; }
.logo-footer .logo-sub { color: rgba(255,255,255,0.5); }

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

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald-100);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}
.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--emerald-100);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image-wrap img { height: 400px; }
    .programs-grid { gap: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
    
    .hero-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
    
    .section { padding: 70px 0; }
    
    .about-values { grid-template-columns: 1fr; }
    .about-image-accent { display: none; }
    
    .programs-grid { grid-template-columns: 1fr; }
    
    .testimonials-grid { grid-template-columns: 1fr; }
    
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
    
    .contact-form-wrap { padding: 24px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .site-header .container { height: 70px; }
    .logo span { font-size: 0.95rem; }
    .logo-sub { font-size: 0.65rem; }
    .logo-icon { width: 32px; height: 32px; }
    .hero-content { padding: 100px 16px 60px; }
    .program-card-body { padding: 24px; }
    .testimonial-card { padding: 28px; }
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion: ensure everything is visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}
