/* ===== Mobile Navigation Toggle ===== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #444;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ===== Tablet (max 1024px) ===== */
@media (max-width: 1024px) {
    /* Navigation */
    nav {
        padding: 18px 30px !important;
    }
    
    nav a {
        margin-left: 22px !important;
        font-size: 14px !important;
    }

    /* Sticky Donate Banner */
    .sticky-donate {
        padding: 12px 20px !important;
    }
    
    .sticky-donate-text {
        font-size: 13px !important;
    }

    /* Sections - reduce padding */
    .hero-image,
    .mission-section,
    .vision-mission,
    .achieve-this,
    .coin-concept,
    .impact-stats,
    .projects-preview,
    .projects-section,
    .cta-section,
    .founder-story,
    .partners-section,
    .join-section,
    .donate-hero,
    .donation-section,
    .page-header,
    .contact-section {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    /* Hero adjustments */
    .hero-image {
        height: 500px !important;
    }
    
    .hero-overlay h1 {
        font-size: 42px !important;
    }
    
    .hero-overlay p {
        font-size: 18px !important;
    }

    /* Headings */
    .page-header h1 {
        font-size: 44px !important;
    }
    
    .mission-section h2,
    .coin-concept h2,
    .projects-preview h2,
    .partners-section h2,
    .impact-calculator h2,
    .why-donate h2 {
        font-size: 38px !important;
    }
    
    .cta-section h2,
    .join-section h2,
    .donate-hero h1 {
        font-size: 42px !important;
    }

    /* Grids - reduce columns */
    .projects-grid,
    .partners-grid,
    .coin-steps {
        gap: 30px !important;
    }
    
    .impact-grid {
        gap: 30px !important;
    }
    
    .stat-number {
        font-size: 52px !important;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px !important;
    }

    /* Founder Story */
    .founder-content {
        grid-template-columns: 280px 1fr !important;
        gap: 40px !important;
    }
    
    .founder-image {
        width: 280px !important;
        height: 360px !important;
    }
    
    .founder-text h2 {
        font-size: 36px !important;
    }

    /* Projects page - 2 columns becomes 1 on smaller tablet */
    .projects-section .projects-grid {
        grid-template-columns: 1fr !important;
        max-width: 700px !important;
    }

    /* Donate page */
    .donation-methods {
        grid-template-columns: 1fr !important;
    }
    
    .impact-calculator,
    .why-donate,
    .donation-card {
        padding: 40px !important;
    }

    /* Contact page */
    .contact-container {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .contact-form-wrapper {
        padding: 40px !important;
    }
}

/* ===== Mobile (max 768px) ===== */
@media (max-width: 768px) {
    /* Sticky Donate Banner - simplified */
    .sticky-donate {
        padding: 10px 15px !important;
        flex-direction: row !important;
        gap: 10px !important;
    }
    
    .sticky-donate-text {
        font-size: 12px !important;
        gap: 6px !important;
    }
    
    .sticky-donate-text span:last-child {
        display: none !important;
    }
    
    .sticky-donate-text span:first-child {
        font-size: 18px !important;
    }
    
    .sticky-donate-btn {
        padding: 8px 18px !important;
        font-size: 13px !important;
    }

    /* Navigation - hamburger menu */
    nav {
        padding: 15px 20px !important;
        flex-wrap: wrap !important;
    }
    
    nav img {
        height: 42px !important;
    }
    
    nav > div {
        display: none !important;
        flex-direction: column !important;
        width: 100% !important;
        margin-top: 15px !important;
        padding-top: 15px !important;
        border-top: 1px solid #e8e8e8 !important;
    }
    
    nav > div.mobile-open {
        display: flex !important;
    }
    
    nav a {
        margin-left: 0 !important;
        padding: 12px 0 !important;
        font-size: 16px !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    nav a:last-child {
        border-bottom: none !important;
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }
    
    nav {
        position: sticky !important;
        top: 0 !important;
    }

    /* All sections - reduce padding */
    section,
    .hero-image,
    .mission-section,
    .vision-mission,
    .achieve-this,
    .coin-concept,
    .impact-stats,
    .projects-preview,
    .projects-section,
    .cta-section,
    .founder-story,
    .partners-section,
    .join-section,
    .donate-hero,
    .donation-section,
    .page-header,
    .contact-section,
    .mission-section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .vm-content h2 {
        font-size: 28px !important;
    }

    .vm-content .mission-tagline {
        font-size: 18px !important;
        margin-bottom: 28px !important;
    }

    .vm-content p:not(.mission-tagline) {
        font-size: 16px !important;
        line-height: 1.8 !important;
    }

    .vm-list li {
        font-size: 16px !important;
        line-height: 1.7 !important;
        padding-left: 24px !important;
    }

    .vm-list li::before {
        top: 10px !important;
        width: 8px !important;
        height: 8px !important;
    }

    .achieve-content h2 {
        font-size: 28px !important;
        margin-bottom: 30px !important;
    }

    .achieve-list {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .achieve-item {
        padding: 20px !important;
    }

    .achieve-text {
        font-size: 15px !important;
    }

    /* Hero - text anchored at bottom on mobile so image stays visible */
    .hero-image {
        height: 500px !important;
        background-position: center 15% !important;
        align-items: flex-end !important;
    }
    
    .hero-overlay {
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.65) 35%, rgba(0,0,0,0.25) 65%, transparent 100%) !important;
        padding: 0 22px 36px !important;
        align-items: flex-end !important;
    }

    .hero-overlay-inner {
        max-width: 100% !important;
    }
    
    .hero-overlay h1 {
        font-size: 30px !important;
        margin-bottom: 14px !important;
        line-height: 1.15 !important;
    }
    
    .hero-overlay p {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }

    .hero-eyebrow {
        display: none !important;
    }

    .desktop-only {
        display: none !important;
    }

    /* Page Headers */
    .page-header {
        padding-top: 50px !important;
        padding-bottom: 40px !important;
    }
    
    .page-header h1 {
        font-size: 36px !important;
    }
    
    .page-header p {
        font-size: 16px !important;
    }

    /* Mission Section */
    .mission-section h2 {
        font-size: 30px !important;
        margin-bottom: 20px !important;
    }
    
    .mission-tagline {
        font-size: 20px !important;
        margin-bottom: 25px !important;
    }
    
    .mission-section p {
        font-size: 16px !important;
        margin-bottom: 30px !important;
    }
    
    .mission-cta,
    .cta-buttons,
    .join-buttons,
    .hero-cta {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-white,
    .btn-outline-white {
        width: 100% !important;
        padding: 16px 30px !important;
        font-size: 16px !important;
    }

    /* COIN Concept Steps */
    .coin-concept h2 {
        font-size: 30px !important;
        margin-bottom: 30px !important;
    }
    
    .coin-steps {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .coin-step {
        padding: 35px 25px !important;
    }
    
    .coin-step h3 {
        font-size: 22px !important;
    }
    
    .coin-step p {
        font-size: 15px !important;
    }
    
    .coin-step-number {
        width: 60px !important;
        height: 60px !important;
        font-size: 26px !important;
        margin-bottom: 20px !important;
    }

    /* Impact Stats */
    .impact-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
    
    .stat-number {
        font-size: 38px !important;
    }
    
    .stat-label {
        font-size: 14px !important;
    }

    /* Projects */
    .projects-preview h2,
    .projects-section h2 {
        font-size: 30px !important;
    }
    
    .projects-subtitle {
        font-size: 16px !important;
        margin-bottom: 40px !important;
    }
    
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .project-image,
    .project-carousel {
        height: 240px !important;
    }
    
    .project-content {
        padding: 25px !important;
    }
    
    .project-title {
        font-size: 20px !important;
    }
    
    .project-desc {
        font-size: 15px !important;
    }

    /* Carousel buttons smaller */
    .carousel-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }
    
    .carousel-btn.prev {
        left: 10px !important;
    }
    
    .carousel-btn.next {
        right: 10px !important;
    }

    /* CTA Section */
    .cta-section h2 {
        font-size: 30px !important;
    }
    
    .cta-section p {
        font-size: 16px !important;
        margin-bottom: 30px !important;
    }

    /* Founder Story */
    .founder-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .founder-image {
        width: 100% !important;
        max-width: 300px !important;
        height: 380px !important;
        margin: 0 auto !important;
    }
    
    .founder-text h2 {
        font-size: 28px !important;
        text-align: center !important;
    }
    
    .founder-text p {
        font-size: 16px !important;
    }
    
    .founder-text .highlight {
        font-size: 17px !important;
        padding-left: 20px !important;
    }
    
    .founder-signature {
        font-size: 18px !important;
        text-align: center !important;
    }
    
    .founder-story::before {
        font-size: 150px !important;
        left: 20px !important;
        top: 20px !important;
    }

    /* Mission Boxes */
    .mission-boxes {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 30px !important;
    }
    
    .mission-box {
        padding: 30px !important;
    }

    /* Partners */
    .partners-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .partners-section h2 {
        font-size: 30px !important;
        margin-bottom: 40px !important;
    }

    /* Join Section */
    .join-section h2 {
        font-size: 30px !important;
    }
    
    .join-section p {
        font-size: 16px !important;
    }

    /* Donate Page */
    .donate-hero {
        padding: 60px 20px !important;
    }
    
    .donate-hero h1 {
        font-size: 36px !important;
    }
    
    .donate-hero p {
        font-size: 16px !important;
    }
    
    .donation-card,
    .impact-calculator,
    .why-donate {
        padding: 30px 25px !important;
    }
    
    .donation-card h2,
    .impact-calculator h2,
    .why-donate h2 {
        font-size: 24px !important;
    }
    
    .amount-value {
        font-size: 52px !important;
    }
    
    .impact-boxes {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .impact-box {
        padding: 20px !important;
    }
    
    .impact-number {
        font-size: 36px !important;
    }
    
    .why-list {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .bank-details {
        padding: 20px !important;
    }
    
    .bank-details-item {
        flex-direction: column !important;
        gap: 4px !important;
        margin-bottom: 15px !important;
    }

    /* Contact Page */
    .contact-form-wrapper,
    .info-card {
        padding: 30px 25px !important;
    }
    
    .contact-form-wrapper h2 {
        font-size: 24px !important;
    }
    
    .info-card h3 {
        font-size: 20px !important;
    }

    /* Footer */
    footer {
        padding: 50px 20px 30px !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 35px !important;
        margin-bottom: 35px !important;
    }
    
    .footer-col h4 {
        font-size: 16px !important;
        margin-bottom: 16px !important;
    }
}

/* ===== Small Mobile (max 480px) ===== */
@media (max-width: 480px) {
    .hero-overlay h1 {
        font-size: 24px !important;
    }
    
    .page-header h1 {
        font-size: 30px !important;
    }
    
    .stat-number {
        font-size: 32px !important;
    }
    
    .impact-grid {
        grid-template-columns: 1fr !important;
    }
    
    .amount-value {
        font-size: 44px !important;
    }
    
    .mission-section h2,
    .coin-concept h2,
    .cta-section h2,
    .join-section h2,
    .projects-preview h2 {
        font-size: 26px !important;
    }
}
