/* ============================================================
   CUROGEM — RESPONSIVE CSS
   Bootstrap 5 ke saath — sirf custom overrides
   Bootstrap khud responsive hai, hum sirf custom classes fix karte hain
   ============================================================ */

/* ── Root overflow fix — sabse pehle ── */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ── Large desktop ≥1400px ── */
@media (min-width: 1400px) {
    .hero-section   { min-height: 640px; }
    .hero-h1        { font-size: 3.4rem; }
    .hdr-logo-img   { height: 58px; }
}

/* ── Medium desktop 992–1199px ── */
@media (min-width: 992px) and (max-width: 1199px) {
    .hdr-link       { padding: 0 14px; font-size: 0.82rem; }
    .hdr-logo-img   { height: 46px; }
}

/* ── Desktop ≥992px ── */
@media (min-width: 992px) {
    .hdr-toggler    { display: none !important; }
    /* Desktop pe navbar collapse hamesha visible */
    #mainNavMenu    { display: flex !important; height: 100% !important; }
}

/* ════════════════════════════════════════
   MOBILE ≤991px
   ════════════════════════════════════════ */
@media (max-width: 991.98px) {
    :root { --section-py: 60px; }

    /* Top bar mobile pe hide */
    .top-bar { display: none !important; }

    /* Brand row */
    .hdr-brand-row {
        border-bottom: none;
        min-height: 64px;
        padding: 0 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .hdr-logo-img { height: 40px; }

    /* Hamburger show karo */
    .hdr-toggler {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Mobile nav menu */
    #mainNavMenu {
        background: #ffffff;
        border-top: 1px solid var(--border);
        padding-bottom: 8px;
        width: 100%; /* viewport se bahar na jaye */
    }
    .hdr-nav-list {
        flex-direction: column !important;
        padding: 4px 0 8px;
        min-height: unset !important;
        width: 100%;
    }
    .hdr-nav-item {
        display: block !important;
        width: 100%;
    }
    .hdr-link {
        color: var(--text-head) !important;
        padding: 11px 20px !important;
        font-size: 0.86rem !important;
        border-bottom: 1px solid var(--border-light) !important;
        width: 100%;
        white-space: normal; /* mobile pe wrap hone do */
    }
    .hdr-link:hover,
    .hdr-link.hdr-active {
        color: var(--blue) !important;
        background: var(--blue-subtle) !important;
    }
    .hdr-link::after          { display: none !important; }
    .hdr-link.dropdown-toggle::after {
        display: inline-block !important;
        border-top-color: var(--text-muted);
        margin-left: auto;
    }
    .hdr-caret { display: none !important; }

    /* CTA button mobile pe full width */
    .hdr-cta-item { padding: 10px 16px 14px !important; margin-left: 0 !important; }
    .hdr-cta {
        display: flex !important;
        justify-content: center;
        width: 100% !important;
        padding: 11px 20px !important;
    }

    /* Dropdown mobile mein static/inline */
    .hdr-drop {
        position: static !important;
        border-top: none !important;
        border-left: 3px solid var(--blue) !important;
        border-right: none !important;
        border-bottom: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: var(--blue-subtle) !important;
        animation: none !important;
        margin: 0 0 4px 20px !important;
        min-width: unset !important;
        width: calc(100% - 20px) !important;
    }
    .hdr-drop-item  { padding: 9px 14px !important; }
    .hdr-drop-item:hover { padding-left: 18px !important; }

    /* Hero section */
    .hero-section   { min-height: auto; padding: 56px 0 40px; }
    .hero-card      { margin-top: 32px; }

    /* About floating elements — clip karo overflow se bachne ke liye */
    .about-img-float { right: 0; bottom: -18px; width: 145px; height: 115px; }
    .about-badge     { left: 0; }

    /* Quality strip — 2 column layout */
    .qs-inner { flex-wrap: wrap; }
    .qs-item  { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,0.1); }

    /* Why section */
    .why-img-main { margin-bottom: 32px; }

    /* Form box */
    .form-box { padding: 28px; }
}

/* ════════════════════════════════════════
   MOBILE ≤767px
   ════════════════════════════════════════ */
@media (max-width: 767.98px) {
    :root { --section-py: 50px; }

    /* Typography scale down */
    .s-title         { font-size: 1.7rem; }
    .hero-h1         { font-size: 1.85rem; }
    .page-hero-title { font-size: 1.75rem; }
    .page-hero       { padding: 48px 0; }

    /* Buttons stack on mobile */
    .hero-btns {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .btn-blue,
    .btn-outline,
    .btn-outline-white {
        width: 100%;
        justify-content: center;
    }

    /* Hero stats — 2 per row */
    .hero-stats { flex-wrap: wrap; gap: 14px; }
    .hero-stat  { flex: 0 0 44%; border-right: none; margin-right: 0; }
    .hero-stat-n { font-size: 1.65rem; }

    /* About images */
    .about-img-float { display: none; }
    .about-img-main  { height: 290px; }
    .about-badge     { position: static; display: inline-block; margin-top: 14px; }

    /* Cards */
    .ta-img     { height: 145px; }
    .why-img-main { height: 260px; }
    .leader-img { height: 195px; }

    /* Quality strip single column */
    .qs-item { flex: 0 0 100%; }

    /* Forms */
    .form-box   { padding: 20px; }
    .map-wrap iframe { height: 260px; }

    /* Coming soon */
    .coming-soon { padding: 40px 20px; }

    /* Footer */
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .footer-about { max-width: 100%; }
    .csr-img-wrap img { height: 250px; }
}

/* ════════════════════════════════════════
   SMALL ≤575px
   ════════════════════════════════════════ */
@media (max-width: 575.98px) {
    .hdr-logo-img { height: 34px; }

    /* Hero typography */
    .hero-h1     { font-size: 1.65rem; }
    .hero-stat-n { font-size: 1.5rem; }

    /* Hero stats — single column */
    .hero-stats { flex-direction: column; gap: 12px; }
    .hero-stat  { flex: 0 0 100%; padding-right: 0; margin-right: 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 12px; }
    .hero-stat:last-child { border-bottom: none; padding-bottom: 0; }

    /* Back to top */
    #backToTop { bottom: 16px; right: 16px; width: 38px; height: 38px; }

    /* Footer */
    .footer-main { padding: 48px 0 36px; }
    .footer-logo-img { height: 42px; }

    /* Page hero */
    .page-hero { padding: 40px 0; }
    .page-hero-title { font-size: 1.6rem; }

    /* Form box */
    .form-box { padding: 18px; }

    /* About badge inline on small screens */
    .about-badge { position: static !important; display: inline-block; margin-top: 12px; }
}

/* ════════════════════════════════════════
   PRINT
   ════════════════════════════════════════ */
@media print {
    .top-bar, .site-header, .site-footer,
    .cta-section, #backToTop { display: none !important; }
    .page-hero {
        background: none !important;
        border-bottom: 2px solid #000;
        padding: 16px 0;
    }
    .page-hero-title { color: #000 !important; }
}