/* 
   Kaniz Furnished Apartments - Stylesheet
   Serena-Inspired White Luxury Aesthetic
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Warm ivory neutrals — every neutral tinted toward the brass hue, never pure #fff/#000 */
    --white:            oklch(0.992 0.004 90);   /* primary ivory surface */
    --off-white:        oklch(0.978 0.006 88);
    --light-grey:       oklch(0.957 0.009 86);   /* warm sand */
    --border-grey:      oklch(0.903 0.010 84);
    --text-dark:        oklch(0.265 0.018 60);   /* warm espresso ink */
    --text-body:        oklch(0.430 0.016 62);
    --text-muted:       oklch(0.580 0.014 66);

    /* Aged brass accent — a brighter tone for fills/decoration, a deeper one for text on light (AA) */
    --accent-gold:      oklch(0.660 0.090 78);   /* decorative brass */
    --accent-gold-light:oklch(0.760 0.085 84);   /* champagne highlight */
    --accent-gold-deep: oklch(0.520 0.092 68);   /* text-safe brass on ivory */
    --accent-gold-pale: oklch(0.948 0.028 88);   /* pale champagne wash */

    --deep-charcoal:    oklch(0.235 0.016 58);   /* warm near-black for dark surfaces */
    --overlay:          oklch(0.20 0.02 60 / 0.45);

    /* Motion — ease-out-quint, no bounce */
    --ease-out:         cubic-bezier(0.22, 1, 0.36, 1);
    --transition:       all 0.5s cubic-bezier(0.22, 1, 0.36, 1);

    /* Warm-tinted, layered shadows */
    --shadow-sm:        0 1px 2px oklch(0.30 0.02 60 / 0.05);
    --shadow-md:        0 6px 24px oklch(0.30 0.02 60 / 0.07);
    --shadow-lg:        0 26px 70px oklch(0.28 0.02 60 / 0.11);

    /* Radius scale */
    --r-xs: 2px;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
}

::selection {
    background: var(--accent-gold-pale);
    color: var(--text-dark);
}

:focus-visible {
    outline: 2px solid var(--accent-gold-deep);
    outline-offset: 3px;
    border-radius: 1px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--white);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

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

ul { list-style: none; }

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 110px 0;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 15px 38px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    border-radius: var(--r-xs);
}

.btn-gold {
    background-color: var(--accent-gold-deep);
    color: var(--white);
}
.btn-gold:hover {
    background-color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 14px 34px oklch(0.30 0.04 60 / 0.22);
}

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

.btn-white-outline {
    background-color: transparent;
    border: 1.5px solid var(--white);
    color: var(--white);
}
.btn-white-outline:hover {
    background-color: var(--white);
    color: var(--text-dark);
}

/* ── Preloader / Splash Screen ── */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.7s var(--ease-out), visibility 0.7s var(--ease-out);
}
.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Soft expanding brass ring while loading */
.preloader-inner::before {
    content: '';
    position: absolute;
    width: 150%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid var(--accent-gold);
    opacity: 0;
    animation: ringPulse 1.8s var(--ease-out) infinite;
}

.preloader-logo {
    width: clamp(150px, 28vw, 230px);
    height: auto;
    mix-blend-mode: multiply;
    transform-origin: center;
    animation: logoPop 1s var(--ease-out) both;
}

@keyframes logoPop {
    0%   { opacity: 0; transform: scale(0.45); }
    55%  { opacity: 1; transform: scale(1.06); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes ringPulse {
    0%   { transform: scale(0.65); opacity: 0.55; }
    100% { transform: scale(1.45); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .preloader-inner::before { display: none; }
}

/* ── Header / Nav ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    flex: 0 0 auto;
    text-align: center;
}

.logo img {
    height: 110px;
    width: auto;
    transition: var(--transition);
    mix-blend-mode: multiply;
}

header.scrolled .logo img {
    height: 80px;
}

.nav-links {
    display: flex;
    gap: 32px;
    flex: 1 1 0%;
    align-items: center;
}

.left-nav {
    justify-content: flex-end;
    margin-right: 44px;
}

.right-nav {
    justify-content: flex-start;
    margin-left: 44px;
}

.nav-links a {
    color: var(--text-dark);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 6px 0;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

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

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

header.scrolled .nav-links a {
    color: var(--text-dark);
}

.nav-links a.btn-book-header {
    background: var(--accent-gold-deep);
    color: var(--white) !important;
    padding: 13px 28px !important;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border-radius: var(--r-xs);
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    transition: var(--transition);
    text-shadow: none;
    box-shadow: 0 4px 16px oklch(0.52 0.092 68 / 0.30);
    margin-left: 8px;
}

.nav-links a.btn-book-header::after {
    display: none;
}

.nav-links a.btn-book-header:hover {
    background: var(--text-dark);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px oklch(0.30 0.04 60 / 0.28);
}

/* Mobile hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition);
}
header.scrolled .mobile-toggle span {
    background-color: var(--text-dark);
}

/* ── Hero Container ── */
.hero-container {
    margin-top: 110px; /* Adjusted after removing top bar */
    position: relative;
    background-color: var(--white);
}

.hero-video-wrapper {
    position: relative;
    height: 75vh;
    width: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    background-color: var(--white); /* Fallback background */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.55); /* Darkened for better text contrast */
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5; /* Increased to stay above overlay */
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.6rem;
    color: var(--white);
    margin-bottom: 22px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.05;
    text-shadow: 0 2px 24px oklch(0.15 0.02 60 / 0.45);
}

.hero-content .subheading {
    color: var(--accent-gold-light);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.42em;
    margin-bottom: 18px;
    text-indent: 0.42em;
    font-weight: 500;
}

.hero-content .description {
    color: oklch(0.98 0.005 90 / 0.94);
    font-size: 1.15rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    text-shadow: 0 1px 8px oklch(0.15 0.02 60 / 0.35);
}

/* Booking Bar */
.booking-bar {
    background-color: var(--white);
    padding: 40px 0;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
    margin-top: -60px; /* More overlap for premium feel */
    border-radius: 4px;
}

.booking-form {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.booking-field {
    flex: 1;
}

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

.booking-field input:focus, .booking-field select:focus {
    border-color: var(--accent-gold);
}

.booking-field input, .booking-field select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-grey);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.booking-bar .btn-gold {
    padding: 14px 30px;
    font-size: 0.8rem;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Availability Result Card ── */
.avail-result-card {
    margin-top: 24px;
    padding: 22px 28px;
    border-radius: 6px;
    border: 1px solid var(--border-grey);
    background: #fafaf8;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.avail-status {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.avail-status.available   { color: #2e7d32; }
.avail-status.unavailable { color: #c0392b; }
.avail-status.error       { color: #888; }

.avail-pricing {
    flex: 1;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.avail-pricing strong {
    color: var(--text-dark);
    font-size: 1.15rem;
}

.avail-book-btn {
    padding: 13px 28px;
    font-size: 0.78rem;
    white-space: nowrap;
    text-decoration: none;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.accent-line {
    width: 50px;
    height: 1.5px;
    background-color: var(--accent-gold);
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: float 3s ease-in-out infinite;
    color: var(--white);
    font-size: 1.2rem;
    opacity: 0.7;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(-50%); opacity: 0.7; }
    50% { transform: translateY(-8px) translateX(-50%); opacity: 1; }
}

/* ── Stats Bar ── */
.stats-bar {
    background-color: var(--white);
    padding: 50px 0;
    border-bottom: 1px solid var(--border-grey);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item {
    border-right: 1px solid var(--border-grey);
    padding: 15px 0;
}
.stat-item:last-child { border-right: none; }

.stat-item h3 {
    font-size: 2.7rem;
    margin-bottom: 4px;
    color: var(--accent-gold-deep);
    font-weight: 600;
}

.stat-item p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Section Headings ── */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 3.2rem;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.section-header .accent-line {
    margin-top: 8px;
}

/* ── Intro / About Section ── */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.intro-text h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    letter-spacing: -0.015em;
}

.intro-text p {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-body);
}

.intro-text blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.95rem;
    color: var(--accent-gold-deep);
    margin: 34px 0;
    padding-top: 26px;
    line-height: 1.4;
    position: relative;
}
.intro-text blockquote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 46px;
    height: 1.5px;
    background: var(--accent-gold);
}

.intro-img img {
    border-radius: 2px;
    box-shadow: var(--shadow-lg);
}

/* ── Residences Grid ── */
.residences-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.residence-card {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-grey);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.residence-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.55s var(--ease-out);
}
.residence-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: oklch(0.76 0.085 84 / 0.6);
}
.residence-card:hover::after {
    transform: scaleX(1);
}

.residence-img {
    height: 300px;
    overflow: hidden;
    position: relative;
    border-radius: 10px 10px 0 0;
}
.residence-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.45s ease;
}
.residence-card:hover .residence-img::after {
    opacity: 1;
}
.residence-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.residence-card:hover .residence-img img {
    transform: scale(1.06);
}

.residence-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: oklch(0.99 0.004 90 / 0.92);
    backdrop-filter: blur(4px);
    color: var(--accent-gold-deep);
    padding: 6px 14px;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border: 1px solid oklch(0.66 0.090 78 / 0.45);
    border-radius: var(--r-xs);
    z-index: 2;
}

.residence-content {
    padding: 26px 26px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.residence-content h3 {
    font-size: 1.5rem;
    line-height: 1.18;
    /* reserve two lines so single- and double-line titles align across the row */
    min-height: calc(2 * 1.18em);
    display: flex;
    align-items: flex-end;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.residence-content p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.residence-features {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}
.residence-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-gold-pale);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.residence-feature-tag i {
    font-size: 0.62rem;
    color: var(--accent-gold-deep);
}

.residence-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-grey);
}

.residence-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    color: var(--text-dark);
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    line-height: 1.1;
    font-weight: 600;
}
.residence-price span {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.residence-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

/* ── Amenities ── */
.amenities-section {
    background-color: var(--white);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    background: var(--light-grey);
    border: 1px solid transparent;
    border-radius: 10px;
    transition: var(--transition);
    cursor: default;
}
.amenity-item:hover {
    background: var(--white);
    border-color: var(--accent-gold-light);
    box-shadow: 0 8px 32px rgba(184,134,11,0.08);
    transform: translateY(-3px);
}

.amenity-item .amenity-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    background: var(--accent-gold-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.amenity-item:hover .amenity-icon {
    background: var(--accent-gold);
}

.amenity-item .amenity-icon i {
    font-size: 1.1rem;
    color: var(--accent-gold);
    transition: var(--transition);
    display: block;
}
.amenity-item:hover .amenity-icon i {
    color: var(--white);
}

.amenity-text h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}
.amenity-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Gallery ── */
.gallery-section {
    background-color: var(--light-grey);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}
.gallery-filter-btn {
    background-color: var(--white);
    border: 1px solid var(--border-grey);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}
.gallery-filter-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-1px);
}
.gallery-filter-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--white);
    box-shadow: 0 8px 20px -8px var(--accent-gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 248px;
    gap: 14px;
}

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

.gallery-item {
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border-radius: 14px;
    display: block;
    box-shadow: 0 10px 30px -18px rgba(0,0,0,0.45);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px -22px rgba(0,0,0,0.6);
}
.gallery-item.hidden {
    display: none;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    display: block;
}
.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,12,8,0.78) 0%, rgba(15,12,8,0.18) 40%, transparent 70%);
    opacity: 0;
    transition: opacity 0.45s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px 22px;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay > * {
    transform: translateY(10px);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-item:hover .gallery-overlay > * {
    transform: translateY(0);
}
.gallery-tag {
    color: var(--accent-gold);
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.gallery-label {
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.2;
    transition-delay: 0.05s;
}

/* ── Testimonials ── */
.testimonials-section {
    background-color: var(--white);
    border-top: 1px solid var(--border-grey);
    border-bottom: 1px solid var(--border-grey);
}

.testimonial-card {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-card i.quote-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 28px;
    display: block;
    opacity: 0.6;
}

.testimonial-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 2.1rem;
    line-height: 1.4;
    margin-bottom: 28px;
    color: var(--text-dark);
}

.testimonial-author {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.testimonial-stars {
    margin-top: 16px;
    color: var(--accent-gold);
    font-size: 0.85rem;
    letter-spacing: 3px;
}

/* ── Booking CTA Banner ── */
.booking-banner {
    position: relative;
    padding: 140px 0;
    background-image: url('../assets/images/apt1/3B3A0065-HDR.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: var(--white);
    text-align: center;
}
.booking-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.55);
}
.booking-banner .container {
    position: relative;
    z-index: 1;
}
.booking-banner h2 {
    font-size: 3.7rem;
    margin-bottom: 20px;
    color: var(--white);
    letter-spacing: -0.015em;
}
.booking-banner p {
    font-size: 1.1rem;
    margin-bottom: 36px;
    opacity: 0.9;
    font-weight: 300;
}
.perk-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: -8px auto 36px;
    padding: 12px 24px;
    border: 1px solid var(--accent-gold-light);
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    color: var(--white);
    font-size: 0.98rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    max-width: 90%;
}
.perk-pill i {
    color: var(--accent-gold-light);
    font-size: 1.15rem;
    flex: 0 0 auto;
}
@media (max-width: 600px) {
    .perk-pill { font-size: 0.88rem; padding: 11px 18px; }
}

/* ── Contact Section ── */
.contact-section {
    background-color: var(--light-grey);
}

.section-subtext {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-top: 14px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
    align-items: stretch;
}

/* ── Info Card ── */
.contact-info-card {
    background-color: var(--deep-charcoal);
    color: var(--white);
    padding: 44px 36px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.contact-item:first-child { padding-top: 0; }
.contact-item:last-of-type { border-bottom: none; }

.contact-item-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: rgba(184,134,11,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold-light);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--accent-gold);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}
.contact-item p {
    color: rgba(255,255,255,0.82);
    font-size: 0.92rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.contact-wa-btn {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.74rem;
    color: var(--accent-gold-light);
    border-bottom: 1px solid rgba(212,168,67,0.35);
    padding-bottom: 1px;
    transition: var(--transition);
    font-weight: 500;
    letter-spacing: 0.02em;
}
.contact-wa-btn:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.contact-socials {
    margin-top: auto;
    padding-top: 28px;
}
.contact-socials > span {
    display: block;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 14px;
    font-family: 'Inter', sans-serif;
}
.contact-social-icons {
    display: flex;
    gap: 10px;
}
.contact-social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    transition: var(--transition);
}
.contact-social-icons a:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--white);
    transform: translateY(-2px);
}

/* ── Form Card ── */
.contact-form-card {
    background: var(--white);
    padding: 44px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form-card .form-group {
    margin-bottom: 20px;
}
.contact-form-card label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}
.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
    width: 100%;
    padding: 13px 16px;
    background-color: var(--light-grey);
    border: 1.5px solid transparent;
    color: var(--text-body);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
    border-radius: 8px;
}
.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
    color: var(--text-muted);
}
.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
    border-color: var(--accent-gold);
    background-color: var(--white);
    box-shadow: 0 0 0 3px var(--accent-gold-pale);
}
.contact-form-card textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    border-radius: 8px;
}

/* ── Footer ── */
footer {
    background-color: var(--deep-charcoal);
    color: rgba(255,255,255,0.75);
    padding: 70px 0 24px;
    border-top: 3px solid var(--accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 18px;
}

.footer-col p {
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--accent-gold);
    margin-bottom: 22px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 12px;
    font-size: 0.88rem;
}
.footer-col ul li a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

.footer-col ul li i {
    color: var(--accent-gold);
    margin-right: 10px;
    font-size: 0.8rem;
    width: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.made-by {
    display: block;
    margin-top: 10px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.05em;
}
.made-by a {
    color: var(--accent-gold);
    opacity: 0.6;
    transition: var(--transition);
}
.made-by a:hover {
    opacity: 1;
}

/* ── WhatsApp Floating Button ── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background-color: #25d366;
    color: white;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    z-index: 9999;
    transition: var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

/* ── Apartment Detail Pages ── */
.apt-hero {
    margin-top: 110px;
}

.nav-cta .btn {
    white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3.5rem; }
    .residences-grid { grid-template-columns: repeat(2, 1fr); }
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }
    .intro-grid, .contact-grid { grid-template-columns: 1fr; gap: 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .gallery-item--wide { grid-column: span 1; }
    .gallery-item--tall { grid-row: span 1; }
}

@media (max-width: 768px) {
    nav {
        position: relative;
        justify-content: center;
    }

    .mobile-toggle {
        display: flex;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;
    }

    .logo {
        text-align: center;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .logo img { height: 55px; }

    .nav-links { display: none; }

    nav.mobile-active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        z-index: 1000;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 20px;
    }

    nav.mobile-active .logo {
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
    }

    nav.mobile-active .mobile-toggle {
        position: absolute;
        top: 30px;
        left: 24px;
        transform: none;
    }

    nav.mobile-active .nav-links {
        display: flex;
        flex-direction: column;
        position: static;
        width: 100%;
        align-items: center;
        gap: 24px;
        height: auto;
        padding: 0;
        background: transparent;
    }

    nav.mobile-active .left-nav {
        margin-right: 0;
        margin-top: 100px;
    }

    nav.mobile-active .right-nav {
        margin-left: 0;
        margin-top: 0;
    }

    /* Hamburger to X */
    nav.mobile-active .mobile-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    nav.mobile-active .mobile-toggle span:nth-child(2) {
        opacity: 0;
    }
    nav.mobile-active .mobile-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links a { color: var(--text-dark); font-size: 1.1rem; text-shadow: none; padding: 12px 24px; display: block; text-align: center; }
    
    .hero-content { left: 0; right: 0; transform: translateY(-50%); padding: 0 20px; }
    .hero-content h1 { font-size: 2.6rem; }
    .hero-btns { flex-direction: column; align-items: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border-grey); padding: 20px 0; }
    .stat-item:last-child { border-bottom: none; }
    .stat-item h3 { font-size: 1.8rem; }
    .residences-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .section-padding { padding: 60px 0; }
    .section-header h2 { font-size: 2.2rem; }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }

    .testimonial-text { font-size: 1.25rem; margin-bottom: 20px; }
    .testimonial-card i.quote-icon { font-size: 2rem; margin-bottom: 16px; }
    .contact-info-card { padding: 30px 24px; }
    .contact-form-card { padding: 30px 24px; }

    .nav-cta { order: 3; }

    .apt-hero { margin-top: 80px; }
    .apt-hero h1 { font-size: 2.4rem !important; }

    .booking-form {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .booking-bar {
        margin-top: -20px;
        padding: 20px 0;
    }

    .hero-container {
        margin-top: 75px;
    }
    
    .apt-hero {
        margin-top: 75px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
        z-index: 999;
    }

    .hero-video-wrapper {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    /* Convert horizontal AOS animations to vertical on mobile to prevent right-side overflow */
    [data-aos="fade-left"],
    [data-aos="fade-right"] {
        transform: translate3d(0, 40px, 0) !important;
    }
    [data-aos="fade-left"].aos-animate,
    [data-aos="fade-right"].aos-animate {
        transform: translate3d(0, 0, 0) !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.2rem; }
    .section-header h2 { font-size: 1.9rem; }
    .amenities-grid { grid-template-columns: 1fr; }
    .section-padding { padding: 50px 0; }
    .residence-img { height: 240px; }
    .residence-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
    .residence-btn { width: 100%; text-align: center; }
    .contact-info-card { padding: 24px 20px; }
    .contact-form-card { padding: 24px 20px; }
    .hero-video-wrapper { height: 50vh; }
    .hero-content { padding: 0 20px; }
}
