/* =====================================================
   REFLECTIONS HOTEL DUBAI — CLASSIC LUXURY REDESIGN (Al Aziziyah Reference)
   ===================================================== */

/* Google Fonts - Playfair Display (Headings) and Lato (Body) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
    /* Color Palette - Classic Luxury */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F6F0;
    /* Soft beige */
    --bg-tertiary: #EBE5D9;

    --text-primary: #222222;
    /* Soft black */
    --text-secondary: #555555;
    --text-inverse: #FFFFFF;

    --accent-gold: #C09A6A;
    /* Bronze/Classic Gold */
    --accent-gold-hover: #A58256;
    --accent-dark: #1A1A1A;

    /* Subtle Shadows for Classic Look */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Minimal shadows */
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);

    /* Classic Borders */
    --border-light: 1px solid #EBE5D9;
    --border-gold: 1px solid rgba(192, 154, 106, 0.5);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Transitions */
    --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    /* Handled by JS for smoothness */
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Selection */
::selection {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
select {
    font-family: inherit;
    border: none;
    outline: none;
}

/* ── Custom Cursor ── */
/* Removing custom cursor styles as it does not fit classic aesthetic */
.custom-cursor {
    display: none;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
.font-heading {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 400;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 0.02em;
    font-weight: 500;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.01em;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    letter-spacing: 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: var(--space-md);
}

.section-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent-gold);
}

.watermark-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: clamp(5rem, 15vw, 20rem);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.03);
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 0;
    /* Sharp edges for classic look */
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-solid {
    background: var(--text-primary);
    color: var(--text-inverse);
    border: 1px solid var(--text-primary);
}

.btn-solid:hover {
    background: var(--accent-gold);
    color: var(--text-inverse);
    border-color: var(--accent-gold);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--text-inverse);
}

.magnetic-wrap {
    display: inline-block;
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: padding 0.4s ease, background 0.4s ease, transform 0.4s ease;
    will-change: transform;
}

.main-nav.nav-hidden {
    transform: translateY(-100%);
}

.main-nav.nav-scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Make solid buttons in the transparent nav a white outline for visibility */
.main-nav:not(.nav-scrolled) .nav-book .btn-solid {
    background: transparent;
    color: var(--text-inverse);
    border-color: var(--text-inverse);
}

.main-nav:not(.nav-scrolled) .nav-book .btn-solid:hover {
    background: var(--text-inverse);
    color: var(--text-primary);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 48px;
    /* Adjust height based on logo proportions */
    width: auto;
    /* Make the logo white by default against the dark hero image */
    filter: brightness(0) invert(1);
    transition: filter 0.4s ease;
}

.main-nav.nav-scrolled .nav-logo img {
    /* Revert to original logo colors when scrolled (on white background) */
    filter: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links a.nav-item {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-inverse);
    /* White by default to show on hero bg */
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.main-nav.nav-scrolled .nav-links a.nav-item {
    color: var(--text-primary);
    /* Dark when scrolled */
    text-shadow: none;
}

.nav-links a.nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-gold);
    transform: translateX(-101%);
    transition: transform 0.4s var(--ease-expo);
}

.nav-links a.nav-item:hover::after {
    transform: translateX(0);
}

/* Hamburger */
.nav-trigger {
    display: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    clip-path: circle(0% at top right);
    transition: clip-path 0.8s var(--ease-expo);
}

.mobile-menu.active {
    clip-path: circle(150% at top right);
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s var(--ease-expo);
}

.mobile-menu.active a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu a:hover {
    color: var(--accent-gold);
}


/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: flex-end;
    padding-bottom: var(--space-xl);
    background: var(--bg-secondary);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.hero-headline-wrap {
    position: relative;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--accent-dark);
}

.hero-image-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

/* Booking Section */
.booking-section {
    position: relative;
    z-index: 10;
    margin-top: -40px;
    /* Pull it up over the hero slightly */
}

.booking-bar {
    background: var(--bg-primary);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.booking-input {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 1.5rem;
}

.booking-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

.booking-input span {
    font-size: 0.70rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.booking-input input,
.booking-input select {
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 400;
    border: none;
    outline: none;
    cursor: pointer;
}

/* =====================================================
   WELCOME / ABOUT SECTION
   ===================================================== */
.about {
    padding: var(--space-2xl) 0;
    background: var(--bg-secondary);
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

.about-centered h2 {
    margin-bottom: var(--space-md);
    text-align: center;
}

.about-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.about-card {
    text-align: center;
}

.about-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.about-card h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* =====================================================
   FEATURED ROOMS
   ===================================================== */
.rooms {
    padding: var(--space-2xl) 0;
    background: var(--bg-tertiary);
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.room-classic-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.room-classic-card .room-img {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.room-classic-card .room-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-expo);
}

.room-classic-card:hover .room-img img {
    transform: scale(1.05);
}

.room-classic-card .room-info {
    padding: 2rem;
    text-align: center;
}

.room-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.room-info p {
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}


/* =====================================================
   DINING IMMERSIVE
   ===================================================== */
.dining {
    padding: var(--space-2xl) 0;
    content-visibility: auto;
    contain-intrinsic-size: auto 1200px;
}

.dining-block {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.dining-img {
    flex: 1;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.dining-img::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-gold);
    z-index: -1;
    transition: all 0.5s ease;
}

.dining-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dining-text {
    flex: 1;
    padding: 0 var(--space-md);
}

.dining-block.reverse {
    flex-direction: row-reverse;
}

.dining-block.reverse .dining-img::after {
    right: auto;
    left: -10px;
}

.dining-text h2 {
    margin-bottom: 1rem;
}

.dining-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 500px;
    color: var(--text-secondary);
}

/* =====================================================
   FACILITIES SECTION
   ===================================================== */
.facilities {
    background: var(--bg-secondary);
    padding: var(--space-2xl) 0;
}

.facilities-grid {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.facilities-text {
    flex: 1;
}

.facilities-text h2 {
    margin-bottom: 1.5rem;
}

.facilities-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.facilities-img {
    flex: 1.2;
    height: 600px;
}

.facilities-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   LOCATION SECTION
   ===================================================== */
.location {
    padding: var(--space-2xl) 0 0 0;
    background: var(--bg-primary);
}

.map-container {
    width: 100%;
    overflow: hidden;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--bg-secondary);
    padding: var(--space-2xl) 0 var(--space-sm);
    border-top: var(--border-light);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a:hover {
    color: var(--accent-gold);
}

.footer-newsletter {
    display: flex;
    margin-top: 1rem;
    background: #fff;
    border: 1px solid var(--border-light);
}

.footer-newsletter input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
}

.footer-newsletter button {
    background: var(--text-primary);
    color: var(--text-inverse);
    border: none;
    padding: 0 1.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-newsletter button:hover {
    background: var(--accent-gold);
}

.footer-bottom {
    border-top: var(--border-light);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

/* =====================================================
   ANIMATION UTILITIES (JS TRIGGERED)
   ===================================================== */
.reveal-text {
    overflow: hidden;
    display: inline-block;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1s var(--ease-expo);
}

.reveal-text.active span {
    transform: translateY(0);
}

.reveal-img {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 1.2s var(--ease-expo), transform 1.2s var(--ease-expo);
}

.reveal-img.active {
    opacity: 1;
    transform: scale(1);
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s var(--ease-expo);
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {

    .nav-links,
    .nav-book {
        display: none;
    }

    .nav-trigger {
        display: block;
    }

    .booking-bar {
        width: 100%;
        padding: 1rem;
        justify-content: space-between;
    }

    .about-grid-3 {
        grid-template-columns: 1fr;
    }

    .about-images {
        height: 500px;
        margin-bottom: 2rem;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .dining-img {
        height: 300px;
        width: 100%;
    }

    .dining-block,
    .dining-block.reverse {
        flex-direction: column;
    }

    .facilities-grid {
        flex-direction: column;
    }

    .facilities-img {
        width: 100%;
        height: 400px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    :root {
        --space-2xl: 5rem;
        --space-xl: 3rem;
    }

    .booking-bar {
        flex-direction: column;
        border-radius: 0;
    }

    .booking-input {
        width: 100%;
        margin: 0 0 1rem 0;
        padding-bottom: 1rem;
        border-bottom: var(--border-light);
    }

    .btn {
        width: 100%;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}