/* =====================================================
   HOME.CSS - Margalla Enclave Landing Page Styles
   Bootstrap 5 companion CSS — no inline styles needed
   ===================================================== */

/* ---------- CSS VARIABLES ---------- */
:root {
    --maroon: #7A1930;
    --maroon-dark: #5d1223;
    --maroon-light: rgba(122, 25, 48, 0.10);
    --gold: #C9A84C;
    --gold-dark: #a88835;
    --cream: #F8F4EE;
    --white: #ffffff;
    --text-dark: #222222;
    --text-muted: #666666;
}

/* ---------- GLOBAL ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* ---------- TYPOGRAPHY ---------- */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

.text-maroon {
    color: var(--maroon) !important;
}

.text-gold {
    color: var(--gold) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, .75);
}

/* ---------- BACKGROUNDS ---------- */
.bg-maroon {
    background-color: var(--maroon) !important;
}

.bg-gold {
    background-color: var(--gold) !important;
}

.bg-light-cream {
    background-color: var(--cream) !important;
}

.bg-maroon-light {
    background-color: var(--maroon-light) !important;
}

/* ---------- BUTTONS ---------- */
.btn-maroon {
    background-color: var(--maroon);
    color: var(--white);
    border: 2px solid var(--maroon);
    transition: background-color .3s, transform .2s, box-shadow .3s;
}

.btn-maroon:hover,
.btn-maroon:focus {
    background-color: var(--maroon-dark);
    color: var(--white);
    border-color: var(--maroon-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(122, 25, 48, .25);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--maroon);
    border: 2px solid var(--gold);
    font-weight: 700;
    transition: background-color .3s, transform .2s;
}

.btn-gold:hover,
.btn-gold:focus {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--maroon);
    transform: translateY(-2px);
}

.btn-media-link {
    background-color: var(--white);
    color: var(--maroon);
    border: 2px solid var(--maroon);
    transition: all .3s;
}

.btn-media-link:hover {
    background-color: var(--maroon);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(122, 25, 48, .2);
}

/* ---------- BADGE ---------- */
.badge-gold {
    background-color: var(--gold);
    color: var(--maroon);
    font-weight: 700;
    letter-spacing: .5px;
}

/* ---------- NAVBAR ---------- */
.navbar-main {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .06);
    transition: background-color .3s, padding .3s;
    padding: 16px 0;
}

.navbar-main.navbar-scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, .12);
}

.navbar-logo {
    height: 55px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
}

.nav-link-main {
    color: var(--maroon) !important;
    font-weight: 600;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 6px 14px !important;
    transition: color .2s;
    position: relative;
}

.nav-link-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width .3s;
}

.nav-link-main:hover::after,
.nav-link-main.active::after {
    width: 60%;
}

.nav-link-main:hover {
    color: var(--gold) !important;
}

/* ---------- HERO SECTION ---------- */
.hero-section {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.hero-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.hero-title {
    text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.6), 0px 0px 20px var(--maroon);
    letter-spacing: 3px;
}

.hero-subtitle {
    letter-spacing: 5px;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.8);
}

/* .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.30) 0%,
            rgba(122, 25, 48, 0.45) 50%,
            rgba(20, 5, 12, 0.65) 100%);
} */

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.30) 0%,
            rgba(0, 0, 0, 0.50) 50%,
            rgba(0, 0, 0, 0.75) 100%);
}

.scroll-down-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.5rem;
    opacity: .7;
    animation: bounce 2s infinite;
    text-decoration: none;
    z-index: 2;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ---------- SECTION HELPERS ---------- */
.section-pad {
    padding: 90px 0;
}

.section-tag {
    display: inline-block;
    background-color: var(--maroon-light);
    color: var(--maroon);
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 18px;
    border-radius: 50px;
}

.section-heading {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--maroon);
    line-height: 1.15;
}

/* ---------- STATS BAR ---------- */
.stats-bar .stat-item {
    border-right: 1px solid rgba(255, 255, 255, .15);
    padding: 0 10px;
}

.stats-bar .col-6:last-child .stat-item,
.stats-bar .col-lg-3:last-child .stat-item {
    border-right: none;
}

/* ---------- ABOUT / CONNECTIVITY ---------- */
.conn-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.connectivity-card {
    border: 1px solid rgba(122, 25, 48, .08);
    transition: transform .2s, box-shadow .2s;
}

.connectivity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(122, 25, 48, .1) !important;
}

.img-badge-overlay {
    position: absolute;
    bottom: -15px;
    right: 20px;
}

/* ---------- DESTINATION CARDS ---------- */
.dest-card {
    border: 1px solid rgba(0, 0, 0, .05);
    transition: transform .3s, box-shadow .3s;
}

.shadow-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .12) !important;
}

.dest-img-wrap {
    position: relative;
    overflow: hidden;
    height: 260px;
}

.dest-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.dest-card:hover .dest-img {
    transform: scale(1.06);
}

.dest-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, transparent 55%);
}

/* ---------- AMENITY CARDS ---------- */
.amenity-icon-wrap {
    width: 80px;
    height: 80px;
    transition: background-color .3s;
}

.amenity-card:hover .amenity-icon-wrap {
    background-color: var(--maroon) !important;
}

.amenity-card:hover .amenity-icon-wrap i {
    color: var(--white) !important;
}

.facility-thumb {
    height: 160px;
    object-fit: cover;
    transition: transform .3s;
}

.facility-thumb:hover {
    transform: scale(1.04);
}

/* ---------- PLOT CARDS ---------- */
.plot-card {
    border: 1px solid rgba(0, 0, 0, .06);
    transition: transform .3s, box-shadow .3s;
}

.plot-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .1) !important;
}

.plot-img {
    height: 280px;
    object-fit: cover;
}

.plot-label {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: .9rem;
}

/* ---------- GALLERY ---------- */
.gallery-main {
    height: 400px;
    object-fit: cover;
    transition: transform .3s;
}

.gallery-side {
    height: 192px;
    object-fit: cover;
    width: 100%;
    transition: transform .3s;
}

.gallery-square {
    height: 220px;
    object-fit: cover;
    transition: transform .3s;
}

.gallery-main:hover,
.gallery-side:hover,
.gallery-square:hover {
    transform: scale(1.02);
}

/* ---------- INVEST CARDS ---------- */
.invest-card {
    transition: background-color .3s, transform .2s;
}

.invest-card:hover {
    background-color: rgba(255, 255, 255, .18) !important;
    transform: translateY(-4px);
}

/* ---------- LOCATION CARDS ---------- */
.location-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.location-card {
    transition: transform .3s, box-shadow .3s;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(122, 25, 48, .12) !important;
}

/* ---------- FORM ---------- */
.form-control {
    border: 1.5px solid #ddd;
    background-color: var(--white);
    transition: border-color .3s, box-shadow .3s;
}

.form-control:focus {
    border-color: var(--maroon);
    box-shadow: 0 0 0 .2rem rgba(122, 25, 48, .18);
    background-color: var(--white);
}

/* ---------- BACK TO TOP ---------- */
.btn-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--maroon);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(122, 25, 48, .4);
    transition: background-color .3s, transform .2s;
    z-index: 999;
}

.btn-back-top:hover {
    background-color: var(--maroon-dark);
    color: var(--white);
    transform: translateY(-3px);
}

/* ---------- FOOTER ---------- */
.site-footer {
    background-color: #111 !important;
}

.footer-logo {
    filter: brightness(0) invert(1);
    opacity: .85;
}

.footer-link {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    transition: color .2s;
}

.footer-link:hover {
    color: var(--gold);
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, .1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, .15);
    font-size: .9rem;
    transition: background-color .3s, color .3s;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--gold);
    color: var(--maroon);
    border-color: var(--gold);
}

/* ---------- PLOT TAB BUTTONS ---------- */
.plot-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 44px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px !important;
    border: 2px solid var(--gold) !important;
    cursor: pointer;
    letter-spacing: .4px;
    transition: all .3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .10);

    /* Default (inactive) state */
    background-color: var(--white) !important;
    color: var(--maroon) !important;
}

.plot-tab-btn:not(.active):hover {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
    color: var(--maroon) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(201, 168, 76, .25);
}

.plot-tab-btn.active {
    background-color: var(--maroon) !important;
    color: var(--white) !important;
    border-color: var(--maroon) !important;
    box-shadow: 0 6px 22px rgba(122, 25, 48, .30) !important;
    transform: translateY(-2px);
}

.plot-tab-btn.active:hover {
    background-color: var(--maroon-dark) !important;
    border-color: var(--maroon-dark) !important;
    color: var(--white) !important;
}

/* ---------- PLOT TAB IMAGE ---------- */
.plot-tab-image {
    width: 100%;
    max-width: 1100px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
}


/* ---------- OVERFLOW FIX ---------- */
section {
    max-width: 100%;
}

section {
    overflow-x: hidden;
}

@media (max-width: 991.98px) {
    .section-pad {
        padding: 60px 0;
    }

    .hero-section {
        background-attachment: scroll;
    }

    .gallery-main {
        height: 260px;
    }

    .gallery-side {
        height: 122px;
    }
}

@media (max-width: 767.98px) {

    /* ============================================
       GLOBAL — Premium Mobile Base
    ============================================ */

    /* Fix container padding — Bootstrap default 12px is too tight */
    .container,
    .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Fix Bootstrap row gutters — large gutters (g-4, g-5) cause left overflow */
    .row.g-5,
    .row.g-4 {
        --bs-gutter-x: 1.25rem;
        --bs-gutter-y: 1.5rem;
        margin-left: 0;
        margin-right: 0;
    }

    .row.g-5>*,
    .row.g-4>* {
        padding-left: calc(var(--bs-gutter-x) * 0.5);
        padding-right: calc(var(--bs-gutter-x) * 0.5);
    }

    /* Ensure sections flow naturally without forcing text-center on everything */
    .connectivity-card {
        padding: 14px !important;
    }

    .section-pad {
        padding: 52px 0;
    }

    .section-heading {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .section-tag {
        font-size: 0.72rem;
        padding: 5px 14px;
    }

    /* ============================================
       NAVBAR
    ============================================ */
    .navbar-logo {
        height: 40px;
        max-width: 130px;
    }

    .navbar-main {
        padding: 12px 0;
    }

    /* Mobile nav items — bigger tap targets */
    .nav-link-main {
        font-size: 1rem;
        padding: 12px 20px !important;
        border-bottom: 1px solid rgba(122, 25, 48, 0.08);
    }

    /* ============================================
       HERO
    ============================================ */
    .hero-section {
        min-height: 100svh;
        background-attachment: scroll;
    }

    /* Hero logos: scale down */
    .hero-section .d-flex img {
        height: 50px !important;
    }

    .hero-section h1.display-2 {
        font-size: 2.2rem !important;
        letter-spacing: 1px !important;
        line-height: 1.1 !important;
    }

    .hero-section .fs-4 {
        font-size: 0.82rem !important;
        letter-spacing: 2px !important;
    }

    .hero-section .bg-maroon.rounded-pill {
        width: 90%;
        max-width: 340px;
    }

    .hero-section .bg-maroon.rounded-pill p {
        font-size: 0.82rem !important;
    }

    .hero-section .d-flex.flex-wrap.gap-3 {
        flex-direction: column;
        align-items: center;
    }

    .hero-section .d-flex.flex-wrap.gap-3 .btn {
        width: 82%;
        max-width: 280px;
    }

    /* ============================================
       STATS BAR
    ============================================ */
    .stats-bar {
        padding: 28px 0 !important;
    }

    .stats-bar .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding: 14px 0;
        margin-bottom: 4px;
    }

    .stats-bar .col-6:nth-child(odd) .stat-item {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }

    .stats-bar .fs-1 {
        font-size: 2.4rem !important;
    }

    /* ============================================
       ABOUT SECTION
    ============================================ */
    #about .img-badge-overlay {
        position: static;
        margin-top: 12px;
        text-align: left;
        border-radius: 14px !important;
    }

    #about img.rounded-4 {
        border-radius: 16px !important;
        max-height: 280px;
        object-fit: cover;
        width: 100%;
    }



    /* ============================================
       POSSESSION CEREMONY
    ============================================ */
    .section-pad.bg-maroon h2 {
        font-size: 1.7rem !important;
    }

    .section-pad.bg-maroon .fs-1 {
        font-size: 2.2rem !important;
    }

    /* ============================================
       DESTINATIONS
    ============================================ */
    #destinations .dest-img-wrap {
        height: 200px;
    }

    #destinations .dest-card {
        margin-bottom: 4px;
    }

    /* ============================================
       AMENITIES
    ============================================ */
    #amenities .amenity-card {
        padding: 20px 16px !important;
    }

    #amenities .amenity-icon-wrap {
        width: 64px;
        height: 64px;
        margin-bottom: 14px !important;
    }

    #amenities .amenity-icon-wrap i {
        font-size: 1.4rem !important;
    }

    #amenities h5 {
        font-size: 1rem;
    }

    #amenities p {
        font-size: 0.87rem;
    }

    /* Facility thumbnails */
    .facility-thumb {
        height: 130px;
    }

    /* ============================================
       PLOT TYPES
    ============================================ */
    /* Tab buttons: side-by-side, equal width */
    .plot-tab-btn {
        padding: 12px 16px;
        font-size: 0.88rem;
        flex: 1 1 45%;
        max-width: 180px;
        text-align: center;
    }



    .plot-tab-image {
        border-radius: 12px;
        width: 100%;
    }

    .plot-card {
        margin-bottom: 8px;
    }

    .plot-img {
        height: 180px;
    }

    /* ============================================
       GALLERY
    ============================================ */
    /* Fix row gutter overflow for gallery */
    #gallery .row.g-3 {
        margin-left: 0;
        margin-right: 0;
    }

    #gallery .row.g-3>* {
        padding-left: 6px;
        padding-right: 6px;
    }

    /* Gallery stacks to single column on mobile */
    #gallery .col-md-8,
    #gallery .col-md-4 {
        margin-bottom: 8px;
    }

    #gallery .gallery-main {
        height: 220px;
        border-radius: 12px !important;
    }

    #gallery .gallery-side {
        height: 105px;
        border-radius: 10px !important;
    }

    #gallery .gallery-square {
        height: 150px;
        border-radius: 10px !important;
    }

    /* ============================================
       LOCATION
    ============================================ */
    /* Fix g-4 row gutter overflow */
    #location .row.g-4 {
        margin-left: 0;
        margin-right: 0;
    }

    #location .row.g-4>* {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Show 2 connectivity cards per row on mobile */
    #location .col-lg-3.col-md-6 {
        width: 50%;
    }

    #location .connectivity-card {
        padding: 12px 10px !important;
        border-radius: 12px !important;
    }

    #location .connectivity-card .fw-bold {
        font-size: 0.85rem;
    }

    #location .connectivity-card .small {
        font-size: 0.75rem;
    }

    /* Map image — full width, proper rounding */
    #location .map-wrapper {
        border-radius: 14px !important;
        overflow: hidden;
    }

    /* ============================================
       DOWNLOAD FORM / CONTACT
    ============================================ */
    /* Fix g-5 gutter overflow — biggest culprit */
    #contact .row.g-5 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 2rem;
        margin-left: 0;
        margin-right: 0;
    }

    #contact .row.g-5>* {
        padding-left: 0;
        padding-right: 0;
    }

    /* Left column: text + checklist */
    #contact .col-lg-5 {
        text-align: left !important;
    }

    /* Form card */
    #contact .bg-white.rounded-4 {
        padding: 22px 18px !important;
        border-radius: 18px !important;
    }

    #contact h4.fw-bold {
        font-size: 1.2rem !important;
    }

    #contact .form-control,
    #contact .form-select {
        font-size: 0.9rem;
        padding: 11px 14px;
    }

    /* Email + Phone fields — stack on mobile */
    #contact .col-md-6 {
        width: 100%;
    }

    #contact .row.g-4 {
        margin-left: 0;
        margin-right: 0;
    }

    #contact .btn-maroon.w-100 {
        padding: 14px;
        font-size: 1rem;
        border-radius: 50px !important;
    }

    /* ============================================
       FOOTER
    ============================================ */
    .site-footer {
        text-align: center;
        padding: 40px 0 24px !important;
    }

    /* Footer columns stacked, centered */
    .site-footer .row>[class*="col-"] {
        text-align: center;
        margin-bottom: 24px;
    }

    .site-footer .footer-link {
        font-size: 0.9rem;
        line-height: 2.2;
    }

    /* Logo in footer centered */
    .site-footer .footer-logo {
        display: block;
        margin: 0 auto 16px;
        height: 45px;
    }

    /* Social icons centered */
    .site-footer .d-flex.gap-3 {
        justify-content: center;
    }

    .site-footer h5,
    .site-footer h6 {
        font-size: 0.95rem;
        margin-top: 4px;
        margin-bottom: 10px;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
}

/* ---------- FAQ SECTION ---------- */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid rgba(122, 25, 48, 0.12) !important;
    border-radius: 12px !important;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 24px rgba(122, 25, 48, 0.10);
    transform: translateY(-2px);
}

.faq-btn {
    background: var(--white) !important;
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 1.1rem 1.5rem;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    gap: 14px;
}

.faq-btn:not(.collapsed) {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%) !important;
    color: var(--white) !important;
}

.faq-btn:not(.collapsed) .faq-number {
    background: rgba(255,255,255,0.2);
    color: var(--gold);
}

.faq-btn::after {
    filter: none !important;
    margin-left: auto;
    flex-shrink: 0;
}

.faq-btn:not(.collapsed)::after {
    filter: brightness(10) !important;
}

.faq-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: var(--maroon-light);
    color: var(--maroon);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
    flex-shrink: 0;
    transition: background 0.25s, color 0.25s;
}

.faq-body {
    padding: 1.25rem 1.5rem 1.25rem calc(1.5rem + 50px);
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.75;
    border-top: 1px solid rgba(122, 25, 48, 0.08);
    background: #fdfbf9;
}

.faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-list li {
    padding: 4px 0 4px 20px;
    position: relative;
    color: var(--text-muted);
}

.faq-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}