/* ==========================================
   SHOONYA SPEAKS – MASTER RESPONSIVE CSS
   Fixes 90% of layout issues across all pages
   ========================================== */

/* ----- FLUID TYPOGRAPHY ----- */
html {
    font-size: 16px;
}
body {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Cinzel', serif;
    line-height: 1.3;
}
h1 { font-size: clamp(2.2rem, 8vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 6vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 4vw, 2rem); }
p, li, .text-body {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}

/* ----- RESPONSIVE IMAGES ----- */
img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}
.hero-image, .slider-card-image, .card-image, .featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ----- FULL VIEWPORT SECTIONS (fix mobile address bar) ----- */
.full-screen, .hero-banner, .identity-slider, .snap-section {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh; /* dynamic viewport height */
}

/* ----- GRID SYSTEM – AUTO COLLAPSE ----- */
.grid-2, .grid-3, .grid-4,
.cards-container, .post-grid, .social-footer-grid,
.featured-grid, .newsletter-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
/* Ensure 4‑column grids become 2‑column on tablet, 1‑column on mobile */
@media (max-width: 900px) {
    .grid-4, .newsletter-features {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4,
    .cards-container, .post-grid, .social-footer-grid,
    .featured-grid, .newsletter-features {
        grid-template-columns: 1fr;
    }
}

/* ----- FLEXIBLE SPACING ----- */
.section, section, .container {
    padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 5vw, 3rem);
}
.card, .preview-card, .feature-card, .journey-card {
    padding: clamp(1rem, 3vw, 2rem);
}

/* ----- BUTTONS & TOUCH TARGETS ----- */
button, .btn, .cta, .nav-link, .join-btn, .hero-cta, .whatsapp-float {
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 1.5rem;
    font-size: clamp(0.8rem, 2vw, 1rem);
    cursor: pointer;
}

/* ----- PURE CSS HAMBURGER MENU (no JavaScript) ----- */
/* Hidden checkbox controls mobile menu */
#mobile-toggle {
    display: none;
}
.hamburger-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #8B1E1E;
}
@media (max-width: 1000px) {
    .hamburger-icon {
        display: block;
    }
    .ss-nav-links, .join-btn {
        display: none;
    }
    #mobile-toggle:checked ~ .ss-nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        z-index: 999;
    }
    #mobile-toggle:checked ~ .join-btn {
        display: inline-block;
        margin: 1rem auto;
    }
}

/* ----- SOCIAL CARDS – STACK ON MOBILE ----- */
@media (max-width: 700px) {
    .social-fixed-left, .social-fixed-right {
        display: none !important;
    }
    .mobile-social-row {
        display: block !important;
    }
}

/* ----- FOOTER – MOBILE STACKING ----- */
@media (max-width: 768px) {
    .footer-container, .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    .footer-col, .footer-left, .footer-center, .footer-right {
        width: 100%;
        text-align: center;
    }
}

/* ----- INTRO OVERLAY – CENTERED & NO OVERFLOW ----- */
#sacred-intro-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.intro-content {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

/* ----- UTILITY CLASSES ----- */
.text-center-mobile {
    text-align: center;
}
@media (min-width: 768px) {
    .text-center-mobile {
        text-align: left;
    }
}
.hide-mobile {
    display: none;
}
@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }
}

/* ===== MOBILE SOCIAL CARDS FIX ===== */
@media (max-width: 600px) {
    /* Force the social grid to a single column */
    .social-footer-grid,
    .mobile-social-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Reset card heights and allow natural content flow */
    .social-footer-card,
    .mobile-social-card {
        height: auto !important;
        min-height: unset !important;
        padding: 24px !important;
        width: 100% !important;
    }

    /* Ensure text is never truncated */
    .social-footer-card p,
    .mobile-social-card p,
    .card-preview,
    .mobile-card-preview {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        max-height: none !important;
        word-break: break-word;
    }

    /* Let images scale properly */
    .social-footer-card img,
    .mobile-social-card img {
        max-height: 200px;
        object-fit: contain;
    }
}