/* ===================================
   Responsive Styles for Thaheen Website
   =================================== */

/* Tablets and below (max-width: 992px) */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        overflow-y: auto;
        align-items: flex-start;
        gap: 0;
    }

    body[dir="ltr"] .nav-menu {
        right: auto;
        left: -100%;
    }

    .nav-menu.active {
        right: 0;
    }

    body[dir="ltr"] .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 15px 10px;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: var(--light-bg);
        border-radius: 0;
        margin-top: 5px;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 101;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .counter-number {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }

    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    .container {
        padding: 0 15px;
    }

    .section-header {
        margin-bottom: 40px;
    }

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

    .section-subtitle {
        font-size: 0.95rem;
    }

    .hero {
        min-height: 80vh;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .brands-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .brand-card {
        padding: 20px;
    }

    .counter-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .counter-number {
        font-size: 2rem;
    }

    .counter-label {
        font-size: 0.95rem;
    }

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

    .partner-card {
        padding: 20px 15px;
    }

    .partner-logo i {
        font-size: 2rem;
    }

    .partner-logo h4 {
        font-size: 1rem;
    }

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

    .footer-top {
        padding: 40px 0 30px;
    }

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

    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .contact-info {
        flex-direction: column;
        gap: 8px;
        font-size: 0.85rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        left: 20px;
    }

    body[dir="ltr"] .whatsapp-float {
        left: auto;
        right: 20px;
    }

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

    body[dir="ltr"] .back-to-top {
        right: auto;
        left: 20px;
    }

    .logo img {
        height: 50px;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

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

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .feature-title {
        font-size: 1.2rem;
    }

    .feature-text {
        font-size: 0.9rem;
    }

    .brands-grid {
        grid-template-columns: 1fr;
    }

    .brand-card img {
        max-height: 100px;
    }

    .counter-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .counter-icon {
        font-size: 2.5rem;
    }

    .counter-number {
        font-size: 2.5rem;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

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

    .footer-links,
    .footer-contact {
        font-size: 0.9rem;
    }

    .logo img {
        height: 45px;
    }

    .nav-menu {
        width: 100%;
    }
}

/* Landscape mode for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero-scroll {
        display: none;
    }
}

/* Print styles */
@media print {
    .header,
    .whatsapp-float,
    .back-to-top,
    .hero-scroll,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .brand-card img {
        image-rendering: -webkit-optimize-contrast;
    }
}