/* Header Styles - Simplified and Clean Design */

/* Top Phone Bar */
.top-callout {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}

.top-callout__content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.top-callout__phones {
    display: flex;
    gap: 40px;
    align-items: center;
}

.top-callout__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.top-callout__phone strong {
    color: #6b7280;
    font-weight: 500;
}

.top-callout__phone a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.top-callout__phone a:hover {
    color: #4f46e5;
}

.top-callout__hours {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Main Header */
.site-header {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 20px;
}

/* Logo / Branding */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
}

.site-title a {
    color: #1f2937;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-title a:hover {
    color: #4f46e5;
}

.site-description {
    display: none;
}

/* Main Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Force horizontal layout for menu */
#primary-menu,
ul.nav-menu {
    display: flex;
    flex-direction: row;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    height: 100%;
}

.nav-menu > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-menu > li > a {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu > li > a:hover {
    background: #f9fafb;
    color: #4f46e5;
}

.nav-menu > li:not(.menu-item-has-children) > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #4f46e5;
    transition: width 0.3s ease;
}

.nav-menu > li:not(.menu-item-has-children) > a:hover::after {
    width: 80%;
}

/* Dropdown Arrow */
.menu-item-has-children > a:after {
    content: ' ▼';
    font-size: 0.6rem;
    display: inline-block;
    vertical-align: middle;
    opacity: 0.5;
}

/* Dropdown Menu */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
    margin-top: 5px;
    z-index: 1000;
    border: 1px solid #e5e7eb;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
}

.sub-menu li {
    padding: 0;
    margin: 0;
}

.sub-menu a {
    padding: 10px 20px;
    display: block;
    color: #4b5563;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.sub-menu a:hover {
    background: #f3f4f6;
    color: #4f46e5;
    padding-left: 24px;
}

/* CTA Buttons */
.header-cta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.cta-button--header {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    padding: 12px 30px;
    font-size: 0.95rem;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.2);
}

.cta-button--header:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
    flex-direction: column;
    width: 30px;
    height: 30px;
    justify-content: center;
}

.menu-toggle__line {
    display: block;
    width: 25px;
    height: 2px;
    background: #374151;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active .menu-toggle__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-toggle__line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-toggle__line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Fixed CTA Bar (Mobile) */
.fixed-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none;
    padding: 8px;
    gap: 8px;
}

.fixed-cta-bar__button {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.fixed-cta-bar__button--phone {
    background: #ef4444;
    color: white;
}

.fixed-cta-bar__button--line {
    background: #06c755;
    color: white;
}

.fixed-cta-bar__button--mail {
    background: #4f46e5;
    color: white;
}

.fixed-cta-bar__button:hover {
    transform: scale(1.05);
}

/* Phone Modal */
.phone-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
}

.phone-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.phone-modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.phone-modal__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: #1f2937;
}

.phone-modal__options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.phone-modal__option {
    display: block;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2937;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.phone-modal__option:hover {
    background: #4f46e5;
    color: white;
}

.phone-modal__close {
    width: 100%;
    padding: 12px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.phone-modal__close:hover {
    background: #4b5563;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu > li > a {
        padding: 0 15px;
        font-size: 0.9rem;
    }
    
    .header-cta {
        gap: 8px;
    }
    
    .cta-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .top-callout {
        display: none;
    }
    
    .header-content {
        padding: 0 15px;
        height: 60px;
    }
    
    .site-title {
        font-size: 1.4rem;
    }
    
    .main-navigation {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 1000;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 80px 20px;
        gap: 20px;
        height: auto;
    }
    
    .nav-menu > li {
        height: auto;
        width: 100%;
    }
    
    .nav-menu > li > a {
        height: auto;
        padding: 15px 20px;
        justify-content: space-between;
    }
    
    .nav-menu > li > a::after {
        display: none;
    }
    
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f9fafb;
        margin-top: 5px;
        border-radius: 0;
        border: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header-cta {
        display: none;
    }
    
    .fixed-cta-bar {
        display: flex;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.2rem;
    }
}