/* =========================================================
   RESPONSIVE MASTER CODE – GRAND ASSETS
   Works for: Header, Hero, Grids, Lists, Popup, Footer
========================================================= */

/* ---------- BASE RESET ---------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ---------- CONTAINER ---------- */
.container {
    width: 100%;
    max-width: 1240px;
    margin: auto;
    padding: 0 20px;
}

/* ---------- IMAGES ---------- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================
   HEADER + NAV (MOBILE)
========================================================= */
@media (max-width: 992px) {

    .header-wrapper {
        flex-wrap: wrap;
        height: auto;
    }

    .main-nav {
        width: 100%;
        display: none;
        background: #ffffff;
        padding: 20px 0;
        margin-top: 15px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }

    .main-nav.active {
        display: block;
    }

    .header-cta {
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }
}

/* =========================================================
   HERO SECTION + SEARCH
========================================================= */
@media (max-width: 992px) {

    .hero-section {
        padding: 90px 0 70px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 36px;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-search .search-box {
        flex-direction: column;
        gap: 12px;
    }

    .hero-search select,
    .hero-search button {
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 14px;
    }
}

/* =========================================================
   ALL GRID SECTIONS
   (Projects, Blogs, Collections, Testimonials)
========================================================= */
@media (max-width: 992px) {

    .projects-grid,
    .blog-grid,
    .collections-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {

    .projects-grid,
    .blog-grid,
    .collections-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   TEXT-ONLY LIST SECTIONS
   (Featured Locations, Featured Developers)
========================================================= */
@media (max-width: 768px) {

    .location-row,
    .developer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 26px;
    }

    .location-left p,
    .developer-left p {
        max-width: 100%;
    }
}

/* =========================================================
   MOVING DEVELOPER STRIP (MARQUEE)
========================================================= */
@media (max-width: 768px) {

    .developer-name {
        font-size: 16px;
    }

    .developer-track {
        gap: 40px;
        animation-duration: 22s;
    }
}

/* =========================================================
   CURATED COLLECTION CARDS
========================================================= */
@media (max-width: 768px) {

    .collection-card {
        padding: 30px 24px;
    }

    .collection-card h4 {
        font-size: 15px;
    }
}

/* =========================================================
   TESTIMONIAL / TRUST SECTIONS
========================================================= */
@media (max-width: 768px) {

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .voice-text {
        font-size: 17px;
    }
}

/* =========================================================
   POPUP FORM (MOBILE PERFECT)
========================================================= */
@media (max-width: 576px) {

    .popup-box {
        max-width: 92%;
        border-radius: 20px;
    }

    .popup-content {
        padding: 30px 24px;
    }

    .popup-content h3 {
        font-size: 22px;
    }

    .popup-form input,
    .popup-form select,
    .popup-form button {
        font-size: 14px;
    }
}

/* =========================================================
   FOOTER
========================================================= */
@media (max-width: 768px) {

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

/* =========================================================
   GLOBAL MOBILE TWEAKS
========================================================= */
@media (max-width: 576px) {

    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 20px; }

    p {
        font-size: 14.5px;
        line-height: 1.8;
    }

    button,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
/* ===============================
   MOBILE HEADER CLEANUP
================================ */

/* Hide hamburger on desktop */
.mobile-menu-btn {
    display: none;
}

/* Hamburger Icon */
.mobile-menu-btn {
    width: 34px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.mobile-menu-btn span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #0b2c4d;
    border-radius: 3px;
    transition: 0.3s;
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 7px; }
.mobile-menu-btn span:nth-child(3) { top: 14px; }
.mobile-menu-btn span:nth-child(4) { top: 21px; }

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-menu-header h3 {
    font-size: 22px;
    color: #0b2c4d;
}

.mobile-menu-header button {
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile Nav */
.mobile-nav {
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.mobile-nav a {
    font-size: 20px;
    font-weight: 600;
    color: #0b2c4d;
    text-decoration: none;
}

/* Mobile only rules */
@media (max-width: 992px) {

    .main-nav,
    .header-cta {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
        margin-left: auto;
    }
}
