/* ==========================================================================
   Ahura Institute: Global CSS Architecture (O2O Baseline)
   ========================================================================== */

:root {
    /* "American Prestige" Color Palette */
    --patriot-blue: #0A3161;
    --patriot-blue-dark: #072346;
    --crimson-red: #B31942;
    --crimson-red-dark: #921435;
    --alabaster: #FFFFFF;
    --silver-gray: #F3F4F6;
    --text-main: #1F2937;
    --amber-gold: #D4AF37;

    /* Spacing & Layout */
    --container-max: 1200px;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    
    /* Micro-interactions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(10, 49, 97, 0.15);
    --shadow-glow: 0 0 20px rgba(179, 25, 66, 0.4);
}

/* Base Reset & Hard Scroll Lock */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { 
    font-family: var(--font-primary); 
    color: var(--text-main); 
    background-color: var(--alabaster); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden; /* Absolute lock on horizontal scrolling */
    width: 100%;
    max-width: 100vw;
}
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-md); }

/* Navigation Architecture */
.site-header { background-color: var(--alabaster); border-bottom: 1px solid var(--silver-gray); position: sticky; top: 0; z-index: 100; width: 100%; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 80px; }

/* Logo Fixes */
.brand-logo { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 1.25rem; color: var(--patriot-blue); text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none; flex-shrink: 0; white-space: nowrap; }
.logo-mark { width: 24px; height: 24px; background-color: var(--crimson-red); border-radius: 4px; flex-shrink: 0; }

/* Slick Desktop Navigation Links */
.primary-nav { display: flex; align-items: center; gap: 2.5rem; margin-left: auto; margin-right: 2.5rem; }
.primary-nav a { 
    position: relative;
    text-decoration: none; 
    color: var(--patriot-blue); 
    font-weight: 700; 
    font-size: 1.05rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}
/* Animated Red Underline */
.primary-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--crimson-red);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}
.primary-nav a:hover { color: var(--crimson-red); }
.primary-nav a:hover::after { width: 100%; }

/* Actions Wrapper */
.nav-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

/* Language Dropdown */
.lang-dropdown { position: relative; display: inline-block; }
.btn-text { background: none; border: none; font-family: var(--font-primary); font-weight: 700; color: var(--patriot-blue); cursor: pointer; font-size: 1.05rem; display: flex; align-items: center; gap: 4px; padding: 0.5rem; }
.dropdown-content { display: none; position: absolute; right: 0; background-color: var(--alabaster); min-width: 80px; box-shadow: var(--shadow-hover); border-radius: 8px; overflow: hidden; z-index: 101; margin-top: 0.5rem; border: 1px solid var(--silver-gray); }
.dropdown-content a { color: var(--text-main); padding: 12px 16px; text-decoration: none; display: block; font-weight: 700; transition: var(--transition-smooth); font-size: 0.95rem; text-align: center; }
.dropdown-content a:hover { background-color: var(--silver-gray); color: var(--crimson-red); }
.lang-dropdown:hover .dropdown-content { display: block; }

/* Buttons */
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 0.75rem 1.5rem; border-radius: 6px; font-weight: 700; text-decoration: none; transition: var(--transition-smooth); cursor: pointer; border: none; }
.btn-primary { background-color: var(--crimson-red); color: var(--alabaster); }
.btn-primary:hover { background-color: var(--crimson-red-dark); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-large { font-size: 1.125rem; padding: 1rem 2.5rem; }
.w-100 { width: 100%; }

/* Pulse Animation */
@keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(179, 25, 66, 0.4); } 70% { box-shadow: 0 0 0 12px rgba(179, 25, 66, 0); } 100% { box-shadow: 0 0 0 0 rgba(179, 25, 66, 0); } }
.pulse-effect { animation: pulseGlow 2.5s infinite; }

/* Immersive Hero Section */
.hero-section { 
    position: relative; 
    background-color: var(--patriot-blue); 
    background-image: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'), linear-gradient(135deg, var(--patriot-blue) 0%, var(--patriot-blue-dark) 100%); 
    background-size: cover; 
    background-position: center; 
    background-blend-mode: overlay; 
    color: var(--alabaster); 
    padding: 9rem 0 8rem 0; 
    text-align: center; 
}
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(10, 49, 97, 0.6) 0%, rgba(10, 49, 97, 0.95) 100%); }
.hero-content { position: relative; z-index: 10; max-width: 800px; margin: 0 auto; }
.hero-badge { display: inline-block; padding: 0.5rem 1.25rem; background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50px; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1.5rem; color: var(--amber-gold); letter-spacing: 1px; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -1.5px; }
.hero-subtitle { font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 2.5rem; max-width: 650px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* Trust Band */
.trust-band { background-color: var(--patriot-blue-dark); color: var(--alabaster); padding: 3rem 0; border-bottom: 4px solid var(--crimson-red); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.trust-item strong { display: block; font-size: 2.5rem; font-weight: 900; color: var(--amber-gold); line-height: 1; margin-bottom: 0.5rem; }
.trust-item span { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; font-weight: 600; }

/* Routing Section (Modern Bento Grid) */
.routing-section { padding: var(--space-lg) 0; background-color: var(--silver-gray); }
.section-header { text-align: center; margin-bottom: var(--space-lg); }
.section-header h2 { font-size: 2.5rem; color: var(--patriot-blue); font-weight: 900; letter-spacing: -0.5px; }

.bento-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.bento-card { position: relative; border-radius: 16px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; padding: 2.5rem; transition: var(--transition-smooth); box-shadow: var(--shadow-base); border: 1px solid transparent; }
.bento-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border: 1px solid var(--amber-gold); }

/* Bento Backgrounds */
.bento-bg { position: absolute; inset: 0; z-index: 1; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.bg-patriot { background: linear-gradient(to top, var(--patriot-blue-dark) 0%, rgba(10, 49, 97, 0.5) 100%); }
.bg-crimson { background: linear-gradient(to top, var(--crimson-red-dark) 0%, rgba(179, 25, 66, 0.5) 100%); }
.bento-card:hover .bento-bg { transform: scale(1.05); }

/* Bento Content */
.bento-content { position: relative; z-index: 2; color: var(--alabaster); }
.card-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--amber-gold); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1rem; }
.bento-content h3 { font-size: 2.25rem; font-weight: 800; margin-bottom: 0.75rem; line-height: 1.1; letter-spacing: -0.5px; }
.bento-content p { color: rgba(255, 255, 255, 0.85); margin-bottom: 2rem; font-size: 1.05rem; }
.bento-cta { display: inline-flex; font-weight: 700; color: var(--alabaster); transition: var(--transition-smooth); font-size: 1.1rem; }
.bento-card:hover .bento-cta { color: var(--amber-gold); padding-left: 8px; }

/* ==========================================================================
   Footer & Ethereal Glow Architecture
   ========================================================================== */
.site-footer { background-color: var(--patriot-blue-dark); color: rgba(255, 255, 255, 0.5); padding: 4rem 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-logo { justify-content: center; margin-bottom: 1.5rem; opacity: 1; }

.footer-logo .logo-text { 
    color: var(--alabaster); 
    animation: etherealGlow 4s ease-in-out infinite; 
}

@keyframes etherealGlow {
    0%, 100% { opacity: 0.75; text-shadow: 0 0 4px rgba(255, 255, 255, 0.1); }
    50% { opacity: 1; text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 255, 255, 0.3); }
}

/* ==========================================================================
   Mobile & Responsive Architecture (Hard Override)
   ========================================================================== */
.mobile-only { display: none !important; }
.hamburger-btn { background: none; border: none; color: var(--patriot-blue); cursor: pointer; padding: 0.5rem; align-items: center; justify-content: center; transition: var(--transition-smooth); }
.hamburger-btn:hover { color: var(--crimson-red); }

/* Mobile Dropdown Push-Down Layout */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: var(--alabaster);
    padding: 1.5rem var(--space-md) 2.5rem var(--space-md);
    width: 100%;
    border-top: 1px solid var(--silver-gray);
    border-bottom: 1px solid var(--silver-gray);
}

.mobile-menu.is-open { display: flex; }
.mobile-menu a { text-decoration: none; color: var(--patriot-blue); font-weight: 800; padding: 1.25rem 0; border-bottom: 1px solid var(--silver-gray); font-size: 1.2rem; }
.mobile-menu a.btn { border-bottom: none; color: var(--alabaster); margin-top: 2rem; padding: 1rem; }

/* Tablet Breakpoint */
@media (max-width: 850px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    
    .site-header { position: relative !important; }
    .nav-wrapper { padding: 0 1rem; }
    .brand-logo .logo-text { font-size: 1.1rem; white-space: nowrap; }
    
    .bento-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* DEVOPS FIX (PATH 1): Strict Mobile Vertical Stacking */
@media (max-width: 500px) {
    .trust-grid { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        gap: 2.5rem; 
    }
    .trust-item strong {
        font-size: 2.2rem; /* Scaled down slightly to look crisp on small screens */
    }
}