/* ==========================================================================
   PURPLE HOLIDAY HOMES 2026 - MASTER STYLESHEET
   ========================================================================== */

:root {
    /* Brand Palette */
    --ink: #0F0A1E;
    --ink-light: #1A142D;
    --purple-royal: #4A1A7A;
    --amethyst: #9333EA;
    --gold: #C9A84C;
    --white: #FFFFFF;
    --border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans: 'DM Sans', Arial, sans-serif;
}

/* Base Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background-color: var(--ink); /* Set global to Ink for the premium feel */
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: opacity 0.2s ease; }
a:hover { opacity: 0.8; }

/* --- Navigation & Footer --- */
.global-nav {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 20px 60px; 
    border-bottom: 1px solid var(--border);
    background: rgba(15, 10, 30, 0.9); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 100;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a { 
    color: var(--white); 
    font-weight: 500; 
    opacity: 0.8; 
    font-size: 14px;
}
.nav-links a:hover { opacity: 1; color: var(--amethyst); }

.global-footer {
    padding: 80px 60px 40px; 
    border-top: 1px solid var(--border);
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1fr 1fr; 
    gap: 40px;
    background: var(--ink);
}

@media (max-width: 768px) {
    .global-nav { padding: 15px 20px; }
    .nav-links { display: none; } /* Mobile menu to be implemented */
    .global-footer { grid-template-columns: 1fr; padding: 40px 20px; }
}

/* --- Reusable UI Components --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border); 
    border-radius: 32px; 
    padding: 40px;
}

.trust-badge {
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    background: rgba(201, 168, 76, 0.1); 
    border: 1px solid var(--gold);
    color: var(--gold); 
    padding: 6px 16px; 
    border-radius: 100px;
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--white); 
    color: var(--ink);
    padding: 16px 32px; 
    border-radius: 12px; 
    font-weight: 700;
    text-decoration: none; 
    display: inline-block; 
    cursor: pointer; 
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    opacity: 1;
}

.btn-secondary {
    background: transparent; 
    color: var(--white);
    padding: 16px 32px; 
    border-radius: 12px; 
    font-weight: 700;
    border: 1px solid var(--white);
    display: inline-block; 
    cursor: pointer; 
    transition: all 0.2s ease;
}
.btn-secondary:hover { 
    background: rgba(255,255,255,0.1);
    opacity: 1;
}

/* --- Calculator Form Styles --- */
.calc-input {
    width: 100%; 
    padding: 16px; 
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid var(--border);
    color: var(--white); 
    border-radius: 12px; 
    font-family: var(--font-sans);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
}
.calc-input:focus { border-color: var(--amethyst); }
.calc-input option { background: var(--ink); color: var(--white); }

#calc-result { 
    display: none; 
    margin-top: 20px; 
    padding-top: 20px; 
    border-top: 1px solid var(--border); 
}

/* --- Utility Classes --- */
.text-amethyst { color: var(--amethyst); }
.text-gold { color: var(--gold); }
.bg-ink-light { background-color: var(--ink-light); }
.container { max-width: 1400px; margin: 0 auto; padding: 0 60px; }

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .glass-panel { padding: 24px; }
}

/* ==========================================================================
   PHASE 3: UNIFIED FUNNEL LOGIC & WHATSAPP BRIDGE (JavaScript)
   Note: This JS code should ideally be in assets/js/main.js, but included here
   for Phase 3 implementation as per playbook instructions.
   ========================================================================== */

/* --- Mobile Responsiveness --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ink);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 80px 20px 20px;
    height: 100%;
    overflow-y: auto;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .global-nav {
        padding: 20px;
    }
    
    .global-footer {
        padding: 40px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    h1 { font-size: 36px !important; }
    h2 { font-size: 28px !important; }
    
    .glass-panel {
        padding: 20px !important;
    }
}
