/*
Theme Name: KPMG Corporate
Theme URI: https://alnasirco.com
Author: Corporate Dev
Description: Enterprise consulting WordPress theme inspired by KPMG branding.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: kpmg-corporate
*/

/* ==========================================================================
   1. GLOBAL DESIGN VARIABLES & RESET
   ========================================================================== */
:root {
    --kpmg-blue: #00338d;
    --kpmg-cobalt: #1e49e2;
    --kpmg-navy: #0c233c;
    --kpmg-light-blue: #0091da;
    --kpmg-text: #333940;
    --kpmg-bg-gray: #f4f6fa;
    --kpmg-border: #d8dfe9;
    --font-heading: 'Open Sans', Arial, sans-serif;
    --font-body: 'Open Sans', Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--kpmg-text);
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--kpmg-cobalt);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   2. GEOMETRY & LAYOUT GRID
   ========================================================================== */
.kpmg-container {
    max-width: 1280px; /* Aligned with standard enterprise layouts */
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}
.kpmg-brand {
    display: flex;
    align-items: center;
}
/* Strict Zero Border-Radius Rule */
button, input, select, textarea, .kpmg-card, .kpmg-btn, img {
    border-radius: 0px !important;
}

/* ==========================================================================
   3. HEADER & DYNAMIC LOGO
   ========================================================================== */
.kpmg-header {
    background: #ffffff;
    border-bottom: 1px solid var(--kpmg-border);
    position: relative;
    z-index: 1000;
}

.kpmg-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}



.kpmg-brand img, .custom-logo {
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Fallback Text Logo */
.kpmg-logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--kpmg-blue);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
}

.kpmg-logo:hover {
    color: var(--kpmg-cobalt);
    text-decoration: none;
}

/* ==========================================================================
   4. NAVIGATION & MEGA MENU
   ========================================================================== */
.kpmg-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.kpmg-menu-item {
    position: static; /* Full-width mega menu alignment */
}

.kpmg-menu-link {
    display: block;
    padding: 24px 20px;
    color: var(--kpmg-text);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease-in-out;
}

.kpmg-arrow {
    font-size: 10px;
    margin-left: 4px;
}

.kpmg-menu-item:hover .kpmg-menu-link {
    color: var(--kpmg-blue);
    border-bottom-color: var(--kpmg-blue);
    text-decoration: none;
}

/* Full Width Dropdown Panel */
.kpmg-megamenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 3px solid var(--kpmg-blue);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.08);
    padding: 40px 0;
    z-index: 999;
}

/* Removes native hover and relies on JavaScript active class */
.kpmg-has-megamenu:hover .kpmg-megamenu {
    /*display: none; */
}
.kpmg-has-megamenu.is-active .kpmg-megamenu {
    display: block !important;
}
.kpmg-megamenu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.kpmg-megamenu-title {
    font-size: 16px;
    color: var(--kpmg-blue);
    margin: 0 0 16px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpmg-megamenu-title a {
    color: var(--kpmg-blue);
    text-decoration: none;
}

.kpmg-megamenu-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kpmg-megamenu-col ul li {
    margin-bottom: 12px;
}

.kpmg-megamenu-col ul li a {
    color: var(--kpmg-text);
    font-size: 14px;
    text-decoration: none;
}

.kpmg-megamenu-col ul li a:hover {
    color: var(--kpmg-cobalt);
    text-decoration: underline;
}

/* ==========================================================================
   5. HERO BANNER & BUTTONS
   ========================================================================== */
.kpmg-hero {
    background: var(--kpmg-navy);
    color: #ffffff;
    padding: 80px 0;
    border-bottom: 4px solid var(--kpmg-blue);
}

.kpmg-hero h1 {
    font-size: 48px;
    font-weight: 300;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.kpmg-hero-tag {
    display: inline-block;
    color: var(--kpmg-light-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

/* Corporate Buttons */
.kpmg-btn {
    display: inline-block;
    background: var(--kpmg-blue);
    color: #ffffff !important;
    padding: 12px 28px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.kpmg-btn:hover {
    background: var(--kpmg-cobalt);
    text-decoration: none;
}

.kpmg-btn-outline {
    background: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

.kpmg-btn-outline:hover {
    background: #ffffff !important;
    color: var(--kpmg-navy) !important;
}

/* ==========================================================================
   6. CARDS & GRID
   ========================================================================== */
.kpmg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.kpmg-card {
    background: #ffffff;
    border: 1px solid var(--kpmg-border);
    padding: 32px;
    transition: border-color 0.2s ease-in-out;
}

.kpmg-card:hover {
    border-color: var(--kpmg-blue);
}

.kpmg-card h3 {
    color: var(--kpmg-blue);
    margin-top: 0;
    font-size: 22px;
}

.kpmg-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--kpmg-cobalt);
    font-weight: 700;
    font-size: 14px;
}

.kpmg-link:hover {
    color: var(--kpmg-blue);
    text-decoration: underline;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.kpmg-footer {
    background: var(--kpmg-navy);
    color: #ffffff;
    padding: 60px 0;
    margin-top: 80px;
    font-size: 14px;
}
/* Crisp HTML/CSS Logo Component */
.kpmg-brand-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none !important;
}

/* Crisp Icon Image */
.kpmg-brand-icon {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Sharp Text Stack */
.kpmg-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.kpmg-brand-tagline {
    font-size: 10px;
    font-weight: 600;
    color: #6c757d;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.kpmg-brand-title {
    font-size: 24px;
    font-weight: 800;
    color: #00338d; /* KPMG Primary Blue */
    letter-spacing: 1px;
    text-transform: uppercase;
}
/* Dynamic Logo Container */


/* Base image rules (overridden dynamically by Site Identity controls) */
.kpmg-brand img, 
.custom-logo {
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}
/* Top Utility Bar */
.kpmg-top-bar {
    background-color: #f4f4f4;
    border-bottom: 1px solid #e0e0e0;
    font-size: 12px;
    padding: 8px 0;
}

.kpmg-top-bar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.kpmg-top-utility-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kpmg-utility-link {
    color: #333333;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.kpmg-utility-link:hover {
    color: #00338d; /* KPMG Blue */
}

.kpmg-sep {
    color: #cccccc;
}

.kpmg-lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-weight: 700;
    color: #00338d;
}

/* Main Navigation Bar Alignment */
.kpmg-main-bar {
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.kpmg-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Header Wrapper Reset */
.kpmg-site-header {
    width: 100%;
    position: relative;
    z-index: 999;
    font-family: 'Open Sans', sans-serif;
}

/* Top Utility Bar Styling */


.kpmg-top-bar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.kpmg-top-utility-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kpmg-utility-link {
    color: #333333;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.kpmg-utility-link:hover {
    color: #00338d; /* KPMG Corporate Blue */
}

.kpmg-sep {
    color: #cccccc;
}

.kpmg-lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-weight: 700;
    color: #00338d;
}

/* Main Bar Alignment */
.kpmg-main-bar {
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.kpmg-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
}

/* Navigation List Fixes */
.kpmg-nav .kpmg-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.kpmg-menu-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 0;
    display: block;
}

.kpmg-menu-link:hover {
    color: #00338d;
}
/* Invisible hover bridge for the mega menu */
.kpmg-megamenu::before {
    content: "";
    position: absolute;
    top: -30px; /* Reaches up to cover the gap */
    left: 0;
    width: 100%;
    height: 30px; /* Fills the empty space */
    background: transparent; 
}

/* Ensure the nav list items stretch to fill the height to catch the mouse */
.kpmg-nav .kpmg-menu {
    align-items: stretch;
}

.kpmg-menu-item {
    display: flex;
    align-items: center;
}