/* The public top bar (home, /clients, client login). Its own colors so it looks the same next to Bootstrap on the login page. */
.top { --sea: #123C45; --sea-deep: #0B2930; --amber: #F2A93B; --amber-deep: #D88E1C; --on-sea: #E6F0EE; --on-sea-muted: #A9C3C2; }
.top .wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.top { position: sticky; top: 0; z-index: 20; background: var(--sea); color: var(--on-sea); box-shadow: 0 1px 0 rgba(230, 240, 238, .1); }
.top-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.top-logo img { height: 28px; width: auto; }
.top-row > * { white-space: nowrap; }
.top-nav { display: flex; align-items: center; gap: 22px; margin-inline-start: auto; }
.top-nav a { text-decoration: none; color: var(--on-sea-muted); font-size: .98rem; }
.top-nav a:hover { color: var(--on-sea); }
.top-login { color: var(--on-sea); font-size: .95rem; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(230, 240, 238, .4);
             padding: 8px 2px; }
.top-login:hover { text-decoration-color: var(--on-sea); }
.top-menu-btn { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(230, 240, 238, .35); border-radius: 11px;
                background: transparent; color: var(--on-sea); cursor: pointer; touch-action: manipulation; }
.top-menu-btn:hover, .top.open .top-menu-btn { border-color: var(--on-sea); background: rgba(230, 240, 238, .08); }
.top a:focus-visible, .top button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.top-nav a[aria-current="page"] { color: var(--on-sea); text-decoration: underline; text-underline-offset: 8px; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.top .top-order { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 2px solid transparent;
                  border-radius: 11px; background: var(--amber); color: var(--sea-deep); font-weight: 700; font-size: .95rem; line-height: 1;
                  text-decoration: none; touch-action: manipulation; }
.top .top-order:hover { background: var(--amber-deep); color: var(--sea-deep); }

/* under 760px the links fold into the ☰ menu (landing.js sets data-menu; without it only the login link stays in the bar) */
@media (max-width: 760px) {
    .top-row { gap: 10px; min-height: 62px; position: relative; }
    .top-logo { margin-inline-end: auto; }
    .top-logo img { height: 22px; }
    .top .top-order { padding: 0 12px; min-height: 44px; }
    /* the phone menu (landing.js sets data-menu; without it the links stay in the bar) */
    .top[data-menu] .top-menu-btn:not([hidden]) { display: grid; }
    .top[data-menu] .top-nav { display: none; }
    .top[data-menu].open .top-nav { position: absolute; inset: 100% 0 auto; display: grid; gap: 0; margin: 0; padding: 8px 16px 16px;
                                     background: var(--sea); box-shadow: 0 18px 30px -16px rgba(3, 18, 22, .7); border-top: 1px solid rgba(230, 240, 238, .12); }
    .top[data-menu].open .top-nav a { display: flex; align-items: center; min-height: 52px; padding: 0 4px; font-size: 1.05rem; color: var(--on-sea);
                                       border-bottom: 1px solid rgba(230, 240, 238, .1); text-decoration: none; }
    .top[data-menu].open .top-nav a:last-child { border-bottom: 0; }
    .top:not([data-menu]) .top-nav { gap: 12px; }
    .top:not([data-menu]) .top-nav a:not(.top-login) { display: none; }
}
@media (max-width: 420px) {
    .top-logo img { height: 34px; }
}
/* the client login page: the card still fills the screen under the bar */
.top ~ .bm-auth { min-height: calc(100vh - 72px); min-height: calc(100dvh - 72px); }
@media (max-width: 760px) { .top ~ .bm-auth { min-height: calc(100dvh - 62px); } }
.top ~ .bm-auth .bm-auth-head { display: none; } /* the bar already carries the logo */

/* the fixed WhatsApp button (partials/wa-float) */
.wa-float { position: fixed; inset-inline-end: 20px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 15; display: grid; place-items: center;
            width: 56px; height: 56px; border-radius: 50%; background: #1FA855; color: #fff; box-shadow: 0 10px 24px -8px rgba(3, 18, 22, .55);
            transition: transform .15s ease, background-color .15s ease; touch-action: manipulation; }
.wa-float:hover { background: #178A45; color: #fff; transform: scale(1.06); }
.wa-float:focus-visible { outline: 3px solid #F2A93B; outline-offset: 3px; }
@media (max-width: 760px) { .wa-float { width: 52px; height: 52px; inset-inline-end: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } .wa-float:hover { transform: none; } }
