/* ==========================================================================
   HOME ZONE REALTY - MASTER GLOBAL CSS (ULTRA-PREMIUM LIGHT THEME)
   Theme: Modern Luxury, Glassmorphism, Light & Airy
   Compatibility: Cross-Browser (Chrome, Safari/iOS, Firefox, Edge)
   ========================================================================== */

/* --- 1. PREMIUM TYPOGRAPHY --- */
/* Cormorant Garamond for elegant luxury headings, Inter for modern readability */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* --- 2. GLOBAL VARIABLES --- */
:root {
    /* Brand Colors - Light Theme  */
    --hz-gold-light: #C9A84C;       
    --hz-gold-dark: #B8960C;        
    --hz-bg-main: #FAFAF7;          /* Soft Cream/Off-White Base */
    --hz-bg-alt: #FFFFFF;           /* Pure White for Cards */
    --hz-text-dark: #1A1A1A;        /* Dark Charcoal for readable text */
    --hz-text-muted: #666666;       /* Sophisticated grey for subtitles */
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Utilities */
    --section-pad-y: clamp(60px, 8vw, 100px); /* More breathing room */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius-sm: 8px;
    --radius-md: 16px; /* Rounder corners for modern feel */
    --radius-lg: 24px;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-gold: 0 10px 30px rgba(201, 168, 76, 0.2);
}

/* --- 3. CSS RESET & NORMALIZE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; 
}

body {
    font-family: var(--font-body);
    background-color: var(--hz-bg-main);
    color: var(--hz-text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- 4. TYPOGRAPHY (Fluid Scaling) --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--hz-text-dark);
    line-height: 1.15;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(3rem, 6vw, 5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

p {
    margin-bottom: 1.2rem;
    color: var(--hz-text-muted);
    font-weight: 300;
    font-size: 1.05rem;
}

a {
    color: var(--hz-gold-dark);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--hz-gold-light);
}

.text-gold {
    color: var(--hz-gold-dark);
}

/* --- 5. LAYOUT & GLASSMORPHISM UTILITIES --- */
.container {
    width: 100%;
    max-width: 1280px; /* Slightly wider for modern screens */
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-pad-y) 0;
}

/* The Core Glass Effect */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); /* Safari Support */
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-md);
}

.bg-white { background-color: var(--hz-bg-alt); }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* --- 6. UI COMPONENTS --- */
/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px; /* Pill shape is very trendy */
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    text-align: center;
    -webkit-appearance: none; 
    appearance: none;
}

.btn-gold {
    background: linear-gradient(135deg, var(--hz-gold-light) 0%, var(--hz-gold-dark) 100%);
    color: #FFFFFF !important;
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--hz-gold-dark) 0%, var(--hz-gold-light) 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(201, 168, 76, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--hz-text-dark) !important;
    border-color: var(--hz-text-dark);
}

.btn-outline:hover {
    background: var(--hz-text-dark);
    color: #FFFFFF !important;
}

/* Premium Light Forms */
input, select, textarea {
    width: 100%;
    padding: 16px 20px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    color: var(--hz-text-dark);
    font-family: var(--font-body);
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    font-size: 16px; 
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--hz-gold-light);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
    background: #FFFFFF;
}

/* --- 7. GLASS PROJECT CARDS --- */
.project-card {
    background-color: var(--hz-bg-alt);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid #EEEEEE;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.project-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio for elegance */
    overflow: hidden;
}

.project-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-img-wrap img {
    transform: scale(1.05); 
}

.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--hz-text-dark);
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.project-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
}

.project-price {
    font-size: 1.35rem;
    color: var(--hz-gold-dark);
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 25px;
    font-family: var(--font-heading);
}

/* --- 8. GLASS HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.header-scrolled {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 0 !important;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Ensure text is dark on scrolled header for light theme */
.header-scrolled .nav-links a {
    color: var(--hz-text-dark);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px; 
    width: auto;
    transition: var(--transition-smooth);
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: #FFFFFF; /* White on transparent hero */
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--hz-gold-light);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--hz-gold-dark);
}

.mobile-toggle svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* --- 9. DEVELOPER & PARTNERS SECTION --- */
.developer-showcase {
    padding: 60px 0;
    background: #FFFFFF;
    border-top: 1px solid #EEEEEE;
    border-bottom: 1px solid #EEEEEE;
}

.developer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    opacity: 0.7;
}

.developer-grid img {
    max-height: 60px;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.developer-grid img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* --- 10. ANIMATIONS & ACCENTS --- */
.diamond-bullet {
    display: flex;
    align-items: center;
}

.diamond-bullet::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--hz-gold-light);
    transform: rotate(45deg);
    margin-right: 12px;
    flex-shrink: 0;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- 11. RESPONSIVE UTILITIES (Including User Overrides) --- */
@media screen and (max-width: 992px) {
    .hidden-mobile { display: none !important; }
    .mobile-only { display: block !important; }
    
    .nav-links {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 30px;
        text-align: center;
        border-top: 1px solid #EEEEEE;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

    .nav-links a {
        color: var(--hz-text-dark) !important;
        font-size: 1.1rem;
        padding: 10px 0;
        display: block;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block; 
    }
}

@media screen and (max-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    }
    
    .btn {
        width: 100%; 
        margin-bottom: 12px;
    }
}

/* --- FLOATING WHATSAPP BUTTON --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; 
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #1EBE5D;
    color: #FFF;
    box-shadow: 0px 15px 30px rgba(37, 211, 102, 0.4);
}

@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 25px;
        height: 25px;
    }
}