/* ====================================
   PREMIUM RESIDENCES - Luxury CSS
   ==================================== */

:root {
    /* Colors - Luxury Gold & Dark */
    --gold: #c9a55c;
    --gold-light: #d4b76a;
    --gold-dark: #a88a45;
    --black: #0a0a0a;
    --dark: #1a1a1a;
    --dark-light: #2a2a2a;
    --white: #ffffff;
    --off-white: #f8f7f5;
    --cream: #f5f3ef;
    --gray: #6b6b6b;
    --gray-light: #9a9a9a;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-hebrew: 'Heebo', sans-serif;

    /* Spacing */
    --section-padding: 6rem 1.5rem;
    --container-width: 1400px;

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RTL Support for Hebrew */
html[dir="rtl"] {
    --font-body: 'Heebo', sans-serif;
}

html[dir="rtl"] .section-label,
html[dir="rtl"] .hero-label {
    font-family: var(--font-hebrew);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ====================================
   TOP BAR
   ==================================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--black);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.top-bar-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-contact a {
    color: var(--gray-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.top-contact a:hover {
    color: var(--gold);
}

.language-selector {
    display: flex;
    gap: 0.4rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--dark-light);
    color: var(--gray-light);
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

/* ====================================
   HEADER
   ==================================== */
.header {
    position: fixed;
    top: 32px; /* Space for top-bar */
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 0.8rem 1rem;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    padding: 0.6rem 1rem;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.2em;
}

.logo-sub {
    font-size: 0.55rem;
    letter-spacing: 0.4em;
    color: var(--gold);
    text-transform: uppercase;
}

.nav-menu .menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu .menu a {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-menu .menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-menu .menu a:hover::after {
    width: 100%;
}

.btn-book {
    background: var(--gold);
    color: var(--black);
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-book:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ====================================
   MOBILE MENU
   ==================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--black);
    z-index: 2000;
    transition: var(--transition-slow);
    padding: 1.5rem;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--dark-light);
}

.mobile-menu-header .logo-text {
    font-size: 1.2rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-list {
    list-style: none;
}

.mobile-menu-list li {
    margin-bottom: 1rem;
}

.mobile-menu-list a {
    color: var(--white);
    font-size: 1.1rem;
    font-family: var(--font-heading);
    display: block;
    padding: 0.5rem 0;
}

.btn-book-mobile {
    display: inline-block;
    background: var(--gold);
    color: var(--black) !important;
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.mobile-language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--dark-light);
}

.mobile-language-selector span {
    color: var(--gray-light);
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.mobile-language-selector .lang-btn {
    background: transparent;
    border: 1px solid var(--dark-light);
    color: var(--gray-light);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-language-selector .lang-btn:hover,
.mobile-language-selector .lang-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

/* ====================================
   BUTTONS
   ==================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 165, 92, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--black);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh; /* 16:9 aspect ratio */
    height: 100vh;
    min-width: 100%;
    min-height: 56.25vw; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 1.5rem;
    margin-top: 60px;
}

.hero-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 550px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* ====================================
   QUICK BOOKING BAR
   ==================================== */
.quick-booking {
    background: var(--white);
    padding: 0 1rem;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

/* Mobile Booking Toggle Button - Hidden, using hero button instead */
.booking-toggle-mobile {
    display: none !important;
}

.booking-bar {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.booking-field {
    flex: 1;
    min-width: 140px;
}

.booking-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 0.4rem;
}

.booking-field input,
.booking-field select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    font-family: var(--font-body);
    font-size: 0.85rem;
    background: var(--off-white);
    transition: var(--transition);
}

.booking-field input:focus,
.booking-field select:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
}

.btn-search {
    padding: 0.8rem 1.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ====================================
   SECTION STYLES
   ==================================== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.section-header.light {
    color: var(--white);
}

.section-header.light .section-text {
    color: rgba(255, 255, 255, 0.8);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    margin-bottom: 0.8rem;
}

.section-text {
    font-size: 1rem;
    color: var(--gray);
    max-width: 550px;
    margin: 0 auto;
}

/* ====================================
   INTRO SECTION
   ==================================== */
.intro-section {
    padding: var(--section-padding);
}

.intro-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.intro-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.intro-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh; /* 16:9 aspect ratio */
    height: 100vh;
    min-width: 100%;
    min-height: 56.25vw; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.intro-logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(10, 10, 10, 0.7);
    padding: 0.55rem 1.1rem;
    backdrop-filter: blur(5px);
}

.intro-logo-overlay .logo-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.15em;
}

.intro-logo-overlay .logo-sub {
    font-size: 0.33rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
}

.intro-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--gold);
    color: var(--black);
    padding: 1.5rem;
    text-align: center;
}

.badge-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1;
}

.badge-text {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.intro-content .section-label {
    margin-bottom: 0.8rem;
}

.intro-content .section-title {
    margin-bottom: 1.5rem;
    text-align: left;
}

.intro-text {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.intro-features {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.intro-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.intro-feature i {
    font-size: 1.3rem;
    color: var(--gold);
}

.intro-feature span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ====================================
   RESIDENCES SECTION
   ==================================== */
.residences-section {
    padding: var(--section-padding);
    background: var(--cream);
}

.residences-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.residence-card {
    background: var(--white);
    overflow: hidden;
    transition: var(--transition);
}

.residence-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.residence-card.featured {
    box-shadow: 0 15px 40px rgba(201, 165, 92, 0.2);
}

.residence-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.residence-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.residence-card:hover .residence-image img {
    transform: scale(1.1);
}

.residence-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: var(--dark);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.residence-badge.gold {
    background: var(--gold);
    color: var(--black);
}

.residence-badge.premium {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
}

.residence-content {
    padding: 1.5rem;
}

.residence-category {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.residence-name {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.residence-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.residence-features {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.residence-features span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--gray);
    font-size: 0.85rem;
}

.residence-features i {
    color: var(--gold);
    font-size: 0.9rem;
}

.residence-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.residence-price {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.price-from {
    font-size: 0.7rem;
    color: var(--gray);
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

.price-period {
    font-size: 0.8rem;
    color: var(--gray);
}

.residences-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ====================================
   AMENITIES SECTION
   ==================================== */
.amenities-section {
    position: relative;
    padding: var(--section-padding);
    overflow: hidden;
}

.amenities-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/hero-4.jpg') center/cover;
}

.amenities-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.88);
}

.amenities-container {
    position: relative;
    z-index: 1;
    max-width: var(--container-width);
    margin: 0 auto;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.amenity-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.amenity-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.amenity-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.2rem;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amenity-icon i {
    font-size: 1.8rem;
    color: var(--gold);
}

.amenity-card h3 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.amenity-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ====================================
   GALLERY SECTION
   ==================================== */
.gallery-section {
    padding: var(--section-padding);
}

.gallery-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 0.8rem;
    padding: 0 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

/* ====================================
   EXPERIENCE SECTION
   ==================================== */
.experience-section {
    padding: var(--section-padding);
    background: var(--off-white);
}

.experience-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    padding: 0 1rem;
}

.experience-content .section-label {
    margin-bottom: 0.8rem;
}

.experience-content .section-title {
    margin-bottom: 2rem;
    text-align: left;
}

.testimonials-slider {
    position: relative;
    min-height: 280px;
}

.testimonial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.testimonial.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.testimonial-stars {
    margin-bottom: 1rem;
}

.testimonial-stars i {
    color: var(--gold);
    font-size: 1rem;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.author-location {
    font-size: 0.8rem;
    color: var(--gray);
}

.testimonial-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.testimonial-prev,
.testimonial-next {
    width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.testimonial-dots {
    display: flex;
    gap: 0.4rem;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active {
    background: var(--gold);
}

.experience-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-item {
    background: var(--white);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold);
}

.stat-label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ====================================
   CTA SECTION
   ==================================== */
.cta-section {
    position: relative;
    padding: 6rem 1.5rem;
    text-align: center;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.75);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====================================
   CONTACT SECTION
   ==================================== */
.contact-section {
    padding: var(--section-padding);
}

.contact-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    padding: 0 1rem;
}

.contact-info .section-label {
    margin-bottom: 0.8rem;
}

.contact-info .section-title {
    margin-bottom: 0.8rem;
    text-align: left;
}

.contact-text {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item i {
    width: 45px;
    height: 45px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.contact-item p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.contact-social a {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--dark);
    transition: var(--transition);
}

.contact-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.contact-form-wrapper {
    background: var(--cream);
    padding: 2rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ====================================
   FOOTER
   ==================================== */
.footer {
    background: var(--black);
    color: var(--white);
}

.footer-main {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.footer-logo .logo-text {
    font-size: 1.3rem;
}

.footer-desc {
    color: var(--gray-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--dark-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.1em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--gray-light);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact p {
    color: var(--gray-light);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.footer-bottom {
    border-top: 1px solid var(--dark-light);
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--gray-light);
    font-size: 0.8rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--gray-light);
    font-size: 0.8rem;
}

.footer-legal a:hover {
    color: var(--gold);
}

/* ====================================
   RESPONSIVE - TABLET
   ==================================== */
@media (max-width: 1024px) {
    .nav-menu,
    .btn-book {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .intro-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .intro-image {
        order: -1;
    }

    .intro-content .section-title {
        text-align: center;
    }

    .intro-content .section-label {
        text-align: center;
        display: block;
    }

    .experience-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .experience-content .section-title {
        text-align: center;
    }

    .experience-content .section-label {
        text-align: center;
        display: block;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-info .section-title {
        text-align: center;
    }

    .contact-info .section-label {
        text-align: center;
        display: block;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-item.large {
        grid-column: span 2;
    }
}

/* ====================================
   RESPONSIVE - MOBILE
   ==================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 1rem;
    }

    .top-bar {
        display: none;
    }

    .header {
        top: 0; /* Reset because top-bar is hidden */
        padding: 0.6rem 1rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-sub {
        font-size: 0.5rem;
    }

    .hero {
        min-height: 550px;
    }

    .hero-content {
        margin-top: 40px;
    }

    .hero-scroll {
        display: none;
    }

    /* Mobile Booking - Hidden by default, shown when hero button clicked */
    .booking-bar {
        display: none;
        flex-direction: column;
        padding: 1.2rem;
        margin-top: 0;
    }

    .booking-bar.active {
        display: flex;
    }

    .booking-field {
        width: 100%;
        min-width: auto;
    }

    .btn-search {
        width: 100%;
    }

    .intro-image {
        height: 350px;
    }

    .intro-badge {
        bottom: -15px;
        right: 15px;
        padding: 1rem;
    }

    .badge-number {
        font-size: 1.8rem;
    }

    .intro-features {
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 150px;
    }

    .gallery-item.large,
    .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .experience-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .testimonials-slider {
        min-height: 250px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* ====================================
   RESPONSIVE - SMALL MOBILE
   ==================================== */
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .residences-grid {
        grid-template-columns: 1fr;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .experience-stats {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .testimonial-nav {
        justify-content: center;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }
}

/* RTL adjustments */
html[dir="rtl"] .intro-badge {
    right: auto;
    left: 20px;
}

html[dir="rtl"] .residence-badge {
    left: auto;
    right: 0.8rem;
}

html[dir="rtl"] .contact-info .section-title,
html[dir="rtl"] .intro-content .section-title,
html[dir="rtl"] .experience-content .section-title {
    text-align: right;
}

@media (max-width: 1024px) {
    html[dir="rtl"] .contact-info .section-title,
    html[dir="rtl"] .intro-content .section-title,
    html[dir="rtl"] .experience-content .section-title {
        text-align: center;
    }
}

/* ====================================
   TITLE REVEAL ANIMATIONS
   ==================================== */

/* Section titles with line reveal effect */
.section-title,
.hero-title,
.cta-title {
    position: relative;
    overflow: hidden;
}

/* Line that slides from left */
.section-title::before,
.cta-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Line that slides from right */
.section-title::after,
.cta-title::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

/* Animate lines when visible */
.section-title.animated::before,
.cta-title.animated::before {
    width: 100%;
}

.section-title.animated::after,
.cta-title.animated::after {
    width: 100%;
}

/* Hero title special animation */
.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: heroTitleReveal 1s ease forwards 0.5s;
}

@keyframes heroTitleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section labels slide in from left */
.section-label {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-label.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Section titles slide in from right */
.section-title {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.section-title.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Hero label animation */
.hero-label {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideFromLeft 0.8s ease forwards 0.3s;
}

@keyframes slideFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero subtitle/text animation */
.hero-text {
    opacity: 0;
    transform: translateX(30px);
    animation: slideFromRight 0.8s ease forwards 0.7s;
}

@keyframes slideFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero buttons animation */
.hero-buttons {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.9s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   CARD ANIMATIONS
   ==================================== */

.residence-card,
.amenity-card,
.gallery-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.residence-card.animated,
.amenity-card.animated,
.gallery-item.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for cards */
.residence-card:nth-child(1) { transition-delay: 0.1s; }
.residence-card:nth-child(2) { transition-delay: 0.2s; }
.residence-card:nth-child(3) { transition-delay: 0.3s; }

.amenity-card:nth-child(1) { transition-delay: 0.1s; }
.amenity-card:nth-child(2) { transition-delay: 0.2s; }
.amenity-card:nth-child(3) { transition-delay: 0.3s; }
.amenity-card:nth-child(4) { transition-delay: 0.4s; }
.amenity-card:nth-child(5) { transition-delay: 0.5s; }
.amenity-card:nth-child(6) { transition-delay: 0.6s; }

.gallery-item:nth-child(1) { transition-delay: 0.1s; }
.gallery-item:nth-child(2) { transition-delay: 0.15s; }
.gallery-item:nth-child(3) { transition-delay: 0.2s; }
.gallery-item:nth-child(4) { transition-delay: 0.25s; }
.gallery-item:nth-child(5) { transition-delay: 0.3s; }

/* ====================================
   HOVER EFFECTS
   ==================================== */

/* Cards hover */
.residence-card:hover,
.amenity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Image zoom on hover */
.gallery-item img,
.residence-image img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img,
.residence-card:hover .residence-image img {
    transform: scale(1.08);
}

/* Gallery overlay */
.gallery-overlay span {
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
    opacity: 1;
}

/* Button hover effect */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 165, 92, 0.3);
}

/* ====================================
   INTRO SECTION ANIMATIONS
   ==================================== */

.intro-image {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-image.animated {
    opacity: 1;
    transform: translateX(0);
}

.intro-content {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.intro-content.animated {
    opacity: 1;
    transform: translateX(0);
}

/* ====================================
   CTA SECTION ANIMATION
   ==================================== */

.cta-content {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-content.animated {
    opacity: 1;
    transform: scale(1);
}

/* ====================================
   CONTACT SECTION ANIMATIONS
   ==================================== */

.contact-info {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info.animated {
    opacity: 1;
    transform: translateX(0);
}

.contact-form-wrapper {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.contact-form-wrapper.animated {
    opacity: 1;
    transform: translateX(0);
}

/* ====================================
   STATS ANIMATION
   ==================================== */

.stat-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.stat-item:nth-child(1) { transition-delay: 0.1s; }
.stat-item:nth-child(2) { transition-delay: 0.2s; }
.stat-item:nth-child(3) { transition-delay: 0.3s; }
.stat-item:nth-child(4) { transition-delay: 0.4s; }

/* ====================================
   SCROLL INDICATOR
   ==================================== */

.hero-scroll {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* ====================================
   SMOOTH SCROLL
   ==================================== */

html {
    scroll-behavior: smooth;
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
