/* ==========================================================================
   MASCC — Responsive Stylesheet
   Breakpoints: 1920+, 1440, 1200, 992, 768, 480, 360
   ========================================================================== */

/* Large desktops */
@media (min-width: 1920px) {
    :root {
        --container-max: 1480px;
    }
}

/* Laptops / small desktops */
@media (max-width: 1440px) {
    .hero-graphic { width: 600px; height: 600px; right: -160px; }
}

/* Compact desktops — squeeze the two CTAs */
@media (max-width: 1280px) {
    :root {
        --header-h: 140px;
    }
    .site-header.scrolled { height: 76px; }
    .site-header.scrolled .header-logo-img { max-height: 58px; }
    .site-header.scrolled .logo-mark { width: 58px; height: 58px; }
    .header-cta { padding: 0.6rem 0.95rem; font-size: 0.75rem; }
    .header-actions { gap: 0.5rem; }
    .primary-nav ul { gap: 1.1rem; }
    .nav-link { font-size: 0.78rem; }
    .header-right { gap: 0.4rem; padding: 0.5rem 0; }
}

/* Tablets & small laptops */
@media (max-width: 1200px) {
    :root {
        --header-h: 132px;
    }
    .site-header.scrolled { height: 72px; }
    .site-header.scrolled .header-logo-img { max-height: 54px; }
    .site-header.scrolled .logo-mark { width: 54px; height: 54px; }
    .primary-nav ul {
        gap: 0.95rem;
    }
    .nav-link { font-size: 0.78rem; }
    .header-cta { padding: 0.55rem 0.9rem; font-size: 0.72rem; }
    .logo-text span { font-size: 0.5rem; }
    .hero-graphic { width: 480px; height: 480px; right: -180px; opacity: 0.5; }

    .vmv-grid::before, .vmv-grid::after { display: none; }
    .gallery-layout { grid-template-columns: 1fr; gap: 1.25rem; }
    .news-list { grid-template-columns: 1fr; }
    .album-feature { grid-row: auto; aspect-ratio: 16 / 10; min-height: 280px; }
    .album-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablets */
@media (max-width: 992px) {
    :root {
        --header-h: 100px;
    }

    /* Logo sizing for tablets */
    .logo-mark { width: 90px; height: 90px; }

    /* Switch to mobile nav — both orange CTAs are inside the mobile menu */
    .primary-nav, .header-cta, .header-divider { display: none; }
    .menu-toggle { display: inline-flex; }
    .header-actions { gap: 0.5rem; }

    /* Center hamburger button in scrolled header */
    .site-header.scrolled .header-actions {
        flex: 0 0 auto;
        min-height: 100%;
        overflow: visible;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    /* Section heads go vertical on smaller screens */
    .section-heading-row { flex-direction: column; align-items: flex-start; }

    /* Vision/Mission/Values - 1 column */
    .vmv-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .vmv-card {
        padding: 2rem;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 12px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 1.25rem;
        row-gap: 0.35rem;
        align-items: center;
    }
    .vmv-card .vmv-icon {
        grid-column: 1;
        grid-row: span 2;
        margin-bottom: 0;
        align-self: center;
    }
    .vmv-card h3,
    .vmv-card p,
    .vmv-card .vmv-values {
        grid-column: 2;
    }
    .vmv-card h3 { margin-bottom: 0 !important; }

    /* Information pack */
    .section.info-pack { padding-top: clamp(3rem, 8vw, 5rem); padding-bottom: clamp(0.5rem, 1.5vw, 1rem); }
    .info-grid { grid-template-columns: 1fr; gap: 3rem; justify-items: center; }
    .info-doc {
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
        margin-top: -0.5rem;
        margin-bottom: -3rem;
    }
    .info-pack-bg { width: 80%; opacity: 0.7; }
    .info-pack .info-head {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    .info-pack .section-number-col { align-items: center; padding-top: 0; }
    .info-pack .info-divider { display: none; }
    .info-pack .info-head h2,
    .info-pack .info-head .info-copy { text-align: center; }
    .info-pack .info-head .info-cta,
    .info-pack .info-head .info-ctas { justify-self: center; margin-top: 0; }
    .info-pack .info-head .info-ctas { justify-content: center; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .contact-form-wrap { padding-top: 0; }
    .contact-photo { display: none; }
    .contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .footer-col-brand { grid-column: 1 / -1; }
    .footer-col::after { display: none; }

    /* Gallery */
    .album-grid { gap: 1rem; }

    /* Hero */
    .hero-headline { font-size: clamp(2.5rem, 7vw, 4rem); }
    .hero-bottom-inner { grid-template-columns: 1fr; gap: 1.25rem; justify-items: center; }
    .hero-tagline { font-size: 0.7rem; letter-spacing: 0.25em; grid-column: 1; justify-self: center; }
    .scroll-indicator { grid-column: 1; }
}

/* Small tablets */
@media (max-width: 768px) {
    /* Ensure logo stays large on small tablets */
    .logo-mark { width: 90px; height: 90px; }

    .section { padding: clamp(3rem, 8vw, 5rem) 0; }
    .section.vision-section,
    .section.contact-section,
    .section.documents-section,
    .section.gallery-section { padding: clamp(2rem, 5vw, 3rem) 0; }
    .section-number { font-size: clamp(3.5rem, 12vw, 5rem); }

    /* Hero */
    .hero { min-height: 90vh; }
    .hero-headline { font-size: clamp(2.25rem, 9vw, 3.5rem); }
    .hero-text { align-items: center; text-align: center; }
    .hero-ctas { flex-direction: column; align-items: center; gap: 1rem; }
    .hero-ctas .btn { justify-content: center; width: auto; max-width: 300px; min-width: 240px; }
    .hero-copy { display: none; }
    .hero-tagline { flex-wrap: wrap; gap: 0.75rem; }
    .hero-tagline .sep { display: none; }

    /* Information pack */
    .info-doc { max-width: 320px; }

    /* Documents */
    .docs-grid { grid-template-columns: 1fr; }

    /* Key Statistics & Membership Fees — collapse table to stacked cards */
    .stats-table thead, .rates-table thead { display: none; }
    .stats-table, .stats-table tbody, .stats-table tr, .stats-table td,
    .rates-table, .rates-table tbody, .rates-table tr, .rates-table td {
        display: block; width: 100%;
    }
    .stats-table tr, .rates-table tr {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 1rem 1.25rem;
    }
    .stats-table td, .rates-table td {
        border: none;
        padding: 0.35rem 0;
        text-align: left;
    }
    .stats-table td[data-label="Statistic"],
    .rates-table td[data-label="Category"] {
        padding-top: 0.5rem;
    }
    .stats-table td[data-label]::before,
    .rates-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-family: var(--font-display);
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.4);
        margin-bottom: 0.25rem;
    }
    .stats-table td[data-label="Statistic"]::before,
    .rates-table td[data-label="Category"]::before {
        display: none;
    }
    .stat-value, .rate-category, .rate-amount { font-size: 1.35rem; }

    /* Gallery */
    .gallery-layout { grid-template-columns: 1fr; }

    /* Form */
    .form-row { grid-template-columns: 1fr; gap: 0; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
    .footer-col-brand { grid-column: auto; }
    .footer-col h4 { margin-bottom: 1rem; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }

    /* WhatsApp */
    .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
    .wa-float .wa-icon { width: 56px; height: 56px; }
    .wa-float:hover { width: 56px; } /* Keep compact on small touch */
    .wa-label { display: none; }
    .wa-float .wa-icon::after { top: 4px; right: 4px; width: 10px; height: 10px; }

}

/* Small phones — Contact Us section details collapse to one column */
@media (max-width: 560px) {
    /* Albums go one per row only on small phones */
    .album-grid { grid-template-columns: 1fr; }
    .board-grid { gap: 1.5rem 1rem; }
    .board-card { flex: 0 1 calc(50% - 0.5rem); }
    .contact-list { grid-template-columns: 1fr; }
}

/* Phones */
@media (max-width: 480px) {
    .news-date { min-width: 62px; }
    .news-day { font-size: 1.35rem; }
    .news-main { padding: 0.65rem 0.75rem; }
    .news-more { display: none; }
    :root {
        --container-pad: 1rem;
        --header-h: 80px;
    }
    .logo-text strong { font-size: 1.05rem; }
    .logo-text span { font-size: 0.45rem; letter-spacing: 0.1em; }
    .logo-mark { width: 80px; height: 80px; }
    .header-inner { gap: 0.75rem; }
    .menu-toggle { width: 44px; height: 44px; }

    .hero-headline { font-size: clamp(2rem, 10vw, 2.75rem); }
    .hero-ctas { align-items: stretch; }
    .hero-ctas .btn { width: 100%; text-align: center; }
    .hero-graphic { display: none; }
    .hero-tagline { font-size: 0.65rem; gap: 0.5rem; }

    .section-heading { gap: 1rem; }
    .section-number { font-size: 3rem; }
    .section-heading h2 { font-size: 1.25rem; }

    .info-doc { margin-top: clamp(-40px, -6vw, -20px); }
    .info-pack .info-head { column-gap: 0.85rem; row-gap: 0.85rem; }

    .vmv-card { padding: 1.5rem; }
    .vmv-icon { width: 64px; height: 64px; }
    .vmv-icon svg { width: 36px; height: 36px; }
    .vmv-card h3 { font-size: 1.25rem; }

    .doc-card { padding: 1rem; gap: 0.85rem; }
    .doc-icon { width: 44px; height: 44px; }
    .doc-meta h4 { font-size: 0.9rem; }

    .gallery-controls .gallery-nav { display: none; }

    .contact-form { padding: 1.25rem; }
    .form-title { font-size: 1.25rem; }

    .footer-logo { flex-direction: column; align-items: flex-start; }
    .footer-logo .logo-text strong { font-size: 1.1rem; }
}

/* Small phones */
@media (max-width: 360px) {
    :root { --container-pad: 0.875rem; }
    .hero-headline { font-size: 1.9rem; }
    .hero-copy { font-size: 0.875rem; }
    .btn { padding: 0.8rem 1.1rem; font-size: 0.8rem; }
}

/* Touch-only devices - disable cursor (already covered by main CSS) */