/* ============================================================
   HOME PAGE (index.html) — PAGE-SPECIFIC STYLES
   Global styles are in styles.css
============================================================ */

/* ---------- HERO ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-bg,
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(6, 45, 31, 0.15) 0%,
            rgba(6, 45, 31, 0.35) 55%,
            rgba(6, 45, 31, 0.80) 100%);
    z-index: 1;
}

canvas#particlesCanvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.hero-content-bottom {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0 6% 70px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.hero-left h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(3.2rem, 7vw, 6.5rem);
    color: #fff;
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero-left h1 em {
    font-style: normal;
    color: #a8d8b0;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.78rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.hero-tag .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a8d8b0;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.hero-cta-primary {
    background: #0B4A34;
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    border: 2px solid transparent;
}

.hero-cta-primary:hover {
    background: #147252;
    transform: translateY(-2px);
}

.hero-cta-outline {
    background: transparent;
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s, background 0.3s;
}

.hero-cta-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 200px;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 16px 24px;
    text-align: center;
    color: #fff;
}

.hero-stat .num {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: #a8d8b0;
    line-height: 1;
}

.hero-stat .lbl {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.75;
    margin-top: 4px;
}

.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.scroll-cue span {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.scroll-cue .arrow {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.scroll-cue .arrow::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: scrollLine 1.8s ease infinite;
}

@keyframes scrollLine {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

/* ---------- INTRO STRIP ---------- */
.intro-strip {
    background: #0B4A34;
    padding: 24px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.intro-strip-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.6);
}

.intro-strip-awards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.award-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.85rem;
}

.award-badge .icon {
    font-size: 1.2rem;
}

/* ---------- ABOUT SPLIT ---------- */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.about-split-image {
    position: relative;
    overflow: hidden;
}

.about-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 8s ease;
}

.about-split-image:hover img {
    transform: scale(1.04);
}

.about-split-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: #0B4A34;
    color: #fff;
    padding: 20px 26px;
    border-radius: 14px;
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    line-height: 1.2;
}

.about-split-overlay span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-top: 4px;
}

.about-split-content {
    background: #fff;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #147252;
    margin-bottom: 16px;
    display: block;
}

.about-split-content h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    color: #0B4A34;
    line-height: 1.25;
    margin-bottom: 24px;
}

.about-split-content p {
    font-size: 1.05rem;
    color: #3d5c4a;
    line-height: 1.85;
    margin-bottom: 16px;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: #0B4A34;
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-bottom: 2px solid #0B4A34;
    padding-bottom: 4px;
    transition: gap 0.3s;
}

.about-link:hover {
    gap: 14px;
}

/* ---------- FACILITIES BAR ---------- */
.facilities-section {
    background-color: #0B4A34;
    padding: 30px 6%;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.facility-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 10px;
    border-radius: 12px;
    cursor: default;
    transition: background 0.3s, transform 0.3s;
}

.facility-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.facility-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.facility-card h4 {
    color: #fff;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

/* ---------- VILLAS PREVIEW ---------- */
.villas-section {
    background: #f7fdf9;
    padding: 100px 6%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: #0B4A34;
    max-width: 400px;
}

.section-header p {
    font-size: 1rem;
    color: #5a7a68;
    max-width: 320px;
    text-align: right;
    line-height: 1.7;
}

.villas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.villa-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    background: #e0ebe4;
}

.villa-thumb img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.villa-thumb:hover img {
    transform: scale(1.06);
}

.villa-thumb-wide {
    grid-column: span 2;
}

.villa-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 45, 31, 0.7) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.4s;
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.villa-thumb:hover .villa-thumb-overlay {
    opacity: 1;
}

.villa-thumb-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: #fff;
}

.villas-cta {
    text-align: center;
    margin-top: 50px;
}

.btn-green {
    display: inline-block;
    background: #0B4A34;
    color: #fff;
    padding: 16px 42px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}

.btn-green:hover {
    background: #147252;
    transform: translateY(-2px);
}

/* ---------- EXPERIENCE PARALLAX ---------- */
.exp-parallax {
    position: relative;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exp-parallax-bg {
    position: absolute;
    inset: 0;
    background: url('../ass/img/treetop_villas/royal_suit_room.png') center center / cover no-repeat;
    background-attachment: fixed;
}

.exp-parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 45, 31, 0.8) 0%, rgba(11, 74, 52, 0.5) 100%);
}

.exp-parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 5%;
    max-width: 800px;
}

.exp-parallax-content .tag {
    display: inline-block;
    border: 1px solid rgba(168, 216, 176, 0.5);
    padding: 6px 22px;
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #a8d8b0;
    margin-bottom: 28px;
}

.exp-parallax-content h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
}

.exp-parallax-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 36px;
}

/* ---------- WHY US ---------- */
.why-section {
    background: #fff;
    padding: 100px 6%;
}

.why-section .section-header {
    margin-bottom: 70px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    max-width: 1200px;
    margin: 0 auto;
    background: #e8f5ee;
    border-radius: 24px;
    overflow: hidden;
}

.why-card {
    background: #fff;
    padding: 50px 40px;
    transition: background 0.35s;
    position: relative;
}

.why-card:hover {
    background: #0B4A34;
}

.why-card:hover h4,
.why-card:hover p,
.why-card:hover .why-num {
    color: #fff;
}

.why-num {
    font-family: 'DM Serif Display', serif;
    font-size: 3.5rem;
    color: #e8f5ee;
    line-height: 1;
    margin-bottom: 16px;
    transition: color 0.35s;
}

.why-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e8f5ee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #0B4A34;
    transition: background 0.35s, color 0.35s;
}

.why-card:hover .why-icon {
    background: rgba(255, 255, 255, 0.15);
    color: #a8d8b0;
}

.why-card h4 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.35rem;
    color: #0B4A34;
    margin-bottom: 12px;
    transition: color 0.35s;
}

.why-card p {
    font-size: 0.95rem;
    color: #5a7a68;
    line-height: 1.75;
    transition: color 0.35s;
}

/* ---------- GALLERY PREVIEW ---------- */
.gallery-section {
    background: #f7fdf9;
    padding: 100px 6%;
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 260px 260px;
    gap: 14px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.gm-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
}

.gm-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gm-item:hover img {
    transform: scale(1.08);
}

.gm-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
}

.gm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 45, 31, 0.45);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s;
}

.gm-item:hover .gm-overlay {
    opacity: 1;
}

.gm-overlay span {
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 8px 20px;
    border-radius: 50px;
}

/* ---------- BOOKING STRIP ---------- */
.booking-strip {
    background: #0B4A34;
    background-image:
        linear-gradient(45deg, #062D1F 25%, transparent 25%, transparent 75%, #062D1F 75%),
        linear-gradient(45deg, #062D1F 25%, transparent 25%, transparent 75%, #062D1F 75%);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    padding: 80px 6%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.booking-strip h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #fff;
    margin-bottom: 16px;
}

.booking-strip p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    display: inline-block;
    background: #fff;
    color: #0B4A34;
    padding: 16px 44px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-content-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 60px;
    }

    .hero-right {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }

    .hero-stat {
        flex: 1;
        min-width: 140px;
    }

    .about-split {
        grid-template-columns: 1fr;
    }

    .about-split-image {
        height: 380px;
    }

    .villas-grid {
        grid-template-columns: 1fr 1fr;
    }

    .villa-thumb-wide {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 300px;
    }

    .villa-thumb-wide img {
        min-height: 300px;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gm-item:nth-child(1) {
        grid-column: span 2;
    }

    .facilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 768px) {

    /* ── HERO: Centered layout matching target design ── */
    .hero {
        min-height: 100svh;
        min-height: 100vh;
        align-items: stretch;
    }

    /* Push all content to bottom half, center everything */
    .hero-content-bottom {
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        text-align: center;
        padding: 0 5% 110px;
        gap: 0;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        text-align: center;
    }

    /* Large centered title */
    .hero-left h1 {
        font-size: clamp(2.6rem, 10vw, 3.4rem);
        line-height: 1.1;
        margin-bottom: 20px;
        text-align: center;
    }

    /* Tag pill — centered, allow natural wrap to 2 lines */
    .hero-tag {
        font-size: 0.7rem;
        letter-spacing: 2px;
        padding: 8px 20px;
        margin-bottom: 22px;
        white-space: normal;
        text-align: center;
        align-self: center;
        max-width: 260px;
        overflow: visible;
        text-overflow: unset;
    }

    /* Stacked full-width buttons */
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 0;
        margin-bottom: 24px;
        align-items: center;
    }

    .hero-cta-primary,
    .hero-cta-outline {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    /* Stat cards — side-by-side at the bottom */
    .hero-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        margin-top: 0;
    }

    .hero-stat {
        padding: 14px 12px;
    }

    .hero-stat .num {
        font-size: 1.6rem;
    }

    .hero-stat .lbl {
        font-size: 0.66rem;
        letter-spacing: 1.5px;
    }

    /* Show the scroll cue line at center bottom */
    .scroll-cue {
        display: flex !important;
        bottom: 14px;
    }

    /* Intro strip */
    .intro-strip {
        flex-direction: column;
        text-align: center;
        padding: 22px 5%;
        gap: 12px;
    }

    /* Award badges — compact pill style, stacked with reduced gap */
    .intro-strip-awards {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .award-badge {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 50px;
        padding: 6px 16px;
        font-size: 0.8rem;
        gap: 8px;
    }

    /* About split */
    .about-split-content {
        padding: 50px 6%;
    }

    /* Facilities grid — keep 3 col so 6 icons show in 2 rows */
    .facilities-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    /* Villas grid — single column */
    .villas-grid {
        grid-template-columns: 1fr;
    }

    .villa-thumb-wide {
        grid-column: span 1;
        min-height: 260px;
    }

    .villa-thumb-wide img {
        min-height: 260px;
    }

    /* Why us — single column */
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-card {
        padding: 36px 28px;
    }

    /* Gallery mosaic — 2 col */
    .gallery-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px 200px 200px;
    }

    .gm-item:nth-child(1) {
        grid-column: span 2;
    }

    /* Parallax: disable fixed attachment on iOS Safari, reduce min-height */
    .exp-parallax {
        height: auto;
        min-height: 60vh;
    }

    .exp-parallax-bg {
        background-attachment: scroll;
    }

    /* Section header */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-header p {
        text-align: left;
        max-width: 100%;
    }

    /* Booking strip */
    .booking-strip {
        padding: 60px 6%;
    }

}

@media (max-width: 480px) {

    /* Hero tighter on very small phones */
    .hero {
        min-height: 100svh;
    }

    .hero-content-bottom {
        padding: 0 5% 100px;
        /* Maintain flex-end centred layout on small phones */
    }

    .hero-left h1 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .hero-right {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .hero-stat .num {
        font-size: 1.4rem;
    }

    .hero-stat .lbl {
        font-size: 0.62rem;
    }

    /* Facilities: 2 col on very small phones for better icon readability */
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    /* Gallery: 1 col on tiny phones */
    .gallery-mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gm-item {
        height: 200px;
    }

    .gm-item:nth-child(1) {
        grid-column: span 1;
        height: 220px;
    }

    /* Villas section padding */
    .villas-section,
    .gallery-section,
    .why-section {
        padding: 70px 5%;
    }

    /* About content */
    .about-split-content {
        padding: 40px 5%;
    }

    .about-split-content h2 {
        font-size: 1.8rem;
    }
}