/* ====================== 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;
}

/* ====================== CONTACT HERO - HIGH SPECIFICITY OVERHAUL ====================== */
.hero-section.contact-hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: var(--foundation-purple);
    overflow: hidden;
    padding-top: 80px;
}

.contact-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.contact-hero .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.contact-hero .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(61, 7, 168, 0.8) 0%,
        rgba(61, 7, 168, 0.7) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.contact-hero .hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 2rem 1.25rem 7rem;
    box-sizing: border-box;
}

.contact-hero .hero-inner {
    color: white;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

/* Typography */
.contact-hero .hero-tag {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: rgba(126, 217, 87, 0.3);
    color: var(--foundation-green);
    border-radius: 9999px;
    font-weight: 700;
    margin-bottom: 1.8rem;
}

.contact-hero .hero-title {
    font-size: clamp(2.8rem, 9vw, 5.2rem);
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 1.4rem;
}

.contact-hero .hero-desc {
    font-size: clamp(1.15rem, 4.8vw, 1.4rem);
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.95;
}

/* Buttons */
.contact-hero .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 420px;
    margin: 0 auto;
}

.contact-hero .hero-btn-primary,
.contact-hero .hero-btn-secondary {
    padding: 1.35rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    text-align: center;
    transition: all 0.4s ease;
}

.contact-hero .hero-btn-primary {
    background: var(--foundation-green);
    color: var(--foundation-purple);
}

.contact-hero .hero-btn-secondary {
    border: 2px solid white;
    color: white;
}

/* Desktop */
@media (min-width: 768px) {
    .contact-hero .hero-buttons {
        flex-direction: row;
        max-width: none;
        justify-content: center;
    }
    
    .contact-hero .hero-content {
        padding: 8rem 3rem 10rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .contact-hero {
        min-height: 95vh;
    }
    .contact-hero .hero-content {
        padding: 2rem 1rem 5rem;
    }
}

/* ====================== CONTACT MAIN SECTION ====================== */
.contact-main {
    padding: 6rem 1.25rem 8rem;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.1fr;
        gap: 4rem;
    }
}

/* Contact Info */
.contact-info h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    color: var(--foundation-purple);
    margin-bottom: 2.5rem;
}

.info-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.6rem;
    color: var(--foundation-green);
    width: 28px;
    flex-shrink: 0;
    margin-top: 4px;
}

.info-item strong {
    display: block;
    color: var(--foundation-purple);
    margin-bottom: 0.3rem;
}

.info-item a {
    color: var(--text-gray);
    text-decoration: none;
}

.info-item a:hover {
    color: var(--foundation-green);
}

/* Contact Form */
.contact-form h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    color: var(--foundation-purple);
    margin-bottom: 2rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form input,
.contact-form textarea {
    padding: 1rem 1.25rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--foundation-green);
    box-shadow: 0 0 0 3px rgba(126, 217, 87, 0.15);
}

.contact-form button {
    margin-top: 1rem;
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
}

.hero-btn-primary {
    background: var(--foundation-green);
    color: var(--foundation-purple);
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 640px) {
    .contact-main {
        padding: 4.5rem 1.25rem 6rem;
    }
}

/* ====================== MAP SECTION ====================== */
.map-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.map-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 3.5rem;
}

.map-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 5.5vw, 3rem);
    font-weight: 700;
    color: var(--foundation-purple);
    margin-bottom: 1rem;
}

.map-desc {
    font-size: 1.12rem;
    color: #4b5563;
    line-height: 1.7;
}

.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    background: white;
    padding: 8px;
}

/* Make map responsive */
.map-wrapper iframe {
    width: 100%;
    height: 480px;
    border: none;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 640px) {
    .map-section {
        padding: 4rem 0;
    }
    .map-wrapper iframe {
        height: 380px;
    }
}

@media (min-width: 1024px) {
    .map-wrapper iframe {
        height: 520px;
    }
}

/* ====================== 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);
    }
}