:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --accent-crimson: #b22222;
    --accent-gold: #d4af37;
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --border: #222;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* =========================================
   NAVIGATION & BUTTONS
========================================= */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;      
    left: 0;     
    width: 100%;
    z-index: 1000;
}

.logo { font-weight: 900; font-size: 1.5rem; letter-spacing: 2px; color: #fff; }
.logo span { color: var(--accent-crimson); }

nav { display: flex; align-items: center; }
nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
}
nav a:hover { color: var(--accent-gold); }

.btn-primary {
    background: var(--accent-crimson); color: white; padding: 15px 35px;
    text-decoration: none; font-weight: bold; border-radius: 4px; transition: 0.3s; text-transform: uppercase; display: inline-block;
}
.btn-primary:hover { background: #8e1b1b; }

.btn-outline-gold {
    background: transparent; color: var(--accent-gold); border: 2px solid var(--accent-gold);
    padding: 13px 35px; text-decoration: none; font-weight: bold; border-radius: 4px; transition: 0.3s; text-transform: uppercase; display: inline-block;
}
.btn-outline-gold:hover { background: var(--accent-gold); color: #000; }

.btn-pill-gold {
    background: var(--accent-gold);
    color: #000 !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 900;
}
.btn-pill-gold:hover { background: #fff; color: #000 !important; box-shadow: 0 0 15px rgba(212, 175, 55, 0.5); }

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.hamburger span {
    width: 25px; height: 3px; background-color: var(--text-main); border-radius: 3px; transition: 0.3s;
}

/* =========================================
   HOME PAGE: HERO & CARDS
========================================= */
.hero {
    height: 100vh;
    display: flex; align-items: center; justify-content: center; text-align: center;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&q=80&w=2072') no-repeat center center/cover;
    position: relative; padding: 0 5%;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(10,10,10,1) 90%);
}
.hero-content { position: relative; z-index: 10; max-width: 900px; }
.hero h1 { font-size: 4rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; color: #fff; }
.text-gradient {
    background: linear-gradient(90deg, var(--accent-gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-btns { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }

.division-grid { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; text-transform: uppercase; color: #fff; }
.line { width: 80px; height: 4px; background: var(--accent-gold); margin: 20px auto; }

.card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
    overflow: hidden; transition: 0.4s; display: flex; flex-direction: column;
}
.card:hover { border-color: var(--accent-gold); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.card-img { height: 200px; background-size: cover; background-position: center; border-bottom: 1px solid var(--border); }
.card-content { padding: 30px; flex-grow: 1; }
.card-icon { font-size: 1.5rem; color: var(--accent-crimson); font-weight: 900; margin-bottom: 15px; }
.card h3 { color: #fff; margin-bottom: 15px; font-size: 1.3rem; }
.card p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }

/* --- FIX: The grid wrapper for the division cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px; /* This creates the perfect gap between blocks */
    width: 100%;
}

/* =========================================
   SUB-PAGES: HERO & CONTACT FORM
========================================= */
.sub-hero {
    height: 50vh; min-height: 400px; display: flex; align-items: center; justify-content: center; text-align: center;
    padding-top: 80px; /* Offsets the fixed header */
    background-size: cover; background-position: center; position: relative; margin-bottom: 60px;
}
.sub-hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(10,10,10,0.6) 0%, rgba(10,10,10,1) 100%);
}
.sub-hero h1 { position: relative; z-index: 10; font-size: 3.5rem; font-weight: 900; text-transform: uppercase; color: #fff; letter-spacing: 2px; }

.content-section { padding: 40px 0 100px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: var(--text-main); font-size: 0.85rem; text-transform: uppercase; margin-bottom: 8px; font-weight: bold; }
.form-control { width: 100%; background: var(--bg-dark); border: 1px solid var(--border); color: #fff; padding: 15px; border-radius: 4px; font-family: 'Inter', sans-serif; font-size: 1rem; transition: 0.3s; }
.form-control:focus { border-color: var(--accent-gold); outline: none; box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.1); }
textarea.form-control { resize: vertical; min-height: 150px; }

.text-block { background: var(--bg-card); border: 1px solid var(--border); padding: 50px; border-radius: 8px; margin-bottom: 30px; }
.text-block h2 { color: var(--accent-gold); margin-bottom: 20px; font-size: 1.8rem; text-transform: uppercase; }
.text-block p { color: var(--text-dim); margin-bottom: 20px; font-size: 1.05rem; }

/* =========================================
   SUB-PAGES: LIGHT THEME (ABOUT & DIVISIONS)
========================================= */
.content-light {
    background-color: #f4f7f6; color: #1a1a1a; padding: 100px 0;
}
.content-light .section-title h2 { color: #050505; }

/* About Us Grid */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.text-block-light {
    background: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 50px; border-radius: 8px; border-top: 4px solid var(--accent-crimson);
}
.text-block-light h2 { color: #050505; margin-bottom: 20px; font-size: 1.8rem; text-transform: uppercase; }
.text-block-light p { color: #4a5568; margin-bottom: 20px; font-size: 1.05rem; line-height: 1.7; }

/* --- BULLETPROOF ALTERNATING FEATURE BLOCKS --- */
.feature-wrapper { display: flex; flex-direction: column; gap: 60px; }
.feature-row {
    display: flex; flex-direction: row; background: #ffffff; border: 1px solid #e2e8f0;
    border-radius: 12px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}
/* This forces every 2nd row to go Right-to-Left automatically */
.feature-wrapper .feature-row:nth-child(even) {
    flex-direction: row-reverse;
}
.feature-img {
    width: 50%; min-height: 450px; background-size: cover; background-position: center; flex-shrink: 0;
}
.feature-text {
    width: 50%; padding: 60px; display: flex; flex-direction: column; justify-content: center;
}
.feature-text h2 { font-size: 2.2rem; color: #050505; margin-bottom: 20px; text-transform: uppercase; line-height: 1.2; }
.feature-text h2 span { color: var(--accent-crimson); }
.feature-text p { color: #4a5568; font-size: 1.05rem; margin-bottom: 30px; line-height: 1.7; }

@media (max-width: 992px) {
    /* Forces them to stack normally on mobile */
    .feature-wrapper .feature-row, .feature-wrapper .feature-row:nth-child(even) { flex-direction: column; }
    .feature-img, .feature-text { width: 100%; }
    .feature-img { min-height: 300px; }
    .feature-text { padding: 40px 25px; }
}

/* =========================================
   PARTNER STRIP & FOOTER
========================================= */
.partner-strip {
    background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 40px 0; text-align: center; overflow: hidden;
}
.partner-strip p { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 30px; font-weight: bold; }
.marquee-container { width: 100%; overflow: hidden; white-space: nowrap; position: relative; }
.marquee-content { display: inline-flex; gap: 80px; opacity: 0.5; animation: scroll-marquee 25s linear infinite; }
.marquee-content:hover { animation-play-state: paused; }
.partner-logo { font-family: 'Share Tech Mono', monospace; font-size: 1.5rem; color: #fff; margin: 0; }

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.main-footer { background: #050505; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { color: #fff; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 20px; letter-spacing: 1px; }
.footer-col p { color: var(--text-dim); font-size: 0.9rem; margin-top: 15px; }
.footer-col a { display: block; color: var(--text-dim); text-decoration: none; margin-bottom: 12px; font-size: 0.9rem; transition: 0.2s; }
.footer-col a:hover { color: var(--accent-gold); }

/* =========================================
   COOKIE BANNER
========================================= */
.cookie-modern {
    position: fixed; bottom: 30px; left: 50%; 
    transform: translate(-50%, 150%); opacity: 0; pointer-events: none;
    background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(15px);
    border: 1px solid var(--accent-gold); border-radius: 8px;
    padding: 20px 30px; display: flex; align-items: center; justify-content: space-between; gap: 30px;
    width: 90%; max-width: 800px; z-index: 2000; box-shadow: 0 20px 40px rgba(0,0,0,0.9);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease-out;
}
.cookie-modern.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.cookie-text { font-size: 0.85rem; color: var(--text-dim); }
.cookie-text strong { color: #fff; font-size: 1rem; display: block; margin-bottom: 5px; }
.cookie-text a { color: var(--accent-gold); text-decoration: underline; }
.cookie-actions button { white-space: nowrap; }

/* =========================================
   MOBILE RESPONSIVENESS (CONSOLIDATED)
========================================= */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .sub-hero h1 { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    
    /* Services Mobile Fallback */
    .feature-row, .feature-row.reverse { flex-direction: column; }
    .feature-img, .feature-text { width: 100%; }
    .feature-img { min-height: 300px; }
    .feature-text { padding: 40px 30px; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    /* Mobile Nav Dropdown */
    nav {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(10, 10, 10, 0.98); border-bottom: 1px solid var(--border);
        flex-direction: column; align-items: flex-start; padding: 20px 5%;
        display: none; 
    }
    nav.active { display: flex; } 
    nav a { margin: 15px 0; width: 100%; font-size: 1.1rem; }
    
    .btn-pill-gold { text-align: center; margin-top: 10px; }

    /* Hero / Sub-Hero Mobile adjustments */
    .hero h1 { font-size: 2.2rem; }
    .sub-hero h1 { font-size: 2rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn-primary, .btn-outline-gold { width: 100%; text-align: center; }
    
    /* Grid adjustments */
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .text-block, .text-block-light { padding: 30px; }
    
    /* Cookie Banner Mobile Fix */
    .cookie-modern { flex-direction: column; text-align: center; padding: 20px; }
    .cookie-actions { width: 100%; }
    .cookie-actions button { width: 100%; }
}