/* =========================================================
   YOGAYATAN GROUP - REAL ESTATE PAGE
   Load AFTER style.css
   ========================================================= */

/* style.css turns on full-page scroll-snap for the homepage.
   This page has normal-length sections, so switch it off here. */
html {
    scroll-snap-type: none;
    height: auto;
}

body {
    height: auto;
}

:root {
    --re-navy: #004b87;
    --re-purple: #9b51e0;
    --re-dark: #1e293b;
    --re-text: #4a5568;
    --re-light: #f8fafc;
    --re-border: #e2e8f0;
}

/* =========================================================
   1. HERO – full image, centred title, arrow, tagline
   ========================================================= */
.re-hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 480px;
    background-color: #1e293b;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.re-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.re-hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 80px 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.re-hero-title {
    font-size: 3.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 6px;
    line-height: 1.1;
    margin: 0;
    padding-bottom: 14px;
    border-bottom: 3px solid #ffffff;
}

/* the vertical arrow from the sketch */
.re-hero-arrow {
    position: relative;
    display: block;
    width: 2px;
    height: 70px;
    background: #ffffff;
    margin: 0 0 6px;
}

.re-hero-arrow::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 12px;
    height: 12px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: translateX(-50%) rotate(45deg);
}

.re-hero-tagline {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 14px 0 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

/* =========================================================
   2. WRITE-UP – centred text block
   ========================================================= */
.re-intro {
    padding: 90px 20px;
    background: #ffffff;
}

.re-intro-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.re-intro-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--re-text);
    margin: 0 0 20px;
}

.re-intro-text:last-child {
    margin-bottom: 0;
}

/* =========================================================
   3. OUR PROJECTS – slider card
   ========================================================= */
.re-projects {
    padding: 80px 50px 100px;
    background: var(--re-light);
    scroll-margin-top: 80px;
}

.re-projects-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.re-section-title {
    display: inline-block;
    font-size: 2.3rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--re-dark);
    letter-spacing: -0.5px;
    margin: 0 0 40px;
    padding-bottom: 10px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(to right, var(--re-navy), var(--re-purple)) 1;
}

.re-slider {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--re-border);
    box-shadow: 0 6px 30px rgba(15, 23, 42, 0.07);
    height: 560px;
    overflow: hidden;
}

/* each project fills the card; only .active is shown */
.re-slide {
    position: absolute;
    inset: 0;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.re-slide.active {
    opacity: 1;
    visibility: visible;
}

/* left: image (≈ 62%) */
.re-gallery {
    position: relative;
    flex: 0 0 62%;
    background-color: #cbd5e1;
    overflow: hidden;
}

.re-gallery-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.6s ease, transform 1.2s ease;
}

.re-gallery-img.active {
    opacity: 1;
    transform: scale(1);
}

/* right: description, separated by a vertical line */
.re-slide-body {
    flex: 1;
    border-left: 2px solid var(--re-dark);
    padding: 50px 45px 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.re-project-tag {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--re-navy);
    background: rgba(0, 75, 135, 0.08);
    padding: 6px 12px;
    margin-bottom: 18px;
}

.re-project-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--re-dark);
    margin: 0 0 10px;
    letter-spacing: -0.3px;
}

.re-project-location {
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    margin: 0 0 20px;
}

.re-project-location i {
    color: var(--re-navy);
    margin-right: 6px;
}

.re-project-desc {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--re-text);
    margin: 0;
}

/* photo arrows – bottom-left of image */
.re-gallery-nav {
    position: absolute;
    left: 30px;
    bottom: 30px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.re-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.re-arrow:hover {
    background: #ffffff;
    color: #111111;
}

/* project controls – bottom-right ( ‹ • • • › ) */
.re-slider-controls {
    position: absolute;
    right: 40px;
    bottom: 30px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 14px;
}

.re-ctrl {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--re-dark);
    background: #ffffff;
    color: var(--re-dark);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.re-ctrl:hover {
    background: var(--re-dark);
    color: #ffffff;
}

.re-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.re-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.re-dot.active {
    width: 26px;
    border-radius: 6px;
    background: linear-gradient(to right, var(--re-navy), var(--re-purple));
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
    .re-slide-body {
        padding: 40px 32px 90px;
    }

    .re-project-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 992px) {
    .re-hero {
        height: 65vh;
        min-height: 420px;
    }

    .re-hero-title {
        font-size: 2.6rem;
        letter-spacing: 4px;
    }

    .re-projects {
        padding: 60px 20px 80px;
        scroll-margin-top: 70px;
    }

    .re-section-title {
        font-size: 1.9rem;
        margin-bottom: 28px;
    }

    /* stack: image on top, text below, controls at the bottom */
    .re-slider {
        height: auto;
    }

    .re-slide {
        position: relative;
        inset: auto;
        flex-direction: column;
        display: none;
    }

    .re-slide.active {
        display: flex;
    }

    .re-gallery {
        flex: none;
        height: 360px;
    }

    .re-slide-body {
        border-left: none;
        border-top: 2px solid var(--re-dark);
        padding: 30px 28px 90px;
        overflow: visible;
    }

    .re-gallery-nav {
        top: 300px;
        bottom: auto;
        left: 20px;
    }

    .re-arrow {
        width: 40px;
        height: 40px;
    }

    .re-slider-controls {
        left: 0;
        right: 0;
        bottom: 26px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .re-hero-title {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .re-hero-arrow {
        height: 50px;
    }

    .re-hero-tagline {
        font-size: 1rem;
    }

    .re-intro {
        padding: 60px 20px;
    }

    .re-intro-text {
        font-size: 1.02rem;
        line-height: 1.8;
    }

    .re-gallery {
        height: 260px;
    }

    .re-gallery-nav {
        top: 205px;
        left: 14px;
    }

    .re-project-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .re-hero {
        min-height: 360px;
    }

    .re-hero-title {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .re-section-title {
        font-size: 1.5rem;
    }

    .re-gallery {
        height: 230px;
    }

    .re-gallery-nav {
        top: 178px;
    }

    .re-slide-body {
        padding: 24px 20px 84px;
    }
}