/* ============ NAVBAR — translucent dark bar over the hero ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(28, 28, 28, 0.78), rgba(28, 28, 28, 0.3));
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
              height 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Scrolled state (added via JS) */
.nav.is-scrolled {
  height: 70px;
  background: rgba(28, 28, 28, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

/* Brand */
.nav__brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.4s var(--ease);
}
.nav__mark { color: var(--red); display: inline-flex; }
.nav__word { font-size: 1.15rem; }
.nav__word-thin { font-weight: 400; opacity: 0.85; }

/* ---- Logo ---- */
.brand__logo {
  height: 46px;
  width: auto;
  /* base.css sets img{max-width:100%}, which collapses the logo inside the
     flex row - the intrinsic width has to be allowed through */
  max-width: none;
  display: block;
  transition: height 0.4s var(--ease);
}
.nav.is-scrolled .brand__logo { height: 38px; }

/* ---- Studio name under the logo (header + footer) ----
   Omega Force (Iconian Fonts), self-hosted from assets/fonts/omegaforce/.
   Orbitron is only a fallback while the font file loads. */
@font-face {
  font-family: "Omega Force";
  src: url("../assets/fonts/omegaforce/omegaforceital1_3.ttf") format("truetype");
  font-display: swap;
}
.nav__brand,
.footer__logo {
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.brand__name {
  font-family: "Omega Force", "Orbitron", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--red);
}
.nav.is-scrolled .brand__name { font-size: 0.68rem; }

/* Menu */
.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 24px);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 22px);
}
/* Uppercase, letterspaced links — the reference's header treatment */
.nav__link {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.3s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--red); }

/* ---- Header action cluster: phone pill + social dots ---- */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1rem;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.nav__phone:hover { transform: scale(1.08); background: var(--red-dark); }

.nav__social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__social a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.75rem;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav__social a:hover { background: var(--red); transform: translateY(-2px); }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 0 8px;
}
.nav__burger span {
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), background 0.4s var(--ease);
}
.nav.is-open .nav__burger span { background: var(--text-strong); }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- Desktop: center the nav links between the logo and the actions ---- */
@media (min-width: 981px) {
  .nav__menu { flex: 1; }
  .nav__links { flex: 1; justify-content: center; }
}

/* ---- Mobile ---- */
/* Reclaim header space before the links are forced to wrap */
@media (max-width: 1300px) {
  .nav__social { display: none; }
}
@media (max-width: 1120px) {
  .nav__cta { display: none; }
}

@media (max-width: 980px) {
  .nav__inner { gap: 12px; }
  /* call button sits beside the menu button, not centred */
  .nav__actions { margin-left: auto; }
  .nav__burger { display: flex; }
  .nav__social { display: none; }
  .nav__cta { display: inline-flex; }
  .nav__menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(84vw, 340px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 40px;
    background: var(--white);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .nav.is-open .nav__menu { transform: translateX(0); }
  /* backdrop-filter makes the bar the containing block for the fixed drawer,
     squashing it to the bar's height once the page is scrolled */
  .nav.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav__links { flex-direction: column; align-items: flex-start; gap: 22px; }
  .nav__link { color: var(--text-strong); font-size: 1.15rem; }
  .nav__cta { background: var(--red); color: #fff; }
}
@media (max-width: 560px) {
  .nav__phone { width: 38px; height: 38px; }
}
