/* =============================================================================
   ArcSolv Labs — Custom Site Header
   Layout: [Brand LEFT] ←——— [Nav CENTERED] ———→ [CTA RIGHT]
   The nav takes all remaining space and centers its links within it.
   Brand and CTA are fixed-width, pinned to their edges.
   ============================================================================= */

/* ---- Reset ---- */
.arcsolv-site-header *,
.arcsolv-site-header *::before,
.arcsolv-site-header *::after {
    box-sizing: border-box;
}

/* ---- Header shell ---- */
.arcsolv-site-header {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    font-family: inherit;
}

/* ---- Inner row ---- */
.arcsolv-header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 40px;
    height: 90px;
}

/* =============================================================================
   COLUMN 1 — BRAND (logo + name + tagline)
   flex: 0 0 auto  →  never grows, stays natural width, pins to LEFT
   ============================================================================= */

.arcsolv-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex: 0 0 auto;   /* fixed width — left edge */
}

.arcsolv-brand .custom-logo-link,
.arcsolv-brand .custom-logo-link img {
    display: block;
    max-height: 46px;
    width: auto;
}

.arcsolv-logo-placeholder {
    width: 46px;
    height: 46px;
    background-color: #2563eb;
    border-radius: 10px;
    flex-shrink: 0;
}

.arcsolv-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.arcsolv-site-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
}

.arcsolv-tagline {
    font-size: 12px;
    font-weight: 400;
    color: #888888;
    white-space: nowrap;
    margin-top: 3px;
}

/* =============================================================================
   COLUMN 2 — NAVIGATION
   flex: 1 1 0  →  takes ALL remaining space between brand and CTA
   justify-content: center  →  nav links sit in the true center of that space
   ============================================================================= */

.arcsolv-nav {
    flex: 1 1 0;        /* grow to fill all space between brand and CTA */
    display: flex;
    justify-content: center;   /* center the nav list inside that full space */
    align-items: center;
    min-width: 0;
}

.arcsolv-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.arcsolv-nav-list li {
    position: relative;
}

.arcsolv-nav-list li a {
    display: block;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #333333;
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.18s ease, background-color 0.18s ease;
    white-space: nowrap;
}

.arcsolv-nav-list li a:hover,
.arcsolv-nav-list li.current-menu-item > a,
.arcsolv-nav-list li.current_page_item > a {
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.06);
}

/* Dropdown */
.arcsolv-nav-list .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    list-style: none;
    padding: 6px 0;
    margin: 0;
    z-index: 100;
}

.arcsolv-nav-list li:hover > .sub-menu {
    display: block;
}

.arcsolv-nav-list .sub-menu li a {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 0;
    color: #333333;
}

.arcsolv-nav-list .sub-menu li a:hover {
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.06);
}

/* =============================================================================
   COLUMN 3 — CTA (phone + button)
   flex: 0 0 auto  →  never grows, stays natural width, pins to RIGHT
   ============================================================================= */

.arcsolv-header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;   /* fixed width — right edge */
}

.arcsolv-phone-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.arcsolv-phone-icon {
    color: #2563eb;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.arcsolv-phone-icon svg {
    display: block;
}

.arcsolv-phone-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.arcsolv-phone-label {
    font-size: 11px;
    color: #888888;
    white-space: nowrap;
}

.arcsolv-phone-number {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
    white-space: nowrap;
}

.arcsolv-phone-number:hover {
    color: #2563eb;
}

/* Get Started button */
.arcsolv-cta-btn {
    display: inline-block;
    padding: 13px 26px;
    background-color: #2563eb;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    transition: background-color 0.18s ease, transform 0.12s ease;
    line-height: 1;
}

.arcsolv-cta-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* =============================================================================
   MOBILE HAMBURGER
   ============================================================================= */

.arcsolv-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.arcsolv-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #1a1a2e;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.arcsolv-mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.arcsolv-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.arcsolv-mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================================
   MOBILE DRAWER
   ============================================================================= */

.arcsolv-mobile-nav {
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    padding: 16px 24px 20px;
}

.arcsolv-mobile-nav .arcsolv-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 16px;
}

.arcsolv-mobile-nav .arcsolv-nav-list li a {
    padding: 10px 4px;
    font-size: 15px;
    width: 100%;
}

.arcsolv-mobile-phone {
    display: block;
    padding: 8px 4px;
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 12px;
}

.arcsolv-mobile-cta {
    display: inline-block;
    margin-top: 4px;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 900px) {
    .arcsolv-nav,
    .arcsolv-header-cta {
        display: none;
    }
    .arcsolv-mobile-toggle {
        display: flex;
    }
    .arcsolv-header-inner {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .arcsolv-site-name { font-size: 16px; }
    .arcsolv-tagline   { display: none; }
}

/* =============================================================================
   SUPPRESS old JupiterX header spacer
   ============================================================================= */

.jupiterx-header-spacer {
    display: none !important;
}

/* =============================================================================
   ArcSolv Labs — Services Page
   Supplements Elementor widget styles for precise card appearance
   ============================================================================= */

/* Hide the JupiterX page title bar / breadcrumb on the services page */
.page-id-87 .jupiterx-main-header,
.page-id-87 .jupiterx-page-header {
    display: none !important;
}

/* Service card hover lift — Elementor's float animation + border glow */
.page-id-87 .elementor-widget-icon-box:hover {
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12) !important;
    border-color: #bfdbfe !important;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Icon circle — ensure the stacked view looks right */
.page-id-87 .elementor-widget-icon-box .elementor-icon.elementor-animation-float {
    margin-bottom: 20px;
}

/* Service grid section bg */
.page-id-87 .elementor-section:nth-child(3) {
    background-color: #f8fafc;
}
