/* ── Utility classes ── */
.ob-hidden {
    display: none !important;
}

.ob-desktop-only {
    display: none;
}

.ob-mobile-only {
    display: inline-flex;
}

/* ── Header bar ── */
#site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
}

#site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 15px;
}

#site-header .custom-logo {
    height: 18px;
    width: auto;
    display: block;
}

/* ── Desktop nav ── */
#primary-nav {
    align-items: center;
    gap: 4px;
}

#primary-nav > ul {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

#primary-nav > ul > li {
    position: relative;
}

#primary-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 16px;
    font-weight: 500;
    color: var(--wp--preset--color--dark-primary, #0D1926);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    font-family: var(--font-sans, 'Poppins', sans-serif);
}

#primary-nav > ul > li > a:hover {
    color: var(--wp--preset--color--green-primary, #1F6C6D);
}

/* Chevron for parent items */
#primary-nav > ul > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 2px;
    opacity: 0.4;
}

/* Dropdown */
#primary-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    z-index: 200;
    gap: 0;
}

#primary-nav > ul > li:hover > .sub-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#primary-nav .sub-menu li {
    list-style: none;
}

#primary-nav .sub-menu li a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--wp--preset--color--dark-primary, #0D1926);
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font-sans, 'Poppins', sans-serif);
    transition: color 0.15s ease;
}

#primary-nav .sub-menu li a:hover {
    color: var(--wp--preset--color--green-primary, #1F6C6D);
}

/* ── CTA buttons ── */
.header-cta-group {
    align-items: center;
    gap: 12px;
}

.header-btn-roi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--wp--preset--color--orange-primary, #FD604A);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    font-family: var(--font-sans, 'Poppins', sans-serif);
}

.header-btn-roi:hover {
    opacity: 0.9;
}

.header-btn-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--wp--preset--color--green-primary, #1F6C6D);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
    font-family: var(--font-sans, 'Poppins', sans-serif);
}

.header-btn-demo:hover {
    background: var(--wp--preset--color--green-secondary, #195657);
}

/* ── Mobile nav ── */
#mobile-menu {
    border-top: 1px solid #eee;
    background: #fff;
    padding: 8px 20px 24px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

#mobile-nav > ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}

#mobile-nav > ul > li > a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--wp--preset--color--dark-primary, #0D1926);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-family: var(--font-sans, 'Poppins', sans-serif);
}

#mobile-nav > ul > li > a:hover {
    color: var(--wp--preset--color--green-primary, #1F6C6D);
}

#mobile-nav .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 8px 16px;
}

#mobile-nav .sub-menu li a {
    display: block;
    padding: 6px 0;
    font-size: 15px;
    font-weight: 400;
    color: #475569;
    text-decoration: none;
    font-family: var(--font-sans, 'Poppins', sans-serif);
}

#mobile-nav .sub-menu li a:hover {
    color: var(--wp--preset--color--green-primary, #1F6C6D);
}

/* ── Breadcrumbs ── */
#site-breadcrumbs {
    border-top: 1px solid var(--wp--preset--color--gray-primary, #D7D8D9);
    padding: 12px 20px;
    font-family: var(--font-sans, 'Poppins', sans-serif);
    font-size: 14px;
}

/* ── Media queries ── */
@media (min-width: 768px) {
    #site-breadcrumbs {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (min-width: 1200px) {
    .ob-desktop-only {
        display: flex;
    }
    .ob-mobile-only {
        display: none;
    }
    #site-header {
        border-bottom: none !important;
    }
    #site-header .custom-logo {
        height: 24px;
    }
}

@media (min-width: 1280px) {
    #site-header .header-inner {
        padding: 0 30px;
        height: 64px;
    }
    #site-breadcrumbs {
        padding-left: 64px;
        padding-right: 64px;
    }
}
