* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-navy: #002B5B;
    --accent-gold: #FFC000;
    --site-bg: #f1f5f9;
    --site-text: #334155;
    --site-muted: #64748b;
    
    /* 🚀 UNIFORM TYPOGRAPHY VARIABLES FOR THE ENTIRE SITE */
    --font-size-p: 16px;
    --font-size-h1: clamp(32px, 4vw, 42px);
    --font-size-h2: clamp(26px, 3vw, 32px);
    --font-size-h3: 20px;
    
    --line-height-p: 1.75;
    --line-height-h: 1.3;
    
    --card-radius: 16px;
    --section-padding: 72px;
}

html {
    scroll-behavior: smooth;
    background: var(--site-bg);
}

body {
    background:
        radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--accent-gold) 16%, transparent), transparent 28%),
        radial-gradient(circle at 92% 20%, color-mix(in srgb, var(--primary-navy) 16%, transparent), transparent 32%),
        var(--site-bg) !important;
    color: var(--site-text);
    font-size: var(--font-size-p);
    line-height: var(--line-height-p);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* ==========================================================
   🚀 1. STRICT GLOBAL TYPOGRAPHY & ALIGNMENT (THE UNIFORM FIX)
   ========================================================== */

/* ALL PARAGRAPHS: Perfect Justify, Uniform Size, Uniform Spacing */
p, .about-text-content p, .timeline-card p, .legacy-value-card p, 
.industry-hover-text, .service-card p, .commitment-content p, 
.extra-card p, .intro-text {
    font-size: var(--font-size-p) !important;
    line-height: var(--line-height-p) !important;
    text-align: justify !important;
    color: var(--site-text); 
    font-weight: 400 !important;
    margin-bottom: 16px;
}

/* ALL MAIN HEADERS (H2): Left Aligned, Uniform Size, Corporate Bold */
h2, .section-title, .home-section-head h2, .about-text-content h2, 
.legacy-copy h2, .contact-info-col h2, .intro-title, .cta-panel h2 {
    font-size: var(--font-size-h2) !important;
    line-height: var(--line-height-h) !important;
    text-align: left !important;
    color: var(--primary-navy);
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 16px !important;
}

/* ALL CARD TITLES (H3): Left Aligned, Uniform Size */
h3, .glass-card h3, .glass-box h3, .glass-article-card h3, 
.glass-team-card h3, .knowledge-card h3, .legacy-value-card h3, 
.job-info-block h3, .info-card h3, .service-card h3, 
.industry-title, .commitment-content h3 {
    font-size: var(--font-size-h3) !important;
    line-height: var(--line-height-h) !important;
    text-align: left !important;
    color: var(--primary-navy);
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}

/* HERO & TOP BANNERS (H1): Centered, Largest Size */
h1, .hero-title {
    font-size: var(--font-size-h1) !important;
    line-height: var(--line-height-h) !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
}

/* 🚀 FIX: FORCE TOP PAGE BANNERS TO BE PERFECTLY CENTERED */
div[style*="center/cover fixed"] {
    text-align: center !important;
}
div[style*="center/cover fixed"] h1 {
    text-align: center !important;
    color: var(--accent-gold) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
div[style*="center/cover fixed"] p {
    text-align: center !important;
    color: #e2e8f0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 🚀 FIX: READABILITY ON DARK BACKGROUNDS (Hero & CTA Panel) */
.cta-panel h2, .hero-title, .footer-brand h3, .footer-col h4, .legacy-year-badge span {
    color: #ffffff !important;
}
.cta-panel p, .hero-desc, .footer-brand p, .footer-links a {
    color: #e2e8f0 !important; /* Brighter gray for contrast */
}

/* 🚀 FIX: PROTECT SMALL UI ELEMENTS FROM JUSTIFY STRETCHING */
.hero-kicker, .hero-stat-item span, .home-btn, .date-badge, .status-badge, 
.nav-btn, .msg-contact, .footer-bottom-inner p, .article-meta {
    text-align: left !important;
    font-size: 13px !important;
}
.hero-stats-row {
    text-align: center !important;
}


/* ==========================================================
   2. BACKGROUNDS & ANIMATIONS
   ========================================================== */

.premium-page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -10;
    background-image:
        linear-gradient(90deg, rgba(0,43,91,0.035) 1px, transparent 1px),
        linear-gradient(rgba(0,43,91,0.035) 1px, transparent 1px);
    background-size: 44px 44px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes premiumFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes headerDrop {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes socialPop {
    from { opacity: 0; transform: translateX(28px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, 110px) scale(1.05); }
    100% { transform: translate(-40px, 60px) scale(0.95); }
}


/* ==========================================================
   3. HEADER & NAVIGATION
   ========================================================== */

.premium-header {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    position: sticky;
    top: 0;
    z-index: 7000;
    background: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 10px 30px rgba(0,43,91,0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: headerDrop 0.55s ease both;
}

.premium-top-bar,
.premium-main-nav {
    width: min(1420px, 94%);
    margin: 0 auto;
}

.premium-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid rgba(226,232,240,0.8);
}

.top-brand-note,
.top-contact a {
    color: var(--primary-navy);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.top-contact {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.premium-main-nav {
    min-height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo img {
    max-height: 52px;
    width: auto;
    display: block;
    transition: transform 0.28s ease, filter 0.28s ease;
}

.logo:hover img {
    transform: scale(1.04);
    filter: drop-shadow(0 8px 14px rgba(0,43,91,0.15));
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
}

.desktop-menu > li {
    position: relative;
    flex-shrink: 0;
}

.nav-main-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-navy);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    padding: 14px 0;
    white-space: nowrap;
}

.nav-main-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 7px;
    width: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--accent-gold);
    transition: width 0.28s ease;
}

.nav-main-link:hover,
.desktop-dropdown-wrapper:hover > .nav-main-link {
    color: var(--accent-gold);
}

.nav-main-link:hover::after,
.desktop-dropdown-wrapper:hover > .nav-main-link::after {
    width: 100%;
}

.contact-btn,
.mobile-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-navy) !important;
    color: #fff !important;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0,43,91,0.15);
    transition: 0.28s ease;
}

.contact-btn:hover,
.mobile-contact-btn:hover {
    background: var(--accent-gold) !important;
    color: var(--primary-navy) !important;
    transform: translateY(-2px);
}


/* ==========================================================
   4. DROPDOWNS & MOBILE MENU
   ========================================================== */

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    max-width: 320px;
    list-style: none;
    padding: 10px;
    margin: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.95);
    border-top: 3px solid var(--accent-gold);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,43,91,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: 0.25s ease;
    z-index: 8000;
}

.desktop-dropdown-wrapper:hover > .dropdown-menu,
.has-deep-submenu:hover > .deep-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    position: relative;
}

.dropdown-menu a {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--primary-navy);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.dropdown-menu a:hover {
    background: rgba(241,245,249,0.9);
    color: var(--accent-gold);
}

.deep-menu {
    top: -10px;
    left: 100%;
}

.services-menu-item .services-level-3,
.child-menu {
    left: auto;
    right: 100%;
    border-left: 0;
    border-right: 3px solid var(--accent-gold);
}

.menu-toggle,
.drawer-close {
    display: none;
    border: 0;
    background: rgba(255,255,255,0.72);
    color: var(--primary-navy);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,11,24,0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -390px;
    width: 360px;
    max-width: 92vw;
    height: 100vh;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.35s ease;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(255,255,255,0.95);
    box-shadow: -14px 0 40px rgba(0,0,0,0.18);
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.drawer-header img {
    max-height: 46px;
}

.drawer-links {
    list-style: none;
    padding: 16px;
}

.drawer-links > li {
    border-bottom: 1px solid #eef2f7;
}

.nav-item,
.mobile-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 0;
    background: transparent;
    color: var(--primary-navy);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 4px;
    cursor: pointer;
    text-align: left;
}

.mobile-submenu {
    display: none;
    list-style: none;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: rgba(248,250,252,0.9);
}

.mobile-submenu.open {
    display: block;
}

.mobile-submenu a {
    display: block;
    padding: 10px 12px;
    color: var(--primary-navy);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 8px;
}

.mobile-submenu a:hover {
    background: #fff;
    color: var(--accent-gold);
}


/* ==========================================================
   5. FLOATING SOCIAL SIDEBAR
   ========================================================== */

.social-sidebar {
    position: fixed !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 6500 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.social-sidebar a {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 16px !important;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: 0 10px 20px rgba(0,43,91,0.15);
    backdrop-filter: blur(14px);
    transition: 0.28s ease;
    animation: socialPop 0.55s ease both;
}

.social-sidebar a:hover {
    transform: translateX(-5px) scale(1.05) !important;
    width: 48px !important;
    box-shadow: 0 14px 28px rgba(0,43,91,0.2);
}

.ss-fb { background: linear-gradient(135deg, #3b5998, #24437f) !important; }
.ss-in { background: linear-gradient(135deg, #0077b5, #005b8d) !important; }
.ss-ph { background: linear-gradient(135deg, #6c9c31, #4d791e) !important; }
.ss-wa, .ss-ig { display: none !important; }


/* ==========================================================
   6. COMMON COMPONENTS & CARDS
   ========================================================== */

.glass-card, .glass-box, .glass-article-card, .glass-team-card, 
.glass-diff-card, .knowledge-card, .legacy-value-card, .timeline-card, 
.glass-job-card, .info-card, .contact-form-glass, .glass-card-main, 
.glass-card-sidebar, .home-card, .stat-modern, .album-card, .photo-card {
    background: rgba(255,255,255,0.7) !important;
    border: 1px solid rgba(255,255,255,0.95) !important;
    border-radius: var(--card-radius) !important;
    box-shadow: 0 12px 30px rgba(0,43,91,0.06) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.glass-card:hover, .glass-box:hover, .glass-article-card:hover, 
.glass-team-card:hover, .glass-diff-card:hover, .knowledge-card:hover, 
.legacy-value-card:hover, .timeline-card:hover, .glass-job-card:hover, 
.info-card:hover, .contact-form-glass:hover, .glass-card-sidebar:hover, 
.home-card:hover, .stat-modern:hover, .album-card:hover, .photo-card:hover {
    transform: translateY(-5px) !important;
    border-color: color-mix(in srgb, var(--accent-gold) 60%, white) !important;
    box-shadow: 0 18px 40px rgba(0,43,91,0.1) !important;
}

/* Forms */
input, textarea, select {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
input:focus, textarea:focus, select:focus {
    outline: none !important;
    border-color: var(--primary-navy) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-navy) 12%, transparent) !important;
    background: #fff !important;
}


/* ==========================================================
   7. FOOTER
   ========================================================== */

.premium-footer,
.main-footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #000b18, var(--primary-navy)) !important;
    color: #cbd5e1;
    border-top: 4px solid var(--accent-gold);
}

.premium-footer-inner,
.footer-container {
    position: relative;
    width: min(1320px, 92%);
    margin: 0 auto;
    padding: 64px 0 52px;
    display: grid;
    grid-template-columns: 1.45fr 1.25fr 0.85fr 1fr;
    gap: 48px;
}

.footer-brand h3::after,
.footer-col h4::after,
.footer-brand-col h3::after {
    content: '';
    display: block;
    width: 35px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 99px;
    margin-top: 10px;
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.footer-socials a,
.footer-contact-item i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--accent-gold);
    border-radius: 50%;
    text-decoration: none;
}

.footer-contact-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-contact-item strong {
    display: block;
    color: #fff;
    margin-bottom: 4px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover, .footer-contact-item a:hover { color: var(--accent-gold) !important; }

.premium-footer-bottom,
.footer-bottom-inner {
    width: min(1320px, 92%);
    margin: 0 auto;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}


/* ==========================================================
   8. RESPONSIVE MEDIA QUERIES
   ========================================================== */

@media (max-width: 1100px) {
    .desktop-menu { display: none; }
    .menu-toggle { display: inline-flex; }
    .premium-footer-inner,
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .premium-top-bar { display: none; }
    .premium-main-nav { width: 100%; min-height: 64px; padding: 12px 18px; }
    .logo img { max-height: 44px; }
    
    /* Move sidebar to bottom on mobile */
    .social-sidebar {
        right: 0 !important;
        left: 0 !important;
        top: auto !important;
        bottom: 0 !important;
        transform: none !important;
        flex-direction: row !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .social-sidebar a {
        flex: 1 !important;
        width: auto !important;
        height: 48px !important;
        border-radius: 0 !important;
        animation: none !important;
    }

    .social-sidebar a:hover {
        width: auto !important;
        transform: translateY(-4px) !important;
    }
    
    body { padding-bottom: 48px; }
    .premium-footer-inner, .footer-container { grid-template-columns: 1fr; padding: 48px 0 38px; }
    .premium-footer-bottom, .footer-bottom-inner { display: block; text-align: center; }
    .premium-footer-bottom a, .footer-legal a { display: inline-block; margin: 10px 6px 0; }
}