/* ═══════════════════════════════════════════════════
   YAVAPAI-APACHE NATION — Layout Styles
   Hero · Nav · Sections · Footer
   Requires: variables.css, base.css
═══════════════════════════════════════════════════ */

/* ── NAV ────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s ease, padding 0.4s ease;
}

.site-nav.scrolled {
  background: rgba(8, 4, 8, 0.92);
  backdrop-filter: blur(12px);
  padding: 14px 40px;
  border-bottom: 1px solid rgba(200, 144, 10, 0.08);
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--canyon-sand);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.site-nav.scrolled .nav-wordmark { opacity: 1; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--canyon-sand);
  opacity: 0.55;
  transition: opacity 0.25s ease;
}

.nav-links a:hover { opacity: 1; }

.nav-links a.nav-active {
  opacity: 1;
  color: var(--sunray-light);
}

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

.nav-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.nav-menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--canyon-sand);
  opacity: 0.60;
  transition: transform 0.26s ease, opacity 0.26s ease;
  transform-origin: center;
}

/* X state when menu is open */
.nav-menu-btn.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  opacity: 0.90;
}
.nav-menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-menu-btn.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  opacity: 0.90;
}

/* ── HERO ───────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 100px 40px 80px;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    #080408  0%,
    #0C0610 10%,
    #180830 22%,
    #2E1040 33%,
    #4E1E5C 45%,
    #7A3558 56%,
    #A83428 66%,
    #C84018 75%,
    #D45020 83%,
    #C03818 91%,
    #1E1008 100%
  );
}

.hero-stars {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 248, 0.90);
}

.hero-horizon-glow {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30%;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(212, 80, 32, 0.28) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.hero-seal-wrap {
  width: min(340px, 78vw);
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: sealReveal 2.6s var(--ease-reveal) 0.4s forwards;
}

.hero-seal-wrap img {
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 56px rgba(200, 144, 10, 0.28))
    drop-shadow(0 0 20px rgba(78, 30, 92, 0.32))
    drop-shadow(0 4px 32px rgba(0, 0, 0, 0.80));
}

.hero-lang {
  font-family: var(--font-label);
  font-size: 9.5px;
  letter-spacing: 0.40em;
  text-transform: uppercase;
  color: var(--ember-glow);
  opacity: 0.72;
  margin-bottom: 20px;
  text-align: center;
  position: relative; z-index: 2;
  animation: fadeUp 1s ease 2.2s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.8vw, 66px);
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--white-eagle);
  text-align: center;
  line-height: 1.08;
  margin-bottom: 18px;
  position: relative; z-index: 2;
  animation: fadeUp 1s ease 2.4s both;
}

.hero-sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(15px, 2.2vw, 20px);
  color: var(--canyon-sand);
  text-align: center;
  line-height: 1.65;
  max-width: 520px;
  opacity: 0.80;
  position: relative; z-index: 2;
  animation: fadeUp 1s ease 2.6s both;
}

.hero-divider {
  width: 1px;
  height: 62px;
  background: linear-gradient(to bottom, var(--mesa-dusk), transparent);
  margin: 40px auto 0;
  position: relative; z-index: 2;
  animation: fadeIn 1.2s ease 3.2s both;
}

/* ── SECTION WRAPPER ────────────────────────────── */

.section {
  width: 100%;
  border-bottom: 1px solid rgba(212, 184, 150, 0.06);
}

.section:last-of-type { border-bottom: none; }

.inner {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: var(--section-v) var(--section-h);
}

.bg-earth   { background: var(--deep-earth); }
.bg-night   { background: var(--night-sky); }
.bg-canyon  { background: var(--canyon-night); }
.bg-deep    { background: #110802; }
.bg-void    { background: #060206; }
.bg-removal { background: #0C0408; }

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

.site-footer {
  background: #040204;
  text-align: center;
  padding: 72px 40px 56px;
  border-top: 1px solid rgba(200, 144, 10, 0.08);
}

.footer-seal-ring {
  width: 56px;
  height: 56px;
  margin: 0 auto 36px;
  opacity: 0.35;
}

.footer-nation {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--canyon-sand);
  margin-bottom: 12px;
  opacity: 0.65;
}

.footer-communities {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--canyon-sand);
  margin-bottom: 20px;
  opacity: 0.40;
  line-height: 2;
}

.footer-languages {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  color: var(--sunray-light);
  opacity: 0.45;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.footer-words {
  font-family: var(--font-label);
  font-size: 8.5px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--canyon-sand);
  opacity: 0.20;
  margin-bottom: 36px;
}

.footer-record {
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.40em;
  text-transform: uppercase;
  color: var(--sunray-gold);
  opacity: 0.22;
}

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

@media (max-width: 860px) {
  :root { --section-v: 80px; --section-h: 28px; }
}

@media (max-width: 600px) {
  :root { --section-v: 64px; --section-h: 22px; }
  .hero { padding: 100px 28px 60px; }
  .hero-title { letter-spacing: 0.04em; }
  .site-nav { padding: 16px 22px; }

  /* Show hamburger, convert nav-links to dropdown */
  .nav-menu-btn { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 12px 0 24px;
    background: rgba(6, 2, 6, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 144, 10, 0.10);

    /* Hidden state */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
      opacity    0.26s ease,
      transform  0.26s ease,
      visibility 0s    ease 0.26s;
  }

  .nav-links.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      opacity    0.26s ease,
      transform  0.26s ease,
      visibility 0s    ease 0s;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(212, 184, 150, 0.04);
  }
  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 11px;
    letter-spacing: 0.34em;
    opacity: 0.65;
  }

  .nav-links a.nav-active { opacity: 1; }
}
