/* NWS main navigation (topbar, bar with logo + menu, flyouts, mobile menu, theme switch) and the
   NWS buttons. Generated markup: nextweb-tools/nav.mjs (outside the repo), logic: js/nws/header.js.
   Every rule is scoped to .nws-header or uses the nws- prefix, so the template stays untouched. */

/* The template styles bare elements (a, h2, ul, button, p …) – reset them inside the header. */
.nws-header,
.nws-header *,
.nws-header *::before,
.nws-header *::after {
  box-sizing: border-box;
}
.nws-header {
  font-family: var(--nws-font-body);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: normal;
  word-spacing: normal;
}
.nws-header ul,
.nws-header li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nws-header p,
.nws-header h2 {
  margin: 0;
}
.nws-header a,
.nws-header a:hover {
  text-decoration: none;
}
.nws-header button {
  font: inherit;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nws-header svg {
  display: block;
}
/* The template collapses every <nav> to height 0 at ≤ 992 px (its old mobile menu). */
.nws-header nav {
  height: auto;
}
.nws-icon {
  display: inline-flex;
  flex: none;
  line-height: 0;
}

/* Theme switch: sun in dark mode, moon in light mode. */
.nws-header .nws-icon--sun,
[data-theme='dark'] .nws-header .nws-icon--moon {
  display: none;
}
[data-theme='dark'] .nws-header .nws-icon--sun {
  display: inline-flex;
}

/* Skip link (keyboard): visible on focus only. */
.nws-skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: calc(var(--nws-z-header) + 1);
  padding: 10px 18px;
  border-radius: var(--nws-radius-pill);
  background: var(--nws-c-text);
  color: #fff;
  transform: translateY(-160%);
  transition: transform var(--nws-dur-fast) ease;
}
.nws-skip-link:focus-visible {
  transform: none;
  color: #fff;
}

/* Mobile menu open: the page behind must not scroll, and the floating cookie / TableServ
   buttons step back while it is open (purely visual – their logic stays untouched). */
body.nws-scroll-locked {
  overflow: hidden;
}
body.nws-scroll-locked .nw-cookie-button,
body.nws-scroll-locked .nw-ts-button {
  visibility: hidden;
}

/* Official logo colour per theme (the template colours bare links grey). */
.nws-header .nws-logo,
.nws-header .nws-logo:hover,
.nws-header .nws-logo:focus {
  color: var(--nws-logo-color);
}

/* Buttons --------------------------------------------------------------------------------- */
.nws-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--nws-radius-btn);
  background: var(--nws-grad-button);
  color: #fff;
  font-family: var(--nws-font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform var(--nws-dur-fast) ease, box-shadow var(--nws-dur) var(--nws-ease-out);
}
.nws-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.22) 50%, transparent 80%);
  transform: translateX(-110%);
  transition: transform 700ms var(--nws-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nws-btn:hover {
    text-decoration: none;
    box-shadow: var(--nws-shadow-glow);
  }
  .nws-btn:hover::after {
    transform: translateX(110%);
  }
}
.nws-btn:active {
  transform: scale(0.98);
}
.nws-btn:focus-visible {
  outline: 2px solid var(--nws-c-focus);
  outline-offset: 3px;
}
.nws-btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.nws-btn--outline {
  background: transparent;
  color: var(--nws-c-brand);
  box-shadow: inset 0 0 0 1.5px currentColor;
}
@media (hover: hover) and (pointer: fine) {
  .nws-btn--outline:hover {
    box-shadow: inset 0 0 0 1.5px currentColor;
    background: rgba(var(--nws-c-primary-rgb), 0.08);
  }
}

.nws-btn--light {
  background: #fff;
  color: var(--nws-c-dark);
}
.nws-btn--light::after {
  background: linear-gradient(110deg, transparent 20%, rgba(74, 129, 211, 0.15) 50%, transparent 80%);
}

.nws-btn--small {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 0.875rem;
}

.nws-btn--large {
  min-height: 54px;
  padding: 15px 30px;
  font-size: 1.0625rem;
}

.nws-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.nws-btn-row--center {
  justify-content: center;
}

.nws-link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--nws-c-brand);
  font-weight: 600;
}
.nws-link-more .nws-icon {
  transition: transform var(--nws-dur-fast) var(--nws-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nws-link-more:hover {
    text-decoration: none;
  }
  .nws-link-more:hover .nws-icon {
    transform: translateX(4px);
  }
}

button.nws-link-more {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Navigation ------------------------------------------------------------------------------ */
.nws-header {
  --nws-topbar-h: 40px;
  /* nextweb: fixed over the page like the template header (pages keep their top padding). */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--nws-z-header);
  display: block;
  color: var(--nws-header-fg);
  transition: transform 420ms var(--nws-ease-out);
}
@media (max-width: 1068px) {
  .nws-header {
    --nws-topbar-h: 0px;
  }
}
@media (min-width: 1069px) {
  .nws-header.is-scrolled {
    transform: translateY(calc(-1 * var(--nws-topbar-h)));
  }
}
.nws-header.is-hidden {
  transform: translateY(-100%);
}
.nws-header.is-open {
  transform: none;
}
/* The topbar (address, phone, WhatsApp) only shows at the very top of a page – opening a menu further
   down brings back the bar, but not the topbar. */
@media (min-width: 1069px) {
  .nws-header.is-open.is-scrolled {
    transform: translateY(calc(-1 * var(--nws-topbar-h)));
  }
}
@media (max-width: 1068px) {
  .nws-header.is-open {
    transition: none;
  }
}
.nws-header .nws-topbar {
  height: var(--nws-topbar-h);
  overflow: hidden;
  background: var(--nws-c-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
}
@media (max-width: 1068px) {
  .nws-header .nws-topbar {
    display: none;
  }
}
.nws-header .nws-topbar__inner,
.nws-header .nws-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--nws-container) + 2 * var(--nws-gutter));
  margin-inline: auto;
  padding-inline: var(--nws-gutter);
}
.nws-header .nws-topbar__inner {
  height: 100%;
}
.nws-header .nws-topbar__group {
  display: flex;
  gap: 28px;
}
.nws-header .nws-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
}
.nws-header .nws-topbar__item .nws-icon {
  color: #8db0ee;
}
@media (hover: hover) and (pointer: fine) {
  .nws-header .nws-topbar__item:hover {
    color: #fff;
    text-decoration: none;
  }
}
.nws-header .nws-bar {
  position: relative;
  background: var(--nws-header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--nws-header-line);
  transition: background-color var(--nws-dur) ease;
}
.nws-header .nws-bar__inner {
  gap: 24px;
  height: var(--nws-nav-h);
}
.nws-header .nws-logo {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--nws-dur-fast) ease;
}
@media (hover: hover) and (pointer: fine) {
  .nws-header .nws-logo:hover {
    opacity: 0.85;
    text-decoration: none;
  }
}
@media (max-width: 1068px) {
  .nws-header .nws-logo .nws-logo-art svg {
    height: 38px;
    width: auto;
  }
}
.nws-header .nws-menu {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.6vw, 30px);
  margin-left: auto;
  list-style: none;
}
@media (max-width: 1068px) {
  .nws-header .nws-menu {
    display: none;
  }
}
.nws-header .nws-menu__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--nws-nav-h);
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--nws-header-fg-2);
  font-family: var(--nws-font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  transition: color var(--nws-dur-fast) ease;
}
.nws-header .nws-menu__link::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--nws-grad-brand);
  transform: scaleX(0);
  transition: transform var(--nws-dur) var(--nws-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nws-header .nws-menu__link:hover {
    color: var(--nws-header-fg);
    text-decoration: none;
  }
}
.nws-header .nws-menu__link.is-active, .nws-header .nws-menu__link.is-current {
  color: var(--nws-header-fg);
}
.nws-header .nws-menu__link.is-active::after, .nws-header .nws-menu__link.is-current::after {
  transform: scaleX(1);
}
.nws-header .nws-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: clamp(4px, 1vw, 14px);
  border: 1px solid var(--nws-header-line);
  border-radius: var(--nws-radius-btn);
  background: transparent;
  color: var(--nws-header-fg);
  transition: background-color var(--nws-dur-fast) ease, transform var(--nws-dur) var(--nws-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nws-header .nws-theme-toggle:hover {
    background: var(--nws-c-chip);
  }
}
.nws-header .nws-theme-toggle:active .nws-icon {
  transform: rotate(40deg);
}
@media (max-width: 1068px) {
  .nws-header .nws-theme-toggle {
    margin-left: auto;
    margin-right: 6px;
  }
}
@media (max-width: 1068px) {
  .nws-header .nws-bar__cta {
    display: none;
  }
}
.nws-header .nws-flyout {
  position: absolute;
  inset: 100% 0 auto;
  background: var(--nws-flyout-bg);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--nws-header-line);
  animation: nws-flyout-in 380ms var(--nws-ease-out);
}
.nws-header .nws-flyout__inner {
  display: flex;
  gap: clamp(40px, 6vw, 96px);
  max-width: calc(var(--nws-container) + 2 * var(--nws-gutter));
  margin-inline: auto;
  padding: 40px var(--nws-gutter) 56px;
}
.nws-header .nws-flyout__col {
  min-width: 170px;
  animation: nws-flyout-col-in 480ms var(--nws-ease-out) both;
  animation-delay: calc(var(--nws-i, 0) * 60ms + 60ms);
}
.nws-header .nws-flyout__col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.nws-header .nws-flyout__title {
  margin-bottom: 16px;
  color: var(--nws-c-text-3);
  font-family: var(--nws-font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nws-header .nws-flyout__link {
  color: var(--nws-c-text-2);
  font-size: 0.9375rem;
  font-weight: 500;
}
@media (hover: hover) and (pointer: fine) {
  .nws-header .nws-flyout__link:hover {
    color: var(--nws-c-text);
    text-decoration: none;
  }
}
.nws-header .nws-flyout__col--large .nws-flyout__link {
  color: var(--nws-c-text);
  font-family: var(--nws-font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.35;
}
@media (hover: hover) and (pointer: fine) {
  .nws-header .nws-flyout__col--large .nws-flyout__link:hover {
    background: var(--nws-grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.nws-header .nws-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(5, 6, 20, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: nws-fade-in 300ms ease;
}
@keyframes nws-flyout-in {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes nws-flyout-col-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@keyframes nws-fade-in {
  from {
    opacity: 0;
  }
}
.nws-header .nws-burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
}
@media (max-width: 1068px) {
  .nws-header .nws-burger {
    display: block;
  }
}
.nws-header .nws-burger__line {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--nws-header-fg);
  transition: transform 320ms var(--nws-ease-out);
}
.nws-header .nws-burger__line:first-child {
  top: 17px;
}
.nws-header .nws-burger__line:last-child {
  top: 25px;
}
.nws-header .nws-burger.is-open .nws-burger__line:first-child {
  transform: translateY(4px) rotate(45deg);
}
.nws-header .nws-burger.is-open .nws-burger__line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}
.nws-header .nws-mobile {
  display: none;
}
@media (max-width: 1068px) {
  .nws-header .nws-mobile {
    display: block;
    position: fixed;
    inset: var(--nws-nav-h) 0 0;
    z-index: var(--nws-z-overlay);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 28px var(--nws-gutter) calc(48px + env(safe-area-inset-bottom));
    background: var(--nws-c-bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 280ms ease, visibility 0s linear 280ms;
  }
}
.nws-header .nws-mobile.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 280ms ease;
}
.nws-header .nws-mobile__panel {
  list-style: none;
  display: grid;
  gap: 4px;
}
.nws-header .nws-mobile.is-open .nws-mobile__panel li {
  animation: nws-mobile-item-in 420ms var(--nws-ease-out) both;
  animation-delay: calc(var(--nws-i, 0) * 45ms + 60ms);
}
.nws-header .nws-mobile__panel--sub {
  animation: nws-mobile-sub-in 360ms var(--nws-ease-out);
}
.nws-header .nws-mobile__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--nws-c-line);
  background: none;
  color: var(--nws-c-text);
  font-family: var(--nws-font-heading);
  font-size: 1.625rem;
  font-weight: 600;
  text-align: left;
}
@media (hover: hover) and (pointer: fine) {
  .nws-header .nws-mobile__link:hover {
    text-decoration: none;
    color: var(--nws-c-brand);
  }
}
.nws-header .nws-mobile__link .nws-icon {
  color: var(--nws-c-primary);
}
.nws-header .nws-mobile__section {
  margin-top: 28px;
}
.nws-header .nws-mobile__section ul {
  list-style: none;
}
.nws-header .nws-mobile__section:not(.nws-mobile__section--large) .nws-mobile__link {
  font-family: var(--nws-font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--nws-c-text-2);
}
.nws-header .nws-mobile__title {
  color: var(--nws-c-text-3);
  font-family: var(--nws-font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nws-header .nws-mobile__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: -6px;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--nws-c-text-2);
  font-size: 1rem;
}
.nws-header .nws-mobile__cta {
  margin-top: 32px;
  width: 100%;
}
@keyframes nws-mobile-item-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@keyframes nws-mobile-sub-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
}
