/* ==========================================================================
   HZN Elements — sitewide header, mobile menu, progress line, footer and
   the end-of-page reveal. Tokens come from hzn-pages.css.
   ========================================================================== */

html { scroll-padding-top: 84px; }

.hzn-skip-link {
    position: absolute; left: 16px; top: -80px; z-index: 1000; padding: 12px 18px; border-radius: 10px;
    background: var(--hzn-dawn); color: #fff; font-family: var(--hzn-font); font-weight: 700; font-size: 15px; text-decoration: none;
}
.hzn-skip-link:focus { top: 16px; color: #fff; }

.hzn-progress {
    position: fixed; top: 0; left: 0; z-index: 801; width: 100%; height: 3px; pointer-events: none;
    background: var(--hzn-sunrise-r); transform-origin: 0 50%; transform: scaleX(0); transition: transform .12s linear;
}
.admin-bar .hzn-progress { top: 32px; }

/* ── Header ──────────────────────────────────────────────────────────── */
.hzn-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 800; padding: 18px 0; font-family: var(--hzn-font);
    transition: background-color .4s var(--hzn-ease), box-shadow .4s, padding .4s var(--hzn-ease);
}
.admin-bar .hzn-header { top: 32px; }
.hzn-header.is-stuck,
.hzn-header.is-open {
    background-color: rgba(253, 248, 243, .9);
    -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    padding: 10px 0; box-shadow: 0 1px 0 var(--hzn-border), 0 10px 40px -28px rgba(27, 18, 64, .45);
}
.hzn-header__inner {
    display: flex; align-items: center; gap: 28px;
    width: min(100% - 2 * var(--hzn-gutter), var(--hzn-wrap)); margin-inline: auto;
}
.hzn-header__logo { display: inline-flex; align-items: center; margin-right: auto; color: var(--hzn-navy); line-height: 0; }
.hzn-header__logo svg, .hzn-header__logo img { height: 28px; width: auto; display: block; }

.hzn-header .hzn-nav { display: flex; gap: clamp(18px, 2vw, 28px); align-items: center; margin: 0; padding: 0; list-style: none; }
.hzn-header .hzn-nav li { margin: 0; padding: 0; }
.hzn-header .hzn-nav a {
    position: relative; display: block; padding: 6px 0; white-space: nowrap; text-decoration: none;
    font-size: 15px; font-weight: 600; color: var(--hzn-sub); transition: color .3s;
}
.hzn-header .hzn-nav a::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
    background: var(--hzn-sunrise-r); transition: width .4s var(--hzn-ease-out);
}
.hzn-header .hzn-nav a:hover,
.hzn-header .hzn-nav a.is-current,
.hzn-header .hzn-nav .current-menu-item > a { color: var(--hzn-violet); }
.hzn-header .hzn-nav a:hover::after,
.hzn-header .hzn-nav a.is-current::after { width: 100%; }
.hzn-header .hzn-header__cta { min-height: 46px; padding: 10px 22px; font-size: 15px; }

/* Burger — scoped with .hzn-header to beat Hello's reset.css button rules (BUG-040) */
.hzn-header .hzn-burger {
    display: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: var(--hzn-surface); box-shadow: inset 0 0 0 1px var(--hzn-border); place-items: center; color: var(--hzn-dawn);
}
.hzn-header .hzn-burger:hover, .hzn-header .hzn-burger:focus { background: var(--hzn-surface); color: var(--hzn-dawn); }
.hzn-burger__bars, .hzn-burger__bars::before, .hzn-burger__bars::after {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
}
.hzn-burger__bars { position: relative; transition: background .2s; }
.hzn-burger__bars::before, .hzn-burger__bars::after { content: ""; position: absolute; left: 0; transition: transform .3s var(--hzn-ease-out); }
.hzn-burger__bars::before { top: -6px; } .hzn-burger__bars::after { top: 6px; }
.hzn-header.is-open .hzn-burger__bars { background: transparent; }
.hzn-header.is-open .hzn-burger__bars::before { transform: translateY(6px) rotate(45deg); }
.hzn-header.is-open .hzn-burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Dropdown menu (tablet/phone) */
.hzn-menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--hzn-cream); box-shadow: 0 1px 0 var(--hzn-border), 0 30px 50px -30px rgba(27, 18, 64, .35); }
.hzn-menu[hidden] { display: none; }
.hzn-header.is-open .hzn-menu { animation: hzn-drop .3s var(--hzn-ease-out); }
@keyframes hzn-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.hzn-menu__inner { display: flex; flex-direction: column; width: min(100% - 2 * var(--hzn-gutter), var(--hzn-wrap)); margin-inline: auto; padding: 8px 0 24px; }
.hzn-menu .hzn-mnav { list-style: none; margin: 0; padding: 0; }
.hzn-menu .hzn-mnav a { display: block; padding: 14px 0; font-size: 19px; font-weight: 700; color: var(--hzn-dawn); text-decoration: none; border-bottom: 1px solid var(--hzn-border); }
.hzn-menu .hzn-mnav a:hover, .hzn-menu .hzn-mnav a.is-current { color: var(--hzn-violet); }
.hzn-menu .hzn-btn { margin-top: 20px; }

@media (max-width: 1180px) {
    .hzn-header .hzn-header__nav { display: none; }
    .hzn-header .hzn-burger { display: grid; }
}
@media (min-width: 1181px) {
    .hzn-menu { display: none !important; }
}
@media (max-width: 767px) {
    .hzn-header { padding: 12px 0; }
    .hzn-header .hzn-header__cta { display: none; }
    .hzn-header__logo svg, .hzn-header__logo img { height: 24px; }
}
@media (max-width: 782px) {
    .admin-bar .hzn-header, .admin-bar .hzn-progress { top: 46px; }
}

/* ── End-of-page reveal ──────────────────────────────────────────────────
   <main id="hzn-main"> is the "flow"; #hzn-reveal holds the closing section (moved in by
   hzn-header.js when a Start the Conversation widget has the reveal switched on) + the footer.
   The pinned panel stays hidden until the reader is near the end, so it can never show through
   an overscroll at the top of the page; when it is taller than the window it scrolls normally. */
.hzn-main { display: block; position: relative; z-index: 2; background-color: var(--hzn-cream); outline: none; }
.hzn-reveal { position: relative; z-index: 1; }
.hzn-reveal-on .hzn-main::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; box-shadow: 0 6px 70px 26px rgba(27, 18, 64, .2); pointer-events: none; }
.hzn-reveal.is-pinned { position: fixed; left: 0; right: 0; bottom: 0; visibility: hidden; }
.hzn-reveal.is-pinned.is-near { visibility: visible; }
.hzn-reveal .elementor { margin: 0; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.hzn-footer { position: relative; background-color: var(--hzn-night); color: var(--hzn-on-dark-mute); padding: clamp(36px, 4vw, 52px) 0; font-family: var(--hzn-font); }
.hzn-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(247, 239, 230, .12); }
.hzn-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; width: min(100% - 2 * var(--hzn-gutter), var(--hzn-wrap)); margin-inline: auto; }
.hzn-footer__logo { display: inline-flex; color: var(--hzn-on-dark); line-height: 0; }
.hzn-footer__logo svg, .hzn-footer__logo img { height: 26px; width: auto; }
.hzn-footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; }
.hzn-footer__links a { padding: 4px 0; color: var(--hzn-on-dark-mute); text-decoration: none; }
.hzn-footer__links a:hover { color: var(--hzn-pale); }
.hzn-footer__small { margin: 0; font-size: 14px; }
.hzn-footer__small span + span::before { content: "·"; margin: 0 .6em; }
@media (max-width: 767px) {
    .hzn-footer__inner { flex-direction: column; align-items: flex-start; }
    .hzn-footer__small span { display: block; }
    .hzn-footer__small span + span::before { content: none; }
    .hzn-footer__small span + span { margin-top: 4px; }
}
