/* =================================================================
   Header & Thunderclap Mega Menu Styles (Light Theme)
   =================================================================== */

.skip-link{
    display: none;
}

:root {
    --header-bg: #ffffff;
    --header-text: #0f172a;       /* Dark slate for high contrast on white */
    --header-text-hover: #2563eb; /* Vibrant blue accent */
    --transition-speed: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --spacing-md: 0.4rem;
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: var(--header-bg);
    color: var(--header-text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Subtle border shadow for definition */
}

.site-header .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

/* Logo Sizing & Proportions */
.site-branding img,
.site-branding .custom-logo {
    max-height: 70px;
    height: auto;
    width: auto;
    max-width: 100%;
}

.site-logo-text {
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--header-text);
    letter-spacing: -0.02em;
}

/* Desktop Navigation */
.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.2rem;
    align-items: center;
}

.main-navigation .nav-menu > li > a {
    text-decoration: none;
    color: var(--header-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-speed);
}

.main-navigation .nav-menu > li > a:hover {
    color: var(--header-text-hover);
}

/* =================================================================
   MEGA MENU DROPDOWN STYLING (Light Theme)
   =================================================================== */

.mega-menu-parent {
    position: static; /* Allows the panel to span nicely across container width */
}

.mega-menu-toggle-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-arrow {
    transition: transform 0.25s ease;
    stroke: #0f172a;
}

.mega-menu-parent:hover .dropdown-arrow {
    transform: rotate(180deg);
    stroke: var(--header-text-hover);
}

/* Mega Menu Dropdown Panel */
.mega-menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    padding: 40px 0;
}

.mega-menu-parent:hover .mega-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1.1fr;
    gap: 40px;
}

/* Mega Menu Columns */
.mega-col-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.mega-col-header p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.4;
}

.mega-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mega-links-list li a {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-decoration: none;
    padding: 8px;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.mega-links-list li a:hover {
    background-color: #f8fafc;
}

.mega-icon {
    background-color: #eff6ff;
    color: #2563eb;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #dbeafe;
}

.mega-text {
    display: flex;
    flex-direction: column;
}

.mega-text strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
}

.mega-text span {
    font-size: 0.8rem;
    color: #64748b;
}

/* Mega Menu Promo Card Column */
.mega-promo-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mega-promo-content {
    padding: 24px;
}

.mega-promo-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.3;
}

.mega-promo-content p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 16px;
}

.mega-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.mega-promo-link:hover {
    gap: 10px;
}

.mega-promo-image {
    margin-top: auto;
    overflow: hidden;
}

.mega-promo-image img {
    width: 100%;
    height: auto;
    display: block;
    border-top: 1px solid #e2e8f0;
}

/* =================================================================
   Desktop Actions & Mobile Setup
   =================================================================== */

.header-actions-desktop {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-header-solid {
    background-color: var(--color-accent, #2563eb);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn-header-solid:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    z-index: 1001;
}

.mobile-menu-toggle .hamburger {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--header-text);
    border-radius: 2px;
}

/* Mobile Drawer Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    color: #0f172a;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
    overflow-y: auto;
}

.mobile-menu.is-active {
    transform: translateY(0);
}

.mobile-menu-inner {
    padding: 1.5rem 2rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #0f172a;
    cursor: pointer;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 auto 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #e2e8f0;
}

.mobile-nav-menu a {
    display: block;
    color: #0f172a;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1.1rem 0;
}

.mobile-menu-cta {
    margin-top: 2rem;
}

.btn-mobile-solid {
    display: block;
    text-align: center;
    width: 100%;
    background-color: var(--color-accent, #2563eb);
    color: #ffffff;
    padding: 16px;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
}

@media screen and (max-width: 991px) {
    .main-navigation,
    .header-actions-desktop {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
}



/* Restrict logo size inside the mobile menu header */
.mobile-branding img,
.mobile-branding .custom-logo {
    max-height: 40px !important;
    width: auto !important;
}

/* Mobile Submenu / Services Expansion Styling */
.mobile-sub-menu {
    list-style: none;
    padding-left: 1.2rem;
    /*margin: 0.5rem 0 1rem 0;*/
    display: none; /* Toggle open via JS or keep block if you want it always visible */
    /*border-left: 2px solid #e2e8f0;*/
}

.mobile-sub-menu li a {
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
    padding: 0.2rem 0 !important;
    border-bottom: none !important;
}

.mobile-sub-menu li a:hover {
    color: #2563eb !important;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}