/* ==========================================
   RESPONSIVE STYLESHEET
   Mobile-First Responsive Design
   ========================================== */

/* ==========================================
   MOBILE DEVICES (up to 767px)
   ========================================== */

@media (max-width: 767px) {

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

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

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

    /* Layout */
    .section {
        padding: 50px 0;
    }

    .section-large {
        padding: 70px 0;
    }

    .container {
        padding: 0 15px;
    }

    /* Header */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #000000;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-list a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

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

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

    /* Hero Section */
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-content {
        padding: 0 15px;
    }

    /* Trust Bar */
    .trust-logos {
        gap: 1.5rem;
    }

    .trust-logo span {
        font-size: 1rem;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.875rem;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 0.9375rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .cta-group .btn {
        width: 100%;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Process Section */
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-step {
        padding: 1.5rem;
    }

    /* Benefits Section */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefit-card {
        padding: 2rem 1.5rem;
    }

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

    .benefit-title {
        font-size: 1.5rem;
    }

    /* Why Dubai Section */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .why-card {
        padding: 1.5rem;
    }

    .why-icon {
        font-size: 2rem;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Comparison Section */
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .comparison-column {
        padding: 2rem 1.5rem;
    }

    .comparison-title {
        font-size: 1.5rem;
    }

    /* Concierge Section */
    .concierge-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Blog Section */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* FAQ Section */
    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }

    /* Contact Section */
    .contact-info {
        font-size: 1rem;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Utilities */
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }

    /* Grid Utilities */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   TABLET DEVICES (768px to 1023px)
   ========================================== */

@media (min-width: 768px) and (max-width: 1023px) {

    /* Typography */
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.875rem;
    }

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

    /* Layout */
    .section {
        padding: 60px 0;
    }

    .section-large {
        padding: 90px 0;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2.25rem;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Process Section */
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Benefits Section */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Why Dubai Section */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Comparison Section */
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    /* Concierge Section */
    .concierge-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Blog Section */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    /* Grid Utilities */
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   DESKTOP DEVICES (1024px to 1439px)
   ========================================== */

@media (min-width: 1024px) and (max-width: 1439px) {

    /* Container */
    .container {
        max-width: 1000px;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2.75rem;
    }

    /* Process Section */
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Why Dubai Section */
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Blog Section */
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================
   LARGE DESKTOP (1440px and up)
   ========================================== */

@media (min-width: 1440px) {

    /* Container */
    .container {
        max-width: 1400px;
    }

    /* Typography */
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

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

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

    /* Hero Section */
    .hero-title {
        font-size: 3.5rem;
    }

    /* Layout */
    .section {
        padding: 100px 0;
    }

    .section-large {
        padding: 140px 0;
    }

    /* Process Section */
    .process-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    /* Why Dubai Section */
    .why-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Blog Section */
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Grid Utilities */
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================
   LANDSCAPE MOBILE (up to 767px height)
   ========================================== */

@media (max-height: 767px) and (orientation: landscape) {

    .hero {
        min-height: auto;
        padding: 100px 0;
    }

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

    .section {
        padding: 40px 0;
    }
}

/* ==========================================
   HIGH RESOLUTION DISPLAYS
   ========================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {

    /* Optimize for retina displays */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {

    /* Hide non-essential elements */
    .header,
    .mobile-menu-toggle,
    .hero-video,
    .btn,
    .footer-social,
    .newsletter,
    .scroll-to-top {
        display: none !important;
    }

    /* Optimize for printing */
    body {
        font-size: 12pt;
        color: #000000;
        background: #ffffff;
    }

    .container {
        max-width: 100%;
    }

    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================
   DARK MODE SUPPORT (Optional)
   ========================================== */

@media (prefers-color-scheme: dark) {

    /* Uncomment to enable dark mode */

    /*
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }

    .bg-light {
        background-color: #2a2a2a;
    }

    .section-title,
    .section-subtitle,
    .section-text {
        color: #ffffff;
    }

    .card,
    .process-step,
    .benefit-card,
    .why-card,
    .testimonial-card,
    .blog-card,
    .faq-item {
        background-color: #2a2a2a;
        color: #ffffff;
    }

    .step-description,
    .benefit-description,
    .why-card p,
    .testimonial-text,
    .blog-excerpt,
    .faq-answer p {
        color: #cccccc;
    }

    .btn-primary {
        background-color: #ffffff;
        color: #000000;
    }

    .btn-secondary {
        border-color: #ffffff;
        color: #ffffff;
    }
    */
}

/* ==========================================
   HOVER EFFECTS (No hover on touch devices)
   ========================================== */

@media (hover: none) {

    /* Disable hover effects on touch devices */
    .card:hover,
    .process-step:hover,
    .benefit-card:hover,
    .why-card:hover,
    .testimonial-card:hover,
    .blog-card:hover {
        transform: none;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }

    .btn:hover {
        transform: none;
    }
}

/* ==========================================
   CUSTOM BREAKPOINTS
   ========================================== */

/* Extra small devices (320px to 479px) */
@media (max-width: 479px) {

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

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

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

    .btn {
        padding: 10px 20px;
        font-size: 0.8125rem;
    }

    .trust-logos {
        gap: 1rem;
    }

    .trust-logo span {
        font-size: 0.875rem;
    }
}

/* Medium devices (480px to 767px) */
@media (min-width: 480px) and (max-width: 767px) {

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

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra large devices (1600px and up) */
@media (min-width: 1600px) {

    .container {
        max-width: 1600px;
    }

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

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