/* ===== ABOUT PAGE SPECIFIC STYLES ===== */
/* Container styles are now in scrollable-container.css */

/* ===== HEADER POSITIONING ===== */
.header-section {
    position: static;
    flex-shrink: 0;
}

/* Override mobile-specific sticky positioning */
@media (max-width: 768px) {
    .header-section {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        overflow-y: visible !important;
        margin-bottom: 0 !important;
        padding: clamp(0.2rem, 1vh, 0.6rem) clamp(0.2rem, 1.2vw, 0.6rem) !important;
    }
}

@media (max-width: 480px) {
    .container .header-section {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        overflow-y: visible !important;
    }
    
    body .container .header-section {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        overflow-y: visible !important;
    }
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 20px 40px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ===== MISSION STATEMENT ===== */
.mission-statement {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.mission-statement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.mission-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

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

.vision-lead {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.core-principles h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: center;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.principle {
    background: rgba(255, 255, 255, 0.7);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.principle:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.principle-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.principle h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.principle p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.mission-quote {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important;
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    position: relative;
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.7;
}

.mission-quote p {
    color: white !important;
    margin: 0;
}

.mission-quote::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
}

/* ===== WHY CHOOSE SECTION ===== */
.why-choose {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.why-choose h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.why-intro {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.why-item {
    background: rgba(255, 255, 255, 0.6);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.why-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.why-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.why-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== FOUNDERS SECTION ===== */
.founders-section {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.founders-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.founder-profile {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.founder-profile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.founder-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.founder-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.avatar-icon {
    font-size: 2.5rem;
    color: white;
}

.founder-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.founder-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.founder-story {
    line-height: 1.8;
}

.story-section {
    margin-bottom: 30px;
}

.story-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.story-section p {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.origin-story {
    background: rgba(229, 57, 53, 0.05);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.origin-story blockquote {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-style: italic;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.origin-story blockquote p {
    margin: 0;
    color: var(--text-primary);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-section p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.cta-btn,
a.cta-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-btn:hover,
a.cta-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white !important;
    text-decoration: none !important;
}

.cta-btn.primary,
a.cta-btn.primary {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-color) !important;
}

.cta-btn.primary:hover,
a.cta-btn.primary:hover {
    background: white !important;
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

.cta-quote {
    font-style: italic;
    font-size: 1rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== BACK HOME ===== */
.back-home {
    text-align: center;
    margin-top: 20px;
}

.back-btn,
a.back-btn {
    background: rgba(255, 255, 255, 0.8) !important;
    color: var(--primary-color) !important;
    padding: 12px 25px;
    border-radius: 20px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.back-btn:hover,
a.back-btn:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
}

/* ===== DARK MODE STYLES ===== */
body.dark-mode .page-title {
    color: var(--primary-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

body.dark-mode .page-subtitle {
    color: #d0d0d0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

body.dark-mode .mission-statement,
body.dark-mode .why-choose,
body.dark-mode .founders-section {
    background: rgba(40, 40, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .principle,
body.dark-mode .why-item,
body.dark-mode .founder-profile {
    background: rgba(60, 60, 60, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .origin-story {
    background: rgba(229, 57, 53, 0.1);
}

body.dark-mode .origin-story blockquote {
    background: rgba(60, 60, 60, 0.8);
    color: #e0e0e0;
}

body.dark-mode .back-btn {
    background: rgba(60, 60, 60, 0.8);
    color: var(--primary-light);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .back-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-content {
        padding: 15px 20px;
    }

    .mission-statement,
    .why-choose,
    .founders-section {
        padding: 25px;
        margin-bottom: 25px;
    }

    .founder-profile {
        padding: 25px;
    }

    .founder-header {
        flex-direction: column;
        text-align: center;
    }

    .founder-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .cta-section {
        padding: 30px 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
    }

    .principles-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .menu-container-left,
    .menu-container {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 10px 15px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .mission-statement,
    .why-choose,
    .founders-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .founder-profile {
        padding: 20px;
    }

    .cta-section {
        padding: 25px 15px;
    }

    .principle,
    .why-item {
        padding: 20px 15px;
    }
}

/* === FIX FOR CONTRAST ISSUE === */
/* Override global CSS rules that force dark text colors */
.cta-section,
.cta-section *,
.cta-section h2,
.cta-section p,
.cta-section .cta-quote,
.cta-section strong,
.cta-section em {
    color: white !important;
}

/* ===== FORCE PROPER CONTRAST ON BUTTONS ===== */
/* High specificity override to ensure proper text contrast */
.cta-section .cta-btn,
.cta-section a.cta-btn,
main .cta-btn,
main a.cta-btn {
    color: white !important;
    text-decoration: none !important;
}

.cta-section .cta-btn:hover,
.cta-section a.cta-btn:hover,
main .cta-btn:hover,
main a.cta-btn:hover {
    color: white !important;
    text-decoration: none !important;
}

.cta-section .cta-btn.primary,
.cta-section a.cta-btn.primary,
main .cta-btn.primary,
main a.cta-btn.primary {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

.cta-section .cta-btn.primary:hover,
.cta-section a.cta-btn.primary:hover,
main .cta-btn.primary:hover,
main a.cta-btn.primary:hover {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

.back-home .back-btn,
.back-home a.back-btn,
main .back-btn,
main a.back-btn {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

.back-home .back-btn:hover,
.back-home a.back-btn:hover,
main .back-btn:hover,
main a.back-btn:hover {
    color: white !important;
    text-decoration: none !important;
}

/* ===== FORCE WHITE TEXT ON MISSION QUOTE ===== */
/* High specificity override to ensure white text on gradient background */
.mission-statement .mission-quote,
.mission-statement .mission-quote p,
main .mission-quote,
main .mission-quote p {
    color: white !important;
}

.mission-statement .mission-quote *,
main .mission-quote * {
    color: white !important;
}
