/*
Theme Name: SpecXWise Corporate
Theme URI: https://specxwise.com
Author: SpecXWise
Description: A multi-page corporate theme.
Version: 6.0
*/

/* --- THEME VARIABLES --- */
:root {
    --primary: #002B49; /* Deep Consulting Navy */
    --primary-dark: #001f35;
    --accent: #C5A059; /* Muted Gold / Bronze */
    --accent-hover: #b08d4b;
    --text-main: #2D2D2D;
    --text-light: #5A5A5A;
    --bg-light: #F9F9F9;
    --bg-white: #ffffff;
    --border: #E5E5E5;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

/* --- GLOBAL RESETS --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; margin-top: 0 !important; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.8;
    overflow-x: hidden;
    font-size: 17px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
    font-weight: 700;
}
h1 { letter-spacing: -0.5px; }
h2 { font-size: 2.5rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 15px; }

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }

/* --- UTILITIES --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.bg-light { background-color: var(--bg-light); }

.divider { width: 60px; height: 3px; background-color: var(--accent); margin: 20px 0; }
.divider.center { margin: 20px auto; }
.divider.left { margin: 20px 0; }

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background-color: var(--accent);
    color: var(--bg-white);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn:hover { background-color: var(--primary); color: var(--bg-white); }
.btn i { margin-left: 10px; }

.btn-text {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}
.btn-text:hover { border-color: var(--accent); }

/* --- HEADER --- */
header {
    position: fixed;
    top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 20px 0;
    background: rgba(0, 43, 73, 0.98); /* Ensure background is dark */
    backdrop-filter: blur(10px);
}
nav { display: flex; justify-content: space-between; align-items: center; position: relative; }

/* LOGO - Force White */
.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff !important; /* FORCE WHITE */
    display: flex; align-items: center; gap: 8px;
    line-height: 1;
}
.logo span { color: var(--accent); }
.logo-text { letter-spacing: -1px; }

/* --- DESKTOP NAVIGATION --- */
.nav-menu > ul { display: flex; gap: 30px; margin: 0; padding: 0; }
.nav-menu > ul > li { list-style: none; position: relative; }

/* FORCE WHITE TEXT ON LINKS */
.nav-menu > ul > li > a {
    font-weight: 400; font-size: 0.85rem;
    color: #ffffff !important; /* FORCE WHITE */
    text-transform: uppercase; letter-spacing: 1px;
    display: block; padding: 10px 0;
}
.nav-menu > ul > li > a:hover { color: var(--accent) !important; }
.nav-menu > ul > li.current-menu-item > a { color: var(--accent) !important; }

/* Desktop Dropdown */
.nav-menu ul ul {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background: var(--primary);
    min-width: 240px; padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999;
}
.nav-menu li:hover > ul { display: block; }
.nav-menu ul ul li { display: block; width: 100%; }
.nav-menu ul ul li a {
    display: block; padding: 12px 20px;
    text-transform: none; font-size: 0.9rem;
    color: #ffffff !important; /* FORCE WHITE */
    border-bottom: 1px solid rgba(255,255,255,0.05);
    white-space: nowrap;
}
.nav-menu ul ul li a:hover { background: rgba(255,255,255,0.05); color: var(--accent) !important; }

.mobile-toggle { display: none; color: white; cursor: pointer; }

/* --- HERO SECTION --- */
.hero {
    position: relative; height: 85vh; min-height: 600px;
    display: flex; align-items: center;
    color: var(--bg-white); background-color: var(--primary);
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80&w=2000') no-repeat center center/cover;
    opacity: 0.4;
}
.hero::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,43,73,0.9) 0%, rgba(0,43,73,0.4) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { font-size: 4.5rem; margin-bottom: 30px; color: white; line-height: 1.1; }
.hero h1 span { color: var(--accent); display: inline-block; }
.hero p { font-size: 1.35rem; color: rgba(255,255,255,0.95); margin-bottom: 50px; font-weight: 300; max-width: 600px; }

/* --- PAGE HEADER FIX (Force White Title) --- */
.page-header {
    background: var(--primary);
    padding: 220px 0 100px;
    color: white; text-align: center;
    position: relative; overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=2000') no-repeat center center/cover;
    opacity: 0.1;
}
.page-header .container { position: relative; z-index: 2; }

/* The Specific Fix */
.page-header h1 { 
    font-size: 3.5rem; 
    margin-bottom: 15px; 
    color: #ffffff !important; 
}

/* --- CONTENT SECTIONS --- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.intro-img-wrapper { position: relative; }
.intro-img-wrapper img { box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-radius: 4px; }
.stat-box { 
    background: var(--primary); color: white; padding: 40px; 
    position: absolute; bottom: -30px; right: -30px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.stat-number { font-family: var(--font-heading); font-size: 3rem; color: var(--accent); display: block; line-height: 1; }
.stat-label { text-transform: uppercase; letter-spacing: 1px; font-size: 0.75rem; margin-top: 5px; display: block;}

/* Services Grid */
.service-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.service-item { background: white; padding: 60px 40px; transition: all 0.3s; }
.service-item:hover { background: #fffdf5; transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); z-index: 2; }

/* Sidebar Layout */
.page-grid { display: grid; grid-template-columns: 2.5fr 1fr; gap: 60px; margin-top: 60px; }
.content-area { text-align: left; }
.sidebar-box { background: var(--bg-light); padding: 40px; margin-bottom: 30px; border-left: 3px solid var(--accent); text-align: left; }
.sidebar-box h4 { margin-bottom: 15px; color: var(--primary); }
.sidebar-box ul li { margin-bottom: 10px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.sidebar-box ul li:last-child { border: none; }
.sidebar-box ul li a:hover { color: var(--accent); }

/* --- FORMS --- */
.contact-split { display: grid; grid-template-columns: 1fr 1.5fr; box-shadow: 0 20px 60px rgba(0,0,0,0.05); margin-top: 60px; }
.contact-info { background: var(--primary); color: white; padding: 100px 60px; text-align: left; }
.contact-info h2 { color: white; }
.contact-info p { color: rgba(255,255,255,0.8); }
.contact-form-wrapper { background: var(--bg-white); padding: 100px 80px; text-align: left; }
.form-label { display: block; margin-bottom: 10px; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; color: var(--text-light); letter-spacing: 1px; }
.form-input, .form-select { width: 100%; padding: 15px 15px; border: 1px solid var(--border); font-family: var(--font-body); font-size: 1rem; color: var(--text-main); background: #fdfdfd; }
.form-input:focus { outline: none; border-color: var(--accent); background: white; }
.form-group { margin-bottom: 25px; }

/* --- FOOTER --- */
footer { background-color: var(--primary-dark); color: rgba(255,255,255,0.5); padding: 80px 0; font-size: 0.9rem; text-align: left; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 60px; }
.footer-logo { color: white; font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 20px; display: block; }
.footer-links ul li { margin-bottom: 15px; }
.footer-links ul li a:hover { color: var(--accent); }

/* --- RESPONSIVE MOBILE FIXES --- */
@media (max-width: 992px) {
    .intro-grid, .contact-split, .page-grid { grid-template-columns: 1fr; }
    .service-row { grid-template-columns: 1fr; gap: 0; }
    .stat-box { position: relative; bottom: 0; right: 0; margin-top: -20px; margin-left: 20px; width: fit-content; }
    .footer-content { flex-direction: column; gap: 40px; }
    
    /* Hero Fixes */
    .hero { height: auto; min-height: 100vh; padding: 120px 0 60px; align-items: center; }
    .hero h1 { font-size: 2.8rem; margin-bottom: 20px; line-height: 1.2; }
    .hero p { font-size: 1.1rem; }
    
    /* Mobile Menu Toggle */
    .mobile-toggle { display: block; }
    
    /* Mobile Navigation Logic */
    .nav-menu { 
        display: none; 
        position: absolute; 
        top: 100%; left: 0; 
        width: 100%; 
        background-color: var(--primary); 
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav-menu.active { display: block; }
    
    .nav-menu > ul { flex-direction: column; gap: 0; }
    .nav-menu > ul > li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); }
    
    /* FORCE WHITE TEXT ON MOBILE */
    .nav-menu > ul > li > a { 
        padding: 15px 0;
        color: #ffffff !important; 
    }
    
    /* Mobile Dropdowns */
    .nav-menu ul ul { 
        position: static; 
        box-shadow: none; 
        padding-left: 20px;
        background: rgba(0,0,0,0.2);
        display: block; 
        min-width: unset;
    }
    .nav-menu ul ul li a { 
        color: rgba(255,255,255,0.8) !important; 
        border: none;
    }
    
    .container { padding: 0 24px; }
    .page-header { padding: 140px 0 60px; }
    .page-header h1 { font-size: 2.2rem; }
    .contact-form-wrapper, .contact-info { padding: 60px 24px; }
}

/* WP Specific */
body.admin-bar header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar header { top: 46px; } }