/* ══════════════════════════════════════════════════════════════
   LAYOUT — navigation, mobile menu, footer
   ══════════════════════════════════════════════════════════════ */

/* ─────────────────────────  NAVBAR  ───────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  gap: 32px;
  padding-inline: var(--gutter);
  transition:
    height var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}

/* Over the hero the bar is glass; past the fold it condenses and solidifies. */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,11,.72), rgba(10,10,11,0));
  opacity: 1;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.nav.is-stuck {
  height: var(--nav-h-tight);
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.is-stuck::before { opacity: 0; }

/* Inner pages have no full-bleed hero, so the bar starts solid. */
.nav.nav--solid {
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.nav--solid::before { opacity: 0; }

.nav__logo {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  margin-right: auto;
}
.nav__logo img {
  height: 40px;
  width: auto;
  transition: height var(--dur) var(--ease);
}
.nav.is-stuck .nav__logo img { height: 32px; }

/* ── Desktop links ── */
.nav__links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--bone-2);
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.nav__link:hover { color: var(--bone); }

/* Amber underline that wipes in from the left. */
.nav__link::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__link[aria-current="page"],
.nav__link.is-active { color: var(--bone); }

.nav__caret {
  width: 9px; height: 9px;
  stroke: currentColor; fill: none; stroke-width: 2;
  transition: transform var(--dur) var(--ease);
  opacity: .7;
}
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

/* ── Services dropdown ── */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 290px;
  padding: 8px;
  background: rgba(18, 18, 20, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease-out),
    visibility var(--dur);
}
.nav__dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav__drop-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: var(--r-md);
  transition: background var(--dur-fast) var(--ease);
}
.nav__drop-link:hover { background: rgba(252, 177, 24, 0.09); }
.nav__drop-link .icon { color: var(--amber); width: 20px; height: 20px; }

.nav__drop-title {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--bone);
  line-height: 1.3;
}
.nav__drop-desc {
  font-size: var(--t-xs);
  color: var(--bone-3);
  line-height: 1.35;
  margin-top: 2px;
}

/* ── Language switcher ── */
.lang {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  flex: none;
}
.lang__btn {
  padding: 5px 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bone-3);
  border-radius: 999px;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.lang__btn:hover { color: var(--bone); }
.lang__btn.is-active { background: var(--amber); color: var(--ink); }

/* ── Hamburger ── */
.nav__burger {
  position: relative;
  display: none;
  width: 44px; height: 44px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.nav__burger span {
  position: absolute;
  left: 13px;
  width: 18px; height: 1.5px;
  background: var(--bone);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease);
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 21.5px; }
.nav__burger span:nth-child(3) { top: 27px; }

.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ─────────────────────  MOBILE MENU  ───────────────────── */

.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  background: var(--ink);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.menu.is-open { opacity: 1; visibility: visible; }

.menu__list { list-style: none; }

.menu__item {
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
}
/* Items cascade in one after another once the panel opens. */
.menu.is-open .menu__item { opacity: 1; transform: none; }
.menu.is-open .menu__item:nth-child(1) { transition-delay:  60ms; }
.menu.is-open .menu__item:nth-child(2) { transition-delay: 110ms; }
.menu.is-open .menu__item:nth-child(3) { transition-delay: 160ms; }
.menu.is-open .menu__item:nth-child(4) { transition-delay: 210ms; }
.menu.is-open .menu__item:nth-child(5) { transition-delay: 260ms; }
.menu.is-open .menu__item:nth-child(6) { transition-delay: 310ms; }
.menu.is-open .menu__item:nth-child(7) { transition-delay: 360ms; }

.menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  line-height: 1;
  letter-spacing: var(--track-tight);
  color: var(--bone);
}
.menu__link .menu__num {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
}
.menu__link--sub {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 500;
  padding: 14px 0 14px 34px;
  color: var(--bone-2);
}

.menu__foot { margin-top: auto; padding-top: 40px; }
.menu__foot .btn { width: 100%; justify-content: center; }

/* Stop the page behind the overlay from scrolling. */
body.is-locked { overflow: hidden; }

/* ────────────────────────  FOOTER  ──────────────────────── */

.footer {
  background: var(--ink-sunk);
  border-top: 1px solid var(--line);
  padding-top: clamp(3.5rem, 7vw, 6rem);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.footer__brand img { height: 46px; width: auto; margin-bottom: 22px; }
.footer__brand p {
  font-size: var(--t-sm);
  color: var(--bone-3);
  max-width: 34ch;
  font-weight: 300;
  line-height: 1.6;
}

.footer__col h3 {
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--bone-3);
  margin-bottom: 18px;
}
.footer__col ul { list-style: none; display: grid; gap: 11px; }
.footer__col a,
.footer__col li {
  font-size: var(--t-sm);
  color: var(--bone-2);
  font-weight: 300;
  transition: color var(--dur-fast) var(--ease);
}
.footer__col a:hover { color: var(--amber); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--bone-3);
}
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--bone); }

/* ────────────────────  RESPONSIVE  ──────────────────── */

@media (max-width: 1080px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav__links,
  .nav .lang { display: none; }
  .nav__burger { display: block; }
  .nav { gap: 16px; }
}

@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* The Contact CTA is the primary conversion action, so it stays in the
   bar on phones — it just gets tighter. Below 380px the logo needs the
   room more than the label does. */
@media (max-width: 420px) {
  .nav__logo img { height: 34px; }
  .nav .nav__cta { padding: 10px 14px; letter-spacing: 0.06em; }
}
@media (max-width: 340px) {
  .nav .nav__cta { display: none; }
}
