/**
 * KW Sell Home V3 - Premium Real Estate Tech Theme
 * Colors: Primary Navy #1B365D, Deep Navy #0F2440, Gold #C5A572, Light Gold #D4B896
 * Warm White #FAFAF8, Light Gray #F5F5F3, Text #2D3748, Border #E2E8F0
 */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --primary-navy: #1B365D;
    --deep-navy: #0F2440;
    --gold: #C5A572;
    --light-gold: #D4B896;
    --warm-white: #FAFAF8;
    --light-gray: #F5F5F3;
    --text-color: #2D3748;
    --border-color: #E2E8F0;
    --success: #28a745;
    --error: #dc3545;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 25px 50px rgba(0,0,0,0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s ease;
    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-inter);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection Color */
::selection {
    background: var(--gold);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-navy);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--deep-navy);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-navy);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.25rem); }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(197, 165, 114, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d4b882 0%, #C5A572 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(197, 165, 114, 0.4);
    color: white;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
}

.btn-secondary:hover {
    background: var(--primary-navy);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-white {
    background: white;
    color: var(--primary-navy);
}

.btn-white:hover {
    background: var(--warm-white);
    transform: translateY(-2px);
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo:hover {
    color: var(--primary-navy);
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-navy), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.primary-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.primary-menu a:hover {
    color: var(--gold);
}

.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--light-gold));
    transition: width 0.3s ease;
}

.primary-menu a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.menu-item-has-children {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 8px 0;
    list-style: none;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.sub-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.sub-menu li {
    padding: 0;
}

.sub-menu a {
    display: block;
    padding: 12px 20px;
    font-weight: 500;
}

.sub-menu a:hover {
    background: var(--warm-white);
    color: var(--gold);
}

.menu-item-has-children:hover .sub-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-navy);
    font-weight: 600;
}

.phone-icon {
    font-size: 1.25rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-toggle.active {
    position: fixed;
    right: 16px;
    top: 16px;
    z-index: 1002;
}

.mobile-menu-toggle.active span {
    background: #fff;
}

html, body {
    overflow-x: hidden;
}

/* Mobile Navigation Drawer */
.nav-menu {
    display: block;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--primary-navy, #1B365D);
        padding: 80px 30px 40px;
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.3s ease, visibility 0s 0.3s;
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
        overflow-y: auto;
        visibility: hidden;
        clip: rect(0, 0, 0, 0);
    }
    
    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
        clip: auto;
        transition: transform 0.3s ease, visibility 0s 0s;
    }
    
    .nav-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
    
    .nav-menu-overlay.active {
        display: block;
    }
    
    .nav-menu .primary-menu a {
        color: #fff;
        font-size: 18px;
        padding: 14px 0;
        display: block;
    }
    
    .nav-menu .primary-menu a:hover {
        color: var(--accent-gold, #C5A572);
    }
    
    .nav-menu .sub-menu {
        background: rgba(255,255,255,0.1);
        border-radius: 8px;
        padding: 8px 16px;
        margin: 4px 0 8px;
    }
    
    .nav-menu .sub-menu a {
        font-size: 16px;
        padding: 10px 0;
        color: rgba(255,255,255,0.85);
    }
    
    .primary-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .primary-menu li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .primary-menu a {
        display: block;
        padding: 20px 0;
        font-size: 1.125rem;
    }
    
    .sub-menu {
        position: static;
        box-shadow: none;
        display: block;
        opacity: 1;
        transform: none;
        padding-left: 20px;
        margin-top: 0;
        background: var(--warm-white);
    }
    
    .header-cta .btn {
        display: none;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(15,36,64,0.92) 0%, rgba(27,54,93,0.85) 50%, rgba(197,165,114,0.3) 100%),
                url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0 120px;
    overflow: hidden;
}

/* Subtle pattern overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.08) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 540px;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-benefits {
    list-style: none;
    padding: 0;
}

.hero-benefits li {
    padding: 10px 0;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-benefits li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--gold);
    border-radius: 50%;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Hero Form Container */
.hero-form {
    position: relative;
}

.hero-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    animation: formGlow 3s ease-in-out infinite;
}

@keyframes formGlow {
    0%, 100% { box-shadow: 0 25px 50px rgba(0,0,0,0.25), 0 0 0 1px rgba(197,165,114,0.1); }
    50% { box-shadow: 0 25px 50px rgba(0,0,0,0.25), 0 0 20px rgba(197,165,114,0.2); }
}

@media (max-width: 1024px) {
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-form-wrapper {
        padding: 24px;
        backdrop-filter: none;
        background: white;
    }
}

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
    background: var(--deep-navy);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 20px 40px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(255,255,255,0.1);
}

.stat-icon {
    font-size: 1.75rem;
    margin-bottom: 12px;
    display: block;
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .stat-item:nth-child(odd)::after {
        display: block;
        right: 0;
    }
    
    .stat-item:nth-child(2)::after {
        display: none;
    }
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    color: var(--primary-navy);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--light-gold));
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: #666;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
    padding: 100px 0;
    background: var(--warm-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

/* Connecting line between steps */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--border-color), var(--gold), var(--border-color));
    z-index: 0;
}

.step {
    text-align: center;
    padding: 32px 20px;
    position: relative;
    z-index: 1;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(197, 165, 114, 0.3);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.step h3 {
    color: var(--primary-navy);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.step p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid::before {
        display: none;
    }
}

@media (max-width: 600px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   WHY AI MATCHING
   ======================================== */
.why-matching {
    padding: 100px 0;
    background: white;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.why-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(197,165,114,0.1) 0%, rgba(197,165,114,0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
    border: 2px solid var(--gold);
}

.why-card h3 {
    color: var(--primary-navy);
    margin-bottom: 16px;
}

.why-card p {
    color: #666;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CALCULATOR SECTION
   ======================================== */
.calculators-section {
    padding: 100px 0;
    background: var(--light-gray);
    position: relative;
}

.calculators-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 48%, rgba(27,54,93,0.02) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(27,54,93,0.02) 50%, transparent 52%);
    background-size: 60px 60px;
    pointer-events: none;
}

.calculators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

.calculator-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.calculator-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.calculator-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-navy), var(--deep-navy));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
}

.calculator-card h3 {
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.calculator-card p {
    color: #666;
    margin-bottom: 24px;
}

.calculator-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 600;
}

.calculator-link:hover {
    gap: 12px;
}

.calculator-link::after {
    content: '→';
}

@media (max-width: 768px) {
    .calculators-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   NEIGHBOURHOOD PREVIEW
   ======================================== */
.neighbourhoods-preview {
    padding: 100px 0;
    background: white;
}

.neighbourhoods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.neighbourhood-card {
    background: white;
    border: 2px solid var(--border-color);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.neighbourhood-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.neighbourhood-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.neighbourhood-card:hover::before {
    transform: scaleY(1);
}

.neighbourhood-card h3 {
    color: var(--primary-navy);
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.neighbourhood-city {
    color: #666;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.neighbourhood-price {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 16px;
}

.neighbourhood-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-navy);
    font-weight: 600;
    font-size: 0.95rem;
}

.neighbourhood-card:hover .neighbourhood-link {
    color: var(--gold);
}

@media (max-width: 768px) {
    .neighbourhoods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .neighbourhoods-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--primary-navy) 100%);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '"';
    position: absolute;
    top: -50px;
    left: 5%;
    font-size: 400px;
    color: rgba(197, 165, 114, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.testimonials .section-header h2 {
    color: white;
}

.testimonials .section-header h2::after {
    background: var(--gold);
}

.testimonials .section-header p {
    color: rgba(255,255,255,0.8);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.testimonial:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.testimonial p {
    color: rgba(255,255,255,0.9);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial cite {
    color: var(--gold);
    font-weight: 600;
    font-style: normal;
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial cite::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--gold);
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   FINAL CTA
   ======================================== */
.final-cta {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 50%, #b8945e 100%);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.final-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    color: white;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.final-cta p {
    color: rgba(255,255,255,0.95);
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.final-cta .btn {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--deep-navy);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-brand a {
    color: var(--gold);
}

.footer-brand a:hover {
    color: var(--light-gold);
}

.footer-links h4,
.footer-resources h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.125rem;
}

.footer-links ul,
.footer-resources ul {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-resources li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-resources a {
    color: rgba(255,255,255,0.7);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before,
.footer-resources a::before {
    content: '›';
    color: var(--gold);
    font-size: 1.25rem;
}

.footer-links a:hover,
.footer-resources a:hover {
    color: var(--gold);
    transform: translateX(4px);
}

.footer-contact p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trust-badge {
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    margin: 0;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--gold);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   STICKY BOTTOM CTA (MOBILE)
   ======================================== */
.sticky-bottom-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gold);
    padding: 16px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.sticky-bottom-cta-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.sticky-bottom-cta-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.sticky-bottom-cta .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    background: white;
    color: var(--primary-navy);
}

@media (max-width: 768px) {
    .sticky-bottom-cta {
        display: block;
    }
    
    body {
        padding-bottom: 80px;
    }
}

/* ========================================
   PAGE HEADERS
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--primary-navy) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

.page-header h1 {
    color: white;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.page-content {
    padding: 80px 0;
}

.content-article {
    max-width: 800px;
    margin: 0 auto;
}

.content-article h2 {
    margin-top: 48px;
}

/* ========================================
   ERROR 404
   ======================================== */
.error-404 {
    padding: 100px 0;
    text-align: center;
}

.error-content h1 {
    font-size: 8rem;
    color: var(--gold);
    margin-bottom: 0;
    line-height: 1;
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-content h2 {
    margin-bottom: 20px;
}

/* ========================================
   LOADING ANIMATION
   ======================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.gold-accent {
    color: var(--gold);
}

.navy-text {
    color: var(--primary-navy);
}

.bg-warm-white {
    background: var(--warm-white);
}

.bg-light-gray {
    background: var(--light-gray);
}

/* Focus States */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
