/*
 * components/navbar.css — Site header + touch menu overlay (BEM)
 *
 * Blocks: .site-header  .navbar  .site-menu  .icon-button
 */

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
}

.navbar {
    background: var(--grad-brand);
}

.navbar__container {
    display: flex;
    align-items: center;
    height: var(--header-h);
}

.navbar__brand img {
    width: 180px;
    height: auto;
}

.navbar__links {
    display: flex;
    gap: 34px;
    margin-left: auto;
    margin-right: 36px;
}

.navbar__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-min);
    font-size: 16px;
    color: var(--clr-white);
    background-image: linear-gradient(var(--clr-white), var(--clr-white));
    background-size: 0 1px;
    background-position: 0 calc(100% - 10px);
    background-repeat: no-repeat;
    transition: background-size var(--dur-state) var(--ease-out);
}

.navbar__link:hover { background-size: 100% 1px; }
.navbar__link:active { opacity: 0.8; }

/* ── Menu button (tablet / mobile) ─────────────────────── */

.navbar__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 45px;
    height: 45px;
    margin-left: auto;
    padding: 0 12.5px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-sm);
}

.navbar__toggle-bar {
    display: block;
    height: 2px;
    background: var(--clr-white);
}

@media (max-width: 1099.98px) {
    .navbar__brand img { width: 172px; }
    .navbar__links,
    .navbar__cta { display: none; }
    .navbar__toggle { display: flex; }
}

/* ── Icon button (close) ───────────────────────────────── */

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-min);
    height: var(--touch-min);
    border: 1px solid var(--clr-divider);
    border-radius: var(--radius-xs);
    color: var(--clr-deep-blue);
    transition: background-color var(--dur-state) var(--ease-out);
}

.icon-button:hover { background-color: var(--clr-tint); }

.icon-button--light {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--clr-white);
}

.icon-button--light:hover { background-color: rgba(255, 255, 255, 0.1); }

/* ── Touch menu overlay ────────────────────────────────── */

.site-menu {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    overflow-y: auto;
    background: var(--clr-navy) url("../../images/home/rings-hero.png") center / cover no-repeat;
    transform: translateX(100%);
    transition: transform var(--dur-menu) var(--ease-out);
}

.site-menu.is-open { transform: translateX(0); }

.site-menu__panel {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding-bottom: 48px;
}

.site-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-menu__header img { width: 172px; height: auto; }

.site-menu__links { margin-top: 144px; }

.site-menu__link {
    display: flex;
    align-items: center;
    min-height: 88px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 42px;
    font-weight: var(--fw-medium);
    line-height: 1.2;
    color: var(--clr-white);
}

.site-menu__link:active { color: var(--clr-green); }

.site-menu__cta {
    margin-top: auto;
    border-radius: var(--radius-xs);
}

@media (max-width: 767.98px) {
    .site-menu__panel { padding-bottom: 32px; }
    .site-menu__links { margin-top: 68px; }
    .site-menu__link { min-height: 64px; font-size: 28px; }
}

@media (min-width: 1100px) {
    .site-menu { display: none; }
}
