/* ========================================
   MOBILE & RESPONSIVE OVERRIDES
   site.mobile.css — loaded alongside site.css
   All @media (max-width: …) rules live here.
   ======================================== */

/* ── Navbar: tablet & below (≤ 991.98 px) ── */
@media (max-width: 991.98px) {
    .premium-nav {
        min-height: auto;
        padding: 0;
    }

    .premium-nav .container-fluid {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        flex-wrap: nowrap;
        align-items: center;
    }

    #mainNav {
        gap: 4px;
        flex: 1;
        justify-content: flex-end;
        align-items: center;
    }

    .navbar-nav {
        gap: 4px !important;
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-items: center;
        flex-shrink: 1;
        overflow: visible;
    }

    .navbar-nav::-webkit-scrollbar {
        display: none;
    }

    .pnav-link {
        padding: 7px 9px !important;
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        transition: all 0.22s ease;
    }

    .pnav-link:hover {
        background: rgba(255, 255, 255, 0.18);
    }

    .pnav-link span {
        display: none;
    }

    .pnav-link i {
        margin: 0 !important;
        font-size: 1.05rem;
    }

    .pnav-link::after {
        display: none !important;
    }

    .pnav-link.active {
        background: rgba(231, 177, 41, 0.25);
        color: #e7b129 !important;
        box-shadow: 0 0 8px rgba(231, 177, 41, 0.2);
    }

    .pnav-link.active i {
        color: #e7b129;
    }

    .nav-right-group {
        flex-direction: row !important;
        gap: 6px !important;
        padding: 0;
        margin: 0 0 0 6px;
        border: none;
        align-items: center;
        flex-shrink: 0;
    }

    .nav-right-group .lang-selector {
        width: auto;
    }

    .nav-right-group .lang-toggle {
        width: auto;
        padding: 6px 12px !important;
        font-size: 0.8rem;
        border-radius: 999px !important;
        white-space: nowrap;
    }

    .nav-right-group .lang-toggle .lang-label {
        display: inline !important;
    }

    .nav-right-group .lang-toggle .bi-globe {
        font-size: 0.95rem;
    }

    .nav-whatsapp-btn {
        width: auto;
        padding: 6px 10px;
        font-size: 0.75rem;
        border-radius: var(--radius-sm);
    }

    .nav-whatsapp-btn span {
        display: none;
    }
}

/* ── Hero: tablet & below (≤ 991.98 px) ── */
@media (max-width: 991.98px) {
    .hero-content {
        max-width: 100%;
    }

    .hero-brand-title {
        font-size: 1.5rem;
    }

    .hero-sub {
        max-width: 94%;
    }
}

/* ── Hero CTA buttons: phablet & below (≤ 768 px) ── */
@media (max-width: 768px) {
    .hero-bg-img {
        object-position: center center;
    }

    .hero-cta-wrap {
        gap: 8px;
    }

    .hero-btn {
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 25px;
    }

    .hero-state-name {
        bottom: 8px;
        font-size: clamp(1.2rem, 6vw, 1.8rem);
        color: #e7b129;
        letter-spacing: 0.14em;
        text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
    }

    .hero-content {
        padding-bottom: 44px;
    }

    .px-md-3 {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
        background-color: rgba(0, 128, 18, 0.12);
    }
}

/* ── Hero + layout: small mobile (≤ 576 px) ── */
@media (max-width: 576px) {
    .hero-section {
        height: clamp(300px, 72vw, 400px);
    }

    .hero-bg-img {
        object-position: center center;
    }

    .hero-content {
        padding: 12px 12px 48px;
    }

    .hero-brand-row {
        margin-bottom: 0.4rem;
    }

    .hero-brand-title {
        font-size: 1rem;
    }

    .hero-brand-sub {
        font-size: 0.66rem;
    }

    .hero-badge {
        font-size: 0.77rem;
        padding: 6px 12px;
        margin-bottom: 0.72rem;
    }

    .hero-title {
        font-size: clamp(1.35rem, 6.5vw, 1.9rem);
        margin-bottom: 0.6rem;
        line-height: 1.15;
    }

    /* Indic scripts on small mobile */
    html[lang="ta"] .hero-title,
    html[lang="hi"] .hero-title,
    html[lang="kn"] .hero-title,
    html[lang="te"] .hero-title,
    html[lang="mr"] .hero-title,
    html[lang="gu"] .hero-title,
    html[lang="pa"] .hero-title {
        font-size: clamp(1.05rem, 5.5vw, 1.55rem);
        line-height: 1.35;
        letter-spacing: 0;
    }

    .hero-sub {
        font-size: 0.74rem;
        line-height: 1.5;
        max-width: 100%;
        white-space: normal;
        overflow: visible;
    }

    html[lang="ta"] .hero-sub,
    html[lang="hi"] .hero-sub,
    html[lang="kn"] .hero-sub,
    html[lang="te"] .hero-sub,
    html[lang="mr"] .hero-sub,
    html[lang="gu"] .hero-sub,
    html[lang="pa"] .hero-sub {
        font-size: 0.68rem;
        line-height: 1.7;
    }

    .hero-cta-wrap {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
        margin-top: 0.9rem;
    }

    .hero-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        text-align: center;
        padding: 7px 10px;
        font-size: 0.78rem;
        border-radius: 20px;
    }

    /* Story images on mobile */
    .story-img-wrap {
        height: 200px;
    }

    .story-img-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%) !important;
    }

    /* Language toggle */
    .lang-toggle {
        padding: 4px 10px !important;
        font-size: 0.7rem;
        border-radius: 999px !important;
        gap: 5px;
    }

    .lang-toggle .bi-globe {
        font-size: 0.8rem;
    }

    .lang-toggle .bi-chevron-down {
        font-size: 0.7rem;
    }

    .lang-label {
        min-width: auto;
        display: inline !important;
        font-size: 0.65rem;
    }

    .lang-menu {
        min-width: 120px;
    }

    .lang-option {
        padding: 7px 10px;
        font-size: 0.8rem;
    }

    .lang-option .flag {
        font-size: 1rem;
    }

    .lang-option .lang-name {
        font-size: 0.8rem;
    }

    /* Footer — responsive handled via media queries in site.css */
    .footer-social-btn {
        margin: 0;
    }

    /* General cards */
    .hero-section {
        margin-bottom: 1rem;
    }

    .folder-card {
        padding: 22px 14px;
    }

    .stories-section,
    .connect-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .connect-cards-row {
        gap: 16px;
    }

    .connect-card {
        border-radius: var(--radius-md);
    }

    .connect-card-img-wrap {
        height: 140px;
    }
}

/* ── Media Hub: tablet & below (≤ 767.98 px) ── */
@media (max-width: 767.98px) {
    .media-hub-section {
        margin-top: 1rem;
        border-radius: var(--radius-md);
        padding: 0.85rem 0.75rem 1rem;
    }

    .media-hub-head {
        margin-bottom: 0.75rem;
    }

    .media-hub-title {
        font-size: var(--type-h3);
    }

    .modern-folder-card {
        min-height: 160px;
        border-radius: var(--radius-md);
        padding: 0.75rem 0.6rem 0.75rem;
    }

    .folder-icon-wrap {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        margin-bottom: 0.45rem;
        font-size: 0.95rem;
    }

    .modern-folder-card .folder-title {
        font-size: 0.75rem;
        font-weight: 700;
        line-height: 1.25;
        margin-bottom: 0.2rem;
    }

    .modern-folder-card small.text-muted {
        font-size: 0.65rem;
        line-height: 1.35;
        margin-bottom: 0.55rem;
    }

    .modern-folder-card .media-count {
        font-size: 0.68rem;
        padding: 0.22rem 0.55rem;
    }

    /* Videos card image redesign - mobile */
    .folder-videos {
        padding: 0;
    }

    .folder-video-thumb {
        height: 120px;
    }

    .folder-play-btn svg {
        width: 34px;
        height: 34px;
        padding: 7px;
    }

    .folder-video-body {
        padding: 0.65rem 0.6rem 0.6rem;
    }

    .folder-video-body .folder-title {
        font-size: 0.72rem;
        font-weight: 700;
        line-height: 1.25;
        margin-bottom: 0.18rem;
    }

    .folder-video-body small.text-muted {
        font-size: 0.62rem;
        line-height: 1.3;
        margin-bottom: 0.45rem;
    }

    /* Photos card image redesign - mobile */
    .folder-images {
        padding: 0;
    }

    .folder-photo-thumb {
        height: 120px;
    }

    .photo-collage {
        gap: 1px;
    }

    .folder-photo-btn svg {
        width: 34px;
        height: 34px;
        padding: 7px;
    }

    .folder-photo-body {
        padding: 0.65rem 0.6rem 0.6rem;
    }

    .folder-photo-body .folder-title {
        font-size: 0.72rem;
        font-weight: 700;
        line-height: 1.25;
        margin-bottom: 0.18rem;
    }

    .folder-photo-body small.text-muted {
        font-size: 0.62rem;
        line-height: 1.3;
        margin-bottom: 0.45rem;
    }

    /* Story images - tablet */
    .story-img-wrap {
        height: 280px;
    }

    /* Gallery top-wrap */
    .gallery-top-wrap {
        padding: 0.22rem;
    }

    .brochure-grid-row {
        --bs-gutter-y: 0.85rem;
    }
}

/* ── Brochure gallery: tablet & below (≤ 991.98 px) ── */
@media (max-width: 991.98px) {
    .brochure-gallery-page {
        padding: 0.75rem 0 1rem;
    }

    .brochure-gallery-page::before {
        border-radius: 14px;
    }

    .gallery-sub {
        font-size: 0.9rem;
    }
}

/* ── Brochure gallery: small mobile (≤ 575.98 px) ── */
@media (max-width: 575.98px) {
    .gallery-title {
        margin-top: 0.5rem;
        font-size: 1.38rem;
    }

    .crop-chip-row {
        gap: 0.35rem;
    }

    .crop-chip {
        font-size: 0.72rem;
        padding: 0.3rem 0.6rem;
    }

    .brochure-gallery-page .media-thumb {
        height: 164px;
    }

    .download-btn-rounded {
        width: 100%;
        justify-content: center;
    }
}

/* ── Touch-device overrides (hover: none) ── */
@media (hover: none) {
    .modern-folder-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }

    .connect-card:hover {
        transform: none;
    }

    .stories-nav-btn {
        width: 50px;
        height: 50px;
    }
}

/* ── Accessibility: reduce motion ── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}