/* ============================================================
   SREE KASI SECURE CHITS — RESPONSIVE STYLESHEET
   Breakpoints: Desktop (1920/1440/1280), Tablet (1024/768), Mobile (430/390/375/360)
   ============================================================ */

/* Global Anti-Overflow & Base Touch Rules */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

/* Desktop Extra Large (1440px +) */
@media (min-width: 1440px) {
    .container {
        max-width: 1360px;
    }
    .brand-logo-img {
        height: 76px;
        max-height: 76px;
    }
}

/* Tablet & Smaller Laptops (1024px) */
@media (max-width: 1024px) {
    :root {
        --header-height: 80px;
    }

    .brand-logo-img {
        height: 62px;
        max-height: 62px;
    }

    .nav-menu {
        gap: 16px;
    }

    .nav-link {
        font-size: 0.775rem;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .process-timeline {
        grid-template-columns: repeat(3, 1fr);
    }

    .split-layout, .hero-container-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Mobile & Tablet Portrait (768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 76px;
    }

    .container {
        padding: 0 20px;
    }

    .brand-logo-img {
        height: 54px;
        max-height: 54px;
    }

    .nav-menu {
        display: none; /* Mobile Drawer used */
    }

    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    .header-actions .btn-sm {
        display: none;
    }

    /* Mobile Navigation Drawer */
    .mobile-drawer {
        max-width: calc(100vw - 32px);
        width: 320px;
        padding: 32px 24px;
    }

    .mobile-nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Hero Responsive Adjustments */
    .hero-section {
        min-height: auto;
        padding-top: calc(var(--header-height) + 32px);
        padding-bottom: 48px;
    }

    .hero-title {
        font-size: clamp(2.15rem, 6.5vw, 3.25rem);
        line-height: 1.15;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-ctas .btn {
        width: 100%;
        min-height: 46px;
    }

    .hero-badge-overlay {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-frame-img {
        height: 320px;
    }

    /* Trust Strip Mobile */
    .trust-strip-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .trust-strip-divider {
        display: none;
    }

    /* Grid Layouts */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* How Chit Works Timeline */
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .process-step {
        padding: 24px 20px;
    }

    /* Filter Tabs Horizontal Scroll on Mobile */
    .filter-tabs {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 4px 0 12px 0;
        margin-bottom: 32px;
        scrollbar-width: none;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
        min-height: 44px;
        padding: 10px 20px;
    }

    /* Form Mobile Fields (Font-size 16px prevents iOS auto-zoom) */
    .form-control {
        font-size: 16px;
        min-height: 46px;
    }

    /* Section Padding */
    .section-padding {
        padding: 56px 0;
    }

    /* Footer Mobile Stacking */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-logo-img {
        width: 175px;
        max-width: 195px;
        height: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    /* Floating WhatsApp Button Safe Area */
    .whatsapp-float {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* Small Mobile Devices (430px, 414px, 390px, 375px, 360px) */
@media (max-width: 430px) {
    .container {
        padding: 0 16px;
    }

    .brand-logo-img {
        height: 50px;
        max-height: 50px;
    }

    .eyebrow {
        font-size: 0.7rem;
    }

    .scheme-card {
        padding: 24px 18px;
    }

    .scheme-metric-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .accordion-header {
        padding: 16px 18px;
        font-size: 0.975rem;
        min-height: 48px;
    }

    .accordion-content {
        padding: 0 18px 18px 18px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 0.875rem;
    }
}

/* Accessibility: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

