/*
 * Theme Name:   Astra Child — Streamline
 * Theme URI:    https://your-site.com
 * Description:  Astra child theme with custom Streamline header
 * Author:       Your Name
 * Template:     astra
 * Version:      1.0.0
 * Text Domain:  astra-child
 */


/* ============================================
   HIDE ASTRA'S DEFAULT HEADER (safety net)
   ============================================ */
.ast-primary-header-bar,
.ast-mobile-header-wrap,
#ast-mobile-header,
.main-header-bar-wrap,
.main-header-bar {
    display: none !important;
}


/* ============================================
   STREAMLINE HEADER
   ============================================ */

.sl-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.1);
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
}

.sl-header__container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    padding: 10px 60px 8px;
    height: 83px;
}


/* ─── Logo ─── */

.sl-header__logo {
    flex-shrink: 0;
}

.sl-header__logo-link {
    display: block;
    line-height: 0;
    text-decoration: none;
}

.sl-header__logo img,
.sl-header__logo .custom-logo {
    width: 130px;
    height: 64px;
    object-fit: contain;
}

/* Text fallback when no logo is uploaded */
.sl-header__logo-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #006192;
    line-height: 64px;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.sl-header__logo-text:hover {
    color: #004d75;
}


/* ─── Desktop Navigation ─── */

.sl-header__nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.sl-header__nav a {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #475569;
    text-decoration: none;
    padding: 0 16px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.sl-header__nav a:hover {
    color: #0369A1;
}

.sl-header__nav a.active {
    font-weight: 700;
    color: #0369A1;
    padding-bottom: 4px;
    border-bottom: 2px solid #0369A1;
}


/* ─── CTA Button ─── */

.sl-header__cta {
    flex-shrink: 0;
}

.sl-header__cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    height: 40px;
    background: #006192;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease;
}

.sl-header__cta a:hover {
    background: #004d75;
    color: #ffffff;
    transform: translateY(-1px);
}

.sl-header__cta a:active {
    transform: translateY(0);
}


/* ─── Hamburger (mobile only) ─── */

.sl-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.sl-hamburger:hover {
    background: #f1f5f9;
}

.sl-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #334155;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sl-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.sl-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.sl-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ─── Scroll-lock on <html> (Elementor-safe, avoids body overflow conflict) ─── */

html.sl-menu-open {
    overflow: hidden;
}


/* ─── Full-screen backdrop (blocks Elementor background bleed-through) ─── */

.sl-mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9997;
}

.sl-mobile-backdrop.open {
    display: block;
}


/* ─── Mobile Menu Overlay ─── */

.sl-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 9999;          /* above backdrop (9997) and header (9998) */
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sl-mobile-menu.open {
    display: flex;
    animation: slSlideDown 0.25s ease-out;
}

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


/* ─── Mobile Menu: Top bar (logo + X) ─── */

.sl-mobile-menu__topbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    min-height: 70px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: #ffffff;
}

.sl-mobile-menu__logo a {
    display: block;
    line-height: 0;
    text-decoration: none;
    border-bottom: none !important;
    padding: 0 !important;
}

.sl-mobile-menu__logo img {
    width: 110px;
    height: auto;
    max-height: 54px;
    object-fit: contain;
}


/* ─── Close (X) button ─── */

.sl-mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #e0f2fe;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #0369A1;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.sl-mobile-close:hover {
    background: #bae6fd;
}

.sl-mobile-close svg {
    display: block;
}


/* ─── Mobile Menu Nav links ─── */

.sl-mobile-menu__nav {
    display: flex;
    flex-direction: column;
    padding: 8px 16px;
    flex: 1;
}

.sl-mobile-menu__nav a {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    line-height: 24px;
    font-weight: 400;
    color: #334155;
    text-decoration: none;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
    display: block;
    transition: color 0.2s ease;
}

.sl-mobile-menu__nav a:last-of-type {
    border-bottom: none;
}

.sl-mobile-menu__nav a.active {
    font-weight: 700;
    color: #0369A1;
}

.sl-mobile-menu__nav a:hover {
    color: #0369A1;
}


/* ─── Mobile CTA ─── */

.sl-mobile-menu__cta {
    padding: 16px;
    flex-shrink: 0;
}

.sl-mobile-menu__cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: #006192;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff !important;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: background 0.2s ease;
}

.sl-mobile-menu__cta a:hover {
    background: #004d75;
}


/* ============================================
   RESPONSIVE BREAKPOINTS — HEADER
   ============================================ */

/* Large Tablet (1024px–1280px): shrink padding + font */
@media (max-width: 1280px) {
    .sl-header__container {
        padding: 10px 40px 8px;
    }
}

/* Tablet (768px–1024px): tighter nav, keep it visible */
@media (max-width: 1024px) {
    .sl-header__container {
        padding: 10px 24px 8px;
        gap: 12px;
    }

    .sl-header__logo img,
    .sl-header__logo .custom-logo {
        width: 110px;
        height: 54px;
    }

    .sl-header__nav a {
        padding: 0 8px;
        font-size: 14px;
    }

    .sl-header__cta a {
        padding: 7px 16px;
        font-size: 14px;
        height: 38px;
    }
}

/* Mid-range: hide nav + CTA, show hamburger (between 768-860px nav gets too tight) */
@media (max-width: 860px) {
    .sl-header__nav {
        display: none;
    }

    .sl-header__cta {
        display: none;
    }

    .sl-hamburger {
        display: flex;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .sl-header__container {
        height: 70px;
        padding: 8px 16px;
    }

    .sl-header__logo img,
    .sl-header__logo .custom-logo {
        width: 100px;
        height: 50px;
    }

    .sl-header__nav {
        display: none;
    }

    .sl-header__cta {
        display: none;
    }

    .sl-hamburger {
        display: flex;
    }

    /* menu covers full screen — top:0 set in base rule */
}


/* ============================================
   HIDE ASTRA'S DEFAULT FOOTER
   ============================================ */
.site-footer,
.ast-small-footer,
.ast-footer-overlay,
footer.entry-footer,
.ast-footer-copyright,
.ast-builder-footer-grid-columns {
    display: none !important;
}


/* ============================================
   STREAMLINE FOOTER
   ============================================ */

.sl-footer {
    width: 100%;
    background: #0B649F;
    padding: 80px 0 32px;
    font-family: 'Open Sans', sans-serif;
}

.sl-footer__container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}


/* ─── 4-Column Grid ─── */

.sl-footer__columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}


/* ─── Column: Brand ─── */

.sl-footer__brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 32px;
    color: #ffffff;
    margin: 0 0 22px 0;
}

.sl-footer__brand-desc {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 23px;
    color: rgba(224, 242, 254, 0.7);
    margin: 0;
}


/* ─── Column Headings ─── */

.sl-footer__heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    color: #ffffff;
    margin: 0 0 24px 0;
}


/* ─── Footer Navigation Links (Pages & Services) ─── */

.sl-footer__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sl-footer__nav ul li {
    margin: 0;
    padding: 0;
}

.sl-footer__nav ul li a {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: rgba(224, 242, 254, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sl-footer__nav ul li a:hover {
    color: #ffffff;
}


/* ─── Contact List ─── */

.sl-footer__contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sl-footer__contact li {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.sl-footer__contact li svg {
    flex-shrink: 0;
}

.sl-footer__contact li a {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease;
}

.sl-footer__contact li a:hover {
    text-decoration-color: #ffffff;
}


/* ─── Bottom Bar ─── */

.sl-footer__bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sl-footer__copyright {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: rgba(224, 242, 254, 0.4);
    margin: 0;
}

.sl-footer__legal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
}

.sl-footer__legal a {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: rgba(224, 242, 254, 0.4);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sl-footer__legal a:hover {
    color: rgba(224, 242, 254, 0.7);
}


/* ============================================
   FOOTER RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .sl-footer__container {
        padding: 0 30px;
    }

    .sl-footer__columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .sl-footer {
        padding: 48px 0 24px;
    }

    .sl-footer__container {
        padding: 0 16px;
        gap: 40px;
    }

    .sl-footer__columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sl-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-top: 24px;
    }

    .sl-footer__legal {
        flex-wrap: wrap;
        gap: 16px;
    }
}

.benefits-number{
	z-index: 111;
}
