/* THE site menu (A00000127): one markup source, src/components/home-next/hire/nav.html, written into the homepage at
   build (scripts/site/homePagePlugin.mjs) and copied into every marketing page under public/ by scripts/site/sync-site-nav.mjs.
   Everything here is scoped under .nav with its own variables, so a page without the homepage's sheet draws the
   same menu. Behaviour (burger, dropdowns, hide on scroll, the "Try it" dialogs): public/site-next/site-nav.js. */

.nav { --sn-nink: #f2f2f0; --sn-nsoft: #9aa1ad; --sn-pill: rgba(14,16,22,.74); --sn-pill-open: rgba(14,16,22,.94);
  --sn-line: rgba(255,255,255,.09); --sn-acc: #fff; --sn-acc-ink: #0f1115;
  font-family: 'Schibsted Grotesk', 'Schibsted Grotesk Fallback', -apple-system, system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
:root[data-accent="blue"] .nav { --sn-acc: #2348d9; --sn-acc-ink: #fff; }
.nav *, .nav *::before, .nav *::after { box-sizing: border-box; }

/* the site runs edge to edge on iPhones (viewport-fit=cover), so the menu sits below the status bar, not under it */
.nav { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 0; right: 0; z-index: 30; pointer-events: none; }
.nav .wrap { pointer-events: auto; max-width: 1180px; background: var(--sn-pill); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px); border: 1px solid var(--sn-line); border-radius: 10px; padding: 0 12px 0 22px; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.nav .wrap { display: flex; align-items: center; height: 58px; gap: 26px; margin: 0 auto; }
@media (max-width: 1220px) { .nav .wrap { margin: 0 16px; } }
.nav .brand { display: flex; align-items: center; gap: 10px; color: var(--sn-nink); font-weight: 600; font-size: 18px; letter-spacing: -.02em; text-decoration: none; }
.nav .brand img { height: 27px; filter: invert(1); }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav nav > a, .nav .sn-t { color: var(--sn-nsoft); text-decoration: none; font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.5; }
.nav nav > a:hover, .nav .sn-t:hover, .nav .sn-dd.on > .sn-t { color: var(--sn-nink); }
.nav .btn { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 6px; font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; transition: background .15s; }
.nav .btn.p { background: var(--sn-acc); color: var(--sn-acc-ink); } .nav .btn.p:hover { filter: brightness(.92); }
/* the current section (site-nav.js marks it: Explore on /explore/*) */
.nav nav > a.sn-cur { color: var(--sn-nink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 8px; }
.nav a:focus-visible, .nav button:focus-visible { outline: 2px solid var(--sn-nink); outline-offset: 3px; border-radius: 4px; }

/* the dropdowns: a plain button that opens a panel under it */
.nav .sn-dd { position: relative; }
.nav .sn-t { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
.nav .sn-t::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nav .sn-dd.on > .sn-t::after { transform: translateY(1px) rotate(-135deg); }
.nav .sn-p { display: none; position: absolute; top: calc(100% + 21px); left: 50%; transform: translateX(-50%); min-width: 250px; padding: 8px;
  background: rgba(14,16,22,.98); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px);
  border: 1px solid var(--sn-line); border-radius: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.32); }
.nav .sn-dd.on > .sn-p { display: block; }
.nav .sn-p a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--sn-nink); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav .sn-p a:hover { background: rgba(255,255,255,.07); }
/* a dropdown's sections: a small header, and a line above every section after the first */
.nav .sn-h { padding: 8px 12px 4px; font: 500 11.5px/1.25 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--sn-nsoft); }
.nav .sn-h.sn-sec { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--sn-line); }

/* ===== phones: the pill grows downward; the dropdowns become accordions inside it ===== */
.nav .burger { display: none; }
@media (max-width: 960px) {
  .nav .wrap { flex-wrap: wrap; height: auto; min-height: 58px; row-gap: 0; transition: background .3s; }
  .nav .brand { height: 58px; }
  .nav .burger { display: grid; place-items: center; align-content: center; gap: 6px; margin-left: auto; width: 44px; height: 44px; margin-right: -8px; background: none; border: 0; cursor: pointer; padding: 0; }
  .nav .burger i { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--sn-nink); transition: transform .3s cubic-bezier(.3,.7,.2,1); }
  .nav.open .burger i:first-child { transform: translateY(4px) rotate(45deg); } .nav.open .burger i:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav nav, .nav .wrap > .btn { order: 3; flex: 0 0 100%; }
  .nav nav { display: grid; align-items: stretch; margin: 0; gap: 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s cubic-bezier(.3,.7,.2,1), opacity .25s; }
  .nav nav > a, .nav .sn-t { font-size: 18px; color: var(--sn-nink); padding: 13px 2px; border-top: 1px solid rgba(255,255,255,.08); }
  .nav nav > a.sn-cur { text-decoration: none; box-shadow: inset 3px 0 0 var(--sn-nink); padding-left: 12px; }
  .nav .sn-t { display: flex; width: 100%; justify-content: space-between; text-align: left; }
  .nav .sn-t::after { margin-right: 6px; }
  .nav .sn-p { position: static; transform: none; width: auto; min-width: 0; padding: 0 0 10px; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav .sn-p a { font-size: 16px; color: var(--sn-nsoft); padding: 9px 2px 9px 14px; white-space: normal; }
  .nav .sn-p a:hover { background: none; color: var(--sn-nink); }
  .nav .sn-h { padding: 6px 2px 4px 14px; }
  .nav .sn-h.sn-sec { margin-top: 6px; padding-top: 12px; border-top-color: rgba(255,255,255,.06); }
  .nav .wrap > .btn { order: 4; display: flex; justify-content: center; height: 0; padding: 0; margin: 0; overflow: hidden; opacity: 0; font-size: 16px; transition: height .4s cubic-bezier(.3,.7,.2,1), margin .4s, opacity .25s; }
  /* open: no clipping height; a long menu (every accordion open) scrolls inside the pill */
  .nav.open .wrap { background: var(--sn-pill-open); max-height: calc(100vh - 24px - env(safe-area-inset-top, 0px)); max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; }
  .nav.open nav { max-height: 4000px; opacity: 1; }
  .nav.open .wrap > .btn { height: 48px; margin: 6px 0 14px; opacity: 1; }
  /* the menu slides up out of view and back down, clearing the status bar on the way */
  .nav { transition: transform .45s cubic-bezier(.22,.8,.24,1); will-change: transform; }
  .nav.hide { transform: translateY(calc(-100% - 24px - env(safe-area-inset-top, 0px))); transition-duration: .4s; transition-timing-function: cubic-bezier(.5,0,.75,.4); }
}

/* while one is open, the page's chat launcher (the widget's root, widget/src/index.tsx; the homepage's demo chat)
   steps aside instead of floating over the dialog's backdrop; site-nav.js sets the class on <html> */
html.sn-modal-open #autobook-chat-widget { display: none; }

/* ===== the "Try it" dialogs (site-nav.js): a QR code to call or text from a phone, the film, and the booking page. They sit on <body>,
   outside .nav, so they carry the menu's variables themselves; the look is the dropdown panel's. ===== */
.sn-modal { --sn-nink: #f2f2f0; --sn-nsoft: #9aa1ad; --sn-line: rgba(255,255,255,.09);
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  font-family: 'Schibsted Grotesk', -apple-system, system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; color: var(--sn-nink); }
.sn-modal *, .sn-modal *::before, .sn-modal *::after { box-sizing: border-box; }
.sn-modal .sn-mb { position: absolute; inset: 0; background: rgba(4,5,8,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: sn-fade .2s ease-out; }
.sn-modal .sn-md { position: relative; max-height: calc(100dvh - 32px); overflow: auto; padding: 18px 20px 22px;
  background: rgba(14,16,22,.98); border: 1px solid var(--sn-line); border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,.5); animation: sn-rise .24s cubic-bezier(.22,.8,.24,1); }
.sn-modal .sn-mh { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.sn-modal h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.sn-modal .sn-mx { margin-left: auto; flex: none; width: 36px; height: 36px; margin-right: -8px; border: 0; border-radius: 8px; background: none; color: var(--sn-nsoft); cursor: pointer; display: grid; place-items: center; }
.sn-modal .sn-mx::before { content: '\00d7'; font-size: 26px; line-height: 1; }
.sn-modal .sn-mx:hover { color: var(--sn-nink); background: rgba(255,255,255,.07); }
.sn-modal a:focus-visible, .sn-modal button:focus-visible, .sn-modal video:focus-visible { outline: 2px solid var(--sn-nink); outline-offset: 3px; }
/* the QR code: a white tile (the homepage's .try .qr look), the number large, how to use it, and the way to stay on this computer */
.sn-modal-qr .sn-md { width: min(360px, 100%); }
.sn-qr { display: grid; justify-items: center; text-align: center; }
.sn-qr img { display: block; width: 220px; height: 220px; padding: 10px; background: #fff; border-radius: 10px; }
.sn-qr .sn-qn { margin: 18px 0 0; font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.sn-qr .sn-qh { margin: 6px 0 0; color: var(--sn-nsoft); font-size: 15px; }
.sn-qr .sn-qa { margin-top: 16px; color: var(--sn-nsoft); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(154,161,173,.5); border-radius: 4px; }
.sn-qr .sn-qa:hover { color: var(--sn-nink); }
/* the film: as wide as the screen allows while the whole frame stays in view */
.sn-modal-film .sn-md { width: min(1100px, 100%, calc((100dvh - 120px) * 16 / 9)); padding: 14px 14px 16px; }
.sn-modal-film .sn-mh { margin: 0 2px 10px 6px; }
.sn-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; }
/* the booking page (the demo store's /book, header hidden): a tall panel on a computer, the whole screen on a phone,
   the dialog's own title bar and close always on top */
.sn-modal-book .sn-md { display: flex; flex-direction: column; width: min(1040px, 100%); height: min(780px, calc(100dvh - 32px)); padding: 14px 14px 14px; }
.sn-modal-book .sn-mh { flex: none; margin: 0 2px 10px 6px; }
.sn-book { flex: 1 1 auto; min-height: 0; border-radius: 8px; overflow: hidden; background: #fff; }
.sn-book iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
@media (max-width: 600px) { .sn-modal { padding: 10px; } .sn-modal-film .sn-md { padding: 10px 8px 12px; }
  .sn-modal-book { padding: 0; } .sn-modal-book .sn-md { width: 100%; height: 100dvh; max-height: none; border-radius: 0; border: 0; padding: calc(env(safe-area-inset-top, 0px) + 8px) 0 0; }
  .sn-modal-book .sn-mh { margin: 0 14px 8px 16px; } .sn-modal-book .sn-book { border-radius: 0; } }
@keyframes sn-fade { from { opacity: 0; } }
@keyframes sn-rise { from { opacity: 0; transform: translateY(8px) scale(.985); } }

@media (prefers-reduced-motion: reduce) { .nav, .nav * { transition: none !important; } .sn-modal * { animation: none !important; } }
@media print { .nav, .sn-modal { display: none; } }
