:root {
    /* Dynamics set in functions.php, defaults here */
    --gold: #D4AF37;
    --bg-dark: #070C1A; 
    --text-light: #F5F7FA;
    --text-muted: #A0ABC0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: #FFFFFF; font-weight: 700; margin-bottom: 15px;}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* ======== PREMIUM GLASSMORPHISM ======== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-card { padding: 0; overflow: hidden; }
.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
}

/* ======== HEADER & NAV ======== */
.site-header {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    padding: 20px 0; transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(7, 12, 26, 0.9);
    backdrop-filter: blur(15px);
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.text-logo { font-size: 24px; font-weight: bold; color: white; text-decoration: none; font-family: var(--font-heading);}
.main-nav ul { display: flex; list-style: none; gap: 30px; margin: 0; padding: 0; }
.main-nav a { color: var(--text-light); text-decoration: none; font-weight: 500; font-size: 15px; transition: 0.3s; }
.main-nav a:hover { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.contact-text { color: white; text-decoration: none; font-weight: 600; font-size: 15px;}

/* ======== BUTTONS ======== */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), #FFF2C8);
    color: #000; /* High contrast text on gold */
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4); }

/* ======== FORM CONTROLS (Contrast Fixed) ======== */
input, select, textarea {
    width: 100%; padding: 14px 18px; margin-bottom: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #FFF; /* White text for input */
    font-family: var(--font-body);
    font-size: 16px;
    transition: 0.3s;
    box-sizing: border-box;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.5); }
input:focus, select:focus, textarea:focus { 
    outline: none; border-color: var(--gold); 
    background: rgba(255,255,255,0.1); 
}
/* Select options text must be dark so it is visible in native dropdowns */
select option { color: #000; background: #fff; } 

/* ======== POPUP LEAD FORM ======== */
.lead-popup {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); z-index: 2000;
    justify-content: center; align-items: center; opacity: 0; transition: 0.3s;
}
.lead-popup.active { display: flex; opacity: 1; }
.popup-inner { padding: 50px; max-width: 450px; width: 90%; position: relative; }
.close-popup { position: absolute; right: 25px; top: 20px; color: #fff; font-size: 30px; cursor: pointer; transition: 0.3s;}
.close-popup:hover { color: var(--gold); }

/* ======== GRID & ANIMATIONS ======== */
.property-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.property-image img { width: 100%; height: 280px; object-fit: cover; border-bottom: 1px solid var(--glass-border); }
.property-content { padding: 30px; }

/* Smooth Reveal on Scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .main-nav { display: none; } /* Standard requires JS toggle, kept hidden for brevity, use customizer menu */
    h1 { font-size: 2.5rem !important; }
}