/* ===================================================================
   HOME.CSS — Luxury Homepage Styles
   =================================================================== */

/* ── Reveal Animation ─────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal[style*="--delay"] {
    transition-delay: var(--delay, 0s);
}

/* ── Shared Section Header ────────────────────────────────────────── */
.lux-section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.lux-section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    color: var(--color-navy);
    margin: 0.5rem 0 1rem;
    line-height: 1.2;
}

.lux-section-header .lux-underline {
    margin: 0 auto 0.5rem;
}

/* ── Eyebrow Labels ───────────────────────────────────────────────── */
.lux-eyebrow {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.75rem;
}

.lux-eyebrow-dark {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--color-brown);
    margin-bottom: 0.75rem;
}

/* ── Accent Underline ─────────────────────────────────────────────── */
.lux-underline {
    width: 50px;
    height: 2px;
    background: var(--color-brown);
    margin-bottom: 1.5rem;
}

/* ── Luxury Buttons ───────────────────────────────────────────────── */
.btn-lux-outline {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 30px;
    padding: 0.85rem 2.2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn-lux-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

.btn-lux-filled {
    display: inline-block;
    background: var(--color-brown);
    border: 1px solid var(--color-brown);
    border-radius: 30px;
    padding: 0.85rem 2.2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-lux-filled:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
    color: #fff;
}

.btn-lux-filled--lg {
    padding: 1.1rem 3rem;
    font-size: 0.85rem;
}

.btn-lux-ghost-sm {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-lux-ghost-sm:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

.btn-lux-filled-sm {
    display: inline-block;
    background: var(--color-brown);
    border: 1px solid var(--color-brown);
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-lux-filled-sm:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    color: #fff;
}

.lux-text-cta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-brown);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    margin-top: 1.5rem;
}

.lux-text-cta:hover {
    gap: 0.85rem;
    color: var(--color-brown);
}

/* ═══════════════════════════════════════════════════════════════════
   1. HERO
   ═══════════════════════════════════════════════════════════════════ */
.lux-hero {
    position: relative;
    height: 100svh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.lux-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.lux-hero__fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.lux-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.78) 0%,
        rgba(0,0,0,0.18) 60%,
        transparent 100%
    );
    z-index: 1;
}

.lux-hero__content {
    position: absolute;
    bottom: clamp(3rem, 8vh, 6rem);
    inset-inline-start: clamp(1.5rem, 8vw, 8rem);
    z-index: 2;
    max-width: min(700px, 85vw);
    color: #fff;
}

.lux-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 5.5vw, 5.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.lux-hero__divider {
    width: 50px;
    height: 1px;
    background: var(--color-brown);
    margin: 1.5rem 0;
}

.lux-hero__subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.88rem, 1.4vw, 1.05rem);
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    margin-bottom: 2.25rem;
    max-width: 500px;
}

.lux-hero__ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Scroll indicator */
.lux-hero__scroll-indicator {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255,255,255,0.5);
    animation: scrollBounce 2.2s ease-in-out infinite;
}

.lux-hero__scroll-indicator span {
    display: block;
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.35);
}

.lux-hero__scroll-indicator i {
    font-size: 0.9rem;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(7px); }
}

@media (max-width: 576px) {
    .lux-hero__content {
        inset-inline-start: 1.25rem;
        inset-inline-end: 1.25rem;
        max-width: 100%;
        bottom: 5rem;
    }

    .lux-hero__scroll-indicator {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   2. TAGLINE STRIP
   ═══════════════════════════════════════════════════════════════════ */
.lux-tagline {
    background: #fff;
    padding: 2.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.lux-tagline__line {
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: rgba(0,0,0,0.12);
}

.lux-tagline__text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    color: var(--color-navy);
    text-align: center;
    margin: 0;
}

@media (max-width: 480px) {
    .lux-tagline { gap: 1rem; padding: 2rem 1rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   3. CHALETS SHOWCASE
   ═══════════════════════════════════════════════════════════════════ */
.lux-chalets {
    padding: clamp(4rem, 7vw, 8rem) 0;
    background: var(--color-background);
}

.lux-chalets .lux-section-header {
    padding: 0 1.5rem;
}

.lux-chalets__grid {
    display: grid;
    gap: 3px;
    grid-template-columns: repeat(2, 1fr);
    min-height: 50vh;
}

/* 1 chalet */
.lux-chalets__grid:has(.lux-chalet-card:only-child) {
    grid-template-columns: 1fr;
}
.lux-chalets__grid:has(.lux-chalet-card:only-child) .lux-chalet-card {
    min-height: 70vh;
    aspect-ratio: auto;
}

/* 2 chalets */
.lux-chalets__grid:has(.lux-chalet-card:nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
}

/* 3 chalets — first spans 2 rows */
.lux-chalets__grid:has(.lux-chalet-card:nth-child(3):last-child) {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 65vh;
}
.lux-chalets__grid:has(.lux-chalet-card:nth-child(3):last-child) .lux-chalet-card:first-child {
    grid-row: span 2;
}

/* Card base */
.lux-chalet-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #1a1a1a;
}

.lux-chalet-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lux-chalet-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
    display: block;
}

.lux-chalet-card:hover .lux-chalet-card__image img {
    transform: scale(1.07);
}

/* Overlay */
.lux-chalet-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.08) 60%);
    transition: background 0.5s ease;
    z-index: 1;
}

.lux-chalet-card:hover .lux-chalet-card__overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.45) 100%);
}

/* Base info — visible always, slides up on hover */
.lux-chalet-card__base {
    position: absolute;
    bottom: 2rem;
    inset-inline-start: 2rem;
    color: #fff;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lux-chalet-card:hover .lux-chalet-card__base {
    transform: translateY(-80px);
}

.lux-chalet-card__base h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    color: #fff;
    margin: 0 0 0.35rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.lux-chalet-card__capacity {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.06em;
}

/* Hover detail — slides up from below */
.lux-chalet-card__hover {
    position: absolute;
    bottom: 1.5rem;
    inset-inline-start: 2rem;
    inset-inline-end: 2rem;
    color: #fff;
    z-index: 2;
    transform: translateY(60px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lux-chalet-card:hover .lux-chalet-card__hover {
    transform: translateY(0);
    opacity: 1;
}

.lux-chalet-card__hover p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.lux-chalet-card__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Mobile: always show content, no hover transforms */
@media (max-width: 768px) {
    .lux-chalets__grid,
    .lux-chalets__grid:has(.lux-chalet-card:nth-child(2):last-child),
    .lux-chalets__grid:has(.lux-chalet-card:nth-child(3):last-child) {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .lux-chalets__grid .lux-chalet-card:first-child {
        grid-row: auto;
    }

    .lux-chalet-card {
        min-height: 500px;
        aspect-ratio: auto;
    }

    /* Image fills the full card height correctly */
    .lux-chalet-card__image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .lux-chalet-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* Hover panel sits at the bottom: description + buttons */
    .lux-chalet-card__hover {
        transform: translateY(0) !important;
        opacity: 1 !important;
        bottom: 0;
        padding: 0 1.25rem 1.25rem;
        inset-inline-start: 0;
        inset-inline-end: 0;
    }

    .lux-chalet-card__hover p {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        font-size: 0.78rem;
        margin-bottom: 0.5rem;
    }

    .lux-chalet-card__actions {
        gap: 0.5rem;
    }

    /* Base (title + capacity) sits above the hover panel — no overlap */
    .lux-chalet-card__base {
        transform: none !important;
        /* hover panel is roughly: 1.25rem pad + ~2rem buttons + 0.5rem gap + ~2.5rem text = ~6.25rem */
        bottom: 7rem;
        inset-inline-start: 1.25rem;
    }

    .lux-chalet-card__overlay {
        background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 60%) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   4. ABOUT / EXPERIENCE
   ═══════════════════════════════════════════════════════════════════ */
.lux-about {
    padding: clamp(4rem, 8vw, 9rem) 0;
    background: #fff;
}

.lux-about__inner {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.lux-about__image-col {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 0.5rem;
    height: clamp(320px, 45vw, 520px);
}

.lux-about__img-main {
    grid-row: span 2;
    overflow: hidden;
    border-radius: 4px;
    height: 100%;
}

.lux-about__img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 9s ease;
    display: block;
}

.lux-about__img-main:hover img {
    transform: scale(1.04);
}

.lux-about__img-accent {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
}

.lux-about__img-accent img {
    width: 100%;
    flex: 1;
    object-fit: cover;
    border-radius: 4px;
    min-height: 0;
    display: block;
    transition: transform 9s ease;
}

.lux-about__img-accent img:hover {
    transform: scale(1.05);
}

.lux-about__content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    color: var(--color-navy);
    margin: 0.5rem 0 1rem;
    line-height: 1.2;
}

.lux-about__content .lux-underline {
    margin: 0 0 1.5rem;
}

[dir="rtl"] .lux-about__content .lux-underline {
    margin-inline-start: 0;
    margin-inline-end: 0;
}

.lux-about__lead {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.98rem;
    color: rgba(0,0,0,0.62);
    line-height: 1.85;
    margin: 1.5rem 0;
}

@media (max-width: 992px) {
    .lux-about__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .lux-about__image-col {
        height: clamp(240px, 55vw, 380px);
        order: -1;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   5. FEATURES STRIP
   ═══════════════════════════════════════════════════════════════════ */
.lux-features {
    background: var(--color-navy);
    color: #fff;
    padding: 3rem 0;
    overflow: hidden;
}

.lux-features__inner {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: nowrap;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

[dir="rtl"] .lux-features__inner {
    flex-direction: row;
}


.lux-features__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    flex: 1;
    min-width: 150px;
}


.lux-features__item i {
    font-size: 1.9rem;
    color: var(--color-brown);
    margin-bottom: 0.7rem;
}

.lux-features__item span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
}

.lux-features__separator {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .lux-features__inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem 0;
        padding: 0.5rem 1.5rem;
    }

    .lux-features__separator {
        display: none;
    }

    .lux-features__item {
        flex: 0 0 33.333%;
        min-width: unset;
        padding: 0.75rem 0.5rem;
    }

    .lux-features {
        padding: 2.5rem 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   6. CALENDAR SECTION
   ═══════════════════════════════════════════════════════════════════ */
.lux-calendar-section {
    padding: clamp(4rem, 7vw, 8rem) 0;
    background: var(--color-light-gray);
}

.lux-calendar-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 8px 40px rgba(0,0,0,0.07);
    margin-top: 1rem;
}

.lux-calendar-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    color: rgba(0,0,0,0.48);
    margin-top: 0.5rem;
    font-style: italic;
}

.lux-calendar-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: rgba(0,0,0,0.55);
}

.legend-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-inline-end: 0.35rem;
    vertical-align: middle;
}

.legend-available { background: #10B981; }
.legend-booked    { background: #EF4444; }
.legend-pending   { background: #F59E0B; }

/* ═══════════════════════════════════════════════════════════════════
   7. CTA SECTION
   ═══════════════════════════════════════════════════════════════════ */
.lux-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 10vw, 10rem) 0;
    margin-bottom: -1px; /* Overlap slightly with footer to avoid thin gap */
    text-align: center;
}


.lux-cta__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.32);
    transform: scale(1.04);
    transition: transform 10s ease;
}

.lux-cta:hover .lux-cta__bg {
    transform: scale(1.08);
}

.lux-cta__content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 0 1.5rem;
}

.lux-cta__content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #fff;
    margin: 0.75rem 0;
    line-height: 1.2;
}

.lux-cta__content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.98rem;
    color: rgba(255,255,255,0.78);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════════
   RTL SUPPORT
   ═══════════════════════════════════════════════════════════════════ */
[dir="rtl"] .lux-hero__content {
    inset-inline-start: clamp(1.5rem, 8vw, 8rem);
    inset-inline-end: auto;
}

[dir="rtl"] .lux-chalet-card__base {
    inset-inline-start: 2rem;
    inset-inline-end: auto;
}

[dir="rtl"] .lux-chalet-card__hover {
    inset-inline-start: 2rem;
    inset-inline-end: 2rem;
}

[dir="rtl"] .lux-about__image-col {
    direction: rtl;
}

[dir="rtl"] .lux-text-cta i {
    transform: scaleX(-1);
}

/* RTL Font Size Increases */
[lang="ar"] .lux-eyebrow,
[lang="ar"] .lux-eyebrow-dark {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

[lang="ar"] .lux-about__content h2 {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
}

/* Specific Prominent Labels */
[lang="ar"] .lux-eyebrow-dark,
[lang="ar"] .lux-eyebrow {
    font-size: 1.1rem !important;
    text-shadow: 0 0 1px rgba(107, 68, 35, 0.1);
}

[lang="ar"] .lux-section-header h2 {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
}

[lang="ar"] .lux-about__content h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
}


