/* ============================================
   NATE FRIEDMAN SHOW — Shared Styles
   ============================================ */

:root {
  --black: #080808;
  --off-black: #0e0e0e;
  --dark: #141414;
  --panel: #111111;
  --border: rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.15);
  --red: #c0392b;
  --red-dim: #7a1f17;
  --red-glow: rgba(192,57,43,0.15);
  --amber: #d4a017;
  --amber-dim: rgba(212,160,23,0.12);
  --white: #f0ede8;
  --muted: #555;
  --mono: 'IBM Plex Mono', monospace;
  --display: 'Bebas Neue', sans-serif;
  --serif: 'DM Serif Display', serif;
  --body: 'Instrument Sans', sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  overflow-x: hidden;
  cursor: default;
  min-height: 100vh;
}

/* NOISE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ============================================
   NAV — with mobile hamburger
   ============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.nav-logo {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--white);
  text-decoration: none;
  z-index: 101;
}

.nav-logo span { color: var(--red); }

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

.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--red); border-bottom: 1px solid var(--red); padding-bottom: 2px; }

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--red);
  color: var(--red);
  text-decoration: none;
  transition: all 0.2s;
  z-index: 101;
}

.nav-cta:hover {
  background: var(--red);
  color: var(--white);
}

/* HAMBURGER BUTTON */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.98);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--display);
  font-size: 36px;
  letter-spacing: 4px;
  color: var(--white);
  text-decoration: none;
  padding: 16px 0;
  transition: color 0.2s;
  opacity: 0;
  transform: translateY(20px);
}

.mobile-menu.open a {
  animation: mobileMenuIn 0.4s ease forwards;
}

.mobile-menu.open a:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.open a:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.open a:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.open a:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu.open a:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu.open a:nth-child(6) { animation-delay: 0.3s; }
.mobile-menu.open a:nth-child(7) { animation-delay: 0.35s; }

.mobile-menu a:hover { color: var(--red); }
.mobile-menu a.active { color: var(--red); }

.mobile-menu .mobile-cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--red);
  color: var(--red);
  margin-top: 24px;
}

@keyframes mobileMenuIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   COMMON SECTION STYLES
   ============================================ */
.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--red-dim);
}

.page-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeUp 0.6s ease 0.1s both;
}

.page-eyebrow::before { content: '//'; opacity: 0.5; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 36px;
  background: var(--red);
  color: white;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #a93226;
  transform: translateY(-1px);
}

.btn-secondary {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 36px;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  border: 1px solid var(--border-bright);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--white);
}

/* ============================================
   CTA SECTION (shared across pages)
   ============================================ */
.cta-section {
  background: var(--dark);
  text-align: center;
  padding: 100px 48px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 88px);
  letter-spacing: 2px;
  color: var(--white);
  line-height: 0.95;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.cta-title span { color: var(--red); }

.cta-body {
  max-width: 420px;
  margin: 0 auto 40px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(240,237,232,0.4);
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--black);
  padding: 32px 48px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 3px;
  color: rgba(240,237,232,0.2);
}

.footer-logo span { color: var(--red-dim); }

.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.footer-legal {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--white); }

.footer-legal span { opacity: 0.3; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 900px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none !important; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  footer {
    padding: 24px 20px 16px;
    text-align: center;
  }

  .footer-main {
    flex-direction: column;
    gap: 12px;
  }

  .cta-section { padding: 80px 24px; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
