/* ==========================================================================
   Yash IMF - Premium Financial Services Website
   Responsive Styling Sheet (Production Ready)
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Large Desktops & Laptops (min-width: 1200px)
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1240px;
    }
}

/* --------------------------------------------------------------------------
   02. Laptops & Desktops (max-width: 1199.98px)
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 2.7rem;
    }
    
    .navbar-brand img {
        max-height: 52px;
    }
    
    .header-navbar .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 18px 10px !important;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2.1rem;
    }
}

/* --------------------------------------------------------------------------
   03. Tablets & Small Laptops (max-width: 991.98px)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .top-bar {
        font-size: 0.8rem;
    }
    
    .top-bar .top-info {
        gap: 12px;
    }

    /* Mobile Offcanvas Navigation */
    .header-navbar {
        padding: 12px 0;
    }
    
    .navbar-toggler {
        position: relative;
        z-index: 1070;
    }

    .mobile-menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1050;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu-backdrop.show {
        opacity: 1;
        visibility: visible;
    }

    body.menu-open {
        overflow: hidden;
    }

    .navbar-collapse {
        background: var(--white);
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        padding: 70px 24px 30px 24px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        z-index: 1060;
        display: block !important;
    }

    .navbar-collapse.show {
        right: 0;
        display: block !important;
    }

    .navbar-collapse .navbar-nav {
        display: flex;
        flex-direction: column;
    }

    .navbar-nav {
        gap: 0;
    }

    .navbar-nav .nav-link {
        padding: 14px 0 !important;
        border-bottom: 1px solid var(--border-light);
        font-size: 1rem;
        justify-content: space-between;
    }

    /* Mobile Dropdown Behavior */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: rgba(0, 0, 0, 0.02) !important;
        padding-left: 15px !important;
        margin-top: 0;
        width: 100%;
        max-width: 100%;
    }

    .has-mega-menu {
        position: relative !important;
    }

    .mega-menu-dropdown {
        position: static;
        width: 100%;
        max-width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 10px 0;
        display: none;
        background: var(--bg-light);
        border-radius: var(--radius-md);
        margin-top: 8px;
        overflow: hidden;
    }

    .mega-menu-dropdown .container {
        padding: 0 !important;
    }

    .mega-menu-dropdown .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .mega-menu-dropdown .col-lg-4 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .has-mega-menu.show-mobile .mega-menu-dropdown {
        display: block;
    }

    .mega-menu-item {
        padding: 8px 10px;
    }

    /* Hide default bootstrap dropdown arrow to avoid duplicates */
    .navbar-nav .dropdown-toggle::after {
        display: none !important;
    }

    .has-mega-menu.show-mobile > .nav-link i.dropdown-chevron,
    .dropdown.show > .nav-link i.dropdown-chevron {
        transform: rotate(180deg);
    }

    .hero-slide-item {
        padding: 60px 0 80px 0;
        text-align: center;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-lead {
        margin: 0 auto 25px auto;
        font-size: 1.05rem;
    }

    .hero-image-box {
        margin-top: 40px;
    }

    .hero-floating-card {
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 85%;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .premium-card {
        padding: 24px;
    }
}

/* --------------------------------------------------------------------------
   04. Mobile Devices (max-width: 767.98px)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .top-bar {
        display: none; /* Hide topbar on small screens for cleaner mobile header */
    }

    .navbar-brand img {
        max-height: 48px;
    }

    .navbar-collapse {
        width: 100%;
        max-width: 100%;
        padding: 90px 20px 30px 20px;
    }

    .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 12px 0 !important;
    }

    .mega-menu-dropdown {
        padding: 16px 12px;
    }

    .hero-title {
        font-size: 1.95rem;
    }

    .hero-lead {
        font-size: 0.98rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.88rem;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .btn-primary-custom, 
    .btn-accent-custom,
    .btn-outline-custom {
        width: 100%;
        padding: 12px 20px;
    }

    .hero-slide-btns {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .back-to-top {
        bottom: 78px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .page-breadcrumb-header {
        padding: 40px 0 35px 0;
    }

    .breadcrumb-title {
        font-size: 1.85rem;
    }
}

/* --------------------------------------------------------------------------
   05. Small Mobile Phones (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .brand-name {
        font-size: 1.2rem;
    }
    
    .brand-tagline {
        font-size: 0.6rem;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-floating-card {
        display: none; /* Hide floating badge on extra small screens */
    }

    .sidebar-widget {
        padding: 20px;
    }
}

