/* =========================
   RESPONSIVE UPGRADE
   Breakpoints: 1024px, 768px, 480px, 360px
========================= */

/* Tablet landscape & small desktops */
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }

    .hero h1 {
        font-size: 42px;
    }

    .stats {
        gap: 15px;
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    /* Header & Navigation */
    .hamburger {
        display: flex;
        z-index: 10001;
    }

    .nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #FFFFFF;
        border-bottom: 2px solid #C9A43E;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        display: none;
        flex-direction: column;
        transition: all 0.3s ease;
    }

    .nav.nav-open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

    .nav-links li {
        padding: 14px 0;
        border-top: 1px solid #eee;
    }

    .nav-links a {
        display: inline-block;
        padding: 8px 0;  /* bigger tap area */
        font-size: 18px;
    }

    /* Donate button inside mobile menu */
    .donate-btn {
        display: inline-block;
        width: auto;
        margin: 10px auto;
    }

    /* Hero */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 34px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 16px;
    }

    /* Cards */
    .cards {
        flex-direction: column;
        gap: 24px;
    }

    .card {
        margin-bottom: 0;
    }

    /* Stats */
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-box h2 {
        font-size: 30px;
    }

    /* Quote */
    blockquote {
        font-size: 18px;
        padding: 0 20px;
    }

    blockquote::before {
        left: 0;
    }
    blockquote::after {
        right: 0;
    }

    /* CTA buttons */
    .btn {
        padding: 10px 20px;
        font-size: 16px;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    /* Disable custom cursor on touch devices */
    .cursor-dot,
    .cursor-ring {
        display: none;
    }

    body {
        cursor: auto;
    }
}

/* Mobile large (phones) */
@media (max-width: 480px) {
    /* Typography */
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-subtext {
        font-size: 13px;
    }

    .logo h2 {
        font-size: 20px;
    }

    .section-title {
        font-size: 28px;
        text-align: center;
    }

    /* Stats: single column */
    .stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-box {
        padding: 15px;
    }

    /* Buttons full width on very small screens? optional */
    .btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }

    .btn-outline,
    .btn-gold {
        margin-left: auto;
        margin-right: auto;
    }

    /* Cards */
    .card {
        padding: 18px;
    }

    .card h3 {
        font-size: 20px;
    }

    .card p {
        font-size: 14px;
    }

    /* Quote */
    blockquote {
        font-size: 16px;
    }

    /* Gallery grid (if exists) */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Contact layout (if exists) */
    .contact-grid {
        flex-direction: column;
        gap: 30px;
    }

    .contact-form-card,
    .contact-info {
        width: 100%;
    }

    /* Footer */
    .footer {
        padding: 30px 15px;
    }

    .motto {
        font-size: 14px;
    }
}

/* Small phones (<=360px) */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 13px;
    }

    .btn {
        font-size: 14px;
        padding: 10px 12px;
    }

    .stat-box h2 {
        font-size: 28px;
    }

    .stat-box p {
        font-size: 13px;
    }

    .logo h2 {
        font-size: 18px;
    }

    /* reduce container padding */
    .container {
        width: 92%;
    }
}

/* Accessibility: prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .card,
    .stat-box,
    .cursor-ring {
        transition: none;
    }
    .hero-subtext {
        animation: none;
    }
}