/* CSS Reset & Variables */
:root {
    --color-primary: #C49A6C; /* Gold / Bronze */
    --color-primary-hover: #D8AA78;
    --color-bg-dark: #0a0a0a;
    --color-bg-darker: #050505;
    --color-bg-card: #141414;
    --color-text-light: #ffffff;
    --color-text-muted: #a0a0a0;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

section {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Ensure no extra space when padding is 0 */
section > .container > *:first-child,
.about-text > *:first-child,
.location-text > *:first-child,
.residences-info > *:first-child {
    margin-top: 0;
}

section > .container > *:last-child,
.about-text > *:last-child,
.location-text > *:last-child,
.residences-info > *:last-child {
    margin-bottom: 0;
}


/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

.title {
    font-size: clamp(2.5rem, 5vw, var(--hero-title-font-size));
    font-weight: var(--hero-title-font-weight);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.section-subtitle {
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 8vw, var(--title-font-size)) !important;
    font-weight: var(--title-font-weight) !important;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: var(--button-font-size);
    font-weight: var(--button-font-weight);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(196, 154, 108, 0.2);
}

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

.btn-outline:hover {
    background-color: var(--color-text-light);
    color: #000;
}

.btn-outline-video {
    background-color: transparent;
    color: var(--color-text-light);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-outline-video:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Logo */
.logo {
    text-align: center;
}

.logo h1 {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin: 0;
}

.logo span {
    font-size: 0.5rem;
    letter-spacing: 3px;
    color: var(--color-text-muted);
    font-family: var(--font-body);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

header.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: rgba(196, 154, 108, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.desktop-nav ul {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--color-text-light);
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 40%, transparent 80%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero .subtitle {
    color: var(--color-primary);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero .description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

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

.hero-badge {
    position: absolute;
    right: 5%;
    top: 53%;
    z-index: 3;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(196, 154, 108, 0.3);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-badge span {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-badge .number {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    margin: 0.5rem 0;
    background: linear-gradient(180deg, #F9D097 0%, #C49A6C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(196, 154, 108, 0.6)) drop-shadow(0 0 30px rgba(196, 154, 108, 0.3));
}

/* Features Section */
.features {
    background-color: var(--color-bg-darker);
    padding: var(--section-padding) 0;
}

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

.feature-item {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon, .feature-img {
    display: block;
    margin: 0 auto 1.5rem;
    font-size: var(--feature-icon-size);
    width: var(--feature-icon-size);
    height: var(--feature-icon-size);
    color: var(--color-primary);
    object-fit: contain;
}

.feature-item h3 {
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* About Section */
.about {
    position: relative;
    padding: var(--section-padding) 0;
    display: flex;
    align-items: center;
}

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

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.8) 40%, transparent 100%);
    z-index: 2;
}

.about-container {
    position: relative;
    z-index: 3;
    display: block;
}

.about-text {
    max-width: 500px;
}

/* Residences Section */
.residences {
    padding: var(--section-padding) 0;
    background-color: var(--color-bg-darker);
}

.residences-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.residences-features-list {
    margin: 2.5rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
}

.residences-features-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.residences-features-list i, 
.residences-features-list .res-feature-img {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-primary);
    margin-top: 0.5rem;
    object-fit: contain;
    flex-shrink: 0;
}

.residences-features-list h4 {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.residences-features-list p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.residences-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1rem;
}

.gallery-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.gallery-item:nth-child(1) {
    grid-column: span 2;
    height: 350px;
}

.gallery-item:nth-child(2), .gallery-item:nth-child(3) {
    grid-column: span 1;
    height: 250px;
}

.gallery-item:nth-child(4) {
    grid-column: span 2;
    height: 200px;
}

/* Location Section */
.location {
    position: relative;
    padding: var(--section-padding) 0;
    display: flex;
    align-items: center;
}

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

.location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.8) 40%, transparent 100%);
    z-index: 2;
}

.location-container {
    position: relative;
    z-index: 3;
    display: block;
}

.location-text {
    max-width: 500px;
}


/* Final CTA */
.final-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 8rem 0; 
    min-height: 450px;
}

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

.final-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.final-cta-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    text-align: left;
}

/* Footer */
footer {
    background-color: #000;
    padding-top: 5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-brand .logo {
    text-align: left;
}

.footer-info-group {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.footer-info-group i {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.footer-info-group p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.footer-social a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
}

.footer-bottom {
    padding: 2rem 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-dark);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-direction: column;
    padding: 2rem;
}

.mobile-menu-overlay.active {
    display: flex;
    right: 0;
}

.mobile-menu-overlay {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-container, .residences-container, .location-container {
        grid-template-columns: 1fr;
    }
    
    .residences-info, .location-text {
        margin-bottom: 3rem;
    }
    
    .hero-badge {
        display: none;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }

    .header-actions .btn {
        display: none;
    }
    
    .logo h1 {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background: rgba(10, 10, 10, 0.6);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 2000;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column;
        padding: 2rem;
    }

    .mobile-menu-overlay.active {
        display: flex;
        right: 0;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 3rem;
    }

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

    .mobile-nav ul {
        list-style: none;
        padding: 0;
    }

    .mobile-nav li {
        margin-bottom: 2rem;
    }

    .mobile-nav a {
        font-family: var(--font-heading);
        font-size: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--color-text-light);
    }

    .mobile-menu-footer {
        margin-top: auto;
        padding-top: 2rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .hero-content {
        text-align: left;
    }

    .hero .description {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-buttons {
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .hero .subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
        text-align: left;
    }

    .hero .description br {
        display: none;
    }

    .title {
        font-size: 2.5rem !important;
        margin-bottom: 1.5rem;
        text-align: left;
    }
    
    .section-subtitle {
        text-align: left;
    }

    .section-title {
        font-size: 2.2rem !important;
        text-align: left;
    }

    .section-desc {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .feature-item {
        text-align: center;
    }
    
    .residences-features-list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .residences-features-list li {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1.5rem;
    }

    .residences-features-list i, 
    .residences-features-list .res-feature-img {
        margin-top: 0.3rem;
    }
    
    .residences-gallery {
        height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .residences-gallery .gallery-item {
        height: 250px !important;
    }
    
    .btn {
        text-align: center;
        width: 100%;
    }
    
    .location-map-points {
        display: none;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 2.5rem;
    }

    .footer-brand .logo {
        text-align: left;
    }

    .footer-info-group {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1.2rem;
    }

    .footer-social {
        justify-content: flex-start;
    }

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

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,1);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border: 1px solid rgba(196, 154, 108, 0.3);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-lightbox:hover {
    color: var(--color-primary);
}

.lightbox-prev, .lightbox-next {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: var(--color-primary);
    color: #000;
    border-color: var(--color-primary);
}

.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}
.lightbox-counter {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 2px;
    z-index: 1001;
}
