/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet & Mobile (max-width: 992px) */
@media (max-width: 992px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {

    /* Hero Slider Mobile */
    .hero-slider {
        height: 70vh;
        min-height: 450px;
    }

    .hero-slider .hero-content h1 {
        font-size: 1.75rem;
        padding: 0 15px;
    }

    .hero-slider .hero-content p {
        font-size: 0.95rem;
        padding: 0 20px;
    }

    .hero-slider .hero-content .flex {
        flex-direction: column;
        align-items: center;
        gap: 10px !important;
    }

    .hero-slider .hero-content .btn {
        width: 80%;
        text-align: center;
    }

    .slider-nav {
        padding: 0 10px;
    }

    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-dots {
        bottom: 20px;
    }

    /* Grid Layouts Mobile */
    .grid-cols-4,
    .grid-cols-3,
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    /* Offer Bar Mobile */
    .offer-bar {
        font-size: 0.8rem;
        padding: 10px 40px 10px 15px;
    }

    .offer-bar .close-offer {
        right: 10px;
    }

    /* Buttons Mobile */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Section Spacing Mobile */
    section {
        padding: 3rem 0;
    }

    /* Forms Mobile */
    .form-control {
        padding: 14px;
        font-size: 16px;
        /* Prevents iOS zoom on focus */
    }

    /* Footer Mobile */
    .footer .grid {
        text-align: center;
    }

    /* Trust Indicators Mobile */
    .trust-indicators .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Header Mobile */
    .main-header .container {
        padding: 0 10px;
    }

    .main-header .logo img {
        height: 40px;
    }

    /* Hide desktop nav items on mobile */
    .header-btns .btn-secondary {
        display: none;
    }

    /* Desktop-only elements - hidden on mobile */
    .desktop-only {
        display: none !important;
    }

    /* Hide Book Consultation button on mobile header */
    .main-header .btn-primary {
        display: none !important;
    }

    /* Mobile Header Layout Fix */
    .main-header {
        padding: 0.5rem 0;
    }

    .nav-logo img {
        height: 38px;
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        font-size: 1.5rem;
        padding: 8px;
        color: var(--color-primary);
        z-index: 1001;
    }

    /* Mobile Navigation Menu */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        box-shadow: none;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links ul {
        flex-direction: column;
        text-align: center;
        gap: 0;
        padding: 0;
    }

    .nav-links ul li {
        border-bottom: 1px solid #eee;
    }

    .nav-links ul li a {
        display: block;
        padding: 18px 20px;
        font-size: 1.1rem;
    }

    /* Mobile Menu Buttons (shown inside mobile menu) */
    .mobile-menu-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 20px;
        margin-top: 20px;
    }

    .mobile-menu-buttons .btn {
        display: block;
        text-align: center;
        padding: 15px 20px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .mobile-menu-buttons .btn-primary {
        background: var(--color-primary);
        color: #fff;
    }

    .mobile-menu-buttons .btn-secondary {
        background: transparent;
        border: 2px solid var(--color-primary);
        color: var(--color-primary);
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-slider {
        height: 65vh;
        min-height: 400px;
    }

    .hero-slider .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-slider .hero-content p {
        font-size: 0.85rem;
    }

    .hero-slider .hero-content .btn {
        width: 90%;
        padding: 12px;
    }

    .container {
        width: 95%;
        padding: 0 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    /* Service Cards Mobile */
    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        font-size: 2rem;
    }

    /* Trust Indicators Small */
    .trust-indicators .grid-cols-4 {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .trust-indicators h3 {
        font-size: 1.25rem;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }

    .service-card:hover {
        transform: none;
    }

    .nav-links a:hover:after {
        width: 0;
    }
}