/* === Shared Navigation + Footer — Forty North Media === */

/* Nav bar — fixed translucent overlay */
.fn-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 48px;
  height: 56px;
  background: rgba(3, 8, 16, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hide the in-nav logo — every page uses the big floating .fn-page-logo instead */
.fn-nav-logo { display: none !important; }

/* ===== Big floating page logo (outside nav) ===== */
.fn-page-logo {
  position: fixed;
  top: 76px;
  left: 48px;
  z-index: 95;
  display: block;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  animation: fnLogoIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
  pointer-events: auto;
}

.fn-page-logo img {
  height: clamp(104px, 11vw, 150px);
  width: auto;
  display: block;
  filter: drop-shadow(0 0 40px rgba(255, 51, 136, 0.22));
  transition: opacity 0.25s ease;
}

/* Every hero/first-section text block should start BELOW the floating logo,
   sharing the same left edge. Push content down so nothing overlaps. */
@media (min-width: 901px) {
  .fn-clear-logo,
  .hero-content,
  .c-hero-inner,
  .bb-hero,
  .svc-hero-content,
  .t-hero,
  .legal-hero,
  .hero-heading {
    padding-top: 260px !important;
  }

  /* Homepage hero uses margin-top: 14vh — neutralize it so padding-top controls spacing */
  .hero-content { margin-top: 0 !important; }

  /* Services hero has padding 160px 0 80px; remove the top so our padding-top takes over cleanly */
  .svc-hero { padding-top: 0 !important; }
}

.fn-page-logo:hover img { opacity: 0.88; }

@keyframes fnLogoIn {
  to { opacity: 1; transform: translateY(0); }
}

.fn-nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.fn-nav-logo:hover {
  opacity: 0.82;
}

.fn-nav-logo img {
  height: 76px;
  width: auto;
  display: block;
}

.fn-nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.fn-nav-link {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.fn-nav-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

.fn-nav-link.active {
  color: #ffffff;
}

.fn-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0;
  right: 0;
  height: 1px;
  background: #ff3388;
}

/* Hamburger — mobile only */
.fn-nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.fn-nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.fn-nav-burger.open span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.fn-nav-burger.open span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* Footer */
.fn-footer {
  background: rgba(3, 8, 16, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 40px;
}

.fn-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Outfit', sans-serif;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
}

.fn-footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 51, 136, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.fn-footer a:hover {
  color: var(--fuchsia, #ff3388);
  border-bottom-color: var(--fuchsia, #ff3388);
}

/* Mobile nav */
@media (max-width: 900px) {
  .fn-nav {
    padding: 0 20px;
    height: 52px;
  }

  .fn-page-logo {
    top: 60px;
    left: 18px;
  }

  .fn-page-logo img {
    height: clamp(64px, 16vw, 84px);
  }

  /* On mobile, give every hero room above for the logo */
  .fn-clear-logo,
  .hero-content,
  .c-hero-inner,
  .bb-hero,
  .svc-hero-content,
  .t-hero,
  .legal-hero,
  .hero-heading {
    padding-top: 190px !important;
  }

  .hero-content { margin-top: 0 !important; }
  .svc-hero { padding-top: 0 !important; }

  .fn-nav-burger {
    display: flex;
  }

  .fn-nav-links {
    display: none;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(3, 8, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px 40px;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .fn-nav-links.open {
    display: flex;
  }

  .fn-nav-link {
    font-size: 0.82rem;
  }

  .fn-nav-link.active::after {
    display: none;
  }

  .fn-footer {
    padding: 16px 24px;
  }

  .fn-footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
