/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Primary Colors */
    --primary-dark: #1D2A3D;
    --primary-gold: #D4AF37;
    --primary-gold-faded: #C9A96E;
    --primary-gold-light: #E6D16A;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, #2A3B52 100%);
    --gradient-gold: linear-gradient(135deg, var(--primary-gold-faded) 0%, var(--primary-gold) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(29, 42, 61, 0.9) 0%, rgba(42, 59, 82, 0.8) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-gold: 0 4px 14px 0 rgba(212, 175, 55, 0.25);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --section-padding: 100px 0;
    --section-padding-sm: 60px 0;
    
    /* Border Radius */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* ===== GLOBAL STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
}

html {
    scroll-behavior: smooth;
}

/* ===== NAVIGATION ===== */
.custom-navbar {
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-navbar.scrolled {
    background: rgba(29, 42, 61, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
}

.navbar-logo {
    height: 40px;
    width: auto;
    transition: all var(--transition-normal);
}

.custom-navbar.scrolled .navbar-logo {
    height: 35px;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1rem !important;
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-gold) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.custom-dropdown {
    background: rgba(29, 42, 61, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.custom-dropdown .dropdown-item {
    color: var(--white);
    padding: 0.75rem 1.25rem;
    transition: all var(--transition-fast);
}

.custom-dropdown .dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
}

/* ===== BUTTONS ===== */
.btn {
    font-weight: var(--font-weight-semibold);
    border-radius: var(--border-radius-lg);
    padding: 0.75rem 2rem;
    transition: all var(--transition-normal);
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--white);
    border: 2px solid transparent;
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(212, 175, 55, 0.4);
}

.btn-outline-gold {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-outline-gold:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-dark {
    background: var(--gradient-primary);
    color: var(--white);
    border: 2px solid transparent;
}

.btn-dark:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* ===== FORMS ===== */
.form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: var(--white);
}

.form-control:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    outline: none;
}

.form-label {
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-floating > .form-control {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

.form-floating > label {
    padding: 1rem;
    color: var(--gray-500);
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-premium {
    background: var(--gradient-primary);
    color: var(--white);
}

.card-premium:hover {
    box-shadow: 0 20px 40px rgba(29, 42, 61, 0.3);
}

.card-gold {
    background: var(--gradient-gold);
    color: var(--white);
}

.card-gold:hover {
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--gray-600);
    line-height: 1.7;
}

.card-premium .card-text {
    color: rgba(255, 255, 255, 0.9);
}

.card-gold .card-text {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== PAGE HEROES ===== */
.hero-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="50" cy="10" r="1" fill="%23ffffff" opacity="0.03"/><circle cx="10" cy="60" r="1" fill="%23ffffff" opacity="0.03"/><circle cx="90" cy="40" r="1" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-simple {
    background: var(--gradient-primary);
    padding: calc(var(--section-padding-sm) + 60px) 0 var(--section-padding-sm) 0;
    text-align: center;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--section-padding);
}

.section-sm {
    padding: var(--section-padding-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.section-dark {
    background: var(--gradient-primary);
    color: var(--white);
}

.section-dark .section-title {
    color: var(--white);
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== STATISTICS/METRICS ===== */
.stats-container {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-gold);
    display: block;
    line-height: 1;
}

.stat-label {
    color: var(--gray-600);
    font-weight: var(--font-weight-medium);
    margin-top: 0.5rem;
}

.stat-icon {
    color: var(--primary-gold);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--section-padding);
    position: relative;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    margin-top: 2rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem 0;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-title {
    color: var(--primary-gold);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    transition: color var(--transition-fast);
}

.social-link:hover {
    color: var(--primary-gold);
}

/* ===== UTILITIES ===== */
.text-gold {
    color: var(--primary-gold) !important;
}

.bg-gold {
    background: var(--gradient-gold) !important;
}

.bg-primary-dark {
    background: var(--primary-dark) !important;
}

.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.border-gold {
    border-color: var(--primary-gold) !important;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.hover-lift {
    transition: transform var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-3px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --section-padding-sm: 40px 0;
    }
    
    .hero-section {
        padding: calc(var(--section-padding-sm) + 80px) 0 var(--section-padding-sm) 0;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .stats-container {
        padding: 2rem 1rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 1rem;
    }
}