/* =========================================================
   Sprout-style desktop header: main links hug the logo,
   Login (dropdown) + Schedule a Demo + Get Started on the right.
   Loaded site-wide via header.php.
   ========================================================= */

/* --- Login dropdown --- */
#masthead .nav ul li.header-login {
    position: relative;
}
#masthead .nav ul li.header-login > a.login-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
#masthead .nav ul li.header-login .fa-angle-down {
    font-size: 13px;
    transition: transform ease .25s;
}
#masthead .nav ul li.header-login .login-dropdown {
    display: block;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(34, 19, 58, .12);
}
#masthead .nav ul li.header-login .login-dropdown li {
    display: block;
    width: 100%;
}
#masthead .nav ul li.header-login .login-dropdown li a {
    display: block;
    padding: 10px 18px;
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--Primary-color);
    text-decoration: none;
    transition: all ease .3s;
}
#masthead .nav ul li.header-login .login-dropdown li a:hover {
    color: var(--Secondary-color);
    background: var(--accent-color);
}

/* --- Schedule a Demo: outlined pink button --- */
#masthead .nav ul li.header-demo a.demo-btn {
    display: inline-block;
    padding: 10px 26px;
    border: 2px solid var(--Secondary-color);
    border-radius: 5px;
    background: transparent;
    color: var(--Secondary-color);
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    font-family: var(--EuclidCircularA);
    text-decoration: none;
    transition: all ease .3s;
}
#masthead .nav ul li.header-demo a.demo-btn:hover {
    background: var(--Secondary-color);
    color: #fff;
}

/* --- Get Started: filled pink button --- */
#masthead .nav ul li.header-cta a.get-started-btn {
    display: inline-block;
    padding: 10px 26px;
    border: 2px solid var(--Secondary-color);
    border-radius: 5px;
    background: var(--Secondary-color);
    color: #fff;
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    font-family: var(--EuclidCircularA);
    text-decoration: none;
    transition: all ease .3s;
}
#masthead .nav ul li.header-cta a.get-started-btn:hover {
    background: #fff;
    color: var(--Secondary-color);
}

/* --- Sticky header (all breakpoints) --- */
#masthead {
    position: sticky;
    top: 0;
    border-bottom: 1px solid transparent;
    transition: border-color ease .3s;
}
#masthead.scrolled {
    border-bottom-color: #e5e5e5;
}
/* On pages with the dark faq-nav category bar sitting flush against the
   header (FAQ page, Instagram Growth Hub page), the header's own
   border-bottom is immediately followed by the nav's dark background and
   is visually imperceptible, so skip painting it there. */
body:has(section.faq-nav) #masthead.scrolled {
    border-bottom-color: transparent;
}

/* --- Persistent mobile/tablet header actions: CTA button + hamburger,
   modeled on Base44's mobile header pattern. Hidden on desktop, where
   the nav's own Get Started button (above) is already visible inline. --- */
.mobile-actions {
    display: none;
    align-items: center;
    gap: 14px;
}
.mobile-header-cta {
    display: none;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 6px;
    background: var(--Secondary-color);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    font-family: var(--EuclidCircularA);
    text-decoration: none;
    white-space: nowrap;
    transition: all ease .3s;
}
.mobile-header-cta:hover {
    opacity: .85;
}

/* =========================================================
   DESKTOP ( >= 1401px ): links by the logo, actions pushed right
   ========================================================= */
@media (min-width: 1401px) {
    #masthead .content-wraper {
        justify-content: flex-start;
        gap: 48px;
    }
    #masthead .nav {
        flex: 1 1 auto;
    }
    /* base gap controls the tight spacing between the right-side actions */
    #masthead .nav ul {
        gap: 16px;
        justify-content: flex-start;
    }
    /* main links get extra spacing so they sit ~40px apart */
    #masthead .nav ul li.menu-item {
        margin-right: 24px;
    }
    #masthead .nav ul li.header-login {
        margin-left: auto;
        padding-right: 0;
    }
    #masthead .nav ul li.header-login .login-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 12px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: all ease .2s;
        z-index: 30;
    }
    #masthead .nav ul li.header-login:hover .login-dropdown,
    #masthead .nav ul li.header-login:focus-within .login-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    #masthead .nav ul li.header-login:hover .fa-angle-down {
        transform: rotate(180deg);
    }
}

/* =========================================================
   TABLET + MOBILE ( <= 1400px ): hamburger; Login is a tap-to-expand accordion
   ========================================================= */
@media (max-width: 1400px) {
    #toggle {
        display: flex;
    }
    .mobile-actions {
        display: flex;
    }
    .mobile-header-cta {
        display: inline-flex;
    }
    #masthead .nav ul li.header-cta {
        display: none;
    }
    #masthead .content-wraper {
        height: 65px;
        padding: 0 10px;
    }
    #menu {
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background: #231846;
        transform-origin: top;
        transform: scaleY(0);
        pointer-events: none;
        transition: all ease 0.3s;
        z-index: 999;
    }
    #menu.menu-open {
        transform: scaleY(1);
        pointer-events: auto;
    }
    #masthead .nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    #masthead .nav ul a {
        padding: 14px 20px;
        display: block;
        color: #fff;
    }
    #masthead .nav ul a:hover {
        background-color: var(--Secondary-color);
        color: #fff;
    }
    #masthead .nav ul li.header-login {
        margin-left: 0;
        padding-right: 0;
    }
    /* Login row becomes a full-width tappable toggle with a caret */
    #masthead .nav ul li.header-login > a.login-toggle {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        justify-content: space-between;
        align-items: center;
        padding: 14px 20px;
    }
    #masthead .nav ul li.header-login .fa-angle-down {
        display: inline-block;
        font-size: 15px;
    }
    #masthead .nav ul li.header-login.open .fa-angle-down {
        transform: rotate(180deg);
    }
    /* Sub-links collapsed by default; expand when the row is open */
    #masthead .nav ul li.header-login .login-dropdown {
        display: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 8px 20px;
        min-width: 0;
    }
    #masthead .nav ul li.header-login.open .login-dropdown {
        display: block;
    }
    #masthead .nav ul li.header-login .login-dropdown li a {
        color: #fff;
        padding: 12px 20px;
    }
    #masthead .nav ul li.header-login .login-dropdown li a:hover {
        background: var(--Secondary-color);
        color: #fff;
    }
    /* Action buttons full-width in the dark panel, tight vertical spacing */
    #masthead .nav ul li.header-demo a.demo-btn,
    #masthead .nav ul li.header-cta a.get-started-btn {
        display: block;
        margin: 6px 20px;
        text-align: center;
    }
    /* Schedule a Demo: solid white, no visible border on mobile */
    #masthead .nav ul li.header-demo a.demo-btn,
    #masthead .nav ul li.header-demo a.demo-btn:hover {
        background: #fff;
        color: var(--Secondary-color);
        border-color: #fff;
    }
}

/* =========================================================
   HOMEPAGE HERO (desktop only): tightened H1 line-height, lifted the
   right image off the bottom, and vertically centered the left column
   with equal top/bottom gaps (removing the theme's -15px nudge and
   using symmetric padding). Total hero height is unchanged so the
   logo strip keeps its position.
   ========================================================= */
@media (min-width: 768px) {
    section.hero-sec .hero-main {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    section.hero-sec .hero-main .content {
        transform: none;
    }
    section.hero-sec .hero-main .image {
        align-self: center;
    }
    section.hero-sec .hero-main .content h1 {
        line-height: 60px;
    }
}

/* =========================================================
   CUSTOM-PLAN CTA band (pricing page + homepage pricing).
   Pink background, white button with dark text. No border/shadow.
   Side padding (20px) matches the .pricing-boxes padding so the band
   lines up with the pricing cards, not wider. The label is a styled
   <p> (.cta-text), intentionally not a heading, for SEO.
   ========================================================= */
.custom-plan-cta {
    padding: 15px 20px;
}

.custom-plan-cta .content-wraper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: var(--Secondary-color);
    border-radius: 16px;
    padding: 36px 50px;
}
.custom-plan-cta .cta-text {
    margin: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1.3;
    font-weight: 700;
    font-family: var(--EuclidCircularA);
}
.custom-plan-cta .book-call-btn {
    flex-shrink: 0;
    background: #fff;
    color: var(--Primary-color);
    font-size: 16px;
    line-height: 32px;
    font-weight: 700;
    font-family: var(--EuclidCircularA);
    text-decoration: none;
    padding: 8px 40px;
    border-radius: 5px;
    transition: all ease .3s;
}
.custom-plan-cta .book-call-btn:hover {
    background: var(--Primary-color);
    color: #fff;
}
@media (max-width: 767px) {
    .custom-plan-cta {
        padding: 30px 28px;
    }
    .custom-plan-cta .content-wraper {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        padding: 28px 24px;
        border-radius: 14px;
    }
    .custom-plan-cta .cta-text {
        font-size: 22px;
        line-height: 1.35;
    }
    .custom-plan-cta .book-call-btn {
        width: 100%;
        text-align: center;
        padding: 12px 40px;
    }
}
