/* ==========================================================================
   KUSUM FOUNDATION - LEGACY PAGE STYLESHEET
   ========================================================================== */

:root {
    --legacy-primary-green: #0D2E2C;
    --legacy-dark-green: #0B2E2B;
    --legacy-bg-green: #0D3330;
    --legacy-cream-bg: #FBF7EE;
    --legacy-white: #FFFFFF;
    --legacy-text-dark: #0D2E2C;
    --legacy-text-light: #F3F7F6;
    --legacy-text-muted: #4A635E;
    --legacy-gold: #E8A246;

    --legacy-font-sans: 'Poppins', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --legacy-container-max: 1160px;
    --legacy-container-narrow: 1160px;
}

/* --- RESET & BASE STYLES --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body.legacy-page {
    font-family: var(--legacy-font-sans);
    background-color: var(--legacy-white);
    color: var(--legacy-text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--legacy-container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* --- 1. HEADER --- */
.legacy-site-header {
    background-color: var(--legacy-white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.legacy-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--legacy-primary-green);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.brand-subtext {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--legacy-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 3px;
}

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

.desktop-nav .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--legacy-primary-green);
    position: relative;
    padding: 4px 0;
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active {
    color: var(--legacy-primary-green);
    font-weight: 600;
}

.desktop-nav .nav-link.active::after,
.desktop-nav .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--legacy-primary-green);
    border-radius: 2px;
}

.header-contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--legacy-primary-green);
}

.header-contact-info a:hover {
    text-decoration: underline;
}

.contact-divider {
    color: #CBD5E1;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    z-index: 1001;
}

.hamburger-line {
    width: 26px;
    height: 3px;
    background-color: var(--legacy-primary-green);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-drawer {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--legacy-white);
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-drawer.open {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-link {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--legacy-primary-green);
}

.mobile-nav-link.active {
    font-weight: 700;
}

/* --- 2. HERO BANNER SECTION --- */
.legacy-hero-section {
    position: relative;
    background-image: url('Images/KUSUM-JI\'S-LEGACY.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 24px 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(253, 250, 246, 0.85) 100%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--legacy-primary-green);
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
}

/* --- 3. GREEN BACKGROUND SECTION --- */
.legacy-green-section {
    position: relative;
    background-image: url('Images/KUSUM-JI\'S-LEGACY-Green-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 90px 24px;
    color: var(--legacy-white);
}

.green-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 51, 48, 0.90) 0%, rgba(11, 46, 43, 0.93) 100%);
    z-index: 1;
}

.legacy-story-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max-width, 1160px);
    margin: 0 auto;
    padding: 0 24px;
}

.legacy-subheading {
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--legacy-text-light);
    margin-bottom: 28px;
    line-height: 1.45;
}

.legacy-text-lead {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--legacy-text-light);
    margin-bottom: 32px;
    line-height: 1.7;
    opacity: 0.95;
}

.legacy-date-highlight {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--legacy-white);
    margin: 36px 0;
    letter-spacing: 0.02em;
}

.legacy-text {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--legacy-text-light);
    margin-bottom: 26px;
    line-height: 1.75;
    opacity: 0.92;
}

.legacy-text-emphasis {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--legacy-white);
    margin-bottom: 26px;
    line-height: 1.6;
}

.legacy-text-closing {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--legacy-text-light);
    margin-top: 32px;
    margin-bottom: 0;
    line-height: 1.75;
    opacity: 0.95;
}

/* --- 4. CREAM BACKGROUND SECTION --- */
.legacy-cream-section {
    background-color: var(--legacy-cream-bg);
    padding: 100px 24px;
    color: var(--legacy-text-dark);
}

.legacy-cream-container {
    width: 100%;
    max-width: var(--container-max-width, 1160px);
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--legacy-primary-green);
    margin-bottom: 36px;
    letter-spacing: -0.01em;
}

.cream-text {
    font-size: 1.08rem;
    font-weight: 400;
    color: var(--legacy-text-dark);
    margin-bottom: 24px;
    line-height: 1.7;
}

.cream-quote {
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 500;
    color: var(--legacy-primary-green);
    margin-top: 40px;
    line-height: 1.6;
}



/* --- RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .desktop-nav,
    .header-contact-info {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .section-title {
        font-size: 2.1rem;
    }
}

@media (max-width: 600px) {
    .legacy-hero-section {
        padding: 80px 20px 60px;
        min-height: 240px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .legacy-subheading {
        font-size: 1.2rem;
    }

    .legacy-green-section {
        padding: 60px 16px;
    }

    .legacy-cream-section {
        padding: 60px 16px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
