/* CSS VARIABLES: Navy Corporate + Italian Luxury Gold */
:root {
    --navy: #0B162C;
    --navy-light: #162447;
    --gold: #D4AF37;
    --primary: #0066FF;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --text-main: #1F2937;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* DARK MODE OVERRIDES */
body.dark-mode {
    --bg-white: #050B14;
    --bg-light: #0A1120;
    --text-main: #F8FAFC;
    --text-muted: #9CA3AF;
    --border: #1F2937;
    --navy: #030712;
}

/* RESET & TYPOGRAPHY */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden; /* ZERO horizontal overflow */
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, .logo { font-family: 'Playfair Display', serif; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 50px; }
.section { padding: 120px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

/* HEADER & NAVBAR */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: transparent; padding: 25px 0; transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
header.scrolled { background: var(--navy); padding: 15px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1600px; margin: 0 auto; padding: 0 50px; }
.logo { color: #fff; font-size: 1.6rem; text-decoration: none; font-weight: 800; letter-spacing: -0.5px; }
.logo span { font-family: 'Inter', sans-serif; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 500; display: block; line-height: 1; margin-top: 3px; }

.desktop-nav { display: flex; gap: 35px; }
.desktop-nav a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500; transition: var(--transition); }
.desktop-nav a:hover { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.icon-btn { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; transition: var(--transition); }
.icon-btn:hover { color: var(--gold); }

.login-btn { border: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 10px 24px; text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition); border-radius: 2px; }
.login-btn:hover { border-color: var(--gold); color: var(--gold); }

.hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* HERO SECTION */
.hero {
    height: 95vh;
    background: linear-gradient(rgba(11, 22, 44, 0.8), rgba(11, 22, 44, 0.6)), url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?q=80&w=2053') center/cover no-repeat;
    display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 0 20px;
}
.hero-content { max-width: 1000px; margin-top: -60px; }
.hero-tag { color: var(--gold); text-transform: uppercase; letter-spacing: 4px; font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 25px; }
.hero h1 { font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 1.05; margin-bottom: 30px; letter-spacing: -2px; }
.hero p { font-size: 1.3rem; font-weight: 300; opacity: 0.9; max-width: 800px; margin: 0 auto; line-height: 1.8; }

/* AIRBNB STYLE SEARCH BAR */
.search-container { display: flex; justify-content: center; margin-top: -55px; position: relative; z-index: 10; padding: 0 20px; }
.search-bar { 
    background: var(--bg-white); border-radius: 100px; padding: 10px 10px 10px 40px; 
    display: flex; align-items: center; box-shadow: 0 25px 50px rgba(0,0,0,0.1); 
    max-width: 1000px; width: 100%; border: 1px solid var(--border);
}
.search-block { display: flex; flex-direction: column; flex: 1; padding: 5px 15px; cursor: text; }
.search-block label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-main); margin-bottom: 2px; letter-spacing: 0.5px; }
.search-block input, .search-block select { border: none; outline: none; background: transparent; color: var(--text-muted); font-size: 1rem; font-family: 'Inter', sans-serif; width: 100%; appearance: none; cursor: pointer; }
.search-divider { width: 1px; height: 45px; background-color: var(--border); margin: 0 10px; }
.search-btn { background: var(--primary); color: #fff; border: none; padding: 16px 40px; border-radius: 100px; font-weight: 600; font-size: 1.05rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 10px; }
.search-btn:hover { background: var(--navy); }

/* GEOMETRIC LAYOUTS (GREYSTAR STYLE) */
.section-subtitle { color: var(--gold); text-transform: uppercase; letter-spacing: 3px; font-size: 0.85rem; margin-bottom: 15px; display: block; font-family: 'Inter', sans-serif; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.split-layout.reverse { grid-template-columns: 1fr 1fr; direction: rtl; }
.split-layout.reverse > * { direction: ltr; }
.split-image { background-size: cover; background-position: center; min-height: 400px; }
.split-text { padding: 100px 80px; display: flex; flex-direction: column; justify-content: center; }

/* THE 60% OWNER BOX */
.dark-box { background: var(--navy); color: #fff; }
.dark-box h2 { font-size: 3.2rem; margin-bottom: 30px; line-height: 1.1; }
.dark-box p { font-size: 1.15rem; opacity: 0.8; margin-bottom: 40px; font-weight: 300; }
.feature-list { list-style: none; margin-bottom: 40px; }
.feature-list li { margin-bottom: 20px; display: flex; align-items: center; gap: 15px; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.feature-list i { color: var(--gold); font-size: 1.3rem; }
.btn-gold { display: inline-block; border: 1px solid var(--gold); color: var(--gold); padding: 15px 35px; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; align-self: flex-start; transition: var(--transition); }
.btn-gold:hover { background: var(--gold); color: var(--navy); font-weight: 600; }

/* PORTFOLIO GRID */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; }
.specialty-card { height: 450px; background-size: cover; background-position: center; position: relative; overflow: hidden; cursor: pointer; }
.card-content { position: absolute; bottom: 0; width: 100%; padding: 40px; background: linear-gradient(transparent, rgba(11, 22, 44, 0.95)); transition: var(--transition); }
.specialty-card h3 { color: #fff; font-size: 1.8rem; transform: translateY(20px); transition: var(--transition); }
.specialty-card:hover .card-content { height: 100%; background: rgba(11, 22, 44, 0.85); display: flex; align-items: center; justify-content: center; text-align: center; }
.specialty-card:hover h3 { transform: translateY(0); color: var(--gold); }

/* TENANTS & VENDORS (30% / 10%) */
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.white-box { background: var(--bg-white); padding: 80px 60px; border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; transition: var(--transition); }
.white-box:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.05); transform: translateY(-5px); border-color: var(--primary); }
.icon-large { font-size: 3rem; color: var(--primary); margin-bottom: 30px; }
.white-box h2 { font-size: 2.5rem; margin-bottom: 20px; color: var(--text-main); }
.white-box p { color: var(--text-muted); margin-bottom: 40px; font-size: 1.1rem; }
.link-text { color: var(--primary); font-weight: 600; text-decoration: none; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; transition: var(--transition); }
.link-text:hover { gap: 15px; }

/* GLOBAL & STATS */
.global-section { border-top: 1px solid var(--border); }
.stats-container { display: flex; gap: 50px; margin-top: 40px; }
.stat h3 { font-size: 3rem; color: var(--primary); font-family: 'Playfair Display', serif; line-height: 1; margin-bottom: 10px; }
.stat span { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; }
.map-bg { background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/8/80/World_map_-_low_resolution.svg/1200px-World_map_-_low_resolution.svg.png'); background-size: contain; background-repeat: no-repeat; opacity: 0.1; }
body.dark-mode .map-bg { filter: invert(1); opacity: 0.05; }

/* FOOTER */
footer { background: var(--navy); color: #fff; padding: 80px 0 40px; text-align: center; }

/* SLEEK COOKIE PANEL */
.cookie-panel {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: 95%; max-width: 850px; background: rgba(11, 22, 44, 0.98);
    backdrop-filter: blur(15px); border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 8px;
    padding: 20px 30px; color: #fff; z-index: 10000; box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    display: none; flex-direction: column; gap: 15px;
}
.cookie-panel.active { display: flex; animation: slideUp 0.5s ease; }
@keyframes slideUp { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cookie-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-header p { font-size: 0.9rem; margin: 0; flex: 1; min-width: 250px; color: rgba(255,255,255,0.8); }
.cookie-buttons { display: flex; gap: 10px; }
.btn-outline-white { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-size: 0.85rem; transition: var(--transition); }
.btn-outline-white:hover { border-color: #fff; }
.btn-gold-sm { background: var(--gold); border: 1px solid var(--gold); color: var(--navy); font-weight: 700; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-size: 0.85rem; transition: var(--transition); }
.btn-gold-sm:hover { background: transparent; color: var(--gold); }
.cookie-options { display: none; flex-direction: column; gap: 15px; margin-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.cookie-options.show { display: flex; }
.cookie-toggle { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: rgba(255,255,255,0.9); }
.cookie-toggle input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; }

/* MOBILE RESPONSIVE (Strictly No Overflow) */
.mobile-menu { position: fixed; top: 0; right: -100%; width: 100%; max-width: 400px; height: 100vh; background: var(--bg-white); z-index: 2000; padding: 40px; transition: var(--transition); box-shadow: -10px 0 50px rgba(0,0,0,0.1); overflow-y: auto; }
.mobile-menu.active { right: 0; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.mobile-links { display: flex; flex-direction: column; gap: 25px; }
.mobile-links a { text-decoration: none; color: var(--text-main); font-size: 1.3rem; font-family: 'Playfair Display', serif; transition: var(--transition); }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 1999; opacity: 0; visibility: hidden; transition: var(--transition); }
.overlay.active { opacity: 1; visibility: visible; }

@media (max-width: 1024px) {
    .desktop-nav, .nav-actions .login-btn { display: none; }
    .hamburger { display: block; color: #fff; }
    header { background: var(--navy); padding: 15px 0; }
    
    .search-bar { flex-direction: column; border-radius: 20px; padding: 20px; }
    .search-block { width: 100%; padding: 15px 5px; }
    .search-divider { width: 100%; height: 1px; margin: 5px 0; }
    .search-btn { width: 100%; justify-content: center; margin-top: 15px; border-radius: 10px; }

    .split-layout, .split-layout.reverse { grid-template-columns: 1fr; }
    .split-text { padding: 60px 30px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 25px; }
    .nav-container { padding: 0 25px; }
    .hero h1 { font-size: 3.2rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .stats-container { flex-direction: column; gap: 20px; }
    .cookie-header { flex-direction: column; text-align: center; }
}
