/* Design System & Tokens */
:root {
    --primary: #2D2D2D;
    --secondary: #E5E1D8;
    --accent: #B08D57; /* Muted Gold/Bronze */
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --bg-light: #F9F7F2;
    --bg-white: #FFFFFF;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Marcellus', serif;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}


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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 50px;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

nav .logo {
    font-family: 'Marcellus', serif;
    font-weight: 500;
    letter-spacing: 0.4em;
    font-size: 1.3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-family: 'Marcellus', serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.nav-links li a:hover {
    opacity: 1;
    color: var(--accent);
}

nav.scrolled .logo, nav.scrolled .nav-links li a {
    color: var(--text-main);
    text-shadow: none;
}



/* Sections */
section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background: var(--accent);
}

.section-title p {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.btn {
    display: inline-block;
    padding: 18px 45px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 10;
    max-width: 800px;
}

.hero-logo-img {
    width: 300px;
    margin: 0 auto 30px;
    filter: brightness(1);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
}

.hero h1 span {
    font-weight: 600;
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Hero Slider */
.heroSlider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 5;
}

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 25px;
    line-height: 1.8;
}

.highlight-para {
    border-left: 3px solid var(--accent);
    padding: 20px 0 20px 30px;
    background: rgba(197, 168, 128, 0.05);
    font-style: italic;
    color: var(--primary);
    position: relative;
}

.highlight-para::before {
    content: '"';
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 3rem;
    font-family: serif;
    color: var(--accent);
    opacity: 0.2;
}

.about-text p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.05rem;
    text-align: justify;
}


.area-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.stat {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.stat span {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 5px;
}

.about-images {
    position: relative;
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    box-shadow: 20px 20px 0 var(--secondary);
}

.about-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-sub-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feat-item {
    padding: 50px 30px;
    background: white;
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
    transition: var(--transition);
}

.feat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.feat-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 25px;
}

.feat-item h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

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

/* Banner */
.banner {
    height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.banner-overlay {
    background: rgba(45, 45, 45, 0.8);
    backdrop-filter: blur(10px);
    padding: 60px 100px;
    color: white;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.banner-overlay h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gal-img {
    height: 250px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gal-img::after {
    content: 'View';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none; /* Allow clicks to pass through to the image */
}

.gal-img:hover::after {
    opacity: 1;
}

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

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    font-family: inherit;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.gal-img.hide {
    display: none;
}

.gal-img.show {
    display: block;
    animation: fadeIn 0.5s ease-out forwards;
}


/* Contact */
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: white;
    box-shadow: 0 40px 100px rgba(0,0,0,0.05);
}

.contact-info {
    padding: 60px;
    background: var(--primary);
    color: white;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info p {
    opacity: 0.7;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.info-item i {
    color: var(--accent);
}

.contact-form {
    padding: 60px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-bottom: 1px solid var(--accent);
}

.contact-map {
    margin-top: 60px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    border: 1px solid white;
}

.contact-map iframe {
    display: block;
}


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

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    animation: zoom 0.5s;
}

@keyframes zoom {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 2002;
    transition: var(--transition);
}

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

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 80px;
    padding: 20px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
    z-index: 2001;
    opacity: 0.5;
}

.prev:hover, .next:hover {
    opacity: 1;
    color: var(--accent);
}

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

@media (max-width: 768px) {
    .prev, .next { font-size: 40px; padding: 10px; }
    .prev { left: 10px; }
    .next { right: 10px; }
}


/* Floor Plans */
.floor-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 30px;
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    font-family: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.floor-content {
    min-height: 500px;
}

.floor-pane {
    display: none;
    animation: fadeIn 0.8s ease-out;
}

.floor-pane.active {
    display: block;
}

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

.floor-info-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.floor-img {
    position: relative;
    cursor: pointer;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.floor-img img {
    width: 100%;
    height: auto;
}

.img-overlay {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(255,255,255,0.9);
    padding: 10px 20px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0,0,0,0.05);
}

.floor-details h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--accent);
    display: inline-block;
    padding-bottom: 10px;
}

.area-list {
    margin-bottom: 30px;
}

.area-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
}

.area-list li span:last-child {
    font-weight: 600;
    color: var(--primary);
}

.floor-total {
    display: flex;
    gap: 30px;
    background: var(--secondary);
    padding: 25px;
    border-radius: 4px;
}

.total-item {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.total-item strong {
    display: block;
    font-size: 1.4rem;
    color: var(--primary);
    margin-top: 5px;
}

/* Area Table */
.area-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.area-table th, .area-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.area-table th {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 500;
}

.area-table tr.table-total {
    background: var(--secondary);
    font-weight: 600;
}

.area-table tr.table-total td {
    border-bottom: none;
    color: var(--primary);
}

/* Responsive adjustments for floor plans */
@media (max-width: 992px) {
    .floor-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .hero h1 { font-size: 3rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-card { grid-template-columns: 1fr; }
    nav { padding: 20px; }
    .hero-logo-img { width: 200px; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 0.9rem; }
    .gallery-grid { grid-template-columns: 1fr; }
}

/* Footer */
.footer {
    background: #111;
    color: white;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-logo {
    font-weight: 500;
    letter-spacing: 0.5em;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: white;
}

.footer-desc {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: white;
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.footer-col h3 {
    font-size: 1rem;
    margin-bottom: 40px;
    position: relative;
    letter-spacing: 0.2em;
    font-weight: 400;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 30px;
    height: 1px;
    background: var(--accent);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 10px;
}

.footer-col p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-col p i {
    color: var(--accent);
}

.footer-bottom {
    background: #000;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.1em;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-social {
        justify-content: center;
    }
    .footer-col p {
        justify-content: center;
    }
}

/* Form Status */
.form-status {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: opacity 0.5s ease;
}

.form-status.success {
    color: #2e7d32;
    font-weight: 500;
}

.form-status.error {
    color: #d32f2f;
}

/* Fixed Floating Actions */
.fixed-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.whatsapp-btn, .scroll-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.whatsapp-btn {
    background-color: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: translateY(-5px);
}

.scroll-btn {
    background-color: white;
    color: var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    .fixed-actions {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-btn, .scroll-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
}

nav.scrolled .menu-toggle {
    color: var(--primary);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.2rem;
        color: white !important;
        text-shadow: none;
    }
    
    /* Override scrolled state colors inside mobile menu */
    nav.scrolled .nav-links li a {
        color: white !important;
    }

    nav.scrolled .lang-link {
        color: white !important;
        border-color: rgba(255,255,255,0.3) !important;
    }

    /* Close icon change when active */
    .menu-toggle.active i::before {
        content: "\f00d"; /* FontAwesome X icon */
    }
}

/* FAQ Section */
.faq {
    background: var(--bg-light);
    padding-bottom: 120px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: var(--primary);
    text-transform: none;
    font-weight: 500;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafaf8;
}

.faq-answer p {
    padding: 0 30px 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust based on content */
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Language Switcher */
.lang-switch {
    margin-left: 20px;
}

.lang-link {
    padding: 5px 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    transition: var(--transition);
}

nav.scrolled .lang-link {
    border-color: rgba(0,0,0,0.1);
    color: var(--primary) !important;
}

.lang-link:hover {
    background: var(--accent);
    border-color: var(--accent) !important;
    color: white !important;
}

@media (max-width: 992px) {
    .lang-switch {
        margin-left: 0;
        margin-top: 20px;
    }
    .lang-link {
        font-size: 1rem !important;
        padding: 10px 30px;
    }
}
