/* ==========================================================================
   Layout: top bar, header, navigation, drawer, search, banner, footer
   ========================================================================== */

/* ------------------------------------------------------------------ topbar */
.topbar { background: var(--black); color: var(--text-d); font-size: 0.82rem; position: relative; z-index: 60; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; height: var(--topbar-h); gap: 20px; }
.topbar__list { display: flex; align-items: center; }
.topbar__list li { display: flex; align-items: center; gap: 8px; padding-inline: 16px; }
.topbar__list li + li { border-left: 1px solid rgb(255 255 255 / 0.12); }
.topbar__list li:first-child { padding-left: 0; }
.topbar__list li:last-child { padding-right: 0; }
.topbar .icon { width: 15px; height: 15px; color: var(--cyan); }
.topbar a { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.topbar a:hover { color: var(--cyan); }
.topbar__login { font-weight: 600; }
@media (max-width: 1024px) { .hide-md { display: none !important; } }
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .topbar__list:first-child { display: none; }
  .topbar__in { justify-content: flex-end; }
  .topbar__list li { white-space: nowrap; }
}

/* ------------------------------------------------------------------ header */
/* The header box floats over the top of the hero or page banner (design 1). */
.hdr { position: absolute; left: 0; right: 0; top: 42px; z-index: 50; }
.hdr__wrap { position: relative; }
.hdr__box {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 92px;
  padding: 0 14px 0 28px;
  background: var(--paper);
  border-radius: 0 0 var(--r) var(--r);
  box-shadow: 0 24px 50px -30px rgb(5 10 18 / 0.5);
}
.hdr__bar {
  display: block;
  height: 5px;
  margin: 0 22px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.hdr__logo { flex: none; display: block; }
.hdr__logo img { height: 56px; width: auto; }
.hdr__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hdr__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.hdr__icon:hover { background: var(--mist); color: var(--blue); }
.hdr__icon .icon { width: 21px; height: 21px; }
.hdr__count {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.hdr__cta { margin-left: 8px; }
.hdr__burger { display: none; width: 46px; height: 46px; border: 0; background: var(--navy); padding: 0 12px; flex-direction: column; justify-content: center; gap: 5px; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%); }
.hdr__burger span { display: block; height: 2px; background: #fff; }
.hdr__burger span:nth-child(2) { width: 70%; }

/* Stuck: full-width white bar once the visitor scrolls. */
.hdr.is-stuck { position: fixed; top: 0; animation: hdr-in 0.35s var(--ease); }
.hdr.is-stuck .hdr__wrap { max-width: none; padding: 0; }
.hdr.is-stuck .hdr__box { height: 76px; border-radius: 0; padding-inline: max(24px, calc((100vw / var(--z) - var(--wrap)) / 2)); box-shadow: 0 10px 30px -18px rgb(5 10 18 / 0.35); }
.hdr.is-stuck .hdr__logo img { height: 48px; }
.hdr.is-stuck .hdr__bar { display: none; }
@keyframes hdr-in { from { transform: translateY(-100%); } to { transform: none; } }

/* ------------------------------------------------------------- navigation */
.nav { flex: 1; min-width: 0; }
.nav__list { display: flex; align-items: center; justify-content: center; gap: 2px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item.is-wide { position: static; }
.nav__link {
  position: relative;
  padding: 34px 3px 34px 10px;
  font-family: var(--f-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.2s;
}
.nav__item:not(.has-menu) .nav__link { padding-right: 10px; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 3px;
  bottom: 24px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__item:not(.has-menu) .nav__link::after { right: 10px; }
.nav__link:hover, .nav__link.is-active, .nav__item.is-open > .nav__link { color: var(--blue); }
.nav__link.is-active::after { transform: scaleX(1); }
.nav__toggle { display: grid; place-items: center; width: 22px; height: 30px; padding: 0; border: 0; background: none; color: var(--text-mute); }
.nav__toggle .icon { width: 14px; height: 14px; transition: transform 0.2s; }
.nav__item.is-open .nav__toggle { color: var(--blue); }
.nav__item.is-open .nav__toggle .icon { transform: rotate(180deg); }

.menu {
  position: absolute;
  top: calc(100% - 14px);
  left: -8px;
  z-index: 10;
  min-width: 270px;
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.nav__item.is-wide .menu { left: 14px; right: 14px; top: calc(100% - 6px); }
/* Once the header is stuck full-width, wide menus still line up with the content column. */
.hdr.is-stuck .nav__item.is-wide .menu { left: max(14px, calc((100vw / var(--z) - var(--wrap)) / 2)); right: max(14px, calc((100vw / var(--z) - var(--wrap)) / 2)); }
/* The last menus open towards the left so they never run past the screen edge. */
.nav__item:not(.is-wide):nth-last-child(-n+2) .menu { left: auto; right: -8px; }
.nav__item.is-open .menu { opacity: 1; visibility: visible; transform: none; }
.menu__in {
  display: flex;
  gap: 36px;
  padding: 28px 30px;
  background: var(--paper);
  border-top: 3px solid var(--blue);
  box-shadow: var(--shadow-lg);
}
.menu__col { min-width: 190px; flex: 1; }
.menu__title { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); }
.menu__col a { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 0.93rem; font-weight: 500; color: var(--ink); }
.menu__col a .icon { width: 18px; height: 18px; color: var(--blue); }
.menu__col a:hover { color: var(--blue); }
.menu__feature {
  flex: 0 0 270px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--navy);
  color: var(--text-d);
  font-size: 0.9rem;
  line-height: 1.6;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.menu__feature strong { font-family: var(--f-head); font-size: 1.15rem; line-height: 1.25; color: #fff; }
.menu__feature-k { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.menu__feature .link-arrow { margin-top: auto; color: #fff; }
.menu__feature .link-arrow .icon { color: var(--cyan); }

@media (max-width: 1520px) {
  .hdr__box { gap: 14px; padding-left: 20px; }
  .hdr__logo img { height: 48px; }
  .nav__link { font-size: 0.86rem; padding-left: 8px; padding-right: 1px; }
  .nav__link::after { left: 8px; }
  .nav__item:not(.has-menu) .nav__link { padding-right: 8px; }
  .nav__toggle { width: 17px; }
  .hdr__cta { margin-left: 4px; padding: 0 18px; }
}
@media (max-width: 1340px) {
  .nav__link { font-size: 0.83rem; padding-left: 6px; }
  .nav__link::after { left: 6px; }
  .hdr__icon { width: 40px; }
}
@media (max-width: 1300px) {
  .nav { display: none; }
  .hdr__burger { display: flex; }
  .hdr__box { height: 80px; }
}
@media (max-width: 640px) {
  .hdr { top: 42px; }
  .hdr .container { padding-inline: 0; }
  .hdr__box { height: 70px; padding: 0 10px 0 16px; border-radius: 0; gap: 8px; }
  .hdr__logo img { height: 40px; }
  .hdr__bar { margin: 0; border-radius: 0; height: 3px; }
  .hdr__cta { display: none; }
  .hdr__icon { width: 42px; height: 42px; }
  .hdr.is-stuck .hdr__box { height: 64px; padding-inline: 16px 10px; }
  .hdr.is-stuck .hdr__logo img { height: 38px; }
}

/* ------------------------------------------------------------------ drawer */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgb(5 10 18 / 0.6); }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: drawer-in 0.35s var(--ease);
}
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__head img { height: 40px; width: auto; }
.drawer__close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--mist); border-radius: 50%; }
.drawer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 20px; }
.drawer__actions .btn { padding: 0 12px; font-size: 0.72rem; }
.drawer__list { padding: 0 20px; }
.drawer__list > li { border-bottom: 1px solid var(--line); }
.drawer__toggle, .drawer__link { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 16px 0; border: 0; background: none; font-family: var(--f-head); font-size: 1.05rem; font-weight: 700; color: var(--ink); text-align: left; }
.drawer__toggle .icon { color: var(--blue); transition: transform 0.2s; }
.drawer__toggle[aria-expanded="true"] .icon { transform: rotate(45deg); }
.drawer__sub { display: grid; padding: 0 0 14px 14px; border-left: 2px solid var(--mist-2); margin-bottom: 12px; }
.drawer__sub a { padding: 8px 0; color: var(--text); }
.drawer__sub a:hover { color: var(--blue); }
.drawer__overview { font-weight: 600; color: var(--blue) !important; }
.drawer__foot { display: grid; gap: 14px; margin-top: auto; padding: 22px 20px 28px; background: var(--mist); }
.drawer__foot a { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.drawer__foot .icon { color: var(--blue); }

/* ------------------------------------------------------------------ search */
.search { position: fixed; inset: 0 0 auto 0; z-index: 110; padding: 26px 0; background: var(--paper); box-shadow: var(--shadow-lg); animation: search-in 0.3s var(--ease); }
@keyframes search-in { from { transform: translateY(-100%); } to { transform: none; } }
.search__form { display: flex; align-items: center; gap: 12px; }
.search__form > .icon { width: 24px; height: 24px; color: var(--blue); }
.search__form input { flex: 1; min-width: 0; height: 56px; border: 0; border-bottom: 2px solid var(--line); font: inherit; font-size: 1.15rem; color: var(--ink); background: none; }
.search__form input:focus { outline: none; border-color: var(--blue); }
.search__close { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--mist); }
@media (max-width: 640px) { .search__form .btn { display: none; } }

/* ------------------------------------------------------------------ banner */
.banner { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--text-d); padding: 210px 0 92px; text-align: center; }
.banner__img { position: absolute; inset: 0; z-index: -2; }
.banner__img img { width: 100%; height: 100%; object-fit: cover; }
.banner__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(8 21 37 / 0.82), rgb(8 21 37 / 0.9) 60%, rgb(5 10 18 / 0.96)); }
.banner__grid { position: absolute; inset: 0; z-index: -1; opacity: 0.7; background-image: linear-gradient(to right, rgb(220 229 236 / 0.07) 1px, transparent 1px), linear-gradient(to bottom, rgb(220 229 236 / 0.07) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(180deg, transparent, #000 40%); }
.banner__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.banner__title { font-size: clamp(2.3rem, 4.6vw, 3.6rem); color: #fff; line-height: 1.06; max-width: 900px; margin-inline: auto; }
.banner__intro { max-width: 700px; margin: 20px auto 0; font-size: 1.08rem; color: var(--text-d); }
.banner--compact { padding-bottom: 70px; }
.crumbs { margin-top: 26px; }
.crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; font-family: var(--f-head); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; margin: 0 12px; border-top: 1.5px solid var(--text-d); border-right: 1.5px solid var(--text-d); transform: rotate(45deg); }
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current] { color: var(--cyan); }
@media (max-width: 640px) { .banner { padding: 160px 0 64px; } }

/* ------------------------------------------------------------------ footer */
/* Exact logo lockup on a white plate (its lettering is dark), under the brand heading. */
.ftr__logo-plate { display: inline-block; padding: 14px 18px; background: #fff; border-radius: var(--r); box-shadow: 0 14px 30px -18px rgb(0 0 0 / 0.6); transition: translate 0.4s var(--fx-ease, ease), box-shadow 0.4s; }
.ftr__logo-plate:hover { translate: 0 -3px; box-shadow: 0 22px 40px -20px rgb(0 0 0 / 0.75); }
.ftr__logo { display: block; height: 62px; width: auto; }
/* Thin brand line along the top edge of the footer. */
.ftr__main { position: relative; background: var(--navy); color: var(--text-d); padding: 80px 0 64px; font-size: 0.93rem; }
.ftr__main::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan) 50%, var(--blue)); }
.ftr__grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr) 1.15fr; gap: 48px; align-items: start; }
/* Column headings: one straight hairline across the column with a short cyan accent. */
.ftr__h { position: relative; margin-bottom: 24px; padding: 4px 0 14px; border-bottom: 1px solid rgb(220 229 236 / 0.14); font-family: var(--f-head); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.01em; color: #fff; }
.ftr__h::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 36px; height: 2px; background: var(--cyan); }
.ftr__col ul { display: grid; gap: 12px; }
/* Link hover: a short cyan dash slides in before the label. */
.ftr__col ul a { display: inline-flex; align-items: center; transition: color 0.25s; }
.ftr__col ul a::before { content: ""; width: 0; height: 1.5px; margin-right: 0; background: var(--cyan); transition: width 0.3s var(--fx-ease, ease), margin-right 0.3s var(--fx-ease, ease); }
.ftr__col ul a:hover { color: #fff; }
.ftr__col ul a:hover::before { width: 10px; margin-right: 8px; }
.ftr__intro { margin-top: 26px; }
.ftr__checks { margin-top: 20px; display: grid; gap: 10px; }
.ftr__checks li { display: flex; gap: 10px; align-items: flex-start; color: #fff; }
.ftr__checks .icon { color: var(--cyan); margin-top: 4px; width: 16px; height: 16px; flex: none; }
.ftr__coords { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgb(220 229 236 / 0.14); color: #fff; font-weight: 500; }
.ftr__coords .icon { color: var(--cyan); }
.ftr__coords span { width: 100%; padding-left: 26px; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--text-d); font-variant-numeric: tabular-nums; }
.ftr__person { display: grid; gap: 4px; margin-bottom: 22px; }
.ftr__person strong { color: #fff; font-family: var(--f-head); font-size: 1rem; }
.ftr__person span { font-size: 0.8rem; margin-bottom: 4px; }
.ftr__person a { display: inline-flex; align-items: center; gap: 10px; width: fit-content; word-break: break-word; transition: color 0.25s; }
.ftr__person a .icon { width: 15px; height: 15px; color: var(--cyan); flex: none; }
.ftr__person a:hover { color: #fff; }
.ftr__contact .btn { margin-top: 6px; }
.ftr__bottom { background: var(--black); color: var(--text-d); font-size: 0.82rem; border-top: 1px solid rgb(220 229 236 / 0.08); }
.ftr__bottom-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 30px; padding-block: 24px; }
.ftr__bottom ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; }
.ftr__bottom li + li::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 12px; border-radius: 50%; background: rgb(220 229 236 / 0.3); vertical-align: middle; }
.ftr__bottom a, .ftr__bottom button { transition: color 0.25s; }
.ftr__bottom a:hover, .ftr__bottom button:hover { color: #fff; }
.ftr__bottom .linklike { text-decoration: none; font-size: inherit; color: inherit; }
@media (max-width: 1100px) {
  .ftr__grid { grid-template-columns: 1fr 1fr 1fr; }
  .ftr__about { grid-column: 1 / -1; max-width: 560px; }
}
@media (max-width: 640px) {
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .ftr__contact { grid-column: 1 / -1; }
  .ftr__logo { height: 52px; }
  .ftr__bottom ul { gap: 8px 18px; }
  .ftr__bottom li + li::before { display: none; }
}

/* ------------------------------------------------------------------ cookie */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; display: flex; justify-content: flex-end; pointer-events: none; }
.cookie__in { pointer-events: auto; max-width: 440px; padding: 22px; background: var(--navy); color: var(--text-d); font-size: 0.88rem; line-height: 1.6; box-shadow: var(--shadow-lg); border-top: 3px solid var(--cyan); }
.cookie__in strong { color: #fff; }
.cookie__in a { color: var(--cyan); text-decoration: underline; }
.cookie__btns { display: flex; gap: 10px; margin-top: 16px; }
