/* ==========================================
   1. DESIGN SYSTEM & ROOT CONSTANTS
   ========================================== */
:root {
    /* Color Palette */
    --brand-primary: #121619;
    --brand-accent: #2A3238;
    --surface-light: #FAFAFA;
    --surface-white: #FFFFFF;
    --surface-dark: #0F1214;
    
    /* Text Colors */
    --text-dark: #0F1214;
    --text-mid: #4A5560;
    --text-light: #94A3B8;
    --text-white: #FFFFFF;
    
    /* Functional Colors */
    --whatsapp-green: #25D366;
    --whatsapp-hover: #20BA56;
    --border-color: #E2E8F0;
    --border-focus: #94A3B8;
    
    /* Typography & Spacing */
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1280px;
    --radius-lg: 16px;
    --radius-md: 8px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   2. GLOBAL RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background-color: var(--surface-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   3. LAYOUT UTILITIES
   ========================================== */
.section-padding {
    padding: 120px 0;
}

.section-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-meta {
    max-width: 600px;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-mid);
    margin-bottom: 12px;
}

.section-meta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-meta.inverted h2 {
    color: var(--text-white);
}

.section-meta.inverted .section-tag {
    color: var(--text-light);
}

.bg-dark-theme {
    background-color: var(--surface-dark);
    color: var(--text-white);
}

/* ==========================================
   4. NAVIGATION HEADER
   ========================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-container {
    width: 90%;
    max-width: var(--max-width);
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-mid);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-toggle {
    display: none;
}

/* ==========================================
   5. HERO ARCHITECTURE
   ========================================== */
.hero-section {
    padding-top: 140px;
    background-color: var(--surface-white);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: calc(85vh - 80px);
    align-items: center;
}

.hero-content {
    padding: 0 10% 0 5%;
}

.badge-pill {
    display: inline-block;
    background-color: rgba(15, 18, 20, 0.05);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-mid);
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-actions-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-viewport {
    position: relative;
    height: 100%;
    min-height: 500px;
    background-color: #E2E8F0;
}

.hero-parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay-card {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background-color: var(--surface-white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-mid);
    font-weight: 500;
}

/* ==========================================
   6. INTERACTIVE ROOM CARDS
   ========================================== */
.spaces-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.interactive-panel {
    background-color: var(--surface-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.interactive-panel:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 18, 20, 0.08);
}

.panel-media {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.panel-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.interactive-panel:hover .panel-media img {
    transform: scale(1.04);
}

.panel-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.panel-details {
    padding: 32px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.panel-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.price-indicator {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    white-space: nowrap;
    background-color: var(--surface-light);
    padding: 4px 12px;
    border-radius: var(--radius-md);
}

.panel-details p {
    color: var(--text-mid);
    margin-bottom: 24px;
}

.panel-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.panel-features-list li {
    font-size: 0.95rem;
    color: var(--text-mid);
}

/* ==========================================
   7. LOCATION TILES
   ========================================== */
.location-grid-clean {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.location-card-simple {
    background-color: var(--brand-accent);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.location-card-simple:hover {
    background-color: #333D44;
    transform: translateY(-4px);
}

.location-card-info h4 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-white);
}

.location-card-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================
   8. MEDIA EXPERIENCES (MOSAIC GALLERY)
   ========================================== */
.custom-gallery-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 240px 240px;
    gap: 20px;
}

.mosaic-cell {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    background-color: #E2E8F0;
}

.mosaic-cell.cell-hero {
    grid-row: span 2;
}

.mosaic-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mosaic-cell:hover img {
    transform: scale(1.03);
}

.mosaic-hover-ui {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 18, 20, 0.6) 0%, rgba(15, 18, 20, 0) 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 1;
}

.mosaic-hover-ui span {
    color: var(--text-white);
    font-weight: 600;
    font-size: 1.1rem;
}

/* ==========================================
   9. BRAND COMPONENT UI BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--brand-accent);
}

.btn-secondary {
    background-color: var(--surface-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--surface-white);
    border-color: var(--border-focus);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: var(--text-white);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
}

.btn-link {
    color: var(--text-dark);
    background: none;
    padding: 8px 0;
    font-weight: 700;
}

.btn-link:hover {
    opacity: 0.8;
}

/* ==========================================
   10. SYSTEM APPLICATION FORM STYLE MODIFICATIONS
   ========================================== */
.contact-canvas-section {
    background-color: var(--surface-white);
    border-top: 1px solid var(--border-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: start;
}

.contact-pitch h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.contact-pitch p {
    color: var(--text-mid);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-tag {
    background-color: var(--surface-light);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.contact-form-panel {
    background-color: var(--surface-light);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

#leadForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-mid);
}

.form-group input,
.form-group select {
    font-family: var(--font-main);
    font-size: 0.95rem;
    padding: 14px 16px;
    background-color: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Restore dropdown down arrow cleanly */
.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5560' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.1);
}

.form-group select:invalid,
.form-group select option[value=""] {
    color: #94A3B8;
}

.form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 700;
    margin: 8px 0;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.form-divider span {
    padding: 0 12px;
}

/* ==========================================
   11. FOOTER LAYOUT
   ========================================== */
.main-footer {
    background-color: var(--surface-dark);
    color: var(--text-white);
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-flex-deck {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand-block {
    max-width: 320px;
}

.footer-brand-block p {
    color: var(--text-light);
    margin-top: 20px;
    font-size: 0.95rem;
}

.footer-links-wrapper {
    display: flex;
    gap: 80px;
}

.link-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-col h5 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-white);
    margin-bottom: 8px;
}

.link-col a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.link-col a:hover {
    color: var(--text-white);
}

.footer-bottom-bar {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ==========================================
   12. EXPERIENCE MODAL ENGINE (LIGHTBOX UI)
   ========================================== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 18, 20, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox-overlay.active {
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

/* ==========================================
   13. ADAPTIVE MEDIA QUERY LAYER (RESPONSIVE)
   ========================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .hero-content {
        padding: 40px 5%;
    }
    
    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions-group {
        justify-content: center;
    }
    
    .hero-viewport {
        min-height: 400px;
    }
    
    .hero-overlay-card {
        left: 5%;
        bottom: 20px;
    }
    
    .spaces-showcase-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .location-grid-clean {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
    
    .nav-menu {
        display: none; /* Can expand to custom mobile drawer later */
    }
    
    .custom-gallery-mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 200px);
    }
    
    .mosaic-cell.cell-hero {
        grid-row: span 1;
    }
    
    .footer-flex-deck {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links-wrapper {
        gap: 40px;
        flex-wrap: wrap;
    }
    
    .form-row-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}