/*
 * File: assets/css/master-hub.css
 * Author: ICE Intel Development Team
 * Date Modified: 2026-08-11
 * Description: Master stylesheet for the public-facing gateway.
 * ENFORCED: White header reverted, button radiuses synchronized.
 */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-main: #111827;
    --text-muted: #4b5563;
    --accent-red: #d32f2f;
    --border-light: #e5e7eb;
    --dark-footer: #080808;
    --footer-border: #1f1f1f;
}

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

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

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4%;
}

/* =========================================
   CRISP WHITE NAVIGATION & HEADER
========================================= */
.main-nav {
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;      
    left: 0;     
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.nav-brand-logo {
    height: 55px; 
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu { display: flex; align-items: center; }
.nav-item {
    color: var(--text-main); /* Reverted to dark text */
    text-decoration: none;
    margin-left: 40px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}
.nav-item:hover { color: var(--accent-red); }

/* Premium Gateway Button (Pill Design) */
.btn-primary-solid {
    background: linear-gradient(135deg, #d32f2f, #9e2323); 
    color: #ffffff; 
    padding: 12px 30px;
    margin-left: 40px;
    text-decoration: none; 
    font-weight: 800; 
    border-radius: 50px; 
    transition: all 0.3s ease; 
    text-transform: uppercase; 
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.2);
}
.btn-primary-solid:hover { 
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(211, 47, 47, 0.4); 
    color: #ffffff; 
}

/* Fail-Proof Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}
.hamburger .bar {
    width: 32px; height: 3px; background-color: var(--text-main); border-radius: 3px; transition: 0.3s;
}

.hamburger.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-active .bar:nth-child(2) { opacity: 0; }
.hamburger.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 1024px) {
    .hamburger { display: flex; }
    
    .nav-menu {
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%;
        background: #ffffff; 
        border-bottom: 2px solid var(--accent-red);
        flex-direction: column; 
        align-items: flex-start; 
        padding: 30px 5%;
        display: none !important;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }
    .nav-menu.active { display: flex !important; } 
    .nav-item { margin: 20px 0; width: 100%; font-size: 1.1rem; }
    .btn-primary-solid { margin: 20px 0 0 0; width: 100%; text-align: center; }
}

/* =========================================
   HERO SECTION
========================================= */
.hero-container {
    height: 100vh;
    display: flex; align-items: center; justify-content: center; text-align: center;
    position: relative; padding: 0 5%;
    background-color: var(--dark-footer);
    overflow: hidden;
    margin-top: 90px;
}
.hero-background-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    object-fit: cover;
    opacity: 0.4;
}
.hero-content-wrapper { position: relative; z-index: 10; max-width: 1000px; }
.hero-content-wrapper h1 { font-size: 4.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 25px; color: #ffffff; letter-spacing: -1px; }
.brand-text-accent { color: var(--accent-red); }
.hero-content-wrapper p { color: #e5e7eb; font-size: 1.25rem; margin-bottom: 40px; font-weight: 300; }
.hero-action-group { display: flex; justify-content: center; gap: 20px; }

/* Synchronized Hero Button (Pill Design matched to Header) */
.btn-primary {
    background: linear-gradient(135deg, #d32f2f, #9e2323); color: white; padding: 18px 45px;
    text-decoration: none; font-weight: 800; border-radius: 50px; /* Matched Pill Radius */
    transition: all 0.3s ease; text-transform: uppercase; display: inline-block;
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.2); letter-spacing: 1px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 25px rgba(211, 47, 47, 0.4); }

/* =========================================
   GRID LAYOUTS (ELITE VISUAL DEPTH)
========================================= */
.overview-section, .division-section { padding: 120px 0; background-color: var(--bg-primary); }
.division-section { background-color: var(--bg-secondary); border-top: 1px solid var(--border-light); }
.layout-grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.section-header-centered { text-align: center; margin-bottom: 80px; }
.section-header-centered h2, .overview-text h2 { font-size: 2.8rem; text-transform: uppercase; color: var(--text-main); font-weight: 900; letter-spacing: -0.5px; }
.brand-divider { width: 80px; height: 4px; background: var(--accent-red); margin: 25px 0; }
.brand-divider-center { width: 80px; height: 4px; background: var(--accent-red); margin: 25px auto; }
.section-subtitle { color: var(--text-muted); font-size: 1.2rem; max-width: 700px; margin: 0 auto; }
.overview-text p { margin-bottom: 25px; color: var(--text-muted); font-size: 1.1rem; }

.visual-placeholder-box {
    width: 100%; height: 500px;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&q=80&w=1400') center/cover;
    border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; width: 100%; }
.division-card {
    background: #ffffff; border: 1px solid var(--border-light); border-radius: 12px;
    overflow: hidden; transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.division-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.1); border-color: transparent; }
.card-image-wrapper { height: 260px; width: 100%; overflow: hidden; }
.card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.division-card:hover .card-image-wrapper img { transform: scale(1.05); }
.card-data-body { padding: 40px; display: flex; flex-direction: column; flex-grow: 1; }
.card-icon-indicator { font-size: 1.8rem; color: var(--accent-red); font-weight: 900; margin-bottom: 20px; }
.card-data-body h3 { color: var(--text-main); margin-bottom: 15px; font-size: 1.5rem; font-weight: 800; }
.card-data-body p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 30px; flex-grow: 1; }
.card-action-text { color: var(--accent-red); font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* =========================================
   PARTNERS & FOOTER
========================================= */
.main-footer { background: var(--dark-footer); padding: 100px 0 60px; color: #ffffff; border-top: 4px solid var(--accent-red); }
.footer-top-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--footer-border); }
.brand-logo-footer { height: 60px; margin-bottom: 25px; object-fit: contain; }
.footer-description { color: #888; font-size: 0.95rem; margin-bottom: 25px; line-height: 1.8; max-width: 450px; }
.security-badge { display: inline-flex; align-items: center; border: 1px solid var(--footer-border); padding: 10px 15px; border-radius: 4px; background: rgba(255,255,255,0.02); }
.security-badge-icon { width: 10px; height: 10px; background: #10b981; border-radius: 50%; margin-right: 12px; box-shadow: 0 0 10px #10b981; }
.security-badge-text { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; color: #aaa; letter-spacing: 1px; }
.footer-col h4 { color: #ffffff; text-transform: uppercase; font-size: 1rem; margin-bottom: 30px; letter-spacing: 2px; }
.footer-col a { display: block; color: #888; text-decoration: none; margin-bottom: 16px; font-size: 0.95rem; transition: all 0.3s ease; font-weight: 600; }
.footer-col a:hover { color: #ffffff; padding-left: 8px; border-left: 2px solid var(--accent-red); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 30px 0; font-size: 0.85rem; color: #555; }
.footer-bottom-links a { color: #555; text-decoration: none; margin-left: 20px; transition: color 0.3s; }
.footer-bottom-links a:hover { color: #ffffff; }

@media (max-width: 1200px) {
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .layout-grid-2-col { grid-template-columns: 1fr 1fr; }
    .hero-content-wrapper h1 { font-size: 3.5rem; }
}
@media (max-width: 768px) {
    .hero-content-wrapper h1 { font-size: 2.5rem; }
    .hero-action-group { flex-direction: column; width: 100%; }
    .card-grid-3, .layout-grid-2-col { grid-template-columns: 1fr; }
    .footer-top-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 20px; }
    .footer-bottom-links a { margin: 0 10px; }
}