/* ==========================================================================
   Layout — two-tier fixed header, mega menus, mobile drawer, footer
   ========================================================================== */

.topbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 9000;
}

/* --- tier 1: utility strip ------------------------------------------------ */

.utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 9px var(--gutter);
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 12.5px;
  letter-spacing: .03em;
  color: var(--ink-4);
}
.utility__status {
  display: flex;
  align-items: center;
  gap: 11px;
}
.utility__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 9px var(--lime);
  flex: none;
}
.utility__links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.utility__links a,
.utility__lang {
  color: var(--ink-4);
  font-size: 12.5px;
  letter-spacing: .03em;
}
.utility__links a:hover,
.utility__lang:hover { color: var(--cyan); }
.utility__lang {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
}
.utility__sep {
  width: 1px; height: 13px;
  background: rgba(255,255,255,.16);
  flex: none;
}

/* --- tier 2: main bar ----------------------------------------------------- */

.mainbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 14px var(--gutter);
  background: rgba(0,15,27,.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
  transition: padding .3s;
}
.is-shrunk .mainbar { padding-block: 8px; }

.brand { display: flex; align-items: center; flex: none; }
.brand__logo {
  height: 52px;
  width: auto;
  transition: height .3s;
}
.is-shrunk .brand__logo { height: 40px; }

/* --- desktop nav ---------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.nav__item { position: relative; }

.nav__link,
.nav__trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  color: var(--ink-3);
  font-family: var(--font);
  font-size: 15px;
  padding: 11px 16px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: background .25s, color .25s;
}
.nav__link:hover,
.nav__trigger:hover,
.nav__item.is-open .nav__trigger {
  background: var(--wash-strong);
  color: var(--ink);
}
.nav__caret { font-size: 9px; opacity: .6; }

.nav__panel {
  position: absolute;
  top: 100%;
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(8px);
  padding-top: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
[dir="rtl"] .nav__panel { transform: translateX(50%) translateY(8px); }
.nav__item.is-open .nav__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
[dir="rtl"] .nav__item.is-open .nav__panel { transform: translateX(50%) translateY(0); }

.mega {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 640px;
  padding: 22px;
  background: rgba(0,26,48,.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.mega--sm { width: 600px; }

.mega__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  transition: background .2s;
}
.mega__link:hover { background: rgba(28,196,233,.10); }
.mega__link--magenta:hover { background: rgba(240,32,145,.10); }
.mega__link--lime:hover    { background: rgba(167,212,56,.10); }
.mega__title { font-size: 15px; font-weight: 600; color: var(--ink); }
.mega__desc  { font-size: 13px; color: var(--ink-6); line-height: 1.45; }

/* --- header CTAs ---------------------------------------------------------- */

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.nav-cta .btn { font-size: 14.5px; padding: 11px 20px; }
.nav-cta .btn--primary {
  padding: 12px 24px;
  box-shadow: 0 6px 26px rgba(28,196,233,.3);
}

/* --- hamburger ------------------------------------------------------------ */

.navtoggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0 11px;
  background: var(--wash-mid);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  flex: none;
}
.navtoggle span {
  display: block;
  height: 1.5px;
  background: var(--ink-2);
  border-radius: 2px;
  transition: transform .3s, opacity .2s;
}
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- mobile drawer -------------------------------------------------------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 8999;
  background: rgba(0,6,13,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.drawer.is-open { opacity: 1; pointer-events: auto; }

.drawer__sheet {
  position: absolute;
  top: 0; bottom: 0;
  inset-inline-end: 0;
  width: min(420px, 88vw);
  padding: 108px 30px 40px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(0,26,48,.99), rgba(0,15,27,.99));
  border-inline-start: 1px solid var(--line);
  box-shadow: -30px 0 80px rgba(0,0,0,.6);
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[dir="rtl"] .drawer__sheet { transform: translateX(-100%); }
.drawer.is-open .drawer__sheet { transform: none; }

.drawer__group {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-10);
  margin-top: 20px;
  margin-bottom: 6px;
}
.drawer__group:first-child { margin-top: 0; }

.drawer__link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  color: var(--ink-2);
  transition: background .2s;
}
.drawer__link:hover { background: var(--wash-strong); color: var(--ink); }
.drawer__link span:first-child { font-size: 16px; font-weight: 600; }
.drawer__link span + span { font-size: 13px; color: var(--ink-6); line-height: 1.45; }

.drawer__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.drawer__cta .btn { width: 100%; font-size: 16px; padding: 16px 24px; }

/* --- scroll progress ------------------------------------------------------ */

.progress {
  height: 2px;
  background: rgba(255,255,255,.05);
}
.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--royal), var(--cyan), var(--magenta));
  box-shadow: 0 0 12px rgba(28,196,233,.7);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 72px clamp(24px, 4.5vw, 72px) 40px;
  background:
    radial-gradient(60% 90% at 8% 0%, rgba(20,117,206,.10), transparent 60%),
    radial-gradient(50% 80% at 92% 100%, rgba(28,196,233,.06), transparent 60%),
    rgba(255,255,255,.015);
}
/* Brand accent line across the full width. */
.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--royal), var(--cyan) 45%, var(--magenta));
  opacity: .65;
}
.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 56px;
  flex-wrap: wrap;
  max-width: none;
  width: 100%;
}
/* Wide screens: brand block + four link columns spread edge to edge. */
@media (min-width: 1240px) {
  .footer__top {
    display: grid;
    grid-template-columns: minmax(300px, 1.1fr) repeat(4, fit-content(200px));
    justify-content: space-between;
    align-items: start;
    gap: 48px clamp(28px, 3vw, 64px);
  }
  .footer__top .footer__cols { display: contents; }
}
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* inline start: left in LTR, right in RTL */
  gap: 18px;
}
/* The lockup SVG is 3737×1604; the box must match that ratio or
   preserveAspectRatio floats the artwork to the box centre. */
.footer__brand img {
  height: 76px;
  width: auto;
  aspect-ratio: 3737 / 1604;
  filter: drop-shadow(0 6px 22px rgba(28,196,233,.25));
}
.footer__about {
  max-width: 480px;
  font-size: 14px;
  color: var(--ink-8);
  line-height: 1.75;
}
.footer__note {
  font-size: 15px;
  color: var(--ink-9);
  line-height: 1.7;
}
.footer__note a { color: var(--ink-4); }
.footer__note a:hover { color: var(--cyan); }

.footer__cols { display: flex; gap: clamp(40px, 6vw, 96px); flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.fcol { display: flex; flex-direction: column; gap: 12px; }
.fcol__head {
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--ink-11);
  text-transform: uppercase;
}
.fcol a { font-size: 15px; color: var(--ink-4); }
.fcol a:hover { color: var(--cyan); }

.footer__bottom {
  max-width: none;
  width: 100%;
  margin: 52px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-softer);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-11);
}
.footer__bottom a { color: var(--ink-10); }
.footer__bottom a:hover { color: var(--cyan); }

/* ==========================================================================
   Booking modal — Calendly, embedded in-page rather than a new tab
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: rgba(0,6,13,.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal.is-open { opacity: 1; pointer-events: auto; }

.modal__sheet {
  position: relative;
  width: min(1040px, 100%);
  height: min(760px, calc(100vh - 80px));
  display: flex;
  flex-direction: column;
  background: linear-gradient(158deg, rgba(0,38,69,.98), rgba(0,15,27,.99));
  border: 1px solid rgba(28,196,233,.3);
  border-radius: var(--r-2xl);
  box-shadow: 0 50px 140px rgba(0,0,0,.7);
  overflow: hidden;
  transform: translateY(18px) scale(.985);
  transition: transform .35s var(--ease);
}
.modal.is-open .modal__sheet { transform: none; }

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.modal__title { font-size: 19px; font-weight: 600; color: var(--ink); }
.modal__sub   { font-size: 13.5px; color: var(--ink-7); margin-top: 3px; }

.modal__close {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--wash-mid);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: background .25s, border-color .25s, color .25s;
}
.modal__close:hover { border-color: var(--cyan); color: var(--cyan); }

.modal__body {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--bg);
}
.modal__body iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
/* Shown until the Calendly frame reports loaded. */
.modal__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 15px;
  color: var(--ink-7);
  pointer-events: none;
  transition: opacity .3s;
}
.modal__loading::before {
  content: '';
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(28,196,233,.2);
  border-top-color: var(--cyan);
  animation: rq-spin 1s linear infinite;
}
.modal.is-loaded .modal__loading { opacity: 0; }

.modal__foot {
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-9);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  flex: none;
}

body.is-locked { overflow: hidden; }
