/**
 * DHA Margalla Enclave — page-only styles
 * Loaded exclusively on dha_margalla_enclave.php
 */

/* ── Layout: align with site container ── */
.me-page.page-fade-in {
    overflow: visible;
}
.me-page .w-container-1 {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.me-page .section-wrapper-content.perfect-1 {
    width: 100%;
    max-width: 720px;
}

.me-page .designer_1 {
    width: 100%;
    max-width: 640px;
}

/* ── Scroll animations ── */
@media (prefers-reduced-motion: reduce) {
    .me-animate,
    .me-animate-left,
    .me-animate-right,
    .me-animate-banner {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.me-animate,
.me-animate-left,
.me-animate-right {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.me-animate-left { transform: translate3d(-30px, 0, 0); }
.me-animate-right { transform: translate3d(30px, 0, 0); }

.me-animate-banner {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.me-animate.me-visible,
.me-animate-left.me-visible,
.me-animate-right.me-visible,
.me-animate-banner.me-visible {
    opacity: 1;
    transform: none;
}

.me-animate-delay-1 { transition-delay: 0.08s; }
.me-animate-delay-2 { transition-delay: 0.16s; }
.me-animate-delay-3 { transition-delay: 0.24s; }
.me-animate-delay-4 { transition-delay: 0.32s; }

.me-feature-item.me-animate {
    transform: translate3d(0, 30px, 0);
}

.me-dev-grid img.me-animate {
    transform: translate3d(0, 25px, 0);
}

/* ── Hero ── */
.me-hero-zoom {
    background-image:
        linear-gradient(to bottom, rgba(0, 18, 45, 0.82) 0%, rgba(0, 18, 45, 0.72) 45%, rgba(0, 18, 45, 0.65) 100%),
        url("../images/margalla-enclave/homeimage1111.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.me-page .hero-section.third {
    position: relative;
}

.me-page .hero-section.third .slider-content.third,
.me-page .hero-section.third .slide-wrapper,
.me-page .hero-section.third .slider-content {
    position: relative;
    z-index: 2;
}

.me-page .hero-section.third .slider-content.third {
    max-width: 800px;
}

.me-page .hero-section.third .hero-heading,
.me-page .hero-section.third .hero-text {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* ── About (two-column, staggered images) ── */
.me-about-section {
    padding-top: 40px;
}

.me-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.me-about-images {
    position: relative;
    padding: 10px 0 30px;
}

.me-about-img-top,
.me-about-img-bottom {
    width: 78%;
    display: block;
    border-radius: 4px;
}

.me-about-img-bottom {
    margin-left: auto;
    margin-top: -36px;
}

.me-side-title {
    position: relative;
    padding-left: 18px;
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 600;
    color: #2a2a2a;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    text-align: left;
}

.me-side-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: #002551;
}

.me-side-text {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    font-weight: 500;
    text-align: left;
}

.me-about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.me-about-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    color: #2a2a2a;
    font-weight: 500;
    font-size: 15px;
}

.me-about-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    background: #002551;
    border-radius: 50%;
}

/* ── Full-width image banners ── */
.me-image-banner {
    width: 100%;
    min-height: 460px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.me-banner-master {
    background-image: url("../images/margalla-enclave/03.jpg");
    min-height: 520px;
}

.me-banner-commercial {
    background-image: url("../images/margalla-enclave/011.jpg");
    background-size: contain;
    background-color: #f5f5f5;
    min-height: 500px;
}

.me-banner-road {
    background-image:
        linear-gradient(rgba(0, 37, 81, 0.2), rgba(0, 37, 81, 0.2)),
        url("../images/margalla-enclave/road.jpg");
    min-height: 400px;
}

.me-banner-invest {
    background-image:
        linear-gradient(rgba(0, 37, 81, 0.15), rgba(0, 37, 81, 0.15)),
        url("../images/margalla-enclave/rawal.jpg");
    min-height: 420px;
}

/* ── Interactive map embed ── */
.me-map-section {
    padding-bottom: 60px;
    background: #fff;
}

.me-map-embed {
    width: 100%;
    height: 580px;
    border: 1px solid #e0e4e8;
    overflow: hidden;
    background: #f5f5f5;
}

.me-map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.me-map-link {
    margin: 14px 0 0;
    text-align: center;
}

.me-map-link a {
    color: #002551;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}

.me-map-link a:hover {
    color: #001a3d;
}

/* ── Feature columns (no card boxes) ── */
.me-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-bottom: 40px;
    text-align: center;
}

.me-feature-item span {
    display: block;
    color: #002551;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.me-feature-item h5 {
    color: #2a2a2a;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px;
    font-family: 'Poppins', sans-serif;
}

.me-feature-item p {
    color: #777;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ── Content images ── */
.me-full-image {
    overflow: visible;
}

.me-full-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 40px;
}

/* ── Why invest ── */
.me-why-section {
    background: #002551;
    padding: 60px 0;
    overflow: visible;
}

.me-why-content {
    text-align: center;
    padding: 0 20px;
}

.me-why-content .designer {
    padding-top: 0;
    color: #fff;
}

.me-why-content .designer_1 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* ── FAQ ── */
.me-faq-list {
    max-width: 100%;
    margin: 0 auto 30px;
}

.me-faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.me-faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 16px 36px 16px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #002551;
    cursor: pointer;
    position: relative;
}

.me-faq-question::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #002551;
}

.me-faq-question.me-open::after {
    content: "−";
}

.me-faq-answer {
    display: none;
    padding: 0 0 16px;
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

.me-faq-answer.me-open {
    display: block;
}

/* ── Payment plan tabs ── */
.me-plan-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.me-plan-tab {
    padding: 10px 24px;
    border: 1px solid #002551;
    background: #fff;
    color: #002551;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.me-plan-tab.active,
.me-plan-tab:hover {
    background: #002551;
    color: #fff;
}

.me-plan-image-wrap {
    overflow: visible;
}

.me-plan-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 40px;
    object-fit: contain;
}

/* ── Development progress: 2×2 grid ── */
.me-dev-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding-bottom: 40px;
}

.me-dev-grid img {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: none;
    object-fit: cover;
    border-radius: 4px;
}

/* ── Register interest CTA ── */
.me-page .detail_new {
    min-height: 560px;
    padding: 80px 70px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: visible;
}

.me-page .detail_new .container-full {
    width: 100%;
}

.me-page .detail_new .hero-section-12 {
    padding: 0;
    min-height: 360px;
    align-items: center;
}

/* ── Terms & Conditions ── */
.me-terms-section {
    background: #fafbfc;
}

.me-terms-panel {
    max-width: 960px;
    margin: 0 auto 30px;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-top: 3px solid #002551;
    overflow: hidden;
}

.me-terms-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 24px 24px 0;
    background: #fff;
}

.me-terms-toggle-btn {
    padding: 11px 32px;
    border: 1px solid #002551;
    background: #fff;
    color: #002551;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.me-terms-toggle-btn:first-child {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.me-terms-toggle-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.me-terms-toggle-btn.active {
    background: #002551;
    color: #fff;
}

.me-terms-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 28px 24px 32px;
}

.me-terms-list.me-hidden {
    display: none;
}

.me-terms-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #eef1f4;
    position: relative;
}

.me-terms-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    background: #002551;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.me-terms-item:hover::before {
    opacity: 1;
}

.me-terms-num {
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: rgba(0, 37, 81, 0.15);
    font-family: 'Poppins', sans-serif;
    min-width: 32px;
}

.me-terms-item p {
    margin: 0;
    color: #444;
    font-size: 14px;
    line-height: 1.65;
    font-weight: 500;
}

/* ── Location grid ── */
.me-location-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 50px;
}

.me-location-item {
    text-align: center;
}

.me-location-item img {
    width: 100%;
    max-width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: block;
}

.me-location-item .resort_text {
    margin-top: 8px;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .me-about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .me-feature-grid,
    .me-location-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .me-image-banner,
    .me-banner-master {
        min-height: 500px;
    }

    .me-banner-commercial {
        min-height: 280px;
    }
}

@media (max-width: 600px) {
    .me-side-title {
        font-size: 22px;
    }

    .me-about-img-top,
    .me-about-img-bottom {
        width: 88%;
    }

    .me-feature-grid,
    .me-dev-grid,
    .me-location-grid {
        grid-template-columns: 1fr;
    }

    .me-dev-grid img {
        min-height: 180px;
    }

    .me-page .detail_new {
        min-height: 480px;
        padding: 50px 20px;
    }

    .me-page .detail_new .hero-section-12 {
        min-height: 280px;
    }

    .me-map-embed {
        height: 420px;
    }

    .me-plan-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .me-plan-tab {
        width: 100%;
    }

    .me-terms-list {
        grid-template-columns: 1fr;
        padding: 20px 16px 24px;
    }

    .me-terms-toggle {
        padding: 20px 16px 0;
    }

    .me-terms-toggle-btn {
        flex: 1;
        padding: 10px 16px;
        font-size: 13px;
    }

    .me-terms-item {
        padding: 14px 12px 14px 16px;
    }
}
