/* ====================== ROOT & GLOBAL RESET ====================== */
:root {
    --foundation-green: #7ed957;
    --foundation-purple: #3d07a8;
    --foundation-cream: #faf8f2;
    --text-dark: #1f2937;
    --text-gray: #374151;
    --text-light: #f3f4f6;
}

/* Critical Mobile Gap Fix */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden !important;
}

/* Global Container Protection */
.container {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

/* ====================== HEADER ====================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    width: 100% !important;
}

/* Single Clean Rule for .container.nav */
.container.nav {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0.85rem 1rem !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-sizing: border-box;
}

/* Mobile - Very Tight Padding */
@media (max-width: 480px) {
    .container.nav {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 1024px) {
    .container.nav {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .container.nav {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

/* ====================== Logo ====================== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.logo img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    line-height: 1.1;
}

.full-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--foundation-purple);
    margin: 0;
    display: none;
}

.short-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--foundation-purple);
    margin: 0;
    display: block;
}

.logo-text small {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

/* Show full name only on very large screens */
@media (min-width: 1280px) {
    .full-name { display: block; }
    .short-name { display: none; }
    .logo img { width: 72px; height: 72px; }
}

/* ====================== Desktop Navigation ====================== */
.nav-links {
    display: none;
    align-items: center;
    gap: 1.6rem;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s;
}

.nav-links a:hover {
    color: var(--foundation-green);
}

/* Donate Button */
.btn-nav {
    background-color: var(--foundation-green);
    color: var(--foundation-purple);
    padding: 0.85rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

/* ====================== Mobile Menu Button ====================== */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
    background: none;
    border: none;
    color: var(--foundation-purple);
    cursor: pointer;
    z-index: 1010;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* ====================== Mobile Menu ====================== */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 1.1rem;
}

.mobile-menu-content a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    color: #374151;
    text-decoration: none;
}

.mobile-donate-btn {
    background: var(--foundation-green);
    color: var(--foundation-purple);
    text-align: center;
    padding: 1rem;
    border-radius: 9999px;
    font-weight: 700;
    margin-top: 1rem;
}

/* ====================== Hero ====================== */
.about-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(61, 7, 168, 0.82) 0%,
        rgba(61, 7, 168, 0.75) 40%,
        rgba(61, 7, 168, 0.65) 70%,
        rgba(126, 217, 87, 0.25) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-inner {
    max-width: 720px;
    padding: 0 1.25rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: rgba(126, 217, 87, 0.2);
    color: var(--foundation-green);
    border: 1px solid rgba(126, 217, 87, 0.4);
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-main-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3rem, 8.5vw, 5.2rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--foundation-green);
    font-style: italic;
}

.hero-lead {
    font-size: 1.25rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.92);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.btn-primary,
.btn-secondary {
    padding: 1.1rem 2.4rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.08rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--foundation-green);
    color: var(--foundation-purple);
}

.btn-primary:hover {
    background: white;
    transform: translateY(-4px);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--foundation-purple);
}

/* Trust Bar */
.hero-trust {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .about-hero {
        min-height: 85vh;
    }
    
    .hero-inner {
        padding-top: 2rem;
    }
}

/* ====================== Our Story Section ====================== */
.our-story-section {
    padding: 5.5rem 0;
    background: white;
}

.story-grid {
    display: grid;
    gap: 3.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .story-grid {
        grid-template-columns: 1.1fr 1fr;
    }
}

/* Text Side */
.story-text .section-tag {
    color: var(--foundation-green);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 5.5vw, 2.9rem);
    font-weight: 700;
    color: var(--foundation-purple);
    line-height: 1.15;
    margin-bottom: 1.75rem;
}

.prose-content p {
    margin-bottom: 1.4rem;
    font-size: 1.1rem;
    line-height: 1.75;
    color: #374151;
}

.prose-content strong {
    color: var(--foundation-purple);
}

/* Image Side */
.story-image {
    position: relative;
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    display: block;
}

/* Mobile Improvements */
@media (max-width: 640px) {
    .our-story-section {
        padding: 4rem 0;
    }
    
    .story-grid {
        gap: 2.5rem;
    }
}

/* ====================== Our Journey Timeline ====================== */
.journey-section {
    padding: 5.5rem 0;
    background: var(--foundation-cream);
}

.timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
}

/* Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, var(--foundation-green), var(--foundation-purple));
    border-radius: 9999px;
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    background: white;
    color: var(--foundation-purple);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    min-width: 145px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 3px solid var(--foundation-green);
    z-index: 2;
    flex-shrink: 0;
}

.timeline-content {
    background: white;
    padding: 1.75rem 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    flex: 1;
}

.timeline-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem;
    color: var(--foundation-purple);
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: #4b5563;
    line-height: 1.7;
}

/* ====================== Mobile Optimization ====================== */
@media (max-width: 640px) {
    .timeline::before {
        left: 18px;
    }
    
    .timeline-item {
        gap: 1.25rem;
    }
    
    .timeline-date {
        min-width: 125px;
        padding: 0.65rem 1rem;
        font-size: 0.98rem;
    }
    
    .timeline-content {
        padding: 1.4rem 1.5rem;
    }
}

/* ====================== Founder's Message Section ====================== */
.founder-section {
    padding: 6rem 0;
    background: var(--foundation-cream);
}

.mission-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .mission-grid {
        grid-template-columns: 1fr 1.15fr;
    }
}

/* Founder Portrait */
.mission-image img {
    width: 100%;
    max-width: 480px;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 0 auto;
}

/* Message Content */
.mission-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 5.5vw, 2.9rem);
    font-weight: 700;
    color: var(--foundation-purple);
    margin-bottom: 1.75rem;
    line-height: 1.15;
    text-align: center;
}

.founder-message p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 1.5rem;
}

/* Special Paragraphs */
.intro-paragraph {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foundation-purple);
    margin-bottom: 2rem;
}

.highlight-paragraph {
    font-style: italic;
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(126, 217, 87, 0.1);
    border-left: 6px solid var(--foundation-green);
    border-radius: 12px;
    margin: 2.5rem 0;
    color: var(--foundation-purple);
}

.call-to-heart {
    font-size: 1.28rem;
    font-weight: 700;
    text-align: center;
    padding: 2rem;
    background: rgba(61, 7, 168, 0.08);
    border-radius: 16px;
    color: var(--foundation-purple);
    margin: 2.5rem 0;
}

/* Founder Signature */
.founder-signature {
    margin-top: 3rem;
    text-align: right;
    font-style: italic;
    color: var(--foundation-purple);
}

.founder-signature p {
    margin-bottom: 0.4rem;
}

.signature-name {
    font-size: 1.45rem;
    font-weight: 700;
    font-style: normal;
    color: var(--foundation-green);
}

.signature-title {
    font-size: 1.05rem;
    color: #555;
    font-style: normal;
}

/* Donate Button */
.founder-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 2.5rem;
    padding: 1.1rem 2.8rem;
    background: var(--foundation-green);
    color: var(--foundation-purple);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(126, 217, 87, 0.3);
    transition: all 0.4s ease;
}

.founder-btn-primary:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(126, 217, 87, 0.4);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .founder-section {
        padding: 4.5rem 0;
    }
    
    .mission-grid {
        gap: 3rem;
    }
    
    .founder-signature {
        text-align: center;
    }
}

/* ====================== EXECUTIVE LEADERSHIP ====================== */
.team-executive {
    padding: 6rem 0;
    background: white;
}

.text-center {
    max-width: 720px;
    margin: 0 auto 4rem;
    padding: 0 1.25rem;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.text-center .section-tag {
    color: var(--foundation-green);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    align-items: center;
    justify-content: center;
}

/* .team-executive .section-tag {
    color: var(--foundation-green);
    font-weight: 600;
} */

.text-center .section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 5.5vw, 2.9rem);
    color: var(--foundation-purple);
    margin-bottom: 0.75rem;
    text-align: center;
    padding: 0 1.25rem;
}

.section-subtitle {
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

/* Executive Grid - 4 cards on large screens */
.executive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

/* Force 4 columns on large screens */
@media (min-width: 1200px) {
    .executive-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .executive-grid {
        grid-template-columns: repeat(3, 1fr);   /* 3 on medium-large */
    }
}

/* Executive Card */
.executive-card {
    background: white;
    border-radius: 1.25rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.executive-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.executive-card img {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--foundation-green);
    margin-bottom: 1.25rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.executive-card h3 {
    font-size: 1.22rem;
    color: var(--foundation-purple);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.exec-title {
    color: var(--foundation-green);
    font-weight: 600;
    font-size: 0.98rem;
    margin-bottom: 1rem;
}

/* Mobile & Tablet */
@media (max-width: 640px) {
    .executive-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.75rem;
    }
    
    .executive-card img {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .executive-card {
        padding: 1.5rem 1rem;
    }
}

/* ====================== CTA Section ====================== */
.cta-section {
    position: relative;
    padding: 7rem 0 6rem;
    background: var(--foundation-purple);
    color: white;
    overflow: hidden;
}

/* Background Overlay */
.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(61, 7, 168, 0.92) 0%, 
        rgba(61, 7, 168, 0.85) 50%, 
        rgba(126, 217, 87, 0.22) 100%);
    z-index: 1;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/orphanage.jpeg') center/cover no-repeat;
    opacity: 0.08;
    mix-blend-mode: overlay;
    z-index: 1;
}

/* Content */
.cta-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1.25rem;
    justify-content: center;
    text-align: center;
}

.cta-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.4rem, 6.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-text {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.92);
}

/* Buttons */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.cta-btn-primary,
.cta-btn-secondary {
    padding: 1.15rem 2.6rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.35s ease;
    min-width: 240px;
}

.cta-btn-primary {
    background: var(--foundation-green);
    color: var(--foundation-purple);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-btn-primary:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(126, 217, 87, 0.45);
}

.cta-btn-secondary {
    border: 2px solid white;
    color: white;
}

.cta-btn-secondary:hover {
    background: white;
    color: var(--foundation-purple);
    transform: translateY(-5px);
}

/* Trust Text */
.cta-small-text {
    font-size: 1rem;
    opacity: 0.85;
    margin-top: 1.5rem;
    font-style: italic;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .cta-section {
        padding: 5.5rem 0 4.5rem;
    }
}

/* Partners */
.partner-box {
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.partner-box:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-4px);
}

.partner-icon {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.75rem;
    color: var(--green);
}

.partner-box p {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Prose-like styling for paragraphs */
.prose-like p {
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--gray-600);
}

.prose-like strong {
    color: var(--purple);
    font-weight: 600;
}

/* ====================== Footer ====================== */
.site-footer {
    background: #1f2937;
    color: #e5e7eb;
    padding-top: 4rem;
}

.footer-content {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1.2fr;
    }
}

.footer-col h3 {
    color: white;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.85rem;
}

.footer-col a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--foundation-green);
}

/* Logo Column */
.logo-col .footer-logo img {
    height: 180px;
    width: auto;
    border-radius: 0.75rem;
    margin-bottom: 0.2rem;
}

.footer-mission {
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: 1.5rem;
    color: #9ca3af;
}

/* Social Links */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--foundation-green);
    color: var(--foundation-purple);
    transform: translateY(-3px);
}

/* Contact Info */
.contact-info i {
    width: 20px;
    color: var(--foundation-green);
    margin-right: 10px;
}

/* Bottom Bar */
.footer-bottom {
    background: #111827;
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.95rem;
    color: #9ca3af;
}

.footer-bottom .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.made-with-love {
    color: var(--foundation-green);
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}