/* Prabha Site Header - pixel-perfect from Figma */
.prabha-site-header {
    --header-primary: #2d6ee6;
    --header-cyan: #2ab5e6;
    --header-heading: #1f2938;
    --header-body: #465469;
    --header-border: #e2e8f0;
    --header-height: 87px;

    position: relative;
    z-index: 999;
    background: #fff;
    border-bottom: 1px solid var(--header-border);
    font-family: "Inter", sans-serif;
}

.prabha-header-inner {
    max-width: 1320px;
    height: var(--header-height);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.prabha-header-logo {
    display: inline-flex;
    flex-shrink: 0;
    text-decoration: none;
}

.prabha-header-logo img {
    display: block;
    max-height: 52px;
    width: auto;
}

/* Navigation */
.prabha-header-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.prabha-header-menu,
.prabha-header-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 36px;
}

.prabha-header-menu li {
    position: relative;
}

.prabha-header-menu a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    color: var(--header-heading);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 8px 0;
}

.prabha-header-menu a:hover,
.prabha-header-menu a:focus,
.prabha-header-menu .current-menu-item > a,
.prabha-header-menu .is-active > a {
    color: var(--header-primary);
}

.prabha-header-menu .is-active > a::after,
.prabha-header-menu .current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--header-primary);
}

/* Actions */
.prabha-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.prabha-header-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.prabha-header-phone-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(45, 110, 230, 0.1);
    color: var(--header-primary);
    flex-shrink: 0;
}

.prabha-header-phone-icon svg {
    width: 16px;
    height: 16px;
}

.prabha-header-phone-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.prabha-header-phone-label {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    color: var(--header-body);
}

.prabha-header-phone-number {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: var(--header-heading);
    white-space: nowrap;
}

.prabha-header-cta,
.prabha-header-cta:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    background: linear-gradient(90deg, var(--header-primary) 0%, var(--header-cyan) 100%);
    border-radius: 12px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: #fff !important;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prabha-header-cta:hover,
.prabha-header-cta:focus {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(45, 110, 230, 0.28);
}

.prabha-header-cta-arrow {
    font-size: 15px;
    line-height: 1;
}

/* Mobile toggle */
.prabha-header-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 8px;
}

.prabha-header-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--header-heading);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.prabha-header-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.prabha-header-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.prabha-header-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 1319px) and (min-width: 1200px) {
    .prabha-header-menu,
    .prabha-header-menu ul {
        gap: 24px;
    }
}

/* Collapse to the hamburger on tablet-landscape and below: the full desktop
   nav (7 items + logo + phone + CTA) cannot fit under ~1200px. */
@media (max-width: 1199px) {
    .prabha-header-toggle {
        display: inline-flex;
    }

    .prabha-header-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--header-border);
        padding: 20px;
        display: none;
        box-shadow: 0 12px 24px rgba(31, 41, 56, 0.08);
    }

    .prabha-header-nav.is-open {
        display: flex;
    }

    .prabha-header-menu,
    .prabha-header-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    .prabha-header-menu a {
        width: 100%;
        padding: 10px 0;
    }

    .prabha-header-menu .is-active > a::after,
    .prabha-header-menu .current-menu-item > a::after {
        display: none;
    }

    .prabha-header-phone-label {
        display: none;
    }

    .prabha-header-cta {
        display: none;
    }
}

@media (max-width: 767px) {
    .prabha-header-inner {
        padding: 0 16px;
    }

    .prabha-header-logo img {
        max-height: 42px;
    }

    .prabha-header-actions {
        gap: 12px;
    }

    .prabha-header-phone-icon {
        width: 32px;
        height: 32px;
    }

    /* On phones show only logo + hamburger; collapse the quick-call block. */
    .prabha-header-phone {
        display: none;
    }
}

/* Normalize the hamburger button against theme/Elementor generic <button> styles
   (which inject padding and make it overflow the viewport on small screens). */
.prabha-header-toggle {
    box-sizing: border-box;
    flex: 0 0 auto;
}

.prabha-site-header .prabha-header-toggle,
.prabha-site-header button.prabha-header-toggle {
    padding: 0;
    width: 44px;
    height: 44px;
}

/* --- Sticky header on scroll (+ remove HFE 88px min-height white strip) --- */
.hfeed.site > header,
.hfeed.site > header#masthead,
.ehf-header .hfeed.site > header#masthead,
body.ehf-header > .hfeed.site > header#masthead {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    min-height: 0 !important;
}
/* HFE forces an 88px min-height on the inner header container, leaving a 7px white strip
   below the 81px header content — collapse it. */
.hfeed.site > header > .elementor,
.hfeed.site > header .elementor > .e-con,
.hfeed.site > header .elementor > .elementor-section,
#masthead .elementor > .e-con,
.hfe-header-inner {
    min-height: 0 !important;
}
.prabha-site-header {
    background: #fff;
    box-shadow: 0 1px 0 rgba(31, 41, 56, 0.06);
}

/* Remove Elementor section/column padding under the header (kills the white strip before content) */
.hfeed.site > header .elementor-section,
.hfeed.site > header .elementor-container,
.hfeed.site > header .elementor-column,
.hfeed.site > header .elementor-widget-wrap,
.hfeed.site > header .elementor-widget,
.hfeed.site > header .elementor-widget-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
