/* ==========================================================================
   AESTHETICS GROUP - RESPONSIVE STYLESHEET
   Using specified media queries
   ========================================================================== */

/* EXTRA EXTRA LARGE DESKTOPS */
@media (max-width: 1800px) {
    .container {
        max-width: 1400px;
    }
}

/* EXTRA LARGE DESKTOPS */
@media (min-width: 1440px) and (max-width: 1799px) {
    .container {
        max-width: 1320px;
    }

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

    .project-slide {
        flex: 0 0 calc((100% - (3 * 24px)) / 4);
    }
}

/* LARGE DESKTOPS */
@media (min-width: 1200px) and (max-width: 1439px) {
    .container {
        max-width: 1140px;
    }

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

    .nav-links {
        gap: 22px;
    }

    .project-slide {
        flex: 0 0 calc((100% - (3 * 20px)) / 4);
    }

    .areas-grid {
        gap: 20px;
    }

    .area-card {
        padding: 26px 18px;
    }
}

/* 2. MINI DESKTOPS & LANDSCAPE TABLETS (Together) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

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

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

    .nav-links {
        gap: 16px;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    /* Projects Slider: show 3 cards on mini desktops */
    .project-slide {
        flex: 0 0 calc((100% - (2 * 20px)) / 3);
    }

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

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

/* 3. PORTRAIT TABLETS (Separate) */
@media (min-width: 577px) and (max-width: 991px) {
    :root {
        --header-height: 76px;
    }

    .section-padding {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .top-bar {
        display: none;
    }

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

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

    .hero-description {
        font-size: 1.05rem;
    }

    /* Mobile Navigation Drawer */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 24px;
        gap: 28px;
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        overflow-y: auto;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 22px;
        width: 100%;
    }

    .nav-link {
        font-size: 1.15rem;
        padding: 6px 0;
    }

    .mobile-nav-cta {
        display: block;
        margin-top: 15px;
    }

    .header-right .btn-whatsapp-nav {
        display: none;
    }

    /* Why Choose Us Grid */
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 620px;
        margin: 0 auto;
    }

    /* Featured Properties Grid */
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Projects Slider: 2 cards visible */
    .project-slide {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .mobile-swipe-indicator {
        display: flex;
    }

    /* Areas Grid: 2 columns */
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Testimonial card */
    .testimonial-card {
        flex: 0 0 340px;
        max-width: 340px;
        padding: 24px 20px;
    }

    /* CTA Section */
    .cta-title {
        font-size: 2.2rem;
    }

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

    /* Inner Pages - Portrait Tablets */
    .founder-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .founder-img {
        height: 380px;
    }

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

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

    .journey-detail-card {
        position: static;
    }

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

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

    /* Lifestyle Section - Portrait Tablets */
    .lifestyle-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .lifestyle-panel {
        padding: 0;
    }

    .lifestyle-panel-body {
        padding: 28px 24px;
    }

    .lifestyle-subgrid,
    .lifestyle-subgrid.cols-4,
    .lifestyle-subgrid.cols-7 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/*  4. MOBILE (Separate) */
@media (max-width: 576px) {
    :root {
        --header-height: 70px;
    }

    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .section-padding {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .top-bar {
        display: none;
    }

    .logo-img {
        height: 66px;
    }

    /* Navigation Drawer on Mobile */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(255, 255, 255, 0.99);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 30px 20px;
        gap: 24px;
        transform: translateY(-115%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        width: 100%;
    }

    .nav-link {
        font-size: 32px;
    }

    .mobile-nav-cta {
        display: block;
        margin-top: 10px;
    }

    .header-right .btn-whatsapp-nav {
        display: none;
    }

    /* Hero section */
    .hero-section {
        padding: 60px 0 45px 0;
        min-height: 90vh;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 6px 14px;
        letter-spacing: 1.5px;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.25;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 28px;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 14px;
        margin-bottom: 34px;
    }

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

    .hero-highlights {
        gap: 14px;
        padding: 12px 18px;
        width: 100%;
        border-radius: 20px;
    }

    .highlight-num {
        font-size: 1.05rem;
    }

    .highlight-txt {
        font-size: 0.68rem;
    }

    .highlight-divider {
        height: 24px;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.85rem;
    }

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

    /* Why Choose Us Grid */
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-box-inner {
        padding: 30px 22px;
    }

    /* =========================================================
       Featured Properties: SPECIFIED REQUIREMENT - SHOW 2x2 IN MOBILE
       ========================================================= */
    .properties-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .property-card {
        border-radius: 12px;
    }

    .property-image-container {
        height: 135px;
    }

    .property-badge {
        top: 8px;
        left: 8px;
        font-size: 0.62rem;
        padding: 3px 8px;
    }

    .property-price-tag {
        bottom: 8px;
        right: 8px;
        font-size: 9px;
        padding: 4px 8px;
    }

    .property-price-tag small {
        display: none;
    }

    .property-content {
        padding: 12px;
    }

    .property-location {
        font-size: 0.72rem;
        gap: 4px;
        margin-bottom: 4px;
    }

    .property-title {
        font-size: 0.92rem;
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .property-brief {
        display: none;
        /* Hide snippet on small 2x2 cards for clean balance */
    }

    .property-specs {
        gap: 8px;
        padding: 8px 0;
        margin-bottom: 12px;
        font-size: 0.68rem;
        flex-wrap: wrap;
    }

    .property-specs span {
        gap: 4px;
    }

    .property-actions {
        flex-direction: column;
        gap: 6px;
    }

    .property-actions .btn {
        width: 100%;
        padding: 7px 10px;
        font-size: 0.75rem;
    }

    /* =========================================================
       Featured Projects: SPECIFIED REQUIREMENT - SWIPE IN MOBILE
       ========================================================= */
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }

    .slider-controls {
        display: none;
        /* In mobile user swipes directly */
    }

    .projects-slider-wrapper {
        margin: 0 -18px;
        /* Extend to edges for beautiful edge bleed swipe */
        padding: 0 18px;
    }

    .projects-slider-track {
        gap: 16px;
        padding-bottom: 16px;
        scroll-snap-type: x mandatory;
    }

    .project-slide {
        flex: 0 0 82%;
        /* Swipeable carousel card */
        min-width: 260px;
    }

    .project-image-box {
        height: 170px;
    }

    .mobile-swipe-indicator {
        display: flex;
    }

    /* Areas We Serve */
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .area-card {
        padding: 24px 18px;
    }

    /* Testimonials Marquee */
    .testimonial-card {
        flex: 0 0 290px;
        max-width: 290px;
        padding: 20px 18px;
    }

    .client-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }

    .client-name {
        font-size: 0.95rem;
    }

    .testimonial-text {
        font-size: 0.85rem;
    }

    /* Grand CTA */
    .grand-cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 1.95rem;
    }

    .cta-desc {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .cta-buttons-wrapper {
        flex-direction: column;
        gap: 14px;
        width: 100%;
    }

    .btn-cta-call,
    .btn-cta-whatsapp {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 20px;
    }

    .cta-perks {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Footer */
    .footer-top {
        padding: 50px 0 30px 0;
    }

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

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

    /* Floating Buttons on mobile */
    .floating-whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        right: 18px;
        bottom: 18px;
    }

    .floating-call-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        right: 21px;
        bottom: 78px;
    }

    .floating-tooltip {
        display: none;
    }

    .btn {
        font-size: 13px;
    }

    /* Inner Pages - Mobile */
    .inner-hero {
        min-height: 220px;
    }

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

    .founder-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .founder-img {
        height: 476px;
    }

    .founder-heading {
        font-size: 1.7rem;
    }

    .vision-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .journey-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .journey-timeline-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        padding: 10px 0;
    }

    .journey-timeline-nav::before {
        display: none;
    }

    .timeline-node {
        width: auto;
        padding: 0 !important;
        margin-bottom: 0;
    }

    .timeline-btn::after {
        display: none;
    }

    .journey-detail-card {
        position: static;
        padding: 24px 18px;
    }

    /* Specified requirement: boxes should be 2x2 in mobile */
    .milestone-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .filter-grid-inputs {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .filter-actions-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .filter-btn-group,
    .sort-group {
        width: 100%;
        justify-content: space-between;
    }

    .contact-layout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-info-panel {
        padding: 24px 18px;
    }

    .contact-map-wrapper {
        min-height: 320px;
    }

    .contact-map-iframe {
        min-height: 320px;
    }

    .founder-name {
        font-size: 15px;
    }

    .founder-role {
        font-size: 11px;
    }

    /* Lifestyle Section - Mobile */
    .lifestyle-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lifestyle-tabs-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .lifestyle-tab-btn {
        font-size: 0.85rem;
        padding: 12px 16px;
    }

    .lifestyle-panel {
        padding: 0;
    }

    .lifestyle-panel-image-wrap {
        height: 200px;
    }

    .lifestyle-panel-body {
        padding: 22px 18px;
    }

    .lifestyle-panel-title {
        font-size: 1.45rem;
    }

    .lifestyle-subgrid,
    .lifestyle-subgrid.cols-4,
    .lifestyle-subgrid.cols-7 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Leadership Team: Horizontal Swipe in Mobile */
    .leadership-team-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .leadership-team-grid::-webkit-scrollbar {
        display: none;
    }

    .leader-card {
        flex: 0 0 82%;
        min-width: 260px;
        scroll-snap-align: start;
    }

    .leader-img-box {
        height: 325px;
    }

    /* Modal - Mobile */
    .property-modal {
        max-height: 92vh;
        border-radius: 14px;
    }

    .modal-hero-img-wrap {
        height: 200px;
    }

    .modal-content-body {
        padding: 22px 18px;
    }

    .modal-title {
        font-size: 1.35rem;
    }

    .modal-specs-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
    }

    .modal-actions-row .btn {
        width: 100%;
        font-size: 0.9rem;
    }

    .lifestyle-subcard {
        padding: 15px 15px;
    }
}