﻿/* =====================================================
   RESUME TARGET - HEADER CSS
   /asset/css/header.css
   v3.0 - Consolidated mobile-menu.css into this file
   
   CHANGES IN 3.0:
   - Merged mobile-menu.css (445 lines) into this file
   - All mobile menu styles now in single file
   - Removed need for separate mobile-menu.css load
   
   v20260127 - Renamed .seo-tagline to .site-tagline, added H1 styles
   ===================================================== */

/* =====================================================
   TOP BAR (Navy)
   ===================================================== */
.top-bar {
    background: #1f295e;
    color: #fff;
    font-size: 14px;
}

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

/* Site tagline - now rendered as H1 for SEO */
.site-tagline {
    font-weight: 500;
}

/* H1 reset - make it look identical to the previous span */
.top-bar h1.site-tagline {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    padding: 0;
    line-height: inherit;
    display: inline;
    font-family: inherit;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-link,
.top-phone {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.top-link:hover,
.top-phone:hover {
    opacity: 1;
}

/* =====================================================
   MAIN NAV (White)
   ===================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
}

.main-nav {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.main-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
}

/* Logo */
.logo {
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
}

/* =====================================================
   DESKTOP NAV MENU
   ===================================================== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-item.has-mega {
    position: static;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: #1f295e;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
    background: #f1f5f9;
    color: #47BB5C;
}

.nav-link .arrow {
    font-size: 12px;
    transition: transform 0.2s;
}

.nav-item.has-mega:hover .nav-link .arrow {
    transform: rotate(180deg);
}

/* Nav CTA Button */
.nav-cta {
    background: #47BB5C;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    margin-left: 16px;
}

.nav-cta:hover {
    background: #2d8a3e;
    color: #fff;
}
/* =====================================================
   MEGA MENU
   ===================================================== */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 100;
}

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

.mega-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

/* Make How It Works first column wider */
.nav-item.has-mega:first-child .mega-inner {
    grid-template-columns: 1.3fr 1fr 1fr;
}

/* =====================================================
   MEGA MENU COLUMNS
   ===================================================== */
.mega-col {
    min-width: 0;
}

.mega-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.mega-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-links li {
    margin-bottom: 4px;
}

.mega-links a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #334155;
    transition: background 0.2s;
}

.mega-links a:hover {
    background: #f1f5f9;
}

.mega-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #47BB5C;
    margin-top: 2px;
}

.mega-link-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mega-link-text strong {
    font-weight: 600;
    color: #1f295e;
    font-size: 14px;
    white-space: nowrap;
}

.mega-link-text small {
    font-size: 13px;
    color: #64748b;
    line-height: 1.3;
}

/* Compact links (for Solutions) */
.mega-links.compact a {
    padding: 8px 12px;
    font-size: 14px;
    color: #334155;
}

.mega-links.compact a:hover {
    color: #47BB5C;
}

/* =====================================================
   MEGA MENU HIGHLIGHT BOX
   ===================================================== */
.mega-col.mega-highlight {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin: -8px;
}

.mega-highlight .mega-heading {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 12px;
    color: #1f295e;
    font-size: 14px;
}

.mega-highlight p {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.mega-cta {
    display: inline-block;
    color: #47BB5C;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.mega-cta:hover {
    text-decoration: underline;
}

/* =====================================================
   MOBILE TOGGLE (Hamburger Button)
   ===================================================== */
.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: #1f295e;
    transition: all 0.2s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: #1f295e;
    transition: all 0.25s ease;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    bottom: -7px;
}

/* Hamburger to X animation */
.site-header.menu-open .hamburger {
    background: transparent;
}

.site-header.menu-open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.site-header.menu-open .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* =====================================================
   MOBILE MENU CONTAINER
   (Merged from mobile-menu.css v3.4)
   ===================================================== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 110px; /* top-bar (40px) + main-nav (70px) */
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* When promo banner is active - adjust for extra height */
.has-promo-banner .mobile-menu,
body.promo-active .mobile-menu {
    top: 155px;
}

.site-header.menu-open .mobile-menu {
    display: block;
    animation: mobileMenuFadeIn 0.2s ease;
}

@keyframes mobileMenuFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.menu-open,
body.nav-open {
    overflow: hidden;
}

.mobile-menu-inner {
    padding: 20px;
    padding-bottom: 120px;
}

/* =====================================================
   MOBILE ACCORDION
   ===================================================== */
.mobile-accordion {
    border-bottom: 1px solid #e2e8f0;
}

.mobile-accordion:first-of-type {
    border-top: 1px solid #e2e8f0;
}

.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 0;
    background: none;
    border: none;
    font-family: 'AvertaPE', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #1f295e;
    cursor: pointer;
    text-align: left;
}

.accordion-trigger:hover {
    color: #02c153;
}

/* Accordion trigger with icon */
.accordion-trigger-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.accordion-section-icon {
    width: 20px;
    height: 20px;
    color: #94a3b8;
    stroke: #94a3b8;
    flex-shrink: 0;
}

/* Font Awesome Chevron Arrow */
.accordion-arrow {
    font-size: 14px;
    color: #1f295e;
    transition: transform 0.3s ease;
}

.mobile-accordion.is-open .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding-bottom: 16px;
}

.mobile-accordion.is-open .accordion-content {
    display: block;
    animation: accordionSlideDown 0.25s ease;
}

@keyframes accordionSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   ACCORDION SECTIONS (By Situation, By Industry)
   ===================================================== */
.accordion-section {
    margin-bottom: 16px;
    padding-left: 0;
    border-left: none;
}

.accordion-section:last-child {
    margin-bottom: 0;
}

/* Section Title - Bold, prominent, left-aligned */
.accordion-section-title {
    font-family: 'AvertaPE', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1f295e;
    padding: 12px 0 8px 0;
    margin-bottom: 4px;
    text-transform: none;
    letter-spacing: 0;
}

.accordion-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    margin-bottom: 4px;
}

.accordion-section-header svg {
    width: 16px;
    height: 16px;
    color: #02c153;
    stroke: #02c153;
    flex-shrink: 0;
}

.accordion-heading {
    font-family: 'AvertaPE', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1f295e;
    text-transform: none;
    letter-spacing: 0;
    display: block;
    margin: 0 0 8px 0;
    padding-left: 16px;
}

/* =====================================================
   ACCORDION LINKS
   ===================================================== */
.accordion-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: #334155;
    text-decoration: none;
    font-family: 'AvertaPE', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s ease;
    margin: 2px 0;
}

.accordion-content a:hover {
    background: #f1f5f9;
    color: #02c153;
}

.accordion-content a svg {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    stroke: #94a3b8;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.accordion-content a:hover svg {
    color: #02c153;
    stroke: #02c153;
}

.accordion-section a {
    padding-left: 16px;
}

/* =====================================================
   MOBILE DIRECT LINKS (Pricing)
   ===================================================== */
.mobile-direct-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    font-family: 'AvertaPE', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #1f295e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-direct-link:hover {
    color: #02c153;
}

.mobile-direct-link svg {
    width: 18px;
    height: 18px;
    color: #02c153;
    stroke: #02c153;
    flex-shrink: 0;
}

/* =====================================================
   MOBILE GET STARTED CTA (GREEN)
   ===================================================== */
.mobile-cta {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #02c153 0%, #00a847 100%);
    color: #fff;
    text-align: center;
    font-family: 'AvertaPE', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(2, 193, 83, 0.35);
    transition: all 0.2s ease;
}

.mobile-cta:hover,
.mobile-cta:active {
    background: linear-gradient(135deg, #00a847 0%, #008f3d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 193, 83, 0.45);
}

/* =====================================================
   MOBILE PHONE LINK
   ===================================================== */
.mobile-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px;
    background: #f8fafc;
    color: #1f295e;
    text-decoration: none;
    font-family: 'AvertaPE', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.mobile-phone:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #02c153;
}

.mobile-phone svg {
    width: 18px;
    height: 18px;
    color: #02c153;
    stroke: #02c153;
}

/* Phone Flag (Canadian Maple Leaf) */
.phone-flag {
    color: #FF0000 !important;
    margin-right: 6px;
    font-size: 16px;
}

/* Top bar phone flag */
.top-phone .phone-flag,
.top-bar .phone-flag {
    color: #FF0000 !important;
}

/* =====================================================
   MOBILE CTA BUTTONS - Now at BOTTOM
   ===================================================== */
.mobile-cta-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.mobile-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 10px;
    font-family: 'AvertaPE', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mobile-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Primary Button - Call Back (GREEN) */
.mobile-btn-primary {
    background: linear-gradient(135deg, #02c153 0%, #00a847 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(2, 193, 83, 0.3);
}

.mobile-btn-primary:hover,
.mobile-btn-primary:active {
    background: linear-gradient(135deg, #00a847 0%, #008f3d 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 193, 83, 0.4);
}

.mobile-btn-primary svg {
    stroke: #fff;
    color: #fff;
}

/* Outline Button - Live Chat (NAVY) */
.mobile-btn-outline {
    background: #fff;
    color: #1f295e;
    border: 2px solid #1f295e;
}

.mobile-btn-outline:hover,
.mobile-btn-outline:active {
    background: #1f295e;
    color: #fff;
}

.mobile-btn-outline svg {
    stroke: #1f295e;
    color: #1f295e;
    transition: all 0.2s ease;
}

.mobile-btn-outline:hover svg,
.mobile-btn-outline:active svg {
    stroke: #fff;
    color: #fff;
}

/* =====================================================
   LIVE CHAT BUTTON - Matches button group style
   ===================================================== */
.mobile-btn-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    color: #1f295e;
    font-family: 'AvertaPE', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-btn-chat:hover,
.mobile-btn-chat:active {
    background: #1f295e;
    color: #fff;
    border-color: #1f295e;
}

.mobile-btn-chat svg {
    width: 18px;
    height: 18px;
    color: #02c153;
    stroke: #02c153;
    transition: all 0.2s ease;
}

.mobile-btn-chat:hover svg,
.mobile-btn-chat:active svg {
    color: #fff;
    stroke: #fff;
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */
@media (max-width: 991px) {
    /* Show mobile toggle */
    .mobile-toggle {
        display: flex !important;
    }
    
    /* Hide desktop nav */
    .nav-menu {
        display: none !important;
    }
    
    .nav-cta {
        display: none !important;
    }
    
    /* Hide top bar on mobile */
    .top-bar {
        display: none !important;
    }
    
    /* Adjust mobile menu position when top bar is hidden */
    .mobile-menu {
        top: 70px; /* Just main-nav height, no top-bar */
    }
}

@media (min-width: 992px) {
    /* Hide mobile menu on desktop */
    .mobile-menu {
        display: none !important;
    }
    
    .mobile-toggle {
        display: none !important;
    }
}

@media (max-width: 1100px) {
    .mega-inner {
        gap: 24px;
        padding: 24px 20px;
    }
    
    .mega-link-text strong {
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .top-bar-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    /* H1 adjustment for small mobile */
    .top-bar h1.site-tagline {
        font-size: 13px;
        text-align: center;
        display: block;
        margin-bottom: 8px;
    }
}

@media (max-width: 400px) {
    .mobile-cta-buttons {
        flex-direction: column;
    }
    
    .mobile-btn {
        width: 100%;
    }
    
    .accordion-trigger {
        font-size: 16px;
    }
    
    .accordion-content a {
        font-size: 14px;
        padding: 10px;
    }
}

/* =====================================================
   iOS SAFE AREA SUPPORT
   ===================================================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-menu-inner {
        padding-bottom: calc(120px + env(safe-area-inset-bottom));
    }
}

/* =====================================================
   REDUCED MOTION SUPPORT
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu,
    .accordion-content,
    .hamburger,
    .hamburger::before,
    .hamburger::after,
    .mega-menu {
        animation: none;
        transition: none;
    }
}
button.nav-link {
  border: none;
  background: transparent;
}