/* =========================================
   LUMINA PROPERTIES - MASTER STYLESHEET
   Editorial Luxury Design System
   ========================================= */

:root {
    /* Color Palette - Champagne & Charcoal */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9F9F7;
    --bg-dark: #111111;
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-muted: #888888;
    --text-light: #FFFFFF;
    --accent: #C5A059;
    --accent-hover: #A8863E;
    --accent-light: rgba(197, 160, 89, 0.1);
    --border-light: #E5E5E5;
    --status-success: #059669;
    --status-error: #DC2626;
    --status-warning: #D97706;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-align: center;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--bg-dark);
    color: var(--text-light);
}

.btn-primary:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-accent {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* =========================================
   FORM ELEMENTS
   ========================================= */
.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 20px;
}

/* =========================================
   TYPOGRAPHY & SECTIONS
   ========================================= */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* =========================================
   STATUS BADGES
   ========================================= */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.success { background: rgba(16, 185, 129, 0.1); color: var(--status-success); }
.status-badge.warning { background: rgba(245, 158, 11, 0.1); color: var(--status-warning); }
.status-badge.error { background: rgba(239, 68, 68, 0.1); color: var(--status-error); }
.status-badge.info { background: rgba(59, 130, 246, 0.1); color: #2563EB; }

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.navbar.scrolled .logo-text {
    color: var(--text-primary);
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
    transition: color var(--transition-fast);
}

.navbar.scrolled .logo-sub {
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    transition: color var(--transition-fast);
}

.navbar.scrolled .nav-link {
    color: var(--text-primary);
}

.nav-link:hover {
    color: var(--accent);
}

.nav-auth-btn {
    padding: 12px 24px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    margin: 5px 0;
    transition: all var(--transition-fast);
}

.navbar.scrolled .hamburger span {
    background: var(--text-primary);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-top: 20px;
    max-width: 400px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin-left: 20px;
}

.footer-legal a:hover {
    color: var(--accent);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    /* Premium Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 32px 32px;
        gap: 0;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        color: var(--text-primary);
        padding: 18px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--border-light);
        width: 100%;
    }
    
    .nav-link:hover {
        color: var(--accent);
    }
    
    .nav-auth-btn {
        margin-top: 24px;
        width: 100%;
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    .nav-auth-btn.mobile-signin {
        width: 100%;
        margin-top: 24px;
    }
    
    /* Hamburger Button - Premium Style */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: var(--bg-dark);
        border-radius: 8px;
        padding: 0;
        gap: 0;
        position: relative;
        z-index: 1001;
    }
    
    .hamburger span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--text-light);
        margin: 0;
        position: absolute;
        transition: all 0.3s ease;
    }
    
    .hamburger span:nth-child(1) {
        top: 14px;
    }
    
    .hamburger span:nth-child(2) {
        top: 21px;
    }
    
    .hamburger span:nth-child(3) {
        top: 28px;
    }
    
    /* Hamburger Animation to X */
    .hamburger.active span:nth-child(1) {
        top: 21px;
        transform: rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        top: 21px;
        transform: rotate(-45deg);
    }
    
    .navbar.scrolled .hamburger {
        background: var(--bg-dark);
    }
    
    .navbar.scrolled .hamburger span {
        background: var(--text-light);
    }
    
    /* Mobile Menu Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal a {
        margin-left: 0;
        margin: 0 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        padding: 16px;
    }
}

/* =========================================
   PREMIUM CHAT WIDGET
   ========================================= */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    font-family: var(--font-body);
}

.chat-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-dark);
    color: var(--text-light);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: none;
}

.chat-toggle:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.chat-window {
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 320px;
    height: 420px;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(10px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.chat-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: var(--bg-dark);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-agent {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.chat-agent h4 {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.chat-status {
    color: #4ADE80;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    cursor: pointer;
}

.chat-close:hover { color: var(--text-light); }

.chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    display: flex;
    gap: 8px;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

.bot-message { align-self: flex-start; }
.user-message { align-self: flex-end; flex-direction: row-reverse; }

.message-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.bot-message .message-avatar { background: var(--accent); color: var(--bg-dark); font-family: var(--font-heading); }
.user-message .message-avatar { background: var(--bg-dark); color: var(--text-light); }

.message-content {
    background: var(--bg-primary);
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid var(--border-light);
}

.user-message .message-content {
    background: var(--bg-dark);
    color: var(--text-light);
    border: none;
}

.message-content p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0 0 4px 0;
}

.message-time {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.chat-quick-replies {
    padding: 10px 16px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-top: 1px solid var(--border-light);
    background: var(--bg-primary);
}

.quick-reply {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.quick-reply:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}

.chat-footer {
    padding: 12px 16px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 8px;
}

.chat-footer .form-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    border-radius: 50px;
    font-size: 0.85rem;
}

.chat-footer .form-input:focus {
    outline: none;
    border-color: var(--accent);
}

.chat-send {
    width: 36px;
    height: 36px;
    background: var(--bg-dark);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.chat-send:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

@media (max-width: 768px) {
    .chat-window {
        width: calc(100vw - 48px);
        height: calc(100vh - 120px);
        bottom: 64px;
        right: -12px;
    }
}