/* All CSS variables defined in style.css — single source of truth */

/* Ghost and Special Buttons */
.wc-btn-ghost-white {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transition: var(--transition-base);
}

.wc-btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

/* =========================================
   TEXT OPACITY UTILITIES
   ========================================= */
.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.85) !important;
}

.opacity-95 {
    opacity: 0.95 !important;
}

.opacity-75 {
    opacity: 0.75 !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

/* =========================================
   OVERLAY UTILITIES
   ========================================= */
.bg-navy-overlay-85 {
    position: relative;
}

.bg-navy-overlay-85::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.85);
    z-index: 1;
}

.bg-navy-overlay-90::before {
    background: rgba(10, 25, 47, 0.90);
}

.bg-navy-overlay-92::before {
    background: rgba(10, 25, 47, 0.92);
}

.bg-navy-overlay-95::before {
    background: rgba(10, 25, 47, 0.95);
}

/* =========================================
   HEIGHT & Z-INDEX UTILITIES
   ========================================= */
.h-300 {
    height: 300px !important;
}

.min-h-480 {
    min-height: 480px !important;
}

.z-index-1 {
    z-index: 1 !important;
}

.z-index-2 {
    z-index: 2 !important;
}

.top-0 {
    top: 0 !important;
}

.left-0 {
    left: 0 !important;
}

/* =========================================
   ANTIGRAVITY UTILITIES (V7.0.0)
   ========================================= */

.section-divider {
    border-top: 1px solid var(--color-border-soft) !important;
}

/* Standard Section Spacing (Master Build V10) */
.wc-section {
    padding-top: var(--section-padding-top, 100px);
    padding-bottom: var(--section-padding-bottom, 100px);
    position: relative;
    overflow: hidden;
}

/* =========================================
   INFORMATION MODULES & FEATURE BLOCKS
   ========================================= */
.wc-resource-card {
    background: var(--color-white);
    border-radius: var(--card-radius);
    /* 10px */
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--wc-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--color-border-soft);
}

.wc-resource-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-high-lift);
}

.wc-resource-header {
    padding: 40px;
    text-align: center;
    border-top: 5px solid transparent;
}

.wc-resource-card.blue .wc-resource-header {
    border-top-color: var(--resource-blue);
}

.wc-resource-card.yellow .wc-resource-header {
    border-top-color: var(--resource-yellow);
}

.wc-resource-card.emerald .wc-resource-header {
    border-top-color: var(--resource-emerald);
}

.wc-resource-card.navy .wc-resource-header {
    border-top-color: var(--resource-navy);
}

.wc-resource-body {
    padding: 0 40px 40px;
    flex-grow: 1;
}

.wc-feature-block {
    background: var(--feature-block-bg);
    border: 1px solid var(--feature-block-border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: var(--wc-transition);
}

.wc-feature-block:hover {
    background: #fff;
    border-color: var(--primary-cobalt);
    box-shadow: var(--shadow-sm);
}

.wc-feature-block strong {
    display: block;
    color: var(--primary-cobalt);
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   NAVIGATION DROPDOWNS
   ========================================= */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

/* Level 1 Sub Menu */
.main-navigation ul ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    transition-delay: 0.4s;
    z-index: 999;
    border-radius: 8px;
    padding: 10px 0;
    border-top: 3px solid var(--primary-cobalt);
}

.main-navigation li:hover>ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.main-navigation ul ul.sub-menu li {
    display: block;
}

.main-navigation ul ul.sub-menu li a {
    display: block;
    padding: 8px 20px;
    font-size: 0.9rem;
    color: var(--primary-navy);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.main-navigation ul ul.sub-menu li a:hover {
    background: rgba(30, 115, 190, 0.05);
    /* Cobalt tint */
    color: var(--primary-cobalt);
    padding-left: 25px;
    /* Slight shift */
}

.wc-resource-footer {
    padding: 18px;
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.wc-resource-card.blue .wc-resource-footer {
    background: var(--resource-blue);
}

.wc-resource-card.yellow .wc-resource-footer {
    background: var(--resource-yellow);
}

.wc-resource-card.emerald .wc-resource-footer {
    background: var(--resource-emerald);
}

.wc-resource-card.navy .wc-resource-footer {
    background: var(--resource-navy);
}


/* =========================================
   SERVICE CARDS (Information Modules)
   ========================================= */
/* SERVICE CARDS — base styles overridden by Glass UI (body .wc-service-card) */
/* Only keep .wc-service-card p for line-clamping */

.wc-service-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.wc-service-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.wc-service-icon-box i {
    font-size: 2rem;
}

/* Icon Tints (Meru Palette) */
.wc-icon-tint-blue {
    background: var(--accent-blue-bg);
    color: var(--accent-blue-border);
}

.wc-icon-tint-orange {
    background: var(--accent-orange-bg);
    color: var(--accent-orange-border);
}

.wc-icon-tint-green {
    background: var(--accent-green-bg);
    color: var(--accent-green-border);
}

.wc-service-card .h4 {
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.wc-service-card p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 0;
}

.wc-section-white {
    background-color: var(--bg-white);
}

.wc-section-light {
    background-color: var(--bg-light);
}

.wc-section-dark {
    background-color: var(--color-bg-dark);
    color: #ffffff;
}

.section-island {
    background-color: var(--color-white) !important;
    border-top: 1px solid var(--color-border-soft);
    border-bottom: 1px solid var(--color-border-soft);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

/* Entrance Animations (Fade In Up) — uses @keyframes fadeInUp defined below */

.wc-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.wc-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover, 0 20px 40px rgba(0, 0, 0, 0.12));
}

.glass-widget {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
}

/* Antigravity Floating Card Effect — see Master Build V10.1 block below for definitive styles */

.fluent-icon {
    font-weight: 300;
    transition: color var(--transition-base);
}

/* --- Sticky Header & Logo --- */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.logo-constrained {
    max-height: 55px !important;
    /* Increased from 40-50 range found in screenshots */
    width: auto !important;
    object-fit: contain !important;
}

.brand-logo-sm {
    max-height: 40px !important;
    width: auto !important;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brand-logo-sm:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* DEEP AUDIT: Grayscale to Color Partner Bar */
.grayscale-to-color img {
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.grayscale-to-color img:hover {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-2px);
}

.partner-text-logo {
    font-weight: 700;
    color: #5f6368;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.partner-text-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-2px);
}

.wc-card-premium {
    background: #ffffff;
    border-radius: var(--wc-radius);
    border-top: 4px solid var(--wc-navy-ms);
    box-shadow: var(--wc-shadow-premium);
    padding: 40px;
}

/* ===================== BENTO GRID & GLASS EFFECTS ===================== */
.wc-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: var(--wc-gutter-bento);
}

.wc-bento-tile {
    padding: 40px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--wc-transition);
}

.wc-bento-tile-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}

.wc-bento-tile-1x1 {
    grid-column: span 1;
    grid-row: span 1;
}

@media (max-width: 992px) {
    .wc-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .wc-bento-grid {
        grid-template-columns: 1fr;
    }

    .wc-bento-tile-2x2,
    .wc-bento-tile-1x1 {
        grid-column: span 1;
        grid-row: auto;
    }
}

/* ===================== JURISDICTION HUB (Floating Bar) ===================== */
.jurisdiction-floating-hub {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1040;
    background: #ffffff;
    border: var(--border-base);
    border-radius: 30px;
    padding: 8px 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-base);
}

.jurisdiction-floating-hub:hover {
    box-shadow: var(--shadow-high-lift);
    transform: translateX(-5px);
}

.country-pill {
    font-size: 11px;
    font-weight: 700;
    color: var(--wc-text-muted);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 20px;
    transition: 0.2s;
}

.country-pill.active,
.country-pill:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.authority-compliance-bar {
    background: #f8f9fa;
    border-top: var(--border-base);
    border-bottom: var(--border-base);
    padding: 20px 0;
}

.authority-logo {
    height: 35px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: 0.3s;
}

.authority-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.wc-glass-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--card-radius, 10px);
    color: var(--text-primary, #111827);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.wc-glass-card .wc-body,
.wc-glass-card .wc-heading-sm {
    color: var(--text-primary, #111827);
}

.wc-auth-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.wc-auth-tag-irs {
    background: #E8F0FE;
    color: #1967D2;
    border: 1px solid #1967D2;
}

.wc-auth-tag-fta {
    background: #E6F4EA;
    color: #1E8E3E;
    border: 1px solid #1E8E3E;
}

.wc-auth-tag-hmrc {
    background: #FEF7E0;
    color: #F29900;
    border: 1px solid #F29900;
}

/* Global Floating Security */
.wc-floating-security {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 200;
    border: 1px solid var(--wc-border);
}

.wc-floating-security i {
    color: var(--wc-navy-ms);
    font-size: 1.2rem;
}

.wc-floating-security span {
    font-size: 11px;
    font-weight: 600;
    color: var(--wc-text);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .wc-floating-security {
        bottom: 10px;
        left: 10px;
        padding: 8px 12px;
    }
}

/* --- Footer Bottom Polish --- */
.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

/* --- Image Containers & Scaling --- */
.img-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
}

.img-fit-cover {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.img-constrained-md {
    max-width: 400px !important;
    height: auto !important;
}

.img-constrained-sm {
    max-width: 200px !important;
    height: auto !important;
}

/* --- Dark Overlays --- */
.bg-dark-overlay {
    position: relative;
}

.bg-dark-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* --- Entrance Animations --- */
/* @keyframes fadeInUp — single definition below (Section: Core Animations) */

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* =========================================
   BIG4 INSTITUTIONAL UTILITIES (v6.2.2)
   ========================================= */

/* --- Background Gradients --- */
.bg-navy-gradient {
    background: linear-gradient(135deg, hsl(222, 47%, 20%) 0%, hsl(222, 60%, 12%) 100%);
    color: #ffffff;
}

/* --- Premium Spacing --- */
.py-100 {
    padding-top: 100px;
    padding-bottom: 100px;
}

.mb-80 {
    margin-bottom: 80px !important;
}

.mb-60 {
    margin-bottom: 60px !important;
}

.mb-50 {
    margin-bottom: 50px !important;
}

.mb-40 {
    margin-bottom: 40px !important;
}

.gap-30 {
    gap: 30px !important;
}

.gap-25 {
    gap: 25px !important;
}

/* --- Premium Shadows --- */
.shadow-premium {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 12px 24px -8px rgba(0, 0, 0, 0.08);
}

/* --- Typography Utilities --- */
.display-3 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.15;
    font-weight: 700;
}

.letter-spacing-tight {
    letter-spacing: -0.02em;
}

/* --- Border Utilities --- */
.border-white-05 {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* --- Reveal Animation --- */
@keyframes revealHeader {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-reveal-header {
    animation: revealHeader 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* =========================================
   LAYOUT UTILITIES (v6.2.2)
   ========================================= */

/* --- Auto-fit Card Grids --- */
.grid-auto-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-auto-cards-sm {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.icon-size-3 {
    font-size: 3rem !important;
}

/* .wc-card base/hover — overridden by Glass UI (body .wc-card) */

.bg-navy-overlay-92::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.92);
    z-index: 1;
}

.bg-navy-overlay-95::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.95);
    z-index: 1;
}

.bg-navy-overlay-90::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.9);
    z-index: 1;
}

.opacity-95 {
    opacity: 0.95 !important;
}

.bg-light-blue {
    background: #f5f8fc !important;
}

.border-light-gray {
    border: 2px solid #e0e0e0 !important;
}

.text-gold-premium {
    color: #ff9900 !important;
}

.bg-gold-premium {
    background: #ff9900 !important;
}

.bg-blue-gradient {
    background: linear-gradient(135deg, #004080 0%, #0056a8 100%) !important;
}

.min-h-400 {
    min-height: 400px !important;
}

/* --- Max-width Constraints --- */
.max-w-600 {
    max-width: 600px;
}

.max-w-700 {
    max-width: 700px;
}

.max-w-800 {
    max-width: 800px;
}

.max-w-900 {
    max-width: 900px;
}

.max-w-1000 {
    max-width: 1000px;
}

.max-w-1100 {
    max-width: 1100px;
}

.max-w-1200 {
    max-width: 1200px;
}

/* --- Color & Background Utilities --- */
.text-gold-accent {
    color: #ff9900 !important;
}

.text-navy-premium {
    color: #004080 !important;
}

.bg-navy-premium {
    background-color: #004080 !important;
}

.bg-navy-gradient-soft {
    background: linear-gradient(135deg, #004080 0%, #0056a8 100%) !important;
    color: #ffffff;
}

.bg-navy-overlay-premium {
    background-image: linear-gradient(rgba(0, 103, 184, 0.9), rgba(0, 56, 101, 0.9)) !important;
    background-size: cover;
    background-position: center;
}

.rounded-10 {
    border-radius: 10px !important;
}

.line-height-1-6 {
    line-height: 1.6 !important;
}

.line-height-1-7 {
    line-height: 1.7 !important;
}

.line-height-1-8 {
    line-height: 1.8 !important;
}

.pl-20 {
    padding-left: 20px !important;
}

.mt-50 {
    margin-top: 50px !important;
}

.m-2 {
    margin: 0.5rem !important;
}

.z-index-1 {
    z-index: 1 !important;
}

.pt-pricing-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.pt-pricing-card-featured {
    border: 3px solid #ff9900;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.text-success-premium {
    color: #10b981 !important;
}

.line-through {
    text-decoration: line-through;
}

.mr-10 {
    margin-right: 10px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mb-25 {
    margin-bottom: 25px !important;
}

.rounded-20 {
    border-radius: 20px !important;
}

.px-20 {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.py-10 {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.top-n15 {
    top: -15px !important;
}

.left-50 {
    left: 50% !important;
}

.translate-middle-x {
    transform: translateX(-50%) !important;
}

.bg-fixed-cover {
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}

.bg-white-80-blur {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.min-h-90vh {
    min-height: 90vh !important;
}

.rounded-8 {
    border-radius: 8px !important;
}

.border-white-20 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.top-n15 {
    top: -15px !important;
}

/* --- Hero & Section Layout Utilities --- */
.hero-standard-py {
    padding: 100px 20px !important;
}

.section-py-80 {
    padding: 80px 20px !important;
}

.hero-display-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.hero-lead-text {
    font-size: 1.4rem !important;
    opacity: 0.95;
    line-height: 1.6;
}

.bg-navy-premium-gradient {
    background: linear-gradient(135deg, #004080 0%, #0056a8 100%) !important;
    color: #ffffff !important;
}

.pt-btn-gold-cta {
    display: inline-block;
    background: #ff9900;
    color: #ffffff !important;
    padding: 18px 45px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.pt-btn-gold-cta:hover {
    background: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.pt-btn-outline-white {
    display: inline-block;
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff !important;
    padding: 16px 43px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.pt-btn-outline-white:hover {
    background: #ffffff;
    color: #004080 !important;
}

/* --- Hero / Section Heights --- */
.min-vh-85 {
    min-height: 85vh;
}

.min-vh-90 {
    min-height: 90vh;
}

/* --- Border Radius Utilities --- */
.rounded-8 {
    border-radius: 8px;
}

/* --- Hero Overlay Backgrounds --- */
.bg-hero-navy-overlay {
    background: linear-gradient(rgba(0, 61, 130, 0.85), rgba(0, 61, 130, 0.85));
    background-size: cover;
    background-position: center;
}

.bg-hero-dark-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    background-size: cover;
    background-position: center;
}

/* --- Mega Menu \u0026 Navigation --- */
.main-navigation .nav-menu {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation .nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 15px;
    padding: 10px 0;
    transition: color var(--transition-base);
    position: relative;
}

.main-navigation .nav-link:hover {
    color: var(--accent-lime);
}

/* Mega Menu Reveal Logic */
.menu-item-has-mega {
    position: static;
    /* Required for full-width mega menu */
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(0, 103, 184, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.menu-item-has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu h5 {
    letter-spacing: 0.5px;
    border-left: 3px solid var(--color-primary);
    padding-left: 12px;
}

.mega-menu a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 6px 0;
    transition: color 0.2s;
}

.mega-menu a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.industry-promo {
    border: var(--border-base);
    background: var(--color-bg-light) !important;
}

.btn-navy {
    background: var(--color-bg-dark);
    color: white;
}

.btn-navy:hover {
    opacity: 0.9;
    color: white;
}

/* --- Big4 Premium Image System --- */
.big4-img-premium {
    filter: contrast(1.1) brightness(0.95) saturate(0.85);
    transition: filter 0.5s var(--transition-base), transform 0.5s var(--transition-base);
}

.big4-img-premium:hover {
    filter: contrast(1.15) brightness(1) saturate(1);
    transform: scale(1.02);
}

/* Professional Overlays (Microsoft/PwC Style) */
.big4-overlay-blue {
    position: relative;
    overflow: hidden;
}

.big4-overlay-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 103, 184, 0.2) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.big4-overlay-dark {
    position: relative;
    overflow: hidden;
}

.big4-overlay-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(17, 17, 17, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Soft Edge Feathering for Hero Backgrounds */
.big4-img-feather {
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* --- Global Hiding Rules for Ubiquitous Images/Badges --- */
#sg-performance-badge,
.sg-performance-badge,
#speedycache-badge,
.speedycache-badge,
.siteground-badge {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* --- PAYROLL PAGE DESIGN STARTS --- */

/* --- Base Typography --- */
body {
    font-family: var(--font-body);
    font-size: var(--body-size);
    line-height: var(--body-line-height);
    color: var(--color-text);
    background-color: var(--color-bg-light);
}

h1,
.h1 {
    font-size: var(--h1-size);
    font-weight: var(--h1-weight);
    line-height: 1.2;
}

h2,
.h2 {
    font-size: var(--h2-size);
    font-weight: var(--h2-weight);
}

h3,
.h3 {
    font-size: var(--h3-size);
    font-weight: var(--h3-weight);
}

h4,
.h4 {
    font-size: var(--h4-size);
    font-weight: var(--h4-weight);
}

/* --- Section Spacing --- */
section,
.section-padding {
    padding: var(--section-padding);
}

/* --- Scoped Wrapper to prevent theme conflicts --- */
.payroll-wrapper * {
    box-sizing: border-box;
}

.payroll-wrapper {
    font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
    color: #333333;
    line-height: 1.6;
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    /* Reset spacing for the whole wrapper */
    padding: 0;
}

/* --- THEME COLORS --- */
.payroll-wrapper,
.page-payroll .entry-content {
    --primary: #004080;
    /* Navy Blue */
    --secondary: #0056a8;
    /* Lighter Blue */
    --accent: #ff9900;
    /* Orange */
    --bg-light: #f4f7f9;
    /* Light Gray Background */
    --text-gray: #666666;
}

/* --- Utilities --- */
.payroll-wrapper .text-center {
    text-align: center;
}

.payroll-wrapper .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5%, 120px);
}

.payroll-wrapper .btn,
.payroll-wrapper a.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.payroll-wrapper .btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.payroll-wrapper .btn-primary:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
}

.payroll-wrapper .btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.payroll-wrapper .btn-outline:hover {
    background: #ffffff;
    color: var(--primary);
}

/* --- Hero Section --- */
.payroll-wrapper .hero-section {
    background:
        linear-gradient(135deg, rgba(0, 64, 128, 0.95) 0%, rgba(0, 86, 168, 0.95) 100%),
        radial-gradient(900px 400px at 80% -10%, rgba(255, 153, 0, 0.18), transparent 60%);
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.payroll-wrapper .hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.payroll-wrapper .hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Intro Section --- */
.payroll-wrapper .intro-section {
    padding: 60px 0;
    background: #fff;
}

.payroll-wrapper .intro-section h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 15px;
    margin-top: 0;
}

.payroll-wrapper .intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.payroll-wrapper .stat-card {
    background: var(--bg-light);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    border-bottom: 4px solid var(--accent);
}

.payroll-wrapper .stat-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1;
}

.payroll-wrapper .stat-label {
    font-weight: 600;
    color: var(--text-gray);
    margin-top: 10px;
    display: block;
}

/* --- Services Grid --- */
.payroll-wrapper .services-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.payroll-wrapper .section-header {
    margin-bottom: 50px;
    text-align: center;
}

.payroll-wrapper .section-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
    margin-top: 0;
}

.payroll-wrapper .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.payroll-wrapper .service-card {
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary);
}

.payroll-wrapper .service-card:hover {
    transform: translateY(-5px);
}

.payroll-wrapper .service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.payroll-wrapper .service-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
    margin-top: 0;
}

.payroll-wrapper .service-card ul {
    padding-left: 20px;
    margin-top: 15px;
    color: var(--text-gray);
}

/* --- Process --- */
.payroll-wrapper .process-section {
    padding: 60px 0;
    background: #fff;
}

.payroll-wrapper .step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.payroll-wrapper .step-num,
.payroll-wrapper .step-number,
.payroll-wrapper .step-circle {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin-right: 25px;
    box-shadow: 0 4px 10px rgba(0, 64, 128, 0.3);
}

.payroll-wrapper .step-item>span:first-child,
.payroll-wrapper .step-item>p:first-child {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 25px;
    box-shadow: 0 4px 10px rgba(0, 64, 128, 0.3);
}

.payroll-wrapper .step-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.4rem;
    margin-top: 5px;
}

/* --- Pricing --- */
.payroll-wrapper .pricing-section {
    padding: 60px 0;
    background: #fff;
}

.payroll-wrapper .pricing-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 50px;
    text-align: center;
    border-radius: 10px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.payroll-wrapper .price-big {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 20px 0;
    display: block;
}

.payroll-wrapper .price-sub {
    color: var(--text-gray);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: block;
}

/* --- Contact --- */
.payroll-wrapper .contact-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.payroll-wrapper .contact-form-wrap {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.payroll-wrapper .form-group {
    margin-bottom: 20px;
}

.payroll-wrapper .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.payroll-wrapper .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.payroll-wrapper input[type="text"],
.payroll-wrapper input[type="email"],
.payroll-wrapper input[type="tel"],
.payroll-wrapper textarea,
.payroll-wrapper select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}

.payroll-wrapper .form-control:focus {
    border-color: var(--primary);
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.1);
}

/* --- CTA --- */
.payroll-wrapper .cta-section {
    background: var(--primary);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

/* Responsive Fixes */
@media(max-width: 768px) {
    .payroll-wrapper .hero-section h1 {
        font-size: 2rem;
    }

    .payroll-wrapper .step-item {
        flex-direction: column;
        text-align: center;
    }

    .payroll-wrapper .step-num {
        margin: 0 auto 15px;
    }

    .payroll-wrapper .container {
        padding: 0 15px;
    }
}

/* --- PAYROLL PAGE DESIGN ENDS --- */

/* --- PAYROLL PAGE FALLBACK (NO WRAPPER) --- */
.page-payroll .entry-content {
    font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
    color: #333333;
    line-height: 1.6;
}

.page-payroll .entry-content .text-center {
    text-align: center;
}

.page-payroll .entry-content .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5%, 120px);
}

.page-payroll .entry-content .btn,
.page-payroll .entry-content a.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.page-payroll .entry-content .btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-payroll .entry-content .btn-primary:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
}

.page-payroll .entry-content .btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.page-payroll .entry-content .btn-outline:hover {
    background: #ffffff;
    color: var(--primary);
}

.page-payroll .entry-content .hero-section {
    background:
        linear-gradient(135deg, rgba(0, 64, 128, 0.95) 0%, rgba(0, 86, 168, 0.95) 100%),
        radial-gradient(900px 400px at 80% -10%, rgba(255, 153, 0, 0.18), transparent 60%);
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.page-payroll .entry-content .hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-payroll .entry-content .hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-payroll .entry-content .intro-section {
    padding: 60px 0;
    background: #fff;
}

.page-payroll .entry-content .intro-section h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 15px;
    margin-top: 0;
}

.page-payroll .entry-content .intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-payroll .entry-content .stat-card {
    background: var(--bg-light);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    border-bottom: 4px solid var(--accent);
}

.page-payroll .entry-content .stat-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1;
}

.page-payroll .entry-content .stat-label {
    font-weight: 600;
    color: var(--text-gray);
    margin-top: 10px;
    display: block;
}

.page-payroll .entry-content .services-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.page-payroll .entry-content .section-header {
    margin-bottom: 50px;
    text-align: center;
}

.page-payroll .entry-content .section-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
    margin-top: 0;
}

.page-payroll .entry-content .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.page-payroll .entry-content .service-card {
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary);
}

.page-payroll .entry-content .service-card:hover {
    transform: translateY(-5px);
}

.page-payroll .entry-content .service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.page-payroll .entry-content .service-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
    margin-top: 0;
}

.page-payroll .entry-content .service-card ul {
    padding-left: 20px;
    margin-top: 15px;
    color: var(--text-gray);
}

.page-payroll .entry-content .process-section {
    padding: 60px 0;
    background: #fff;
}

.page-payroll .entry-content .step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.page-payroll .entry-content .step-num,
.page-payroll .entry-content .step-number,
.page-payroll .entry-content .step-circle {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin-right: 25px;
    box-shadow: 0 4px 10px rgba(0, 64, 128, 0.3);
}

.page-payroll .entry-content .step-item>span:first-child,
.page-payroll .entry-content .step-item>p:first-child {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 25px;
    box-shadow: 0 4px 10px rgba(0, 64, 128, 0.3);
}

.page-payroll .entry-content .step-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.4rem;
    margin-top: 5px;
}

.page-payroll .entry-content .pricing-section {
    padding: 60px 0;
    background: #fff;
}

.page-payroll .entry-content .pricing-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 50px;
    text-align: center;
    border-radius: 10px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-payroll .entry-content .price-big {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 20px 0;
    display: block;
}

.page-payroll .entry-content .price-sub {
    color: var(--text-gray);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: block;
}

.page-payroll .entry-content .contact-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.page-payroll .entry-content .contact-form-wrap {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.page-payroll .entry-content .form-group {
    margin-bottom: 20px;
}

.page-payroll .entry-content .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.page-payroll .entry-content .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.page-payroll .entry-content input[type="text"],
.page-payroll .entry-content input[type="email"],
.page-payroll .entry-content input[type="tel"],
.page-payroll .entry-content textarea,
.page-payroll .entry-content select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}

.page-payroll .entry-content .form-control:focus {
    border-color: var(--primary);
    outline: 2px solid transparent;
}

.page-payroll .entry-content .cta-section {
    background: var(--primary);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

@media(max-width: 768px) {
    .page-payroll .entry-content .hero-section h1 {
        font-size: 2rem;
    }

    .page-payroll .entry-content .step-item {
        flex-direction: column;
        text-align: center;
    }

    .page-payroll .entry-content .step-num {
        margin: 0 auto 15px;
    }

    .page-payroll .entry-content .container {
        padding: 0 15px;
    }
}

/* --- MICROSOFT-INSPIRED GLOBAL DESIGN --- */
body {
    font-family: var(--font-body);
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.6;
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.section-title,
.hero-title {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.625rem, 2.8vw, 2.125rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

h5 {
    font-size: 1rem;
    font-weight: 600;
}

h6 {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.site-main p,
.site-main li {
    color: var(--text-secondary);
}

.site-main section {
    padding: clamp(48px, 6vw, 80px) 0;
}

.container,
.site-content .container {
    max-width: 1600px;
    padding-left: clamp(20px, 5%, 120px);
    padding-right: clamp(20px, 5%, 120px);
    margin-left: auto;
    margin-right: auto;
}

.btn,
.button,
button,
input[type="submit"] {
    border-radius: 2px;
    padding: 0.5rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: normal;
    line-height: 1.4;
    transition: background-color 0.1s ease, color 0.1s ease;
}

.btn-primary,
.button-primary,
.btn-cta-gold {
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    box-shadow: none;
}

.btn-primary:hover,
.button-primary:hover,
.btn-cta-gold:hover {
    background: #005da6;
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

.btn-outline,
.button-outline {
    background: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
}

.btn-outline:hover,
.button-outline:hover {
    background: var(--primary-navy);
    color: #ffffff;
}

.card,
.service-card,
.feature-card,
.pricing-box,
.contact-form-wrap {
    border-radius: 4px;
    border: 1px solid #e6e6e6;
    box-shadow: var(--shadow-sm);
}

.card,
.service-card,
.feature-card {
    background: #ffffff;
    padding: 24px;
}

.site-main input[type="text"],
.site-main input[type="email"],
.site-main input[type="tel"],
.site-main input[type="url"],
.site-main input[type="number"],
.site-main input[type="search"],
.site-main select,
.site-main textarea {
    width: 100%;
    border: 1px solid var(--divider);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    background: #ffffff;
    color: var(--text-primary);
}

.site-main input[type="text"]:focus,
.site-main input[type="email"]:focus,
.site-main input[type="tel"]:focus,
.site-main input[type="url"]:focus,
.site-main input[type="number"]:focus,
.site-main input[type="search"]:focus,
.site-main select:focus,
.site-main textarea:focus {
    outline: 2px solid transparent;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.15);
}

.site-main table {
    border-collapse: collapse;
    border: 1px solid var(--divider);
}

.site-main th {
    background: var(--primary-navy);
    color: #ffffff;
}

.site-main tr:nth-child(even) td {
    background: #f8fafc;
}

/* --- MICROSOFT-INSPIRED PAGE COMPONENTS (CONTENT BLOCKS) --- */
.entry-content .section {
    padding: clamp(48px, 6vw, 80px) 0;
}

.entry-content .section--alt {
    background: var(--color-bg-light);
}

.entry-content .section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.625rem, 2.8vw, 2.125rem);
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.entry-content .section-subtitle,
.entry-content .lead {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    max-width: 860px;
    line-height: 1.6;
}

.entry-content .hero {
    background:
        linear-gradient(135deg, rgba(0, 61, 130, 0.95) 0%, rgba(0, 120, 212, 0.95) 100%),
        radial-gradient(900px 400px at 80% -10%, rgba(212, 175, 55, 0.2), transparent 60%);
    color: #ffffff;
    padding: clamp(60px, 8vw, 120px) 0;
}

.entry-content .hero .section-title,
.entry-content .hero .section-subtitle {
    color: #ffffff;
}

.entry-content .hero .section-subtitle {
    opacity: 0.95;
}

.entry-content .grid {
    display: grid;
    gap: 28px;
}

.entry-content .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-content .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-content .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 992px) {

    .entry-content .grid--3,
    .entry-content .grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    .entry-content .grid--2,
    .entry-content .grid--3,
    .entry-content .grid--4 {
        grid-template-columns: 1fr;
    }
}

.entry-content .icon-card {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    padding: 24px;
    box-shadow: none;
    transition: box-shadow 0.2s ease;
}

.entry-content .icon-card:hover {
    box-shadow: var(--shadow-md);
}

.entry-content .icon-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 120, 212, 0.12);
    color: var(--accent-blue);
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.entry-content .icon-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.entry-content .icon-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.entry-content .icon-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success-green);
    font-weight: 700;
}

.entry-content .stepper {
    display: grid;
    gap: 24px;
}

.entry-content .step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: start;
}

.entry-content .step__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-navy);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0, 61, 130, 0.2);
}

.entry-content .logo-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 18px;
    align-items: center;
}

.entry-content .logo-strip img {
    max-height: 44px;
    width: auto;
    opacity: 0.85;
    filter: grayscale(1);
}

.entry-content .faq {
    border: 1px solid var(--divider);
    border-radius: 14px;
    overflow: hidden;
}

.entry-content .faq-item {
    border-bottom: 1px solid var(--divider);
    padding: 18px 22px;
}

.entry-content .faq-item:last-child {
    border-bottom: none;
}

.entry-content .cta-banner {
    background:
        linear-gradient(135deg, rgba(0, 61, 130, 0.95) 0%, rgba(0, 120, 212, 0.95) 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: clamp(28px, 4vw, 50px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 768px) {
    .entry-content .cta-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* --- SERVICE PAGE CONTENT FIXES (PAYROLL LIVE PAGE) --- */
.service-single .entry-content .hero-section {
    background:
        linear-gradient(135deg, rgba(0, 61, 130, 0.95) 0%, rgba(0, 120, 212, 0.95) 100%),
        radial-gradient(900px 400px at 80% -10%, rgba(212, 175, 55, 0.2), transparent 60%);
    color: #ffffff;
    padding: clamp(60px, 8vw, 110px) 0;
    text-align: center;
    border-radius: 16px;
}

.service-single .entry-content .hero-section h1,
.service-single .entry-content .hero-section h2,
.service-single .entry-content .hero-section p {
    color: #ffffff;
}

.service-single .entry-content .btn,
.service-single .entry-content a.btn {
    text-decoration: none;
}

.service-single .entry-content .btn-primary {
    background: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 61, 130, 0.18);
}

.service-single .entry-content .btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

/* Fallback styling for feature cards when classes are missing */
.service-single .entry-content section {
    padding: clamp(40px, 6vw, 80px) 0;
}

.service-single .entry-content section>.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5%, 120px);
}

.service-single .entry-content .grid {
    display: grid;
    gap: 28px;
}

.service-single .entry-content .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-single .entry-content .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-single .entry-content .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 992px) {

    .service-single .entry-content .grid--3,
    .service-single .entry-content .grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    .service-single .entry-content .grid--2,
    .service-single .entry-content .grid--3,
    .service-single .entry-content .grid--4 {
        grid-template-columns: 1fr;
    }
}

.service-single .entry-content .icon-card {
    background: #ffffff;
    border: 1px solid var(--divider);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

/* Step numbers (when plain 1,2,3 text is used) */
.service-single .entry-content .stepper .step__number,
.service-single .entry-content .step-item>span:first-child,
.service-single .entry-content .step-item>p:first-child {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-navy);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 18px;
    box-shadow: 0 6px 14px rgba(0, 61, 130, 0.2);
}

/* Hide legacy CTA blocks inside content */
.service-single .entry-content .page-cta,
.service-single .entry-content .global-cta,
.service-single .entry-content .elevate-cta {
    display: none;
}

/* --- UNIVERSAL CONTENT STYLES (ENTRY CONTENT) --- */
.entry-content {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-content>* {
    margin-bottom: 1.25rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--primary-navy);
    line-height: 1.25;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.entry-content h1 {
    font-size: 2.2rem;
}

.entry-content h2 {
    font-size: 1.9rem;
}

.entry-content h3 {
    font-size: 1.6rem;
}

.entry-content h4 {
    font-size: 1.35rem;
}

.entry-content h5 {
    font-size: 1.15rem;
}

.entry-content h6 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content table {
    color: var(--text-secondary);
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 0.08em;
}

.entry-content a:hover,
.entry-content a:focus {
    color: var(--primary-navy);
}

.entry-content img,
.entry-content video,
.entry-content iframe {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid var(--divider);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.entry-content th,
.entry-content td {
    padding: 0.9rem 1rem;
    border: 1px solid var(--divider);
    text-align: left;
    vertical-align: top;
}

.entry-content th {
    background: var(--primary-navy);
    color: #ffffff;
    font-weight: 600;
}

.entry-content tr:nth-child(even) td {
    background: #f8fafc;
}

.entry-content blockquote {
    border-left: 4px solid var(--premium-gold);
    padding: 1rem 1.25rem;
    background: #fff9e6;
    font-style: italic;
    border-radius: 6px;
}

.entry-content .wp-block-button__link,
.entry-content .button,
.entry-content button,
.entry-content input[type="submit"] {
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.entry-content .wp-block-button__link:hover,
.entry-content .button:hover,
.entry-content button:hover,
.entry-content input[type="submit"]:hover {
    background: var(--primary-navy);
    color: #ffffff;
}

.entry-content pre,
.entry-content code {
    font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.entry-content pre {
    padding: 1rem;
    overflow-x: auto;
}

.entry-content code {
    padding: 0.2rem 0.4rem;
}

@media (max-width: 768px) {
    .entry-content {
        font-size: 1rem;
    }

    .entry-content h1 {
        font-size: 1.9rem;
    }

    .entry-content h2 {
        font-size: 1.6rem;
    }

    .entry-content h3 {
        font-size: 1.35rem;
    }
}

/* =========================================
   HEADER STYLES — Microsoft Clean (v5.91)
   ========================================= */

.header-top {
    background: var(--primary-navy);
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.header-main {
    background-color: #ffffff !important;
    box-shadow: none !important;
    border-bottom: 1px solid #d2d2d2;
    position: sticky;
}

.site-header-shell {
    background-color: #ffffff !important;
}



.site-header.sticky .header-main {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: none !important;
    border-bottom: 1px solid #d2d2d2;
    animation: none;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    min-height: 72px;
}

.site-branding {
    display: flex;
    align-items: center;
    margin-right: 24px;
}

.site-title {
    margin: 0;
    font-size: 16px !important;
    font-weight: 600;
    line-height: 48px;
}

.site-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.site-description {
    display: none;
}

/* =========================================
   HERO SECTION - FIXED
   ========================================= */

.pt-hero {
    position: relative;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 60vh;
    display: flex;
    align-items: center;
    color: var(--color-white);
    background-attachment: scroll;
}

.pt-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.pt-hero-content {
    position: relative;
    z-index: 2;
}

.pt-hero h1 {
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* =========================================
   SERVICES GRID & PREMIUM CARDS
   ========================================= */

.services-overview {
    border-top: 1px solid var(--color-bg-light);
}

.pt-card {
    background: var(--color-white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
}

.premium-hover {
    box-shadow: var(--shadow-sm);
}

.premium-hover:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.pt-card .dashicons {
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.premium-hover:hover .dashicons {
    transform: scale(1.1);
}

.pt-card-premium {
    background: var(--color-white);
    border: 1px solid var(--color-border-soft);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all var(--transition-base);
}

.pt-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}

/* Master Build V10.1: High-Fidelity Floating Card */
.floating-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}

/* Advisory Hub floating CTA — REMOVED (replaced by WhatsApp button) */
.wc-floating-cta {
    display: none !important;
}

.wc-floating-cta-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wc-floating-cta-text {
    font-size: 0.9rem;
}

/* @keyframes wcSlideUp — removed (unreferenced) */

.floating-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 103, 184, 0.12);
    border-color: #0067B8 !important;
    z-index: 1000;
}

.pt-card-premium-light {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border-soft);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.pt-card-premium-light:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

/* =========================================
   NAVIGATION - FIXED VERSION
   ========================================= */

.main-navigation {
    flex: 1;
    margin: 0 2rem;
    position: static;
}

/* FIXED: Menu toggle button styling */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
    display: block;
    background-color: var(--color-text);
    height: 2px;
    width: 24px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle-icon {
    position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.menu-toggle-icon::before {
    top: -8px;
}

.menu-toggle-icon::after {
    top: 8px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
    justify-content: center;
    /* Center the menu items */
    width: 100%;
}

/* Navigation link capitalization - ensure Title Case, not uppercase */
.nav-menu>li>a {
    text-transform: none;
}

.main-navigation .sub-menu a {
    text-transform: none;
}

.nav-menu>li>a {
    color: #1a1a1a;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 0.75rem 0;
    display: block;
    transition: color 0.1s ease;
}

.nav-menu>li>a:hover,
.nav-menu>li>a:focus {
    color: var(--color-primary);
    text-decoration: underline;
}

/* FIXED: Dropdown toggle for mobile */
.dropdown-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--color-text);
}

.dropdown-icon {
    display: inline-block;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.toggled-on>.dropdown-toggle .dropdown-icon {
    transform: rotate(180deg);
}

/* =========================================
   MEGA MENU / DROPDOWN NAVIGATION
   Enhanced with smooth transitions, keyboard support, and hover bridges
   ========================================= */

@media (min-width: 992px) {
    .main-navigation .menu-item-has-children {
        position: static !important;
    }

    /* First-level Submenu (Mega Menu) — Microsoft-style Premium Look */
    .main-navigation .sub-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
        display: grid !important;
        padding: 2rem !important;
        border-top: 1px solid #eeeeee !important;
        list-style: none !important;
        margin: 0 auto !important;
        z-index: 300 !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        /* Responsive grid layout */
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
        gap: 1.5rem 2.5rem !important;
        max-width: 1400px !important;
        /* Initial hidden state */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(10px);
        transition: all 0.3s cubic-bezier(0.1, 0.7, 0.1, 1);
    }

    /* Hover Bridge - Prevents menu from closing when moving cursor down */
    .main-navigation .sub-menu::before {
        content: "";
        position: absolute;
        top: -30px;
        left: 0;
        right: 0;
        height: 30px;
        background: transparent;
        z-index: 1000;
    }

    /* Show submenu on hover, focus-within (keyboard), and manual toggle */
    .main-navigation .menu-item-has-children:hover>.sub-menu,
    .main-navigation .menu-item-has-children:focus-within>.sub-menu,
    .main-navigation .menu-item-has-children.show-submenu>.sub-menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
}

/* Compact items when grid has many entries */
.main-navigation .sub-menu.submenu-items-12,
.main-navigation .sub-menu.submenu-items-13,
.main-navigation .sub-menu.submenu-items-14,
.main-navigation .sub-menu.submenu-items-15,
.main-navigation .sub-menu.submenu-items-16 {
    grid-template-columns: repeat(4, 1fr);
}

.main-navigation .sub-menu.submenu-items-8,
.main-navigation .sub-menu.submenu-items-9,
.main-navigation .sub-menu.submenu-items-10,
.main-navigation .sub-menu.submenu-items-11 {
    grid-template-columns: repeat(3, 1fr);
}

/* Delay hiding to allow smooth cursor movement */
.main-navigation .menu-item-has-children:hover>.sub-menu {
    transition-delay: 0s;
}

.main-navigation .menu-item-has-children>.sub-menu {
    transition-delay: 0.4s;
}

/* Better grid layouts for specific item counts */
/* Better grid layouts for specific item counts */
.main-navigation .submenu-cols-2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
}

.main-navigation .submenu-cols-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
}

.main-navigation .submenu-cols-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
}

.main-navigation .submenu-cols-5 {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
}

/* First-level submenu items — Microsoft style */
.main-navigation .sub-menu li {
    display: block;
}

.main-navigation .sub-menu a {
    font-family: var(--font-body);
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 0 !important;
    color: #333333 !important;
    text-decoration: none !important;
    display: block !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease !important;
}

.main-navigation .sub-menu a:hover,
.main-navigation .sub-menu a:focus {
    color: var(--color-primary) !important;
    padding-left: 5px !important;
    background: rgba(0, 103, 184, 0.05) !important;
}

/* Third-level menu (nested submenus) - Enhanced with same smooth transitions */
.main-navigation .sub-menu .menu-item-has-children {
    position: relative;
}

/* Nested sub-menus should NOT be full-width panels */
.main-navigation .sub-menu .sub-menu {
    left: auto;
    right: auto;
    max-height: none;
    overflow-y: visible;
    border-radius: 0;
}

.main-navigation .sub-menu .sub-menu {
    position: static;
    display: block;
    grid-template-columns: 1fr;
    padding: 0.5rem 0 0 1rem;
    margin: 0.5rem 0 0 0;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--premium-gold);
    background: transparent;
    width: auto;
    /* Initial hidden state with opacity/visibility */
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    pointer-events: none;
    transform: translateY(-5px);
    /* Smooth transitions matching parent menu */
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.25s,
        max-height 0.25s ease;
}

/* Hover bridge for third-level menus */
.main-navigation .sub-menu .sub-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -1rem;
    width: calc(100% + 1rem);
    height: 10px;
    background: transparent;
}

/* Show third-level menu on hover, focus-within, and manual toggle */
.main-navigation .sub-menu .menu-item-has-children:hover>.sub-menu,
.main-navigation .sub-menu .menu-item-has-children:focus-within>.sub-menu,
.main-navigation .sub-menu .menu-item-has-children.show-submenu>.sub-menu {
    opacity: 1;
    visibility: visible;
    max-height: 1000px;
    pointer-events: auto;
    transform: translateY(0);
}

/* Delay hiding for smooth cursor movement */
.main-navigation .sub-menu .menu-item-has-children:hover>.sub-menu {
    transition-delay: 0s, 0s, 0s, 0s;
}

.main-navigation .sub-menu .menu-item-has-children>.sub-menu {
    transition-delay: 0s, 0s, 0.1s, 0s;
}

.main-navigation .sub-menu .sub-menu a {
    font-size: 0.9rem;
    padding: 0.4rem 0;
    color: var(--color-text-secondary);
    line-height: 1.6;
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.main-navigation .sub-menu .sub-menu a:hover,
.main-navigation .sub-menu .sub-menu a:focus {
    opacity: 1;
    color: var(--color-primary);
    padding-left: 0.5rem;
    outline: 2px solid transparent;
}

/* Improved line spacing for all menu levels */
.main-navigation .sub-menu>li {
    margin-bottom: 0.15rem;
    line-height: 1.35;
}

.main-navigation .sub-menu>li:last-child {
    margin-bottom: 0;
}

/* Visual indicator for items with sub-children */
.main-navigation .sub-menu .menu-item-has-children>a::after {
    content: '›';
    margin-left: 0.5rem;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
    display: inline-block;
}

.main-navigation .sub-menu .menu-item-has-children:hover>a::after {
    transform: translateX(3px);
}

/* @keyframes fadeIn — removed (unreferenced, use fadeInUp instead) */

/* Header Actions — Microsoft style */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 2px;
    transition: background-color 0.1s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #005da6;
    transform: none;
    box-shadow: none;
}

/* =========================================
   MOBILE RESPONSIVE - FIXED VERSION
   ========================================= */

@media screen and (max-width: 1024px) {
    .header-top {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        margin: 0;
    }

    .menu-primary-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .main-navigation.toggled .menu-primary-container {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 1rem;
    }

    .nav-menu>li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-menu>li>a {
        padding: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Mobile dropdown toggle visible */
    .dropdown-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        width: 48px;
        height: 48px;
    }

    .menu-item-has-children {
        position: relative;
    }

    /* Mobile submenu */
    .main-navigation .sub-menu {
        position: static;
        width: 100%;
        display: none;
        padding: 0;
        border-top: none;
        background: var(--color-bg-light);
        box-shadow: none;
        grid-template-columns: 1fr !important;
        gap: 0;
        max-height: 50vh;
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-navigation .toggled-on>.sub-menu {
        display: block;
    }

    .main-navigation .sub-menu a {
        padding: 0.75rem 1rem 0.75rem 2rem;
        border-bottom: 1px solid #ddd;
    }

    /* Don't show on hover on mobile */
    .main-navigation .menu-item-has-children:hover>.sub-menu {
        display: none;
    }

    .main-navigation .menu-item-has-children.toggled-on>.sub-menu {
        display: block !important;
    }

    /* Mobile third-level menu (sub-child pages) */
    .main-navigation .sub-menu .sub-menu {
        background: rgba(0, 0, 0, 0.02);
        border-left: 3px solid var(--premium-gold);
        margin-left: 1rem;
    }

    .main-navigation .sub-menu .sub-menu a {
        padding: 0.6rem 1rem 0.6rem 2.5rem;
        font-size: 0.9rem;
    }

    .main-navigation .sub-menu .menu-item-has-children.toggled-on>.sub-menu {
        display: block !important;
    }

    .header-actions .btn {
        padding: 0.5rem 1rem;
        font-size: var(--font-size-sm);
    }
}

@media screen and (max-width: 768px) {
    .header-main-content {
        padding: 0.75rem 0;
    }

    .site-title {
        font-size: var(--font-size-xl);
    }

    .header-actions {
        gap: 0.5rem;
    }
}

/* =========================================
   BREADCRUMBS
   ========================================= */

.breadcrumbs {
    background-color: var(--color-bg-light);
    padding: 1rem 0;
    font-size: var(--font-size-sm);
}

.breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .sep {
    margin: 0 0.5rem;
    color: var(--color-text-secondary);
}

.breadcrumbs .current {
    color: var(--color-text);
}

/* =========================================
   FOOTER STYLES
   ========================================= */

.site-footer {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    margin-top: var(--spacing-3xl);
}

.footer-widgets {
    padding: var(--spacing-3xl) 0;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

@media screen and (max-width: 1024px) {
    .footer-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 640px) {
    .footer-widgets-grid {
        grid-template-columns: 1fr;
    }
}

.footer-widget-column .widget {
    margin-bottom: var(--spacing-lg);
}

.footer-widget-column .widget-title {
    color: var(--color-white);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
}

.footer-widget-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-widget-column a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-lg) 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.footer-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media screen and (max-width: 768px) {
    .footer-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: var(--font-size-sm);
}

.footer-menu a:hover {
    color: var(--color-white);
}

/* =========================================
   SCROLL TO TOP BUTTON
   ========================================= */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
    z-index: 999;
}

.scroll-to-top:hover {
    background-color: #003d8f;
    transform: translateY(-4px);
}

.scroll-to-top.visible {
    display: flex;
}

/* =========================================
   ANIMATIONS
   ========================================= */

/* Scroll Animation Classes — removed (consolidated into visual-motion.js [data-motion]) */

/* Keyframe Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Animation Utility Classes */
.fade-in-down {
    animation: fadeInDown 0.6s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

.bounce {
    animation: bounce 1s ease-in-out;
}

/* =========================================
   UTILITY CLASSES
   ========================================= */

.ml-3 {
    margin-left: 1rem !important;
}

.ms-3 {
    margin-inline-start: 1rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 2rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link:focus {
    background-color: var(--color-bg-light);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--color-primary);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* =========================================
   CONTENT TYPOGRAPHY & LINKS
   ========================================= */

.entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.entry-content a:hover,
.entry-content a:focus {
    color: var(--color-secondary);
    text-decoration: none;
}

/* Paginated Post Links */
.page-links {
    margin: 2rem 0;
    clear: both;
}

.page-links .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--color-text);
    border-radius: 4px;
}

.page-links .page-numbers.current,
.page-links .page-numbers:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* =========================================
   MASTER CONTENT TEMPLATE SECTIONS
   ========================================= */

/* Icon List Utility */
.icon-list {
    list-style: none;
    padding: 0;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: var(--font-size-base);
}

.icon-list li i,
.icon-list li .dashicons {
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

/* Process Steps */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base);
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* FAQ Accordion */
.faq-item {
    background: var(--color-white);
    border: 1px solid #eee;
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary);
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
    color: var(--color-text-secondary);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.25rem;
    max-height: 500px;
}

/* Trust & Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logos-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    opacity: 0.6;
    filter: grayscale(1);
    transition: opacity 0.3s;
}

.logos-flex:hover {
    opacity: 1;
    filter: grayscale(0);
}

.logos-flex img {
    max-height: 40px;
    width: auto;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4%, 40px);
}

/* Full-width layout — capped at 1320px for corporate alignment */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* =========================================
   HOMEPAGE ENHANCED SECTIONS — v5.36.0
   ========================================= */

/* Hero Section V3 Enhancements */
.hero-section-v3 .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.hero-section-v3 .btn-secondary:hover {
    background: white;
    color: var(--primary-navy);
}

/* Service Cards Hover Effects */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-top-color: var(--premium-gold);
}

.service-card .learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.service-card:hover .learn-more {
    gap: 12px;
}

/* Industry Badges Hover */
.industry-badge:hover {
    border-color: var(--premium-gold);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* Responsive Adjustments for Enhanced Homepage */
@media (max-width: 768px) {
    .hero-section-v3 h1 {
        font-size: 2.2rem !important;
    }

    .hero-section-v3 .subtitle {
        font-size: 1.1rem !important;
    }

    .trust-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr !important;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    .benefit-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .trust-stats {
        grid-template-columns: 1fr !important;
    }

    .hero-section-v3 .cta-button,
    .hero-section-v3 .btn-secondary {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Print Styles for Homepage */
@media print {

    .hero-section-v3,
    .cta-banner {
        background: white !important;
        color: black !important;
    }

    .service-card,
    .industry-badge {
        break-inside: avoid;
    }
}

/* =========================================
   STRICT VISUAL LAYOUT SYSTEM — v5.36.0
   Implementing high-end design consistency
   ========================================= */

/* 1. Global Alignment & Grids */

/* Vertical Rhythm - Uniform Section Padding */
.section-padding,
section,
.site-main>div {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Exception for Hero Sections defined elsewhere or specific dense sections */
.site-header,
.header-top,
.header-main-content {
    padding-top: initial;
    padding-bottom: initial;
}

/* Edge Alignment - Strict Left Alignment */
/* We apply this to standard content containers, excluding specific centered components if necessary */
.entry-content,
.site-main:not(.front-page-v2) article,
.site-main:not(.front-page-v2) section:not(.aligncenter) {
    text-align: left;
}

/* Centered Vertical Alignment in 2-column layouts */
@media (min-width: 992px) {

    .row.align-items-center,
    .d-grid-2-col,
    .wp-block-columns {
        align-items: center;
    }
}

/* 2. Image Standardization */

/* Global Image Rules */
img,
.wp-block-image img,
.post-thumbnail img {
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
}

/* Consistent Aspect Ratios for Grids */
.services-grid img,
.team-grid img,
.project-grid img {
    aspect-ratio: 16/9;
    /* Default standard ratio */
    width: 100%;
    height: 100%;
}

/* 3. Typography & Content Set */

body,
p,
li {
    line-height: 1.6;
}

h1,
.h1 {
    font-weight: 700;
    /* Hero size handled in variables, ensuring left align generally unless hero specific */
}

h2,
.h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h3,
.h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Button Uniformity */
.btn,
.button,
input[type="submit"],
.cta-button {
    padding: 12px 30px !important;
    /* Uniform padding */
    font-weight: 600 !important;
    border-radius: 6px;
    /* Matching border radius system usually slightly less than large containers */
    transition: all 0.3s ease;
    text-transform: none;
    /* Avoid aggressive caps unless specified */
}

.btn:hover,
.button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* 4. Responsive Integrity */

@media (max-width: 768px) {

    /* Mobile Scaling */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Adjust vertical rhythm for mobile */
    .section-padding,
    section,
    .site-main>div {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    /* Image Scaling */
    img {
        height: auto;
        /* prevent distortion */
    }

    .services-grid img,
    .team-grid img {
        aspect-ratio: 3/2;
        /* Slightly taller for mobile if needed, or maintain ratio */
    }
}

/* =========================================
   FLUID RESPONSIVE SYSTEM — v5.36.0
   Universal Laws for All-Device Harmony
   ========================================= */

/* --- 1. THE FLUID FOUNDATION --- */
:root {
    --container-width: 1600px;
    /* This makes padding 'fluid'—bigger on desktop, smaller on mobile */
    --section-spacing: clamp(40px, 8vw, 100px);
}

/* --- 2. GLOBAL IMAGE FIX (THE 'FIT & FIX') --- */
/* Scoped to content images only — prevents logo/icon/avatar distortion */
.entry-content img,
.wp-block-image img,
.service-card img,
.case-study-card img,
.team-card img,
.industry-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
}

/* Protect logos, icons, and avatars from forced sizing */
.site-branding img,
.custom-logo-link img,
.logo-constrained,
.avatar,
.wp-block-site-logo img {
    width: auto !important;
    aspect-ratio: unset !important;
    object-fit: contain !important;
    border-radius: 0;
}

/* --- 3. SECTION SPACING --- */
section,
.wp-block-group {
    padding-top: var(--section-spacing) !important;
    padding-bottom: var(--section-spacing) !important;
    max-width: 100%; /* Full-width sections (Microsoft.com-style) */
    width: 100%;
    margin: 0 auto !important;
}

/* --- 4. TABLET & MOBILE OVERRIDES --- */

/* Tablet (iPad/Small Laptops) */
@media (max-width: 1024px) {
    .wp-block-columns {
        gap: 30px !important;
    }

    h1 {
        font-size: 2.5rem !important;
    }
}

/* Mobile (Phones) */
@media (max-width: 767px) {

    /* Force columns to stack vertically */
    .wp-block-columns,
    .elementor-row {
        flex-direction: column !important;
        display: block !important;
    }

    /* Ensure images don't get too tall on mobile */
    img {
        aspect-ratio: 4 / 3 !important;
    }

    /* Center text on mobile for better balance */
    .wp-block-column {
        text-align: center !important;
        padding: 20px 0 !important;
    }

    /* Standardize button width for mobile thumbs */
    .wp-block-button,
    .wp-block-button__link {
        width: 100% !important;
        display: block !important;
    }
}

/* =========================================
   CONTENT VISIBILITY PATCH — v5.36.0
   Fixes for Logo and Full-Width Backgrounds
   ========================================= */

/* 1. Prevent Logo Squashing */
.custom-logo,
.site-branding img,
.site-logo img {
    width: auto !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    max-height: 80px;
    /* Prevent massive logos */
}

/* 2. Restore Full-Width Backgrounds */
/* Overrides the restrictive section max-width for main layout components */
section.hero-section-v3,
section.trust-bar,
section.cta-banner,
#about,
#services,
#why-choose-us,
#industries,
.site-header,
.site-footer {
    max-width: 100% !important;
}

/* Inner containers — full-width fluid grid (Microsoft.com-style) */
section.hero-section-v3 .container,
section.trust-bar .container,
section.cta-banner .container,
#about .container,
#services .container,
#why-choose-us .container,
#industries .container {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 clamp(20px, 4vw, 80px);
}

/* =========================================
   ACCESSIBILITY & UTILITIES
   ========================================= */

/* Scroll to Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 44px;
    /* Accessible Touch Target */
    height: 44px;
    background: var(--primary-navy, #003366);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#scroll-to-top:hover {
    background: var(--premium-gold, #d4af37);
    transform: translateY(-3px);
}

#scroll-to-top svg {
    pointer-events: none;
}

/* =========================================
   ACCESSIBILITY FIXES — v5.36.0
   Contrast and Focus Visible Improvements
   ========================================= */

:root {
    /* New dedicated variable for text usage of Gold ensuring 4.5:1 contrast */
    --premium-gold-text: #8a7019;
    /* Slightly darker than logo gold for WCAG AA compliance on white */
}

/* Update text utility classes to use accessible gold */
.text-gold,
.text-premium-gold {
    color: var(--premium-gold-text) !important;
}

/* Ensure focus states are visible for keyboard users */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-navy);
    outline-offset: 2px;
}

/* Fix specific front-page stats contrast */
.stat-item .stat-number h3 {
    color: var(--premium-gold-text) !important;
}

/* =========================================
   v5.36.0 REDESIGN FOUNDATION
   Design System: Professional Trust Layout
   ========================================= */

:root {
    /* --- 1. NEW COLOR PALETTE --- */
    --color-primary-navy: #0F172A;
    --color-primary-blue: #1B365D;

    --color-success-green: #059669;
    --color-success-light: #ECFDF5;

    --color-premium-gold: #D4AF37;
    --color-gold-text: #8A7019;
    /* Accessible on white */

    --color-neutral-900: #111827;
    /* Headings */
    --color-neutral-600: #4B5563;
    /* Body */
    --color-neutral-400: #9CA3AF;
    /* Borders */
    --color-neutral-100: #F3F4F6;
    /* Backgrounds */
    --color-white: #FFFFFF;

    /* --- 2. TYPOGRAPHY SYSTEM --- */
    --font-heading: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
    --font-body: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;

    --text-h1: clamp(2.5rem, 5vw, 3.5rem);
    --text-h2: clamp(2rem, 4vw, 2.5rem);
    --text-h3: clamp(1.5rem, 3vw, 1.75rem);
    --text-body: 1rem;
    --text-body-lg: 1.125rem;

    /* --- 3. SPACING SYSTEM (8pt Grid) --- */
    --space-s: 8px;
    --space-m: 16px;
    --space-l: 24px;
    --space-xl: 48px;
    --space-2xl: 80px;

    /* --- 4. SHADOWS --- */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* --- GLOBAL RESET & TYPOGRAPHY APPLICATION --- */

body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.6;
    color: var(--color-neutral-600);
    background-color: var(--color-white);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3 {
    font-family: var(--font-heading);
    color: var(--color-primary-navy);
    line-height: 1.2;
    margin-bottom: var(--space-m);
}

h1 {
    font-size: var(--text-h1);
}

h2 {
    font-size: var(--text-h2);
}

h3 {
    font-size: var(--text-h3);
}

p {
    margin-bottom: var(--space-m);
}

.lead {
    font-size: var(--text-body-lg);
    font-weight: 500;
    color: var(--color-neutral-900);
}

/* --- BUTTON COMPONENTS --- */

.btn {
    border-radius: 4px;
    font-weight: 600;
    padding: 12px 24px;
    text-transform: none;
    /* Trustworthy, not aggressive */
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--color-primary-navy);
    color: white;
    border: 2px solid var(--color-primary-navy);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #1e293b;
    /* Slightly lighter navy */
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary-navy);
    border: 2px solid var(--color-primary-navy);
}

.btn-secondary:hover {
    background-color: var(--color-neutral-100);
}

.btn-cta-gold {
    background-color: var(--color-premium-gold);
    color: var(--color-primary-navy);
    border: none;
    font-weight: 700;
}

.btn-cta-gold:hover {
    background-color: #e5b700;
}

/* --- LAYOUT UTILITIES --- */

.container-xl {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5%, 120px);
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-l);
}

/* Responsive Grid Helpers */
@media (max-width: 768px) {
    .grid-12 {
        display: flex;
        flex-direction: column;
    }

    /* Optimize Touch Targets for Mobile */
    .btn,
    a,
    input,
    select {
        min-height: 44px;
    }
}

/* --- HERO COMPONENT (Redesign) --- */
.hero-section-redesign {
    background-color: var(--color-primary-navy);
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: white;
    padding: 120px 0 80px;
    /* Space-2xl top/bottom */
    text-align: center;
    position: relative;
}

.hero-section-redesign h1 {
    color: white;
    font-family: var(--font-heading);
    margin-bottom: 24px;
}

.hero-section-redesign .lead {
    color: #E2E8F0;
    /* Neutral-200 */
    max-width: 800px;
    margin: 0 auto 48px;
    font-size: 1.25rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-actions .btn {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Trust Stack (Hero) */
.trust-stack-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-premium-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .trust-stack-hero {
        flex-direction: column;
        gap: 8px;
    }

    .trust-stack-hero .sep {
        display: none;
    }
}

/* --- PHASE 2: SECTIONS & CARDS REDESIGN --- */

.section-redesign {
    padding: var(--space-2xl) 0;
}

.bg-neutral {
    background-color: var(--color-neutral-100);
}

.section-header-v3 {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
}

.section-header-v3 h2 {
    font-size: var(--text-h2);
    margin-bottom: var(--space-m);
}

.section-header-v3 p {
    font-size: var(--text-body-lg);
    color: var(--color-neutral-600);
}

/* --- SERVICE CARD v3 --- */
.service-card-v3 {
    background: var(--color-white);
    padding: var(--space-l);
    border: 1px solid var(--color-neutral-400);
    /* Accessible border */
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-v3:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-navy);
}

.service-icon-v3 {
    font-size: 2.5rem;
    color: var(--color-premium-gold);
    margin-bottom: var(--space-m);
}

.service-card-v3 h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-s);
}

.service-card-v3 .card-link {
    margin-top: auto;
    /* Pushes link to bottom */
    color: var(--color-primary-navy);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-card-v3 .card-link:hover {
    color: var(--color-premium-gold-text);
}

/* --- PROBLEM / SOLUTION GRID --- */
.problem-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.pain-points-list {
    list-style: none;
    padding: 0;
}

.pain-points-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: var(--space-m);
    color: var(--color-neutral-600);
}

.pain-points-list li::before {
    content: "✕";
    color: var(--color-error, #DC2626);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.solutions-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: var(--space-m);
    font-weight: 500;
    color: var(--color-primary-navy);
}

.solutions-list li::before {
    content: "✓";
    color: var(--color-success-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

@media (max-width: 900px) {
    .problem-solution-grid {
        grid-template-columns: 1fr;
    }
}

/* --- PHASE 3: FORMS & HEADER OPTIMIZATION --- */

/* Site Header Overrides — Microsoft clean style */
.site-header {
    background-color: var(--color-white);
    border-bottom: none;
    box-shadow: none;
}

.main-navigation a {
    color: #1a1a1a !important;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 13px;
}

.main-navigation a:hover {
    color: var(--color-primary) !important;
    text-decoration: underline;
}

/* Contact Page Layout (Split Screen) — Microsoft-inspired */
.contact-wrapper-v3 {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 48px;
    margin-top: 40px;
}

/* Trust Sidebar (Left) */
.contact-trust-sidebar {
    background-color: #1a1a1a;
    color: var(--color-white);
    padding: 40px;
    border-radius: 4px;
    box-shadow: none;
}

.contact-trust-sidebar h2,
.contact-trust-sidebar h3 {
    color: var(--color-white);
    font-family: var(--font-heading);
}

.trust-item {
    display: flex;
    align-items: start;
    gap: 16px;
    margin-bottom: 24px;
}

.trust-icon {
    color: var(--color-premium-gold);
    font-size: 1.5rem;
}

/* Form Container (Right) — Microsoft-clean */
.contact-form-card {
    background: var(--color-white);
    padding: 40px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    box-shadow: none;
}

/* Form Elements v3 — Segoe UI */
.form-label-v3 {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.875rem;
}

.form-control-v3 {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #fff;
    border: 1px solid #8a8886;
    border-radius: 2px;
    transition: border-color 0.1s ease;
}

.form-control-v3:focus {
    border-color: var(--color-primary);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.1);
}

/* Contact Page Office Section Styles */
.contact-office-heading {
    color: var(--color-premium-gold) !important;
    font-size: 1.1rem;
    margin: 0 0 16px 0;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.contact-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 24px 0;
}

.contact-trust-sidebar .contact-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.contact-trust-sidebar .contact-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-trust-sidebar .contact-link:hover {
    color: var(--color-premium-gold);
}

.form-actions {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.privacy-notice {
    font-size: 0.85rem;
    color: var(--color-neutral-600);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-wrapper-v3 {
        grid-template-columns: 1fr;
    }

    .contact-trust-sidebar {
        order: 2;
        /* Form first on mobile usually better for conversion, or Trust first? Trust first builds confidence. */
        order: 1;
    }

    .contact-form-card {
        order: 2;
    }
}

/* --- PHASE 4: MOBILE POLISH & PERFORMANCE --- */

/* Mobile Optimization for Redesigned Sections */
@media (max-width: 768px) {

    /* Hero */
    .hero-section-redesign {
        padding: 60px 0 40px;
        text-align: left;
        /* Better for reading on mobile? Or center? Center is safer for Hero. */
        text-align: center;
    }

    .hero-section-redesign h1 {
        font-size: 2.25rem;
        /* ~36px */
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* Trust Stack Hero */
    .trust-stack-hero {
        flex-direction: column;
        gap: 8px;
        margin-top: 24px;
        font-size: 0.8rem;
    }

    .trust-stack-hero .sep {
        display: none;
    }

    /* Problem/Solution Grid */
    .problem-solution-grid {
        gap: 32px;
    }

    .problem-col {
        order: 1;
    }

    .solution-col {
        order: 2;
        padding: 24px !important;
        margin-top: 16px;
    }

    .grid-12 {
        gap: 24px;
        /* Smaller gap on mobile */
    }

    /* Contact Page Mobile */
    .contact-wrapper-v3 {
        gap: 32px;
    }

    .contact-trust-sidebar {
        padding: 24px;
    }

    .contact-form-card {
        padding: 24px;
        border: none;
        /* Remove border on mobile to save space visually? Or keep? Keep for card feel. */
    }

    /* Footer Mobile */
    .footer-grid {
        gap: 32px !important;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
        margin-bottom: 0;
    }

    .trust-icons {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* --- PERFORMANCE UTILITIES --- */
/* Content-Visibility to skip rendering off-screen content */
.site-footer-redesign {
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

/* Print Optimization */
@media print {

    .site-header,
    .hero-actions,
    .footer-links-col,
    .footer-contact {
        display: none !important;
    }

    body {
        font-family: serif;
        font-size: 12pt;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* --- PHASE 5: MEGA MENU IMPLEMENTATION --- */
/* Instructions: Add class 'mega-menu' to the parent menu item in WP Admin */

@media (min-width: 900px) {

    /* 1. Make parent static so dropdown references the full-width header */
    .main-navigation .menu-item.mega-menu {
        position: static;
    }

    /* 2. Style the Dropdown as a Full-Width Panel */
    .main-navigation .menu-item.mega-menu>.sub-menu {
        position: absolute;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 1600px;
        margin: 0 auto;
        padding: 32px clamp(2rem, 5%, 6rem);
        background: var(--color-white);
        box-shadow: 0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108);
        border-top: none;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.2s ease-in-out;
        z-index: 1000;
        border-radius: 0 0 8px 8px;
    }

    /* 3. Show on Hover */
    .main-navigation .menu-item.mega-menu:hover>.sub-menu,
    .main-navigation .menu-item.mega-menu:focus-within>.sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* 4. Style the Columns (Sub-menu items) */
    .main-navigation .menu-item.mega-menu>.sub-menu>.menu-item {
        display: block;
        /* Stack items vertically in columns if nested, or just list them */
    }

    /* Headings in Mega Menu */
    .main-navigation .menu-item.mega-menu>.sub-menu>.menu-item>a {
        font-family: var(--font-heading);
        font-size: 1.1rem;
        color: var(--color-primary-navy);
        font-weight: 700;
        border-bottom: 1px solid var(--color-neutral-200);
        padding-bottom: 8px;
        margin-bottom: 12px;
        display: block;
    }

    /* Clean up standard sub-menu styles that might conflict */
    .main-navigation .menu-item.mega-menu>.sub-menu li {
        width: auto;
        border: none;
    }
}

/* =========================================
   SITEMAP PAGE — Microsoft-Style
   Clean categorized HTML sitemap
   ========================================= */

.sitemap-page {
    background: #fff;
}

/* Hero / Title */
.sitemap-hero {
    padding: 48px 0 24px;
    border-bottom: 1px solid #e6e6e6;
}

.sitemap-hero h1 {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

/* Category anchor nav bar */
.sitemap-nav-bar {
    background: #f5f5f5;
    border-bottom: 1px solid #e6e6e6;
    position: sticky;
    top: 0;
    z-index: 100;
}

.sitemap-nav-links {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.sitemap-nav-links li a {
    display: block;
    padding: 14px 20px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: background 0.1s ease, color 0.1s ease;
}

.sitemap-nav-links li a:hover,
.sitemap-nav-links li a:focus {
    background: #e6e6e6;
    color: #0067b8;
    text-decoration: underline;
}

/* Sections */
.sitemap-section {
    padding: 40px 0 48px !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-bottom: 1px solid #e6e6e6;
}

.sitemap-section-alt {
    background: #fafafa;
}

.sitemap-section-title {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0067b8;
    display: inline-block;
}

/* Grid — multi-column like MS sitemap */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px 48px;
}

/* Category block */
.sitemap-category h3 {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    line-height: 1.4;
}

.sitemap-category ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sitemap-category ul li {
    margin-bottom: 0;
    line-height: 1.4;
}

.sitemap-category ul li a {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    transition: color 0.1s ease;
}

.sitemap-category ul li a:hover,
.sitemap-category ul li a:focus {
    color: #0067b8;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 32px;
    }

    .sitemap-nav-links li a {
        padding: 10px 14px;
        font-size: 12px;
    }

    .sitemap-hero {
        padding: 32px 0 16px;
    }
}

@media (max-width: 480px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ==========================================================================
   BIG 4 CORPORATE HOMEPAGE — v5.36.0 (Enterprise Refactor)
   Inspired by EY.com, PwC.com, MeruAccounting.com
   ========================================================================== */

/* --- Global Logo & Brand Utilities --- */
.logo-constrained {
    max-width: 200px;
    height: auto;
}

.brand-logo-sm {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.img-constrained-sm {
    max-width: 150px;
    height: auto;
}

/* --- Layout & Modernization Utilities --- */
.max-w-700 {
    max-width: 700px;
}

.max-w-800 {
    max-width: 800px;
}

.max-w-900 {
    max-width: 900px;
}

.max-w-1000 {
    max-width: 1000px;
}

.max-w-1200 {
    max-width: 1200px;
}

.min-h-480 {
    min-height: 480px;
}

.min-h-500 {
    min-height: 500px;
}

.min-h-600 {
    min-height: 600px;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

.bg-center-cover {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.w-40-h-40 {
    width: 40px;
    height: 40px;
}

.min-w-200 {
    min-width: 200px;
}

.line-height-1-6-elite {
    line-height: 1.6;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.z-index-1 {
    z-index: 1;
}

.z-index-2 {
    z-index: 2;
}

/* --- Essential Brand Colors --- */
.text-gold {
    color: #D4AF37 !important;
}

.bg-gold {
    background-color: #D4AF37 !important;
}

.text-navy {
    color: #0a192f !important;
}

.bg-navy {
    background-color: #0a192f !important;
}

/* --- Container --- */
.b4-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .b4-container {
        padding: 0 48px;
    }
}

@media (min-width: 1200px) {
    .b4-container {
        padding: 0 64px;
    }
}

/* --- Section Base --- */
.b4-section {
    padding: 96px 0;
}

.b4-section--alt {
    background-color: #f8fafc;
}

.b4-section--dark {
    background-color: var(--primary-navy, #1b2a4a);
    color: #fff;
}

/* --- Section Header --- */
.b4-section__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.b4-section__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-blue, #2563eb);
    margin-bottom: 12px;
}

.b4-section__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary, #1e293b);
    margin-bottom: 16px;
}

.b4-section__desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary, #64748b);
}

.b4-section__header--light .b4-section__eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

.b4-section__header--light .b4-section__title {
    color: #fff;
}

.b4-section__header--light .b4-section__desc {
    color: rgba(255, 255, 255, 0.75);
}

.b4-section__cta {
    text-align: center;
    margin-top: 48px;
}

/* --- Buttons --- */
.b4-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.b4-btn--primary {
    background: var(--accent-blue, #2563eb);
    color: #fff;
    border-color: var(--accent-blue, #2563eb);
}

.b4-btn--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.b4-btn--secondary {
    background: transparent;
    color: var(--accent-blue, #2563eb);
    border-color: var(--accent-blue, #2563eb);
}

.b4-btn--secondary:hover {
    background: var(--accent-blue, #2563eb);
    color: #fff;
}

.b4-btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.b4-btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

.b4-btn--white {
    background: #fff;
    color: var(--primary-navy, #1b2a4a);
    border-color: #fff;
}

.b4-btn--white:hover {
    background: #f1f5f9;
    color: var(--primary-navy, #1b2a4a);
}

.b4-btn--outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.b4-btn--outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* ===================== HERO ===================== */
.b4-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--primary-navy, #1b2a4a);
}

.b4-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
}

.b4-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 42, 74, 0.92) 0%, rgba(37, 99, 235, 0.7) 100%);
    z-index: 1;
}

.b4-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 120px 0 100px;
}

.b4-hero__eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.b4-hero__title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.b4-hero__subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 640px;
}

.b4-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ===================== TRUST BAR ===================== */
.b4-trust-bar {
    background: #fff;
    border-bottom: 1px solid var(--divider, #e2e8f0);
    padding: 48px 0;
}

.b4-trust-bar__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    text-align: center;
}

.b4-stat__number {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--primary-navy, #1b2a4a);
    line-height: 1;
    margin-bottom: 8px;
}

.b4-stat__label {
    font-size: 0.8125rem;
    color: var(--text-secondary, #64748b);
    font-weight: 500;
}

@media (max-width: 768px) {
    .b4-trust-bar__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .b4-trust-bar__grid .b4-stat:last-child {
        grid-column: span 2;
    }
}

/* ===================== SERVICES GRID ===================== */
.b4-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.b4-service-card {
    background: #fff;
    border: 1px solid var(--divider, #e2e8f0);
    border-radius: 6px;
    padding: 32px 28px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.b4-service-card:hover {
    border-color: var(--accent-blue, #2563eb);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

.b4-service-card__icon {
    width: 44px;
    height: 44px;
    color: var(--accent-blue, #2563eb);
    margin-bottom: 20px;
}

.b4-service-card__icon svg {
    width: 44px;
    height: 44px;
}

.b4-service-card__title {
    font-size: 1.0625rem;
    font-weight: 650;
    color: var(--text-primary, #1e293b);
    margin-bottom: 10px;
    line-height: 1.3;
}

.b4-service-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 16px;
}

.b4-service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-blue, #2563eb);
    text-decoration: none;
    margin-top: auto;
}

.b4-service-card__link:hover {
    color: #1d4ed8;
    gap: 10px;
}

.b4-service-card__link svg {
    transition: transform 0.2s;
}

.b4-service-card__link:hover svg {
    transform: translateX(3px);
}

@media (max-width: 1024px) {
    .b4-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .b4-services-grid {
        grid-template-columns: 1fr;
    }

    .b4-service-card {
        padding: 24px 20px;
    }
}

/* ===================== INDUSTRIES ===================== */
.b4-industries-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.b4-industry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 28px 16px;
    background: #fff;
    border: 1px solid var(--divider, #e2e8f0);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.b4-industry-card:hover {
    border-color: var(--success-green, #059669);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.08);
    transform: translateY(-2px);
}

.b4-industry-card__icon {
    font-size: 1.75rem;
    line-height: 1;
}

.b4-industry-card__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
}

.b4-industry-card:hover .b4-industry-card__name {
    color: var(--success-green, #059669);
}

@media (max-width: 1024px) {
    .b4-industries-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .b4-industries-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .b4-industry-card {
        padding: 18px 10px;
    }
}

/* ===================== WHY US ===================== */
.b4-why__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.b4-why__intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary, #64748b);
    margin-bottom: 36px;
}

.b4-why__features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.b4-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.b4-feature__check {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ecfdf5;
    color: var(--success-green, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.b4-feature__title {
    font-size: 0.9375rem;
    font-weight: 650;
    color: var(--text-primary, #1e293b);
    margin-bottom: 4px;
}

.b4-feature__desc {
    font-size: 0.875rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.55;
}

.b4-why__visual {
    border-radius: 8px;
    overflow: hidden;
}

.b4-why__visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .b4-why__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .b4-why__visual {
        order: -1;
    }
}

/* ===================== GLOBAL PRESENCE ===================== */
.b4-global__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.b4-office-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 36px 28px;
}

.b4-office-card--accent {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.25);
}

.b4-office-card__flag {
    font-size: 2rem;
    margin-bottom: 16px;
}

.b4-office-card__region {
    font-size: 1.125rem;
    font-weight: 650;
    color: #fff;
    margin-bottom: 8px;
}

.b4-office-card__address {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 16px;
}

.b4-office-card__contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.b4-office-card__contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.b4-office-card__contact a:hover {
    color: #fff;
}

.b4-office-card__markets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.b4-office-card__markets li {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.8);
}

.b4-global-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 12px;
}

.b4-global-stat {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

.b4-global-stat span {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

@media (max-width: 900px) {
    .b4-global__grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== SOFTWARE BADGES ===================== */
.b4-software-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.b4-software-badge {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    background: #fff;
    border: 1px solid var(--divider, #e2e8f0);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.b4-software-badge:hover {
    border-color: var(--accent-blue, #2563eb);
    color: var(--accent-blue, #2563eb);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
}

/* ===================== TESTIMONIALS ===================== */
.b4-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.b4-testimonial {
    background: #fff;
    border: 1px solid var(--divider, #e2e8f0);
    border-radius: 8px;
    padding: 36px 28px;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.b4-testimonial__text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary, #1e293b);
    flex-grow: 1;
    margin-bottom: 24px;
    font-style: italic;
}

.b4-testimonial__author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--divider, #e2e8f0);
}

.b4-testimonial__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-navy, #1b2a4a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.b4-testimonial__name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 650;
    color: var(--text-primary, #1e293b);
    font-style: normal;
}

.b4-testimonial__role {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary, #64748b);
    margin-top: 2px;
}

@media (max-width: 900px) {
    .b4-testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== CASE STUDIES ===================== */
.b4-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.b4-case-card {
    background: #fff;
    border: 1px solid var(--divider, #e2e8f0);
    border-radius: 8px;
    padding: 32px 28px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.b4-case-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.b4-case-card__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--success-green, #059669);
    background: #ecfdf5;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
    align-self: flex-start;
}

.b4-case-card__title {
    font-size: 1.0625rem;
    font-weight: 650;
    line-height: 1.35;
    color: var(--text-primary, #1e293b);
    margin-bottom: 12px;
}

.b4-case-card__excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary, #64748b);
    flex-grow: 1;
    margin-bottom: 16px;
}

.b4-case-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-blue, #2563eb);
    text-decoration: none;
    margin-top: auto;
}

.b4-case-card__link:hover {
    color: #1d4ed8;
}

.b4-case-card__link:hover svg {
    transform: translateX(3px);
}

.b4-case-card__link svg {
    transition: transform 0.2s;
}

@media (max-width: 900px) {
    .b4-cases-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== INSIGHTS / BLOG ===================== */
.b4-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.b4-insight-card {
    background: #fff;
    border: 1px solid var(--divider, #e2e8f0);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.b4-insight-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.b4-insight-card__img {
    overflow: hidden;
    aspect-ratio: 16/9;
}

.b4-insight-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.b4-insight-card:hover .b4-insight-card__img img {
    transform: scale(1.03);
}

.b4-insight-card__body {
    padding: 24px;
}

.b4-insight-card__date {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.b4-insight-card__title {
    font-size: 1.0625rem;
    font-weight: 650;
    line-height: 1.35;
    margin: 8px 0 10px;
}

.b4-insight-card__title a {
    color: var(--text-primary, #1e293b);
    text-decoration: none;
}

.b4-insight-card__title a:hover {
    color: var(--accent-blue, #2563eb);
}

.b4-insight-card__excerpt {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary, #64748b);
}

@media (max-width: 900px) {
    .b4-insights-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== LEADERSHIP / TEAM ===================== */
.b4-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.b4-team-card {
    text-align: center;
    padding: 40px 24px;
    background: #fff;
    border: 1px solid var(--divider, #e2e8f0);
    border-radius: 8px;
    transition: all 0.25s ease;
}

.b4-team-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.b4-team-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-navy, #1b2a4a), var(--accent-blue, #2563eb));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.b4-team-card__name {
    font-size: 1.0625rem;
    font-weight: 650;
    color: var(--text-primary, #1e293b);
    margin-bottom: 4px;
}

.b4-team-card__role {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-blue, #2563eb);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.b4-team-card__bio {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary, #64748b);
}

@media (max-width: 1024px) {
    .b4-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .b4-team-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== FINAL CTA ===================== */
.b4-cta-final {
    background: linear-gradient(135deg, var(--primary-navy, #1b2a4a) 0%, var(--accent-blue, #2563eb) 100%);
    padding: 100px 0;
}

.b4-cta-final__inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.b4-cta-final__title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.b4-cta-final__desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 36px;
}

.b4-cta-final__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.b4-cta-final__micro {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===================== HOMEPAGE OVERRIDES ===================== */
.front-page-corporate {
    padding: 0;
}

.front-page-corporate .b4-hero+.b4-trust-bar {
    position: relative;
    z-index: 3;
}

/* Remove breadcrumbs on homepage */
.home .breadcrumbs,
.front-page .breadcrumbs {
    display: none;
}

/* ===================== RESPONSIVE GLOBAL ===================== */
@media (max-width: 768px) {
    .b4-section {
        padding: 64px 0;
    }

    .b4-hero__inner {
        padding: 80px 0 64px;
    }

    .b4-hero__actions {
        flex-direction: column;
    }

    .b4-hero__actions .b4-btn {
        text-align: center;
        justify-content: center;
    }

    .b4-cta-final {
        padding: 72px 0;
    }

    .b4-cta-final__actions {
        flex-direction: column;
        align-items: center;
    }
}

/* =========================================================================
   WHIZCONSULTING-STYLE DESIGN SYSTEM v1.0
   Clean, modern, professional aesthetic inspired by whizconsulting.net
   ========================================================================= */

/* ===================== WC COLOR TOKENS ===================== */
:root {
    --wc-green: #00A36C;
    /* Microsoft-style accent green */
    --wc-green-hover: #008f5d;
    --wc-green-light: #f0fdf4;
    --wc-navy-ms: #0067B8;
    /* DEEP AUDIT: Strict Microsoft Navy */
    --wc-dark: #1a1a2e;
    --wc-dark-soft: #2d2d44;
    --wc-text: #2f2f2f;
    --wc-text-muted: #666666;
    --wc-text-light: #999999;
    --wc-bg-white: #ffffff;
    --wc-bg-light: #f8f9fa;
    --wc-bg-lighter: #fafbfc;
    --wc-border: #e8ecef;
    --wc-border-hover: #d0d5dd;

    /* DEEP AUDIT: Strict Microsoft shadows (rgba 0.05) */
    --wc-shadow-card: 0 4px 12px rgba(0, 0, 0, 0.05);
    --wc-shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.05);
    --wc-shadow-hero: 0 20px 60px rgba(0, 0, 0, 0.05);

    /* DEEP AUDIT: 8px Grid alignment */
    --wc-radius: 8px;
    /* Standard Microsoft radius */
    --wc-radius-lg: 12px;
    --wc-radius-pill: 40px;
    --wc-padding-card: 40px;
    /* DEEP AUDIT: 40px padding requirement */
    --wc-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    /* DEEP AUDIT: Premium Shadow for Floating Forms */
    --wc-shadow-premium: 0px 20px 50px rgba(0, 0, 0, 0.1);

    /* BENTO GRID: Strict 20px Gutter */
    --wc-gutter-bento: 20px;
}

/* ===================== WC TYPOGRAPHY ===================== */
.wc-heading-xl {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--wc-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.wc-heading-lg {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--wc-dark);
    line-height: 1.25;
}

.wc-heading-md {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    color: var(--wc-dark);
    line-height: 1.3;
}

.wc-heading-sm {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--wc-dark);
}

.wc-subheading {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-cobalt);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.wc-body {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: var(--body-line-height);
    font-family: var(--font-body);
}

.wc-body-lg {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--text-gray);
    font-family: var(--font-body);
}

/* DEEP AUDIT: Typography for Legal/Security */
.wc-font-inter-legal {
    font-family: 'Inter', sans-serif !important;
    line-height: 1.6 !important;
}

/* ===================== WC BUTTONS ===================== */
.wc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--wc-transition);
    white-space: nowrap;
    font-family: var(--font-heading);
}

/* Primary Button (Big4 Dark Blue) */
.wc-btn-primary,
.wc-btn-gold {
    background: var(--primary-navy);
    color: #ffffff;
    border-color: var(--primary-navy);
}

.wc-btn-primary:hover,
.wc-btn-gold:hover {
    background: var(--primary-cobalt);
    border-color: var(--primary-cobalt);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Secondary Button (Professional Outline) */
.wc-btn-secondary,
.wc-btn-outline {
    background: transparent;
    color: var(--primary-navy);
    border-color: var(--primary-navy);
}

.wc-btn-secondary:hover,
.wc-btn-outline:hover {
    background: var(--primary-navy);
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

.wc-btn-dark {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.wc-btn-dark:hover {
    background: #000000;
    transform: translateY(-2px);
    color: #ffffff;
}

.wc-btn-sm {
    padding: 10px 24px;
    font-size: 0.875rem;
}

.wc-btn-lg {
    padding: 18px 44px;
    font-size: 1.125rem;
}

/* ===================== WC SECTIONS ===================== */
.wc-section {
    padding: 80px 0;
}

.wc-section-sm {
    padding: 50px 0;
}

.wc-section-lg {
    padding: 100px 0;
}

.wc-section-white {
    background: var(--wc-bg-white);
}

.wc-section-light {
    background: var(--wc-bg-light);
}

.wc-section-dark {
    background: var(--wc-dark);
    color: #ffffff;
}

.wc-section-green {
    background: var(--wc-green);
    color: #ffffff;
}

.wc-section-green-gradient {
    background: linear-gradient(135deg, var(--wc-green) 0%, #00a884 50%, #009974 100%);
    color: #ffffff;
}

/* WC CARDS — base/hover overridden by Glass UI (body .wc-card, body .wc-card-flat) */
/* Keep .wc-card-icon (not overridden by glass-ui) */

.wc-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--wc-green-light);
    color: var(--wc-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* .wc-card-flat base/hover — overridden by Glass UI (body .wc-card-flat) */

/* ===================== WC COUNTER STRIP ===================== */
.wc-counter-strip {
    background: var(--wc-dark);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.wc-counter-strip::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--wc-green), #00d2a4, var(--wc-green));
}

.wc-counter-item {
    text-align: center;
    padding: 10px 20px;
}

.wc-counter-number {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--wc-green);
    line-height: 1.25;
    margin-bottom: 8px;
}

.wc-counter-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ===================== WC HERO ===================== */
.wc-hero {
    padding: 100px 0 80px;
    background: var(--wc-bg-white);
    position: relative;
    overflow: hidden;
}

.wc-hero-content {
    max-width: 600px;
}

.wc-hero-title {
    font-size: var(--h1-size);
    font-weight: var(--h1-weight);
    color: var(--primary-navy);
    line-height: 1.25;
    margin-bottom: 24px;
}

.wc-hero-subtitle {
    font-size: 1.125rem;
    color: var(--wc-text-muted);
    line-height: 1.75;
    margin-bottom: 32px;
}

.wc-hero-image {
    border-radius: var(--wc-radius-lg);
    overflow: hidden;
    box-shadow: var(--wc-shadow-hero);
}

.wc-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===================== WC TRUST LOGOS ===================== */
.wc-trust-logos {
    padding: 30px 0;
    background: var(--wc-bg-light);
    border-top: 1px solid var(--wc-border);
    border-bottom: 1px solid var(--wc-border);
}

.wc-trust-logos img {
    height: 32px;
    opacity: 0.5;
    transition: opacity var(--wc-transition);
    filter: grayscale(100%);
}

.wc-trust-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ===================== WC PROCESS STEPS ===================== */
.wc-process-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    flex-wrap: wrap;
    position: relative;
}

.wc-process-step {
    flex: 1;
    min-width: 160px;
    max-width: 220px;
    text-align: center;
    padding: 0 16px;
    position: relative;
}

.wc-process-step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--wc-green);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 16px;
    position: relative;
    z-index: 2;
}

.wc-process-step-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--wc-dark);
    margin-bottom: 8px;
}

.wc-process-step-text {
    font-size: 0.875rem;
    color: var(--wc-text-muted);
    line-height: 1.6;
}

.wc-process-step::after {
    content: "";
    position: absolute;
    top: 28px;
    right: -10px;
    width: calc(100% - 56px);
    height: 2px;
    background: var(--wc-border);
    z-index: 1;
}

.wc-process-step:last-child::after {
    display: none;
}

@media (max-width: 768px) {
    .wc-process-steps {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .wc-process-step::after {
        display: none;
    }

    .wc-process-step {
        max-width: 100%;
    }
}

/* ===================== WC TABS ===================== */
.wc-tabs {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wc-tab-item {
    padding: 20px 24px;
    border-left: 3px solid var(--wc-border);
    cursor: pointer;
    transition: all var(--wc-transition);
}

.wc-tab-item:hover,
.wc-tab-item.active {
    border-left-color: var(--wc-green);
    background: var(--wc-green-light);
}

.wc-tab-item.active .wc-tab-title {
    color: var(--wc-green);
}

.wc-tab-title {
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--wc-dark);
    margin-bottom: 6px;
}

.wc-tab-text {
    font-size: 0.9375rem;
    color: var(--wc-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ===================== WC FAQ ACCORDION ===================== */
.wc-accordion-item {
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--wc-transition);
}

.wc-accordion-item.open {
    border-color: var(--wc-green);
}

.wc-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    background: var(--wc-bg-white);
    font-weight: 600;
    font-size: 1rem;
    color: var(--wc-dark);
    border: none;
    width: 100%;
    text-align: left;
    transition: all var(--wc-transition);
}

.wc-accordion-header:hover {
    background: var(--wc-bg-light);
}

.wc-accordion-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--wc-green-light);
    color: var(--wc-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform var(--wc-transition);
}

.wc-accordion-item.open .wc-accordion-icon {
    transform: rotate(180deg);
}

.wc-accordion-body {
    padding: 0 24px 20px;
    color: var(--wc-text-muted);
    line-height: 1.7;
    display: none;
}

.wc-accordion-item.open .wc-accordion-body {
    display: block;
}

/* ===================== WC TESTIMONIALS ===================== */
.wc-testimonial-card {
    background: var(--wc-bg-white);
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    padding: 40px;
    position: relative;
}

.wc-testimonial-card::before {
    content: "\201C";
    font-size: 5rem;
    color: var(--wc-green);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
}

.wc-testimonial-text {
    font-size: 1.0625rem;
    color: var(--wc-text);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.wc-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wc-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--wc-green-light);
    color: var(--wc-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.wc-testimonial-name {
    font-weight: 600;
    color: var(--wc-dark);
    font-size: 0.9375rem;
}

.wc-testimonial-role {
    font-size: 0.8125rem;
    color: var(--wc-text-light);
}

/* ===================== WC TEAM CARDS ===================== */
.wc-team-card {
    text-align: center;
    padding: 24px;
    border-radius: var(--wc-radius);
    transition: all var(--wc-transition);
}

.wc-team-card:hover {
    background: var(--wc-bg-light);
}

.wc-team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--wc-green-light);
    transition: border-color var(--wc-transition);
}

.wc-team-card:hover .wc-team-photo {
    border-color: var(--wc-green);
}

.wc-team-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--wc-dark);
    margin-bottom: 4px;
}

.wc-team-role {
    font-size: 0.875rem;
    color: var(--wc-text-light);
}

/* ===================== WC TIMELINE ===================== */
.wc-timeline {
    position: relative;
    padding: 40px 0;
}

.wc-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--wc-border);
}

.wc-timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.wc-timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--wc-green);
    border: 3px solid var(--wc-bg-white);
    box-shadow: 0 0 0 3px var(--wc-green);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.wc-timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wc-green);
    width: 45%;
    text-align: right;
    padding-right: 40px;
}

.wc-timeline-content {
    width: 45%;
    padding-left: 40px;
}

.wc-timeline-title {
    font-weight: 600;
    color: var(--wc-dark);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .wc-timeline::before {
        left: 20px;
    }

    .wc-timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 48px;
    }

    .wc-timeline-dot {
        left: 20px;
    }

    .wc-timeline-year,
    .wc-timeline-content {
        width: 100%;
        text-align: left;
        padding: 0;
    }
}

/* ===================== WC CERT BADGES ===================== */
.wc-cert-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    align-items: center;
}

.wc-cert-badge {
    width: 100px;
    height: 100px;
    background: var(--wc-bg-white);
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: all var(--wc-transition);
}

.wc-cert-badge:hover {
    border-color: var(--wc-green);
    box-shadow: var(--wc-shadow-card);
    transform: translateY(-2px);
}

.wc-cert-badge img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===================== WC NEWSLETTER ===================== */
.wc-newsletter {
    background: var(--wc-green-light);
    border-radius: var(--wc-radius-lg);
    padding: 40px;
    text-align: center;
}

.wc-newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.wc-newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius-pill);
    font-size: 0.9375rem;
    outline: 2px solid transparent;
    transition: border-color var(--wc-transition), outline var(--wc-transition), box-shadow var(--wc-transition);
}

.wc-newsletter-input:focus {
    border-color: var(--wc-green);
    outline: 2px solid var(--wc-green);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

@media (max-width: 576px) {
    .wc-newsletter-form {
        flex-direction: column;
    }
}

/* ===================== WC CTA FORM SECTION ===================== */
.wc-cta-form-section {
    background: linear-gradient(135deg, var(--wc-dark) 0%, var(--wc-dark-soft) 100%);
    padding: 80px 0;
}

.wc-cta-form-section .wc-form-input,
.wc-cta-form-section .wc-form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.9375rem;
    outline: 2px solid transparent;
    transition: border-color var(--wc-transition);
}

.wc-cta-form-section .wc-form-input::placeholder,
.wc-cta-form-section .wc-form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.wc-cta-form-section .wc-form-input:focus,
.wc-cta-form-section .wc-form-textarea:focus {
    border-color: var(--wc-green);
}

/* ===================== WC SCROLL ANIMATIONS ===================== */
.wc-fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.wc-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.wc-fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.wc-fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.wc-fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.wc-fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Counter animation */
@keyframes wc-count-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wc-counter-number.animated {
    animation: wc-count-up 0.6s ease forwards;
}

/* ===================== WC UTILITY CLASSES ===================== */
.wc-max-w-600 {
    max-width: 600px;
}

.wc-max-w-800 {
    max-width: 800px;
}

.wc-max-w-1000 {
    max-width: 1000px;
}

.wc-text-green {
    color: var(--wc-green) !important;
}

.wc-bg-green-light {
    background: var(--wc-green-light) !important;
}

/* Green accent for links inside WC sections */
.wc-section a.wc-link {
    color: var(--wc-green);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--wc-transition);
}

.wc-section a.wc-link:hover {
    color: var(--wc-green-hover);
    text-decoration: underline;
}

/* ===================== WC RESPONSIVE (PHASE 25: MOBILE-FIRST) ===================== */
@media (max-width: 991px) {
    :root {
        --h1-size: 42px;
        --section-padding: 60px 24px;
        --section-margin: 60px;
    }

    .wc-hero {
        padding: 60px 0 40px;
    }

    .wc-section {
        padding: 60px 0;
    }

    /* Bento Grid Mobile Stacking */
    .wc-bento-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .wc-bento-tile-2x2,
    .wc-bento-tile-1x1 {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: auto !important;
    }
}

@media (max-width: 576px) {
    :root {
        --h1-size: 32px;
        --h2-size: 28px;
        --h3-size: 24px;
        --section-padding: 40px 20px;
    }

    .wc-section {
        padding: 40px 0 !important;
    }

    .wc-card {
        padding: 20px;
    }

    /* Thumb-Friendly Targets (44px Rule) */
    .wc-btn,
    .btn,
    button,
    .country-pill {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Prevent iOS Auto-Zoom on Form Inputs */
    input,
    textarea,
    select {
        font-size: 16px !important;
    }

    /* Icon-Led Scannability (Left Align for Mobile) */
    .wc-tile-top,
    .wc-card.text-center {
        text-align: left !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 15px;
        flex-direction: row !important;
    }

    .wc-card-icon {
        margin: 0 !important;
        flex-shrink: 0;
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }

    .wc-card-icon+h3,
    .wc-card-icon+div>h3 {
        margin-top: 5px !important;
    }

    /* Bento Grid Mobile Stacking Gaps */
    .wc-bento-grid,
    .wc-process-steps,
    .row.g-4 {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .wc-process-step,
    .wc-bento-tile {
        margin: 0 0 20px 0 !important;
        width: 100% !important;
    }
}

/* Disable Heavy Effects on Non-Hover Devices */
@media (hover: none) {
    .floating-card:hover {
        transform: none !important;
        box-shadow: var(--shadow-md) !important;
    }

    .wc-fade-in {
        transform: none !important;
        /* Instant visibility for performance */
        opacity: 1 !important;
    }
}

/* Sticky Mobile CTA Bar */
.wc-mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 12px 20px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: none;
    gap: 12px;
    border-top: 1px solid var(--wc-border);
}

@media (max-width: 768px) {
    .wc-mobile-sticky-bar {
        display: flex;
    }

    body {
        padding-bottom: 74px;
        /* Space for sticky bar */
    }
}
/* =========================================
   BIG 4 ENTERPRISE LAYOUT SYSTEM — v13.0.0
   Styles for content-defaults.php injections
   ========================================= */

.big4-layout-standard {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* --- Colors & Backgrounds --- */
.bg-navy { background-color: #0A192F !important; }
.bg-light { background-color: #F8F9FA !important; }
.bg-black { background-color: #000000 !important; }
.bg-gold { background-color: #D4AF37 !important; }
.text-navy { color: #0A192F !important; }
.text-gold { color: #D4AF37 !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }

.bg-navy-overlay-90 {
    position: relative;
    overflow: hidden;
}
.bg-navy-overlay-90::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 25, 47, 0.90);
    z-index: 1;
}
.bg-center-cover {
    background-size: cover;
    background-position: center;
}
.z-index-2 { position: relative; z-index: 2; }

/* --- Typography --- */
.display-4 { font-size: 2.5rem; line-height: 1.2; }
.lead { font-size: 1.25rem; font-weight: 300; }
.letter-spacing-1 { letter-spacing: 1px; }
.font-weight-bold { font-weight: 700 !important; }

/* --- Components --- */
.badge {
    display: inline-block;
    padding: 0.5em 0.8em;
    font-size: 0.85em;
    border-radius: 4px;
    font-weight: 600;
}

.flow-step {
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.step-badge {
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin: 0 auto;
}
.w-40-h-40 { width: 40px; height: 40px; }
.min-w-200 { min-width: 200px; }
.max-w-800 { max-width: 800px; }

/* --- Tables --- */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 1rem; vertical-align: middle; border-top: 1px solid #dee2e6; }
.table thead th { border-bottom: 2px solid #dee2e6; }
.table-hover tbody tr:hover { background-color: rgba(0,0,0,0.02); }

/* --- Buttons --- */
.pt-btn-premium {
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: all 0.3s;
    border: 2px solid transparent;
}
.pt-btn-premium-gold {
    background: #D4AF37;
    color: #0A192F;
}
.pt-btn-premium-gold:hover {
    background: #fff;
    color: #0A192F;
    border-color: #D4AF37;
}

/* --- Utilities --- */
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important; }
.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; }
.rounded { border-radius: 0.5rem !important; }
.rounded-circle { border-radius: 50% !important; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.text-center { text-align: center; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* =========================================
   EXTRACTED INLINE STYLE UTILITIES (Phase 10)
   Replaces 900+ repeated inline style="" attributes
   ========================================= */

/* Icon circle — gradient cobalt, 48px (services/features) */
.icon-circle-lg {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-cobalt), rgba(30, 115, 190, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: #fff;
}

/* Icon circle — gradient cobalt, 44px rounded (steps/counters) */
.icon-circle-step {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cobalt), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
}

/* Icon circle — no auto margin, left-aligned variant */
.icon-circle-sm {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-cobalt), rgba(30, 115, 190, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #fff;
}

/* Hero decorative orb — large (300px, cobalt) */
.hero-orb-lg {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 115, 190, 0.15), transparent);
    top: -100px;
    right: -80px;
    animation: floatOrb1 8s ease-in-out infinite;
    z-index: 0;
}

/* Hero decorative orb — small (200px, gold) */
.hero-orb-sm {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent);
    bottom: -60px;
    left: -40px;
    animation: floatOrb2 10s ease-in-out infinite;
    z-index: 0;
}

/* Glass pill badge */
.badge-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Card content padding */
.p-card { padding: 28px 20px; }

/* CTA button — gold gradient */
.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold), #e8c84a);
    color: var(--primary-navy);
    border-radius: 50px;
    text-decoration: none;
}

.btn-gold-solid {
    background: linear-gradient(135deg, var(--accent-gold), #e8c84a);
    color: var(--primary-navy);
    border: none;
    border-radius: 50px;
    text-decoration: none;
}

/* Z-index layers */
.z-0 { z-index: 0; }
.z-2 { z-index: 2; }

/* Section spacing */
.section-lg { padding: 70px 0; }
.section-md { padding: 40px; }

/* Content widths */
.max-w-600 { max-width: 600px; }
.max-w-700 { max-width: 700px; }

/* Hero subtitle */
.hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero stat accent */
.stat-accent {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-gold);
}

/* Cobalt link */
.link-cobalt {
    color: var(--primary-cobalt);
    text-decoration: none;
}

/* Line height reading */
.lh-relaxed { line-height: 1.8; }

/* Section minimum heights */
.min-h-hero-sm { min-height: 35vh; }
.min-h-hero-md { min-height: 40vh; }
.min-h-hero { min-height: 45vh; }

/* =========================================
   MISSING CSS CLASSES — v14.5.1 Audit Fix
   ========================================= */

/* Bootstrap-equivalent utilities */
.text-muted {
    color: var(--text-muted, #6B7280) !important;
}

.h-100 {
    height: 100% !important;
}

/* Brand divider */
.divider-gold {
    width: 60px;
    height: 3px;
    background: var(--accent-gold, #D4AF37);
    border: none;
    margin: 0 auto;
    border-radius: 2px;
}

/* Cobalt icon text */
.text-cobalt {
    color: var(--color-cobalt, #1E73BE) !important;
}

/* Grayscale hover for partner logos / trust bar */
.grayscale-hover {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.grayscale-hover:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Industry card */
.pt-industry-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--card-radius, 10px);
    padding: var(--card-padding, 40px) 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.pt-industry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Glass stat — footer stats bar */
.glass-stat {
    text-align: center;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}
.glass-stat:hover {
    transform: translateY(-4px);
}

/* Step number / Why icon inline-styled fallbacks */
.pt-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gold, #D4AF37);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
}

.pt-why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(30, 115, 190, 0.1);
    color: var(--color-cobalt, #1E73BE);
    font-size: 28px;
    margin-bottom: 16px;
}

/* =========================================
   v14.5.3 — Additional Missing Classes
   ========================================= */

/* Padding utility */
.p-30 { padding: 30px; }

/* Footer link style */
.footer-link {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.25s ease, padding-left 0.25s ease;
}
.footer-link:hover {
    color: var(--accent-gold, #D4AF37);
    padding-left: 4px;
}

/* Smooth scroll anchor */
html { scroll-behavior: smooth; }

/* ═══════════════════════════════════════════════════════
   PRODUCTION FIXES v14.6.0
   ═══════════════════════════════════════════════════════ */

/* Social icon hover via CSS (replaces inline onmouseover) */
.social-icon-link {
    color: rgba(255,255,255,0.5);
    transition: color 0.2s ease, transform 0.2s ease;
}
.social-icon-link:hover,
.social-icon-link:focus {
    color: #D4AF37 !important;
    transform: translateY(-2px);
}

/* Search button hover via CSS (replaces inline onmouseover) */
.search-btn-hover {
    transition: background 0.25s ease;
}
.search-btn-hover:hover,
.search-btn-hover:focus {
    background: rgba(30,115,190,0.1) !important;
}

/* ── Safe-area insets for notched devices (iPhone X+) ── */
body {
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.site-header-shell,
.jurisdiction-bar {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
}
.site-footer {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

/* ── Touch-action for scroll optimization ── */
.nav-menu, .sub-menu, .mobile-overlay {
    touch-action: pan-y;
}
.mobile-menu-toggle,
.dropdown-toggle,
.cta-header-btn,
.btn {
    touch-action: manipulation;
}

/* ── Minimum touch targets ── */
.nav-menu a,
.sub-menu a,
.country-pill,
.country-pill-mobile,
.footer-link a,
.cta-header-btn,
.mobile-menu-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* ── 320px ultra-small breakpoint (iPhone SE) ── */
@media (max-width: 320px) {
    :root {
        --section-padding-y: 40px;
    }
    .container,
    .site-content {
        padding-left: 12px;
        padding-right: 12px;
    }
    .jurisdiction-bar .country-pills {
        gap: 4px;
    }
    .country-pill {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
    h1, .hero-title {
        font-size: clamp(22px, 6vw, 32px) !important;
    }
    h2 {
        font-size: clamp(18px, 5vw, 26px) !important;
    }
    .cta-header-btn {
        font-size: 0.75rem;
        padding: 8px 16px;
    }
    .fp-services-grid,
    .glass-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Consistent 768px breakpoint fix (was mixed 767px/768px) ── */
@media (max-width: 768px) {
    .jurisdiction-bar .country-pills {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    .country-pill {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
    .site-footer .glass-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
}

/* ── Prefers reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ─────────────────────────────────────────────────────
   MOBILE POLISH v14.6.1
   ───────────────────────────────────────────────────── */

/* ── Service page heroes: reduce excessive padding on mobile ── */
@media (max-width: 767px) {
    /* Compact section padding on phones */
    section[style*="padding:80px"],
    section[style*="padding: 80px"],
    section[style*="padding:90px"],
    section[style*="padding: 90px"],
    section[style*="padding:100px"],
    section[style*="padding: 100px"] {
        padding-top: 50px !important;
        padding-bottom: 40px !important;
    }

    /* Hero headings: ensure readable size */
    section h1 {
        font-size: clamp(1.4rem, 5.5vw, 2rem) !important;
        line-height: 1.3 !important;
    }

    /* Sub-badges (e.g., "BOOKKEEPING SERVICES") */
    .badge, .pt-badge, [class*="badge"] {
        font-size: 0.65rem !important;
    }

    /* Service cards grid: single column on mobile */
    .glass-grid,
    .row .col-md-4,
    .row .col-md-6,
    .row .col-lg-4,
    .row .col-lg-3 {
        margin-bottom: 16px;
    }

    /* Floating consultation trigger — tighter on small screens */
    .fc-trigger {
        padding: 12px 8px !important;
        font-size: 0.7rem !important;
        letter-spacing: 0.5px !important;
    }

    /* WhatsApp button spacing */
    .whatsapp-float,
    [class*="whatsapp"] {
        bottom: 16px !important;
        right: 16px !important;
        width: 50px !important;
        height: 50px !important;
    }

    /* Footer grid: single column, center text */
    .site-footer .row > [class*="col-"] {
        text-align: center !important;
        margin-bottom: 24px;
    }
    .site-footer .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
}

/* ── Very small phones (iPhone SE, 375px and below) ── */
@media (max-width: 375px) {
    .pt-jurisdiction-pill {
        padding: 2px 6px !important;
        font-size: 0.62rem !important;
    }
    section h1 {
        font-size: 1.25rem !important;
    }
    section h2 {
        font-size: 1.1rem !important;
    }
    .fc-trigger {
        padding: 10px 6px !important;
        font-size: 0.65rem !important;
    }
}

