/* Styles for Global Header Snippet 097f379e */

:root {
    --header-primary-blue: #5A7BBF;
    --header-hover-blue: #4A69A8;
    --header-black: #000000;
    --header-white: #FFFFFF;
    --header-light-gray: #F8F9FA;
    --header-border-color: #E9ECEF;
}

/* Base Header Styling */
.site-header {
    background-color: var(--header-white);
    border-bottom: 1px solid var(--header-border-color);
    position: sticky;
    top: 0;
    z-index: 9999;
    transition: all 0.3s ease;
    padding: 24px 0; /* Updated from 20px */
}

/* Sticky Shrink State */
.site-header.is-sticky {
    padding: 14px 0; /* Updated from 10px */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px); /* Updated blur strength */
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Left Section: Logo & Branding */
.header-left {
    flex: 0 0 22%; /* Minor alignment tweak */
}

.logo-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 24px; /* Increased font visibility */
    font-weight: 700;
    color: var(--header-black);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo-subtext {
    font-size: 11px;
    color: var(--header-primary-blue);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* Center Section: Navigation */
.header-nav-desktop {
    flex: 0 0 53%;
    display: flex;
    justify-content: center;
}

.desktop-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px; /* Slightly wider navigation spacing */
}

.desktop-menu > li {
    position: relative;
}

.desktop-menu a {
    text-decoration: none;
    font-size: 16px; /* Optimized font size readability */
    font-weight: 500;
    color: var(--header-black);
    padding: 12px 0;
    display: inline-block;
    transition: color 0.25s ease;
}

.desktop-menu a:hover {
    color: var(--header-primary-blue);
}

/* Dropdown Menus */
.desktop-menu li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--header-white);
    border: 1px solid var(--header-border-color);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: 12px 0;
    min-width: 220px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s ease;
    border-radius: 8px;
    z-index: 1000;
}

.desktop-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-menu li ul a {
    padding: 10px 24px;
    display: block;
    font-size: 14.5px;
}

/* Right Section: CTA & Action items */
.header-right {
    flex: 0 0 25%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.phone-link {
    color: var(--header-black);
    display: flex;
    align-items: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.phone-link:hover {
    color: var(--header-primary-blue);
    transform: scale(1.05);
}

.cta-button {
    background-color: var(--header-primary-blue);
    color: var(--header-white) !important;
    text-decoration: none;
    padding: 14px 28px; /* High contrast lead-focused padding */
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(90, 123, 191, 0.25);
}

.cta-button:hover {
    background-color: var(--header-hover-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Mobile Toggle Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--header-black);
    border-radius: 2px;
}

/* Off-Canvas Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background-color: var(--header-white);
    z-index: 100000;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}

.mobile-drawer.is-open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--header-black);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(3px);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Menu Links */
.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--header-black);
    display: block;
    padding: 10px 0;
}

/* Mobile Bottom Sticky Bar */
.mobile-sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-white);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.06);
    display: none;
    z-index: 9999;
    grid-template-columns: 1fr 1.5fr;
    border-top: 1px solid var(--header-border-color);
}

.action-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
}

.call-btn {
    background-color: var(--header-white);
    color: var(--header-black);
}

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

/* Responsiveness & Offsets */
body.admin-bar .site-header {
    top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 992px) {
    .header-nav-desktop, .phone-link {\n        display: none;\n    }\n    \n    .menu-toggle {\n        display: flex;\n    }\n    \n    .header-left {\n        flex: 1;\n    }\n    \n    .logo-subtext {\n        display: none; /* Hide tagline on mobile/tablet */\n    }\n    \n    .mobile-sticky-action-bar {\n        display: grid;\n    }\n    \n    body {\n        padding-bottom: 50px; /* Offset for sticky bar */\n    }\n}\n