/*
================================================================
MRIDULA DENTAL CLINIC - RESPONSIVE STYLES (RESPONSIVE.CSS)
================================================================
*/

/* --- Large Desktop Screens (1400px and up) --- */
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1320px;
    }
}

/* --- Standard Desktops / Laptops (992px to 1200px) --- */
@media (max-width: 1199.98px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-wrapper {
        padding: 150px 0 80px 0;
    }
}

/* --- Tablets and Small Laptops (768px to 991px) --- */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 80px 0;
    }

    .top-header {
        display: none !important;
    }

    .clinic-navbar {
        padding: 0.35rem 0;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
        border-bottom: 1px solid var(--border-color);
    }

    .clinic-navbar .container {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .clinic-navbar .navbar-brand {
        margin-right: 0.75rem;
    }

    .logo-img {
        height: 58px;
    }

    .clinic-header.scrolled .logo-img {
        height: 52px;
    }

    .clinic-navbar .navbar-toggler {
        border: 1px solid rgba(var(--primary-dark-green-rgb), 0.12);
        background: var(--light-aqua);
        border-radius: 14px;
        padding: 0.55rem 0.7rem;
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    }

    .clinic-navbar .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(var(--primary-dark-green-rgb), 0.12);
    }

    .clinic-navbar .navbar-collapse {
        margin-top: 0.9rem;
        padding: 1rem;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid var(--border-color);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }

    .navbar-nav {
        gap: 0.35rem;
        margin-top: 0;
        margin-bottom: 0.9rem;
        align-items: stretch;
    }

    .navbar-nav .nav-link {
        padding: 0.8rem 1rem !important;
        border-radius: 14px;
        background: rgba(var(--primary-dark-green-rgb), 0.03);
        border: 1px solid transparent;
        text-align: left;
    }

    .navbar-nav .nav-link.active {
        background: var(--light-aqua);
        border-color: rgba(var(--accent-aqua-rgb), 0.2);
        color: var(--primary-dark-green);
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .navbar-nav .dropdown-menu {
        margin-top: 0.5rem;
        border-radius: 18px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 18px 38px rgba(15, 23, 42, 0.08);
    }

    .clinic-navbar .btn-cta {
        width: 100%;
        height: 48px;
        border-radius: 14px;
        justify-content: center;
        padding: 0 1rem;
        box-shadow: 0 14px 24px rgba(var(--primary-dark-green-rgb), 0.18);
    }

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

    .section-title-wrap {
        margin-bottom: 45px;
    }

    /* Navbar adaptations */
    .navbar-luxury {
        padding: 1rem 0;
    }

    .navbar-luxury .nav-link::after {
        display: none; /* Hide hover line animation on mobile menu */
    }

    .navbar-luxury .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1rem !important;
        border-radius: var(--radius-sm);
    }

    .navbar-luxury .nav-link.active {
        background: var(--light-aqua);
    }

    /* Hero Banner Adaptations */
    .hero-wrapper {
        padding: 130px 0 60px 0;
        text-align: center;
    }

    .hero-wrapper .btn-premium {
        margin-bottom: 0.5rem;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-image-wrap {
        margin-top: 3rem;
        display: flex;
        justify-content: center;
    }
    
    .hero-image-decor {
        max-width: 80%;
    }
    
    /* Stats grid */
    .stats-card-wrap {
        margin-bottom: 1.5rem;
    }
}

/* --- Mobile Devices (576px to 767px) --- */
@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .interactive-card {
        padding: 2rem 1.5rem;
    }

    /* Before After Image Slider adjust */
    .ba-slider-container {
        height: 250px;
    }
    
    /* Testimonial slider adjustments */
    .testimonial-card {
        padding: 1.75rem;
        margin: 5px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }

    .footer-main {
        padding: 56px 0 44px;
    }

    .footer-text {
        max-width: 100%;
    }

    .footer-social-icons {
        justify-content: center;
    }

    .footer-title {
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        text-align: center;
    }

    .footer-links a:hover {
        transform: none;
    }

    .footer-contact-info {
        align-items: center;
        text-align: center;
    }

    .footer-bottom {
        padding: 1rem 0;
    }
}

/* --- Small Mobile Devices (Up to 575px) --- */
@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.75rem;
    }

    .section-tag {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
        margin-bottom: 0.5rem;
    }

    .btn-premium {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .logo-title {
        font-size: 1.15rem;
    }
    
    .logo-subtitle {
        font-size: 0.65rem;
    }

    .logo-icon-wrap {
        width: 38px;
        height: 38px;
        font-size: 1.25rem;
        border-radius: 8px;
    }
    
    /* Forms spacing */
    .form-control-custom {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }
    
    .form-label-custom {
        left: 1rem;
        top: 0.85rem;
    }
    
    .form-control-custom:focus ~ .form-label-custom,
    .form-control-custom:not(:placeholder-shown) ~ .form-label-custom {
        top: -0.65rem;
        left: 0.6rem;
        font-size: 0.75rem;
    }
    
    /* Floating action buttons adjustments */
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .clinic-navbar {
        padding: 0.3rem 0;
    }

    .clinic-navbar .container {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    .logo-img {
        height: 52px;
    }

    .clinic-header.scrolled .logo-img {
        height: 48px;
    }

    .clinic-navbar .navbar-collapse {
        padding: 0.85rem;
        border-radius: 20px;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0.9rem !important;
        font-size: 0.98rem;
    }

    .clinic-navbar .btn-cta {
        height: 46px;
        font-size: 0.95rem;
    }

    .footer-main {
        padding: 48px 0 36px;
    }

    .footer-title {
        font-size: 1.1rem;
    }

    .footer-text,
    .footer-links a,
    .footer-contact-info {
        font-size: 0.92rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* --- Ultra Small Mobile Devices (Under 360px) --- */
@media (max-width: 359.98px) {
    .logo-title {
        font-size: 1.05rem;
    }
    
    .logo-subtitle {
        display: none; /* Hide subtitle on tiny screens to avoid overflow */
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

/* --- Utility Helper to prevent overflow --- */
.no-overflow-x {
    overflow-x: hidden !important;
    width: 100%;
}
