/* ============================================
   Urban Heaven Luxury Lofts - Stylesheet
   Color Palette: Charcoal #2d3436, Gold #c5a47e
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #c5a47e;
    --gold-light: #d4b896;
    --gold-dark: #a8885f;
    --charcoal: #2d3436;
    --charcoal-light: #3d4548;
    --dark: #1a1d1e;
    --white: #ffffff;
    --off-white: #f8f7f5;
    --gray: #6b7280;
    --gray-light: #e5e5e5;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    background: var(--dark);
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 36px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--gold-dark);
}

.btn-lg {
    padding: 18px 48px;
    font-size: 1rem;
}

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

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

.btn-header {
    background: var(--gold);
    color: var(--white);
    padding: 10px 24px;
    font-size: 0.75rem;
}

.btn-header:hover {
    background: var(--gold-dark);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 20px 0;
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
}

.header.scrolled {
    background: rgba(26, 29, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
    width: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 144px;
    width: auto;
    transition: height 0.4s ease;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.lang-switch-header a {
    color: var(--white);
    opacity: 0.6;
    font-weight: 400;
    transition: all 0.3s ease;
}

.lang-switch-header a:hover {
    opacity: 1;
    color: var(--gold);
}

.lang-switch-header a.lang-active {
    opacity: 1;
    color: var(--gold);
}

.lang-switch-header span {
    color: var(--white);
    opacity: 0.3;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.nav a:hover {
    opacity: 1;
    color: var(--gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* --- Mobile Nav --- */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(26, 29, 30, 0.98);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mobile-nav-link:hover {
    color: var(--gold);
}

.mobile-nav-btn {
    margin-top: 16px;
}

/* --- Hero --- */
.hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 0;
}

.hero-spacer {
    height: 100vh;
    min-height: 600px;
    position: relative;
    pointer-events: none;
}

.main-content {
    position: relative;
    z-index: 1;
    background: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    will-change: transform;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(26, 29, 30, 0.4) 0%,
        rgba(26, 29, 30, 0.6) 50%,
        rgba(26, 29, 30, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 24px;
    margin-top: 80px;
}

.hero-logo {
    width: 280px;
    height: auto;
    margin: 0 auto 32px;
    opacity: 0.9;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    line-height: 1.15;
    color: #f2e8da;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 20px;
}

.hero-social {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 32px;
}

.hero-social-link {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.hero-social-link:hover {
    opacity: 1;
    color: var(--gold);
}

.hero-social-link svg {
    flex-shrink: 0;
    opacity: 0.9;
}

/* --- Scroll Hint Arrow --- */
.scroll-hint {
    display: block;
    margin-top: 48px;
    color: var(--white);
    opacity: 0.6;
    animation: bounce 2s ease infinite;
}

.scroll-hint svg {
    margin: 0 auto;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(12px);
    }
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 56px;
    letter-spacing: 0.02em;
}

/* --- Highlights --- */
.highlights {
    background: var(--off-white);
    padding: 80px 0;
}

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

.highlight-icon {
    color: var(--gold);
    margin-bottom: 20px;
}

.highlight-item h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.highlight-item p {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 300;
}

/* --- Gallery --- */
.gallery {
    background: var(--white);
}

/* Flex row layout for main page gallery */
.gallery-rows {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gallery-row {
    display: flex;
    gap: 4px;
    height: 320px;
}

.gallery-row-item {
    flex: 0.6;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.gallery-row-item.expanded {
    flex: 2.5;
}

.gallery-row-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grid layout for full gallery page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4px;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item.hidden {
    display: none;
}

.gallery-toggle-wrap {
    text-align: center;
    margin-top: 40px;
}

/* --- Location --- */
.location {
    background: var(--off-white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.location-map {
    min-height: 450px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#google-map {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: 0;
}


.location-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.location-info > p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.location-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.location-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.location-list li svg {
    color: var(--gold);
    flex-shrink: 0;
}

.location-list li strong {
    font-weight: 500;
}

/* --- Facilities --- */
.facilities {
    background: var(--white);
}

.facilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.facility-group ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.facility-group li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 300;
}

.facility-group li svg {
    color: var(--gold);
    flex-shrink: 0;
}

/* --- CTA --- */
.cta {
    position: relative;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

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

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.cta-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.85;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: var(--white);
    padding-top: 60px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 240px;
    width: auto;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.85rem;
    opacity: 0.6;
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.footer-col p,
.footer-col a {
    font-size: 0.85rem;
    opacity: 0.6;
    font-weight: 300;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    opacity: 0.6;
    font-weight: 300;
    color: var(--white);
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-social-link:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-social-link svg {
    flex-shrink: 0;
}

.lang-switch {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
}

.lang-switch span {
    opacity: 0.3;
}

.lang-switch a {
    opacity: 0.6;
}

.lang-switch a:hover {
    opacity: 1;
    color: var(--gold);
}

.lang-active {
    opacity: 1 !important;
    color: var(--gold) !important;
}

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 0.75rem;
    opacity: 0.4;
    text-align: center;
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 2rem;
    padding: 16px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

.lightbox-close {
    top: 16px;
    right: 24px;
    font-size: 2.5rem;
}

.lightbox-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

.lightbox-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

/* --- Scroll animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-row {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 16px;
    }

    .nav {
        display: none;
    }

    .btn-header {
        display: none;
    }

    .nav-toggle {
        display: flex;
        order: 0;
    }

    .mobile-nav {
        display: flex;
    }

    .section {
        padding: 64px 0;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

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

    .gallery-row {
        height: 180px;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .location-map {
        min-height: 300px;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        gap: 40px;
    }

    .cta {
        padding: 80px 0;
    }

    .hero-logo {
        width: 200px;
    }

    /* Mobile hero: stack socials */
    .hero-social {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .header-right {
        display: none;
    }

    .header .logo {
        order: 2;
        margin-left: auto;
        margin-right: 0;
    }

    .header .logo img {
        height: 96px;
    }

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

@media (max-width: 480px) {
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .btn-lg {
        padding: 16px 36px;
        font-size: 0.875rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 24px;
    }
}
