/* =============================================================
   layout.css — Structural Layout
   Navbar, mobile menu, hero, shared section scaffolding and
   footer. These rules define page structure and major regions.
   Component-level styling (buttons, cards, gallery) lives in
   components.css; motion lives in animations.css.

   Layout/positioning is unchanged from the original; only colour,
   spacing, radius and typography values were routed through the
   design tokens in variables.css for a consistent look.
   ============================================================= */

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 28px var(--space-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--dur-mid), padding var(--dur-mid);
}

.navbar.scrolled {
  background: rgba(21, 17, 13, 0.95);
  padding: 16px var(--space-gutter);
  backdrop-filter: blur(8px);
}

/* Brand mark: monoline deer logo + wordmark, vertically centred, one link */
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

/* The deer mark (logonotext.png) is black line-art on transparency.
   brightness(0)+invert(1) recolours it to pure white so it reads on the
   dark navbar; opacity softens it to match the wordmark weight. */
.nav-brand__logo {
  height: 38px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* Wordmark sits next to the mark as one lockup. Sans, tracked, uppercase. */
.nav-brand__text {
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: var(--space-5);
  list-style: none;
}

.nav-links a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  transition: color var(--dur-fast);
}

.nav-links a:hover {
  color: var(--accent);
}

/* Active desktop item: accent colour + underline marker */
.nav-links a.is-active {
  color: var(--accent);
}

.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
}

/* Keyboard focus ring for all interactive header elements */
.nav-brand:focus-visible,
.nav-links a:focus-visible,
.mobile-menu a:focus-visible,
.hamburger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* Hamburger toggle (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Fullscreen mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(21, 17, 13, 0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: var(--tracking-title);
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--dur-fast);
}

.mobile-menu a:hover,
.mobile-menu a.is-active {
  color: var(--accent);
}

/* ========== HERO ========== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/controlroom.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

#hero.loaded .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.55) 60%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 var(--space-4);
  max-width: 860px;
}

/* Eyebrow: small tracked uppercase label in the brass accent. Reusable
   above hero/section headings to add editorial structure. */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.hero-eyebrow {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.15s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display);
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  margin-bottom: var(--space-5);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s 0.3s forwards;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--c-on-dark);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.6s forwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  animation: fadeUp 0.9s 1.1s forwards;
}

.scroll-indicator svg {
  width: 36px;
  height: 36px;
  stroke: rgba(255, 255, 255, 0.7);
  fill: none;
  animation: bounce 2s infinite;
}

/* ========== SHARED SECTION SCAFFOLDING ========== */

/* Offset anchored sections so the fixed navbar never covers their headings,
   whether reached by an in-page click or a cross-page #anchor on load.
   (#audiobeispiele sets its own smaller value, which wins on specificity.) */
section[id] {
  scroll-margin-top: 90px;
}

.section-light {
  background: var(--surface);
  color: var(--c-text);
}

.section-dark {
  background: var(--dark);
  color: #fff;
  position: relative;
}

.section-dark-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section-dark-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.section-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-section) var(--space-gutter);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  letter-spacing: -0.02em;
  line-height: var(--lh-snug);
  color: var(--c-heading);
  margin-bottom: var(--space-5);
}

.section-subtitle {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 400;
  line-height: var(--lh-body);
  max-width: 620px;
}

/* ========== FOOTER ========== */
footer {
  background: var(--dark-soft);
  color: #fff;
  text-align: center;
  padding: var(--space-7) var(--space-6) var(--space-6);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--border-on-dark);
  padding-bottom: 2px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}

.footer-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-contact {
  font-size: var(--fs-sm);
  color: var(--c-on-dark-muted);
  line-height: var(--lh-body);
  margin-bottom: var(--space-6);
}

.footer-contact-btn {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid #fff;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: background var(--dur-fast), color var(--dur-fast);
}

.footer-contact-btn:hover {
  background: #fff;
  color: var(--dark);
}

.footer-copy {
  margin-top: var(--space-6);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1px;
}

/* ========== RESPONSIVE (layout) ========== */
@media (max-width: 900px) {
  .navbar {
    padding: 18px var(--space-4);
  }
  .navbar.scrolled {
    padding: 12px var(--space-4);
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .section-content {
    padding: var(--space-7) var(--space-4);
  }
}
