/* Site header: top bar, sticky glass header, desktop dropdowns, mobile drawer */
:root {
    --ezh-navy: #00234D;
    --ezh-navy-deep: #00152e;
    --ezh-coral: #F76B6A;
    --ezh-amber: #FFB86B;
    --ezh-text: #1b2a3d;
    --ezh-muted: #5b6b80;
}

/* ---------- top bar ---------- */
.ezh-topbar {
    position: relative;
    z-index: 101;
    background: var(--ezh-navy-deep);
    color: #c9d6e8;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
}
.ezh-topbar::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ezh-coral), var(--ezh-amber), var(--ezh-coral), transparent);
    background-size: 200% 100%;
    animation: ezh-line 6s linear infinite;
    opacity: .8;
}
@keyframes ezh-line { to { background-position: -200% 0; } }

.ezh-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
}
.ezh-topbar-group { display: flex; align-items: center; gap: 22px; }
.ezh-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #c9d6e8;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}
.ezh-topbar-link svg { color: var(--ezh-coral); flex-shrink: 0; }
a.ezh-topbar-link:hover { color: #fff; }
.ezh-topbar-wa {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: #25D366;
    transition: transform .2s ease, box-shadow .2s ease;
}
.ezh-topbar-wa:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(37,211,102,.8); }

/* ---------- header ---------- */
.ezh-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    background: rgba(255,255,255,.88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(0,35,77,.08);
    transition: box-shadow .3s ease, background-color .3s ease;
}
.ezh-header.is-scrolled {
    background: rgba(255,255,255,.95);
    box-shadow: 0 10px 30px -18px rgba(0,21,46,.45);
}
.ezh-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 84px;
    transition: height .3s ease;
}
.ezh-header.is-scrolled .ezh-inner { height: 68px; }

/* The uploaded logo is a 500x500 PNG whose visible mark sits in a 444x118 box at (26,173);
   crop to that box and scale it by --ezh-logo-h. Update these numbers if the logo file changes. */
.ezh-logo {
    --ezh-logo-h: 50px;
    --ezh-s: calc(var(--ezh-logo-h) / 118);
    position: relative;
    display: block;
    flex-shrink: 0;
    width: calc(444 * var(--ezh-s));
    height: var(--ezh-logo-h);
    overflow: hidden;
    transition: transform .3s ease;
}
.ezh-logo img {
    position: absolute;
    left: calc(-26 * var(--ezh-s));
    top: calc(-173 * var(--ezh-s));
    width: calc(500 * var(--ezh-s));
    height: calc(500 * var(--ezh-s));
    max-width: none;
}
.ezh-header.is-scrolled .ezh-logo { --ezh-logo-h: 42px; }
.ezh-logo:hover { transform: scale(1.03); }

/* ---------- desktop nav ---------- */
.ezh-nav { margin-left: auto; }
.ezh-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ezh-menu > li { position: relative; }
.ezh-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 11px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ezh-text);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 10px;
    transition: color .2s ease, background-color .2s ease;
}
.ezh-link::after {
    content: "";
    position: absolute;
    left: 11px; right: 11px; bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--ezh-coral), var(--ezh-amber));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.ezh-link:hover,
.ezh-has-drop:hover > .ezh-link,
.ezh-has-drop:focus-within > .ezh-link { color: var(--ezh-navy); background: rgba(0,35,77,.05); }
.ezh-link:hover::after,
.ezh-link.is-active::after { transform: scaleX(1); }
.ezh-link.is-active { color: var(--ezh-coral); }

.ezh-chev { transition: transform .25s ease; }
.ezh-has-drop:hover .ezh-chev,
.ezh-has-drop:focus-within .ezh-chev { transform: rotate(180deg); }

.ezh-drop {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 240px;
    padding-top: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.ezh-has-drop:hover > .ezh-drop,
.ezh-has-drop:focus-within > .ezh-drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.ezh-drop ul {
    list-style: none;
    margin: 0;
    padding: 10px;
    max-height: 70vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,35,77,.08);
    box-shadow: 0 24px 50px -20px rgba(0,21,46,.35);
}
.ezh-drop-wide { min-width: 460px; }
.ezh-drop-wide ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6px; }
.ezh-drop a {
    position: relative;
    display: block;
    padding: 9px 14px;
    font-size: 14px;
    color: var(--ezh-text);
    text-decoration: none;
    border-radius: 10px;
    transition: background-color .2s ease, color .2s ease, padding-left .2s ease;
}
.ezh-drop a::before {
    content: "";
    position: absolute;
    left: 10px; top: 50%;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--ezh-coral);
    transform: translateY(-50%) scale(0);
    transition: transform .2s ease;
}
.ezh-drop a:hover { color: var(--ezh-navy); background: #f3f6fa; padding-left: 24px; }
.ezh-drop a:hover::before { transform: translateY(-50%) scale(1); }

/* ---------- actions ---------- */
.ezh-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ezh-call {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    color: var(--ezh-navy);
    background: #eef3f9;
    transition: background-color .2s ease, color .2s ease;
}
.ezh-call::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--ezh-coral);
    opacity: 0;
    animation: ezh-ring 2.4s ease-out infinite;
}
@keyframes ezh-ring {
    0% { transform: scale(.9); opacity: .7; }
    100% { transform: scale(1.5); opacity: 0; }
}
.ezh-call:hover { color: #fff; background: var(--ezh-navy); }

.ezh-quote {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ezh-coral), #ff8a5c);
    box-shadow: 0 8px 22px -8px rgba(247,107,106,.7);
    transition: transform .25s ease, box-shadow .25s ease;
}
.ezh-quote::after {
    content: "";
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-20deg);
    animation: ezh-sweep 4s ease-in-out infinite 2s;
}
@keyframes ezh-sweep { 0%, 65% { left: -75%; } 100% { left: 130%; } }
.ezh-quote:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(247,107,106,.85); }

.ezh-link:focus-visible, .ezh-drop a:focus-visible, .ezh-quote:focus-visible,
.ezh-call:focus-visible, .ezh-burger:focus-visible, .ezh-drawer a:focus-visible,
.ezh-drawer summary:focus-visible { outline: 3px solid var(--ezh-amber); outline-offset: 2px; }

/* ---------- burger ---------- */
.ezh-burger {
    display: none;
    position: relative;
    width: 44px; height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--ezh-navy);
    cursor: pointer;
}
.ezh-burger span {
    position: absolute;
    left: 12px;
    width: 20px; height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .3s ease, opacity .2s ease, width .3s ease;
}
.ezh-burger span:nth-child(1) { top: 15px; }
.ezh-burger span:nth-child(2) { top: 21px; width: 14px; }
.ezh-burger span:nth-child(3) { top: 27px; }
.ezh-burger:hover span:nth-child(2) { width: 20px; }
.ezh-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ezh-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ezh-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- drawer ---------- */
.ezh-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0,21,46,.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .3s ease;
}
.ezh-overlay.is-open { opacity: 1; }

.ezh-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 1101;
    display: flex;
    flex-direction: column;
    width: min(360px, 88vw);
    font-family: 'Poppins', sans-serif;
    background: #fff;
    box-shadow: -20px 0 50px -20px rgba(0,21,46,.4);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .4s cubic-bezier(.2,.8,.2,1), visibility .4s;
}
.ezh-drawer.is-open { transform: none; visibility: visible; }
.ezh-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #edf1f6;
}
.ezh-drawer-head .ezh-logo { --ezh-logo-h: 36px; }
.ezh-drawer-close {
    width: 40px; height: 40px;
    border: 0;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    color: var(--ezh-navy);
    background: #eef3f9;
    cursor: pointer;
    transition: transform .3s ease, background-color .2s ease;
}
.ezh-drawer-close:hover { transform: rotate(90deg); background: #e1e9f3; }

.ezh-drawer-menu { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 10px 12px; }
.ezh-drawer-menu > li {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .35s ease, transform .35s ease;
}
.ezh-drawer.is-open .ezh-drawer-menu > li { opacity: 1; transform: none; }
.ezh-drawer.is-open .ezh-drawer-menu > li:nth-child(2) { transition-delay: .04s; }
.ezh-drawer.is-open .ezh-drawer-menu > li:nth-child(3) { transition-delay: .08s; }
.ezh-drawer.is-open .ezh-drawer-menu > li:nth-child(4) { transition-delay: .12s; }
.ezh-drawer.is-open .ezh-drawer-menu > li:nth-child(5) { transition-delay: .16s; }
.ezh-drawer.is-open .ezh-drawer-menu > li:nth-child(6) { transition-delay: .2s; }
.ezh-drawer.is-open .ezh-drawer-menu > li:nth-child(7) { transition-delay: .24s; }
.ezh-drawer.is-open .ezh-drawer-menu > li:nth-child(8) { transition-delay: .28s; }

.ezh-drawer-menu > li > a,
.ezh-drawer summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--ezh-text);
    text-decoration: none;
    border-radius: 12px;
    cursor: pointer;
    list-style: none;
}
.ezh-drawer summary::-webkit-details-marker { display: none; }
.ezh-drawer-menu > li > a:hover,
.ezh-drawer summary:hover { background: #f3f6fa; color: var(--ezh-navy); }
.ezh-drawer-menu > li > a.is-active { color: var(--ezh-coral); background: #fff2f2; }
.ezh-drawer details[open] > summary { color: var(--ezh-navy); background: #f3f6fa; }
.ezh-drawer details[open] > summary .ezh-chev { transform: rotate(180deg); }
.ezh-drawer details ul {
    list-style: none;
    margin: 4px 0 8px 12px;
    padding: 0 0 0 12px;
    border-left: 2px solid #ffd9d9;
}
.ezh-drawer details ul a {
    display: block;
    padding: 8px 10px;
    font-size: 14px;
    color: var(--ezh-muted);
    text-decoration: none;
    border-radius: 8px;
}
.ezh-drawer details ul a:hover { color: var(--ezh-coral); background: #fff6f6; }

.ezh-drawer-foot { display: grid; gap: 10px; padding: 16px 20px 22px; border-top: 1px solid #edf1f6; }
.ezh-drawer-foot .ezh-quote { padding: 14px; font-size: 15px; }
.ezh-drawer-call {
    display: block;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--ezh-navy);
    text-decoration: none;
    border-radius: 999px;
    border: 1.5px solid #d5deea;
    transition: border-color .2s ease, background-color .2s ease;
}
.ezh-drawer-call:hover { color: var(--ezh-navy); border-color: var(--ezh-navy); background: #f3f6fa; }

body.ezh-lock { overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 1399px) {
    .ezh-actions .ezh-call { display: none; }
}
@media (max-width: 1199px) {
    .ezh-inner { gap: 12px; }
    .ezh-logo { --ezh-logo-h: 40px; }
    .ezh-link { padding: 8px 7px; font-size: 13.5px; }
    .ezh-link::after { left: 7px; right: 7px; }
    .ezh-quote { padding: 10px 16px; font-size: 13px; }
}
@media (max-width: 991px) {
    .ezh-nav { display: none; }
    .ezh-actions { margin-left: auto; }
    .ezh-burger { display: block; }
    .ezh-actions .ezh-call { display: grid; }
    .ezh-inner, .ezh-header.is-scrolled .ezh-inner { height: 70px; }
    .ezh-logo, .ezh-header.is-scrolled .ezh-logo { --ezh-logo-h: 40px; }
    .ezh-hide-md { display: none; }
}
@media (max-width: 575px) {
    .ezh-topbar { font-size: 12px; }
    .ezh-topbar-inner { min-height: 36px; }
    .ezh-topbar-group { gap: 14px; }
    .ezh-hide-sm { display: none; }
    .ezh-quote { padding: 10px 16px; font-size: 13px; }
    .ezh-actions .ezh-quote { display: none; }
    .ezh-logo, .ezh-header.is-scrolled .ezh-logo { --ezh-logo-h: 36px; }
}
@media (max-width: 380px) {
    .ezh-topbar-link[href^="mailto"] svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ezh-topbar *, .ezh-topbar::after, .ezh-header *, .ezh-header *::before, .ezh-header *::after,
    .ezh-drawer, .ezh-drawer *, .ezh-overlay {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}
