/* ============================================
   RESPONSIVE DESIGN - DESKTOP & MOBILE OPTIMIZATION
   ============================================ */

/* Desktop Optimizations (Large Screens) */
@media (min-width: 1400px) {
    /* Page containers - separate from navbar */
    .container:not(.nav-container) {
        max-width: 80%;
    }
    
    /* Navbar container already handled in navbar.css */

    .hero-title {
        font-size: clamp(3rem, 5vw, 4rem);
    }

    .section-header h2 {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }

    .homepage-about-grid {
        gap: 6rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   TABLET OPTIMIZATIONS
   ============================================ */

/* Tablet Landscape (1024px - 1399px) */
@media (max-width: 1399px) and (min-width: 1024px) {
    /* Page containers only - navbar handled separately */
    .container:not(.nav-container) {
        max-width: 95%;
        padding: 0 clamp(2rem, 4vw, 3rem);
    }

    /* Typography */
    .hero-title {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }

    .section-header h2 {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    /* Hero Section */
    .hero {
        padding: 6rem 0 4rem;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }

    .hero-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        height: 500px;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }

    .hero-buttons .btn {
        flex: 1;
        min-width: 200px;
    }

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

    .homepage-about-center {
        grid-column: 1 / -1;
        min-height: 550px;
    }

    .homepage-about-left,
    .homepage-about-right {
        grid-column: span 1;
    }

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

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

    /* Testimonials */
    .testimonials-carousel {
        padding: 0 4rem;
    }

    .testimonial-card {
        padding: 3rem;
    }

    /* Contact Section */
    .contact-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    /* WhatsApp Contact Card */
    .whatsapp-contact-card {
        padding: 2rem;
    }

    .whatsapp-header {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .whatsapp-icon-large {
        width: 48px;
        height: 48px;
    }

    .whatsapp-icon-large svg {
        width: 28px;
        height: 28px;
    }

    .whatsapp-header-text h3 {
        font-size: 1.25rem;
    }

    .whatsapp-hours {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }

    /* Areas Page */
    .emirates-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .emirates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .property-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

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

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

    /* Page Header */
    .page-header {
        padding: 6rem 0 4rem;
    }

    /* Service Items */
    .service-item {
        margin-bottom: 1.5rem;
    }

    .service-item-header {
        padding: 1.5rem;
    }

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

    .process-card {
        padding: 2rem;
    }

    /* FAQ Section */
    .faq-section {
        padding: 5rem 0;
    }

    .faq-item {
        margin-bottom: 1rem;
    }

    .faq-question {
        padding: 1.5rem;
        font-size: 1.05rem;
    }
}

/* iPad Pro Landscape Override (1024px - 1300px) - Force single column for About section */
@media (max-width: 1400px) and (min-width: 1024px) {
    /* Hero Section - Full Width Container */
    .hero .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: clamp(1.5rem, 4vw, 3rem) !important;
        padding-right: clamp(1.5rem, 4vw, 3rem) !important;
    }

    /* Homepage About Section - Full Width Single Column */
    .about-home-section .container,
    .homepage-about .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: clamp(1.5rem, 4vw, 3rem) !important;
        padding-right: clamp(1.5rem, 4vw, 3rem) !important;
    }

    .homepage-about-grid,
    .about-home-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }

    .homepage-about-left,
    .homepage-about-center,
    .homepage-about-right,
    .about-home-left,
    .about-home-center,
    .about-home-right {
        grid-column: 1 / -1 !important;
    }

    .homepage-about-card,
    .about-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

/* Tablet Portrait (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    /* Page containers only - navbar handled separately */
    .container:not(.nav-container) {
        max-width: 90%;
        padding: 0 clamp(1.5rem, 4vw, 2rem);
    }

    /* Typography */
    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .section-header h2 {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }

    /* Hero Section - Full Width Container on Tablet */
    .hero .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: clamp(1.5rem, 4vw, 2.5rem) !important;
        padding-right: clamp(1.5rem, 4vw, 2.5rem) !important;
    }

    /* Homepage About Section - Full Width Single Column */
    .about-home-section .container,
    .homepage-about .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: clamp(1.5rem, 4vw, 2.5rem) !important;
        padding-right: clamp(1.5rem, 4vw, 2.5rem) !important;
    }

    .homepage-about-grid,
    .about-home-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }

    .homepage-about-left,
    .homepage-about-center,
    .homepage-about-right,
    .about-home-left,
    .about-home-center,
    .about-home-right {
        grid-column: 1 / -1 !important;
    }

    .homepage-about-card,
    .about-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Hero Section */
    .hero {
        padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4rem);
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: clamp(2.5rem, 5vw, 3.5rem);
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-image-section {
        order: 1;
        min-height: 400px;
    }

    .hero-images-grid {
        grid-template-columns: repeat(2, 1fr);
        height: clamp(350px, 45vw, 450px);
        gap: clamp(1rem, 2vw, 1.25rem);
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .hero-buttons .btn {
        flex: 0 1 auto;
        min-width: 180px;
    }

    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }

    /* About Us Section - Overridden by 1024-1100px breakpoint for single column */
    .about-home-grid,
    .homepage-about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .homepage-about-center {
        grid-column: 1 / -1;
        min-height: 500px;
        order: 2;
    }

    .homepage-about-left {
        grid-column: span 1;
        order: 1;
    }

    .homepage-about-right {
        grid-column: span 1;
        order: 3;
    }

    .homepage-about-heading {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 4rem 0;
    }

    .testimonials-carousel {
        padding: 0 3.5rem;
    }

    .testimonial-card {
        padding: 2.5rem;
    }

    .carousel-btn {
        width: 48px;
        height: 48px;
    }

    /* Contact Section */
    .contact-section {
        padding: 5rem 0;
    }

    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info-column {
        padding-right: 0;
    }

    .contact-form-card {
        padding: 2.5rem;
    }

    /* Areas Page */
    .emirates-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .emirates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .emirate-hero-card {
        padding: 2rem;
    }

    .property-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

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

    /* Section Spacing */
    section {
        padding: 4rem 0;
    }

    /* Page Header */
    .page-header {
        padding: 5rem 0 3rem;
    }

    /* CTA Banner */
    .cta-banner {
        padding: 4rem 0;
    }

    .cta-content h2 {
        font-size: clamp(1.75rem, 4vw, 2.25rem);
    }

    /* Service Items */
    .service-item {
        margin-bottom: 1.25rem;
    }

    .service-item-header {
        padding: 1.25rem;
    }

    /* Process Cards */
    .process-cards {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .process-card {
        padding: 1.75rem;
    }

    /* FAQ Section */
    .faq-section {
        padding: 4rem 0;
    }

    .faq-question {
        padding: 1.25rem;
        font-size: 1rem;
    }

    /* Service List */
    .services-list {
        gap: 1rem;
    }
}

/* Small Tablet & Mobile Landscape (600px - 767px) */
@media (max-width: 767px) and (min-width: 600px) {
    /* Page containers only - navbar handled separately */
    .container:not(.nav-container) {
        padding: 0 1.5rem;
        max-width: 95%;
    }

    /* Typography */
    .hero-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    /* Hero Section */
    .hero {
        padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 4vw, 2.5rem);
    }

    .hero-images-grid {
        grid-template-columns: repeat(2, 1fr);
        height: clamp(300px, 50vw, 400px);
        gap: clamp(0.875rem, 1.5vw, 1.125rem);
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

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

    .homepage-about-center {
        min-height: 450px;
        order: 2;
    }

    .homepage-about-left {
        order: 1;
        text-align: center;
    }

    .homepage-about-right {
        order: 3;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Testimonials */
    .testimonials-carousel {
        padding: 0 2.5rem;
    }

    .testimonial-card {
        padding: 2rem;
    }

    /* Contact Section */
    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Areas Page */
    .emirates-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .property-types-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .why-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    /* Section Spacing */
    section {
        padding: 4rem 0;
    }

    /* Page Header */
    .page-header {
        padding: 4rem 0 3rem;
    }
}

@media (max-width: 968px) {
    /* Navbar rules handled by @media (max-width: 1050px) above */
    .logo-text {
        display: none;
    }
}

/* Mobile only - navbar rules moved to navbar.css for tablets */
@media (max-width: 767px) {
    .nav-wrapper {
        gap: 1rem;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .logo-text {
        display: none;
    }

    .logo {
        margin-right: 0;
    }
    
    .nav-right {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }
    
    .whatsapp-icon {
        width: 40px;
        height: 40px;
        padding: 8px;
    }
    
    .phone-icon {
        width: 35px;
        height: 35px;
    }

    .hero {
        min-height: auto;
        padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 4vw, 2.5rem);
    }
    
    .hero-content {
        text-align: center;
        order: 2;
    }
    
    .hero-image-section {
        min-height: 350px;
        order: 1;
    }
    
    .hero-images-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        width: 100%;
        height: clamp(300px, 55vw, 450px);
        min-height: clamp(300px, 55vw, 450px);
        gap: clamp(0.75rem, 1.5vw, 1rem);
        max-height: none;
        gap: 0.75rem;
        padding: 0;
        margin: 0 auto;
    }
    
    .hero-image-item {
        min-height: 180px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .hero-image-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
        margin-top: 1.5rem;
    }
    
    .stat-item {
        text-align: center;
        min-width: 70px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        justify-content: center;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        min-height: 48px;
    }
    
    .hero-tags {
        top: 1rem;
        right: 1rem;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .hero-tag {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-info-cards {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-info-card {
        padding: 1.25rem;
    }
    
    .info-card-stat {
        font-size: 2rem;
    }

    section {
        padding: 3rem 0;
    }

    /* CTA Banner mobile */
    .cta-banner {
        padding: 3rem 0;
    }

    .cta-content {
        padding: 0 1rem;
    }

    .cta-content h2 {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 0.75rem;
    }

    .cta-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-content .btn {
        width: 100%;
        min-height: 48px;
    }

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

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image-container {
        min-height: 250px;
    }

    .modal-text-content {
        padding: 2rem;
        max-height: none;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-skyline {
        height: 55%;
        opacity: 0.4;
    }

    .hero-dark-overlay {
        height: 75%;
        background: linear-gradient(
            to bottom,
            rgba(18, 41, 107, 0.95) 0%,
            rgba(18, 41, 107, 0.85) 50%,
            rgba(18, 41, 107, 0.7) 80%,
            transparent 100%
        );
    }
    
    .page-header {
        padding: 8rem 0 4rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-logo .logo-img-footer {
        max-width: 180px;
    }

    .footer-col:first-child p {
        max-width: 100%;
    }

    .footer-social {
        margin-top: 1.25rem;
        gap: 0.875rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-icon svg {
        width: 18px;
        height: 18px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .contact-info-column {
        padding-right: 0;
    }

    .contact-direct {
        padding: 1.75rem;
    }

    /* WhatsApp Contact Card */
    .whatsapp-contact-card {
        padding: 2rem;
        margin-bottom: 3rem;
    }

    .whatsapp-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .whatsapp-icon-large {
        width: 56px;
        height: 56px;
        margin: 0 auto;
    }

    .whatsapp-header-text h3 {
        font-size: 1.375rem;
    }

    .whatsapp-hours {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .whatsapp-hours svg {
        margin: 0 auto;
    }

    .btn-whatsapp-contact {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .contact-form-column {
        position: static;
    }

    .contact-form-card {
        padding: 2.5rem;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .location-map {
        min-height: 300px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .location-detail-item {
        padding: 1.25rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-logo .logo-img-footer {
        max-width: 180px;
    }

    .footer-col:first-child p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 0;
    }

    .contact-main-grid {
        gap: 3rem;
    }

    .contact-info-column h2 {
        font-size: 2rem;
    }

    .contact-direct {
        padding: 1.5rem;
    }

    /* WhatsApp Contact Card */
    .whatsapp-contact-card {
        padding: 1.75rem;
        margin-bottom: 2.5rem;
    }

    .whatsapp-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .whatsapp-icon-large {
        width: 48px;
        height: 48px;
        margin: 0 auto;
    }

    .whatsapp-header-text h3 {
        font-size: 1.25rem;
    }

    .whatsapp-subtitle {
        font-size: 0.875rem;
    }

    .whatsapp-hours {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        margin-bottom: 1.25rem;
    }

    .whatsapp-hours svg {
        margin: 0 auto;
    }

    .hours-text p {
        font-size: 0.95rem;
    }

    .btn-whatsapp-contact {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .contact-category {
        padding: 1.5rem;
    }

    .contact-form-card {
        padding: 2rem 1.5rem;
    }

    .location-grid {
        gap: 2.5rem;
    }

    .location-map {
        min-height: 280px;
    }

    .location-marker {
        top: 1rem;
        left: 1rem;
        padding: 1rem;
    }

    .location-detail-item {
        padding: 1.25rem;
        flex-direction: column;
        gap: 1rem;
    }

    .location-detail-item svg {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    /* Page containers only - navbar handled separately */
    .container:not(.nav-container) {
        padding: 0 1rem;
    }

    /* Typography adjustments */
    h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    h3 {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
    }

    /* Service cards */
    .service-card,
    .coverage-card,
    .feature-item {
        padding: 1.5rem;
    }

    /* Contact section */
    .contact-section {
        padding: 3rem 0;
    }

    .contact-main-grid {
        gap: 2.5rem;
    }

    .contact-info-column h2 {
        font-size: 1.75rem;
    }

    .contact-intro {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .contact-direct {
        padding: 1.25rem;
    }

    /* WhatsApp Contact Card */
    .whatsapp-contact-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .whatsapp-header {
        flex-direction: column;
        text-align: center;
        gap: 0.875rem;
        margin-bottom: 1.25rem;
    }

    .whatsapp-icon-large {
        width: 48px;
        height: 48px;
        margin: 0 auto;
    }

    .whatsapp-icon-large svg {
        width: 24px;
        height: 24px;
    }

    .whatsapp-header-text h3 {
        font-size: 1.125rem;
    }

    .whatsapp-subtitle {
        font-size: 0.8rem;
    }

    .whatsapp-hours {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        margin-bottom: 1rem;
        gap: 0.75rem;
    }

    .whatsapp-hours svg {
        margin: 0 auto;
    }

    .hours-text strong {
        font-size: 0.8rem;
    }

    .hours-text p {
        font-size: 0.9rem;
    }

    .btn-whatsapp-contact {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .contact-value {
        font-size: 1.125rem;
    }

    .contact-category {
        padding: 1.25rem;
    }

    .contact-category h3 {
        font-size: 1.125rem;
    }

    .contact-form-card {
        padding: 1.75rem 1.25rem;
    }

    .contact-form-card h2 {
        font-size: 1.5rem;
    }

    .location-info h3 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    /* Hero section mobile */
    .hero {
        padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
        min-height: auto;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.375rem 0.875rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
        line-height: 1.2;
        margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        margin-bottom: clamp(2rem, 4vw, 2.5rem);
    }

    .hero-buttons {
        gap: clamp(0.75rem, 2vw, 1rem);
        margin-top: clamp(1.5rem, 3vw, 2rem);
    }

    .hero-buttons .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px; /* Touch target */
    }

    .hero-stats {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .stat-item {
        min-width: 80px;
    }

    .stat-number {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .stat-label {
        font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    }

    /* Services section mobile */
    .services-section {
        padding: 3rem 0;
    }

    .services-list {
        margin: 2rem 0.5rem 0;
        border-radius: 12px;
    }

    .service-item-header {
        padding: 1.25rem;
        gap: 1rem;
    }

    .service-item-number {
        font-size: 1.5rem;
        min-width: 40px;
        height: 40px;
    }

    .service-item-title {
        font-size: 1.125rem;
    }

    /* Coverage section mobile */
    .coverage-section {
        padding: 3rem 0;
    }

    .coverage-card {
        padding: 1.5rem;
    }

    .coverage-image {
        height: 180px;
    }

    /* About section mobile */
    .about-home-section {
        padding: 3rem 0;
    }

    .homepage-about {
        padding: 4rem 0;
    }

    /* About Us Section - Homepage Mobile */
    .about-home-grid,
    .homepage-about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        width: 100%;
        max-width: 100%;
    }

    .about-home-left,
    .homepage-about-left {
        padding-right: 0;
        text-align: center;
        order: 1;
    }

    .about-home-left h2,
    .homepage-about-heading {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .about-home-left p,
    .homepage-about-left p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .about-home-center,
    .homepage-about-center {
        min-height: 400px;
        padding: 0;
        order: 2;
    }

    .about-home-center img,
    .homepage-about-center img {
        min-height: 400px;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .about-home-right,
    .homepage-about-right {
        order: 3;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .about-card,
    .homepage-about-card {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: visible;
    }

    .about-card-content {
        display: block;
    }

    .about-card h3,
    .homepage-about-card h3 {
        font-size: 1.125rem;
    }

    /* Fix accordion expansion on mobile */
    .about-card-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
        opacity: 0;
    }

    .about-card-expanded .about-card-content,
    .homepage-about-card.about-card-expanded .about-card-content {
        /* max-height controlled by JS on mobile, removed to avoid conflicts */
        opacity: 1;
    }

    /* Chevron icon inside the round toggle button (mobile only) */
    .about-card-toggle {
        position: relative;
    }

    /* Hide existing SVG on mobile, use CSS chevron instead */
    .about-card-toggle svg {
        display: none;
    }

    .about-card-toggle::before {
        content: "";
        position: absolute;
        inset: 0;
        margin: auto;
        width: 10px;
        height: 10px;
        border-right: 2px solid rgba(18, 41, 107, 0.75);
        border-bottom: 2px solid rgba(18, 41, 107, 0.75);
        transform: rotate(45deg); /* down */
        transition: transform 0.25s ease;
    }

    /* Expanded: rotate chevron up */
    .about-card-expanded .about-card-toggle::before {
        transform: rotate(-135deg); /* up */
    }

    /* White chevron for expanded cards with blue background */
    .about-card-expanded .about-card-toggle::before {
        border-right-color: rgba(255, 255, 255, 0.9);
        border-bottom-color: rgba(255, 255, 255, 0.9);
    }

    .btn-about-learn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    /* Why choose section mobile */
    .why-choose-section {
        padding: 3rem 0;
    }

    .why-choose-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .why-highlight-card {
        padding: 2rem 1.5rem;
    }

    .why-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* How it works mobile */
    .how-it-works-section {
        padding: 3rem 0;
    }

    .process-cards {
        gap: 1rem;
    }

    .process-card {
        padding: 1.5rem;
    }

    /* Testimonials mobile */
    .testimonials-section {
        padding: 3rem 0;
    }

    .testimonial-card {
        padding: 1.75rem;
    }

    /* FAQ mobile */
    .faq-section {
        padding: 3rem 0;
    }

    .faq-question {
        padding: 1.25rem;
        font-size: 0.95rem;
    }

    /* Footer mobile */
    .footer {
        padding: 3rem 0 2rem;
    }

    .footer-content {
        gap: 2.5rem;
    }

    .footer-col h4 {
        font-size: 0.9rem;
    }

    .footer-social {
        gap: 0.75rem;
    }

    .social-icon {
        width: 38px;
        height: 38px;
    }

    /* Section headers mobile */
    .section-header {
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 0.75rem;
    }

    .section-header p {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    /* Page headers mobile */
    .page-header {
        padding: 5rem 0 2.5rem;
    }

    .page-header h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: 0.75rem;
    }

    .page-header p {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        padding: 0 1rem;
    }

    /* Forms mobile */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.875rem 1rem;
    }

    .btn {
        min-height: 44px; /* Touch target */
        padding: 0.875rem 1.5rem;
    }

    /* Areas page mobile */
    .emirates-hero-grid {
        gap: 1.5rem;
    }

    .emirate-hero-card {
        padding: 1.5rem;
    }

    .emirates-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .property-types-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .why-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .emirate-areas {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .area-tag {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    /* Location section mobile */
    .location-map {
        min-height: 250px;
        height: 250px;
    }

    .location-marker {
        padding: 0.875rem;
        font-size: 0.85rem;
    }

    .marker-icon {
        width: 36px;
        height: 36px;
    }

    /* Touch targets - ensure all interactive elements are at least 44x44px */
    a, button, input[type="submit"], input[type="button"] {
        min-height: 44px;
        min-width: 44px;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
    }

    img {
        height: auto;
        max-width: 100%;
    }

    /* Services page mobile */
    .services-page-section {
        padding: 3rem 0;
    }

    .service-item {
        margin-bottom: 1rem;
    }

    /* Areas page mobile */
    .uae-coverage-section {
        padding: 3rem 0;
    }

    .emirate-hero-card {
        padding: 1.5rem;
    }

    .emirate-hero-card h3 {
        font-size: 1.5rem;
    }

    .emirate-image-container {
        margin-top: 1.25rem;
        border-radius: 12px;
        flex: 1 1 auto;
        min-height: 180px;
    }

    .emirate-card {
        padding: 1.25rem;
    }

    /* About page mobile */
    .about-home-section {
        padding: 3rem 0;
    }

    /* About Us Section - Small Mobile */
    .about-home-center,
    .homepage-about-center {
        min-height: 300px;
    }

    .about-home-center img,
    .homepage-about-center img {
        min-height: 300px;
        width: 100%;
        object-fit: cover;
    }

    .homepage-about-heading {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .about-card,
    .homepage-about-card {
        padding: 1.25rem;
        overflow: visible;
    }

    .about-card h3,
    .homepage-about-card h3 {
        font-size: 1rem;
    }

    .homepage-about-right,
    .about-home-right {
        overflow: visible;
    }

    /* Fix accordion expansion on small mobile */
    .about-card-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
        opacity: 0;
        display: block;
    }

    .about-card-expanded .about-card-content,
    .homepage-about-card.about-card-expanded .about-card-content {
        /* max-height controlled by JS on mobile, removed to avoid conflicts */
        opacity: 1;
    }

    /* Chevron icon inside the round toggle button (mobile only) */
    .about-card-toggle {
        position: relative;
    }

    /* Hide existing SVG on mobile, use CSS chevron instead */
    .about-card-toggle svg {
        display: none;
    }

    .about-card-toggle::before {
        content: "";
        position: absolute;
        inset: 0;
        margin: auto;
        width: 10px;
        height: 10px;
        border-right: 2px solid rgba(18, 41, 107, 0.75);
        border-bottom: 2px solid rgba(18, 41, 107, 0.75);
        transform: rotate(45deg); /* down */
        transition: transform 0.25s ease;
    }

    /* Expanded: rotate chevron up */
    .about-card-expanded .about-card-toggle::before {
        transform: rotate(-135deg); /* up */
    }

    /* White chevron for expanded cards with blue background */
    .about-card-expanded .about-card-toggle::before {
        border-right-color: rgba(255, 255, 255, 0.9);
        border-bottom-color: rgba(255, 255, 255, 0.9);
    }

    /* Modal mobile */
    .service-modal {
        padding: 1rem;
    }

    .modal-content {
        max-height: 95vh;
        border-radius: 16px;
    }

    /* Table responsive */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Ensure all buttons are touch-friendly */
    button, .btn, a.btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.5rem;
    }

    /* Input fields mobile optimization */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
    }

    /* Smooth scrolling on mobile */
    html {
        -webkit-overflow-scrolling: touch;
    }

    /* Fix tap highlight */
    a, button {
        -webkit-tap-highlight-color: rgba(18, 41, 107, 0.1);
    }
}

