/* ==========================================================================
   1. CORE CSS VARIABLES & COLOR PALETTE
   ========================================================================== */
:root {
    --primary-navy: #0B1D2A;  
    --accent-gold: #E69D00;   
    --bright-gold: #d4af37;
    --sc-electric-gold: #f1c40f;
    --cqc-green: #10b981;
    --alert-red: #ef4444;
    
    --text-white: #FFFFFF;    
    --text-dark: #333333;     
    --light-bg: #F9F9F9;      
    --secondary-bg: #FFFFFF;
    
    /* Specific variables for training/legal pages */
    --card-bg: #1e293b;
    --card-hover: #334155;
    --text-muted: #cbd5e1;
    
    /* Contact Form variables */
    --input-border: #cbd5e1;
    --input-focus: #3b82f6;
}

/* ==========================================================================
   2. GLOBAL STYLES & TYPOGRAPHY
   ========================================================================== */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: var(--primary-navy);
    line-height: 1.6;
}

h1, h2, h3, h4 { 
    font-weight: 700; 
    margin-top: 0; 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.gold-text {
    color: var(--bright-gold) !important;
}

/* Global Buttons */
.btn-gold {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gold:hover {
    background-color: #f7b233;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 157, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--bright-gold);
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--bright-gold);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background-color: var(--bright-gold);
    color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   3. HEADER, NAVIGATION & SMOOTH ANIMATED SHIMMER (TITLE & PHONE)
   ========================================================================== */
header, .site-header {
    background-color: var(--primary-navy);
    padding: 20px 0;
    position: fixed; 
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4); 
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-box { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
}

.main-logo { 
    max-height: 55px; 
    margin-right: 15px; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* SMOOTH SHIMMER ANIMATION FOR TITLE & PHONE NUMBER */
.site-title, .header-phone a { 
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(
        90deg, 
        #ffffff 0%, 
        #ffffff 35%, 
        #f1c40f 50%, 
        #ffffff 65%, 
        #ffffff 100%
    );
    background-size: 200% auto;
    color: #ffffff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: smoothShimmer 5s infinite ease-in-out;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.header-phone a {
    font-size: 1.15rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@keyframes smoothShimmer {
    0% { background-position: 200% center; }
    60% { background-position: -200% center; }
    100% { background-position: -200% center; }
}

nav ul { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    display: flex; 
    gap: 25px; 
}

nav a { 
    text-decoration: none; 
    color: var(--text-white); 
    font-weight: 600; 
    font-size: 1rem; 
    transition: color 0.3s ease; 
}

nav a:hover { 
    color: var(--bright-gold); 
}

/* LIVE PULSING GREEN DOT INDICATOR */
.pulse-dot {
    width: 9px;
    height: 9px;
    background-color: var(--cqc-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Dropdown Menus */
.pj-dropdown {
    position: relative;
}

.pj-arrow {
    font-size: 0.75rem;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.pj-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #00182b;
    border: 1px solid var(--bright-gold);
    border-radius: 6px;
    padding: 10px 0;
    min-width: 280px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    list-style: none;
}

.pj-dropdown-menu li {
    margin: 0;
}

.pj-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pj-dropdown-menu a:hover {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--bright-gold);
}

@media (min-width: 769px) {
    .pj-dropdown:hover .pj-dropdown-menu {
        display: block;
    }
    .pj-dropdown:hover .pj-arrow {
        transform: rotate(180deg);
    }
}

/* ==========================================================================
   4. INDEX & HERO PAGE ELEVATED CARDS
   ========================================================================== */
.hero {
    background: radial-gradient(circle at center, #0a2540 0%, #001220 100%);
    color: var(--text-white);
    padding: 140px 0 90px 0; 
    text-align: center;
    position: relative;
    border-bottom: 3px solid var(--bright-gold);
}

.hero h1 { 
    color: #ffffff; 
    font-size: 3.2rem; 
    font-weight: 800;
    margin-bottom: 15px; 
    letter-spacing: -0.5px;
}

.hero p.hero-subtitle { 
    font-size: 1.25rem; 
    max-width: 720px; 
    margin: 0 auto 30px auto; 
    color: #e2e8f0;
    line-height: 1.6;
}

.btn-large {
    background: linear-gradient(135deg, #e6c200 0%, #d4af37 100%);
    color: #001220 !important;
    font-size: 1.15rem;
    font-weight: 800;
    padding: 16px 36px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.55);
}

/* Card Micro-Interactions */
.hero-cta-card, .tile-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-cta-card:hover, .tile-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-5px);
    border-color: var(--bright-gold);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Pulsing Feature Cards */
.pulse-gold-border {
    border: 2px solid var(--bright-gold);
    animation: goldBorderGlow 3s infinite ease-in-out;
}

@keyframes goldBorderGlow {
    0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 0 22px rgba(212, 175, 55, 0.6); }
    100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
}

/* ==========================================================================
   5. TRAINING PAGE & INTERACTIVE COURSE SELECTOR
   ========================================================================== */
.training-section { padding: 150px 0 80px 0; color: var(--text-white); }
.pj-native-header { text-align: center; width: 100%; max-width: 1000px; margin: 0 auto 60px auto; }
.pj-main-title { font-size: 3.5rem; font-weight: 800; margin-bottom: 15px; color: var(--accent-gold); line-height: 1.2; }
.pj-main-subtitle { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; font-weight: 500; letter-spacing: 0.5px; }

.pj-native-price {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--primary-navy) 100%);
    border: 2px solid var(--accent-gold); 
    border-radius: 12px;
    padding: 30px; 
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    max-width: 600px; 
    margin: 0 auto 30px auto;
}

.pj-native-big-price { font-size: 3.5rem; font-weight: 800; color: #fff; margin: 10px 0; line-height: 1; }
.pj-price-link { display: inline-block; margin-top: 15px; color: var(--accent-gold); text-decoration: none; font-size: 0.95rem; border-bottom: 1px dotted var(--accent-gold); }
.pj-price-link:hover { color: #fff; border-color: #fff; }

.pj-native-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin-top: 30px; text-align: left; }
.pj-native-lvl-box { background: rgba(255,255,255,0.05); padding: 20px; border-radius: 8px; border: 1px solid var(--card-hover); }
.pj-native-lvl-head { color: #3b82f6; font-weight: 700; font-size: 1.1rem; margin-bottom: 5px; }
.pj-native-lvl-desc { font-size: 0.9rem; line-height: 1.5; color: #e2e8f0; opacity: 0.9; }

.pj-native-delivery { margin-top: 15px; background: rgba(255,255,255,0.05); padding: 20px; border-radius: 8px; border: 1px solid var(--card-hover); text-align: center; color: #bfdbfe; line-height: 1.6; }

/* Interactive Course Grid */
#course-selector { max-width: 1000px; margin: 0 auto; background: #0f172a; padding: 40px; border-radius: 16px; border: 1px solid var(--card-hover); box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.pj-cat { font-size: 1.4rem; font-weight: 700; color: #fff; border-bottom: 1px solid var(--card-hover); padding-bottom: 10px; margin: 0 0 20px 0; }
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; margin-bottom: 40px; }
.pj-item { background-color: var(--card-bg); border: 1px solid var(--card-hover); border-radius: 6px; padding: 12px 15px; cursor: pointer; display: flex; align-items: center; transition: all 0.2s ease; user-select: none; }
.pj-item:hover { background-color: var(--card-hover); transform: translateY(-2px); }
.pj-box { width: 24px; height: 24px; min-width: 24px; border: 2px solid #94a3b8; border-radius: 4px; margin-right: 15px; display: flex; align-items: center; justify-content: center; transition: all 0.1s; }
.pj-text { font-size: 1rem; color: #fff; line-height: 1.3; }
.pj-badge { display: block; font-size: 0.75rem; margin-top: 4px; font-weight: 600; text-transform: uppercase; }

/* Selection States */
.pj-item.is-selected { background-color: rgba(16, 185, 129, 0.15); border-color: var(--cqc-green); }
.pj-item.is-selected .pj-box { background-color: var(--cqc-green); border-color: var(--cqc-green); }
.pj-item.is-selected .pj-box::after { content: "✓"; color: white; font-weight: bold; font-size: 14px; }

.pj-special-row { margin-top: 10px; }
.pj-ttt-row { border-color: var(--accent-gold); }
.pj-ttt-row.is-selected { background-color: rgba(230, 157, 0, 0.15); border-color: var(--accent-gold); }
.pj-ttt-row.is-selected .pj-box { background-color: var(--accent-gold); border-color: var(--accent-gold); }

.pj-bar { margin-top: 10px; padding: 30px; background: var(--card-bg); border-radius: 12px; text-align: center; border: 1px solid var(--card-hover); }
.pj-btn { display: inline-block; background-color: #64748b; color: #fff; text-decoration: none; padding: 16px 40px; border-radius: 8px; font-size: 1.2rem; font-weight: 700; pointer-events: none; transition: all 0.2s; border: none; }
.pj-btn.is-active { background-color: var(--accent-gold); color: var(--primary-navy); pointer-events: auto; cursor: pointer; box-shadow: 0 4px 15px rgba(230, 157, 0, 0.4); }
.pj-btn.is-active:hover { transform: translateY(-2px); background-color: #f7b233; }

/* ==========================================================================
   6. PRICING PAGE & CONTACT SPECIFICS
   ========================================================================== */
.pricing-section { padding: 150px 0 80px 0; color: var(--text-white); }
.pricing-section h1 { color: var(--text-white); font-size: 3.5rem; font-weight: 800; text-align: center; margin-bottom: 10px; }

.contact-page-body { background-color: var(--light-bg); } 
.page-header { background-color: var(--primary-navy); color: var(--text-white); padding: 160px 0 60px 0; text-align: center; }
.page-header h1 { color: var(--accent-gold); font-size: 3rem; margin-bottom: 15px; }

.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 50px; }
.contact-card { 
    background-color: var(--primary-navy); 
    border-radius: 12px; 
    padding: 40px 30px; 
    text-align: center; 
    color: var(--text-white); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    border-top: 5px solid var(--accent-gold); 
    transition: transform 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
}
.contact-card:hover { transform: translateY(-5px); }

/* Force text visibility in contact section */
.contact-section,
.contact-section h2,
.contact-section h3,
.contact-section p,
.contact-section span,
.contact-section strong,
.contact-section a {
    color: #ffffff !important;
}

.contact-section .btn-gold {
    color: var(--primary-navy) !important;
}

/* ==========================================================================
   7. PRIVACY, ACCREDITATIONS & FOOTER
   ========================================================================== */
.legal-section { padding: 150px 0 80px 0; color: var(--text-white); }
.legal-box { background-color: var(--card-bg); border: 1px solid var(--card-hover); border-radius: 12px; padding: 50px; max-width: 800px; margin: 0 auto; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }

.accreditations { background-color: #FFFFFF; padding: 40px 0; text-align: center; border-bottom: 1px solid #eee; }
.accreditations-strip { display: block; margin: 0 auto; max-width: 90%; height: auto; max-height: 180px; }

footer { background-color: #06111a; color: rgba(255,255,255,0.7); padding: 30px 0; text-align: center; font-size: 0.9rem; border-top: 1px solid #1e293b; }
.footer-links { margin-top: 15px; display: flex; justify-content: center; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-gold); }

/* ==========================================================================
   8. COOKIE CONSENT BANNER & MOBILE NAVIGATION
   ========================================================================== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #001220;
    border-top: 2px solid #d4af37;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    padding: 18px 20px;
    box-sizing: border-box;
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    text-align: center;
}

.cookie-content p { color: #e0e0e0; font-size: 0.95rem; margin: 0; }
.cookie-content p a { color: #d4af37; text-decoration: underline; }

.cookie-btn.accept { background-color: #d4af37; color: #001220; border: none; padding: 8px 18px; border-radius: 4px; font-weight: 700; cursor: pointer; }
.cookie-btn.decline { background: transparent; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.4); padding: 8px 18px; border-radius: 4px; font-weight: 600; cursor: pointer; }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--bright-gold);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .site-header { position: relative !important; top: auto !important; }
    .mobile-menu-toggle { display: flex; }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #00182b;
        border-top: 1px solid rgba(212, 175, 55, 0.3);
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.4);
    }

    .nav-menu.active { display: block; }
    .nav-menu ul { flex-direction: column; gap: 15px; }
    .header-phone { display: none; }
    
    .hero { padding: 60px 0 40px 0; } 
    .hero h1 { font-size: 2.2rem; }
    .training-section, .pricing-section, .page-header, .legal-section { padding-top: 60px; }
    .contact-grid { grid-template-columns: 1fr; }
    
    .pj-dropdown.is-open .pj-dropdown-menu {
        display: block;
        position: relative;
        box-shadow: none;
        border: none;
        background-color: rgba(255, 255, 255, 0.05);
        margin-top: 10px;
        padding: 5px 0;
    }
}

@media (min-width: 768px) {
    .cookie-content { flex-direction: row; text-align: left; }
}