/* ── EWT Site Header ─────────────────────────────────────────────────────── */

.wp-block-ewt-custom-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--ewt-header-bg, #0B1426);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Inner container */
.ewt-header__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 70px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.5rem;
}

/* Logo */
.ewt-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.ewt-header__logo img {
    height: 38px;
    width: auto;
    display: block;
}

/* Desktop nav — hidden by default on mobile, shown via media query */
.ewt-header__nav {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    margin-left: auto;
}

.ewt-header__nav-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    transition: color 0.18s, background 0.18s;
    white-space: nowrap;
}

.ewt-header__nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

/* Actions (CTA + burger) */
.ewt-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex-shrink: 0;
}

.ewt-header__nav + .ewt-header__actions {
    margin-left: 1.25rem;
}

.ewt-header__cta {
    background: #0049CA;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 700;
    padding: 0.575rem 1.1rem;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.18s, transform 0.15s;
    letter-spacing: 0.01em;
}

.ewt-header__cta:hover {
    background: #003aad;
    transform: translateY(-1px);
}

/* Hamburger */
.ewt-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}

.ewt-header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.28s ease;
    transform-origin: center;
}

/* ── Full-screen mobile overlay ───────────────────────────────────────────── */

.ewt-header__overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #0B1426;
    flex-direction: column;
    overflow-y: auto;
}

.ewt-header__overlay--open {
    display: flex;
}

/* Top bar inside overlay */
.ewt-header__overlay-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 70px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ewt-header__overlay-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.ewt-header__overlay-logo img {
    height: 36px;
    width: auto;
    display: block;
}

.ewt-header__overlay-logo span {
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}

/* Close button (top-right) */
.ewt-header__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s;
}

.ewt-header__close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ewt-header__close svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

/* Nav links inside overlay */
.ewt-header__overlay-nav {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.75rem;
    flex: 1;
    gap: 0.25rem;
}

.ewt-header__overlay-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    letter-spacing: -0.01em;
    transition: color 0.15s, padding-left 0.15s;
    display: block;
}

.ewt-header__overlay-link:hover {
    color: rgba(255, 255, 255, 0.65);
    padding-left: 0.5rem;
}

/* CTA at the bottom of overlay */
.ewt-header__overlay-foot {
    padding: 1.5rem 1.75rem 2.5rem;
    flex-shrink: 0;
}

.ewt-header__overlay-cta {
    display: block;
    background: #0049CA;
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    letter-spacing: 0.01em;
    transition: background 0.18s;
}

.ewt-header__overlay-cta:hover {
    background: #003aad;
}

/* Responsive */
@media (max-width: 900px) {
    .ewt-header__nav    { display: none !important; }
    .ewt-header__cta    { display: none !important; }
    .ewt-header__burger { display: flex !important; }
}

/* Ensure burger is only shown on mobile; hidden on desktop */
@media (min-width: 901px) {
    .ewt-header__burger { display: none !important; }
}
