/*
 * TQH Media — Design Tokens
 * ══════════════════════════════════════════════════════════════
 * Change these 5 core variables to retheme the ENTIRE site.
 * Every color and gradient across all pages derives from them.
 * ══════════════════════════════════════════════════════════════
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* ── 1. Background ── */
  --color-bg: #08090a;

  /* ── 2. Surface (cards, panels) ── */
  --color-surface: #111214;

  /* ── 3. Accent / highlight color ── */
  --color-accent: #ca3c25;

  /* ── 4. Primary text ── */
  --color-text: #f4f7f5;

  /* ── 5. Muted / body text ── */
  --color-text-muted: #9aa0a8;

  /* ════════════════════════════════════════════════════════════
     Derived tokens — computed automatically from the 5 above.
     You rarely need to change these directly.
     ════════════════════════════════════════════════════════════ */

  /* Backgrounds */
  --color-bg-2: #0d0e10;
  --color-surface-2: #18191c;
  --color-border: rgba(255, 255, 255, 0.07);
  --color-text-subtle: #6b7280;

  /* Accent shades */
  --color-accent-alt: #e8552d;
  /* gradient end for accent */
  --color-accent-glow: rgba(202, 60, 37, 0.14);

  /* Typography */
  --font-sans: 'Inter', sans-serif;

  /* Gradients */
  --grad-heading: linear-gradient(180deg, #ffffff 0%, #6b7280 100%);
  --grad-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-alt) 100%);
  --grad-surface: linear-gradient(180deg, var(--color-surface-2) 0%, var(--color-surface) 100%);
  --grad-glow-hero: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(202, 60, 37, 0.10) 0%, transparent 70%);
  --grad-glow-cta: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(202, 60, 37, 0.09) 0%, transparent 70%);

  /* Shadows */
  --shadow-accent: 0 8px 32px rgba(202, 60, 37, 0.30), 0 2px 8px rgba(202, 60, 37, 0.18);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.25);

  /* Legacy aliases — keeps old var(--accent) etc. working without changes */
  --bg: var(--color-bg);
  --bg-2: var(--color-bg-2);
  --surface: var(--color-surface);
  --border: var(--color-border);
  --accent: var(--color-accent);
  --white: var(--color-text);
  --gray: var(--color-text-subtle);
  --gray-light: var(--color-text-muted);
  /* Extra aliases used in older pages */
  --red: var(--color-accent);
  --badge-bg: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.15);
  --surface-hover: #161719;

  /* Social logo assets */
  --logo-yt: url('Images/YouTube_full-color_icon_(2024).svg.png');
  --logo-ig: url('Images/Instagram-Logo.png');
  --social-icon-size: 14px;
}

/* Global resets & base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Gradient text utility — apply to any heading */
.grad-text {
  background: var(--grad-heading);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════════
   Shared Site Header — controlled by /nav.js
   ══════════════════════════════════════════════ */
.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.035em;
}

.header-nav {
  display: flex;
  gap: 28px;
}

.header-nav a {
  font-size: 15px;
  color: var(--color-text-subtle);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color 0.15s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--color-text);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: var(--color-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: opacity 0.15s;
  box-shadow: var(--shadow-accent);
  flex-shrink: 0;
  white-space: nowrap;
}

.header-cta:hover {
  opacity: 0.85;
}

/* ══════════════════════════════════════════════
   Shared Site Footer
   ══════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px 64px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--color-text-subtle);
  line-height: 1.6;
  max-width: 220px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 14px;
  color: var(--color-text-subtle);
  text-decoration: none;
  transition: color 0.15s;
  width: fit-content;
}

.footer-col a:hover {
  color: var(--color-text);
}

/* ══════════════════════════════════════════════
   Mobile Menu — hamburger + fullscreen overlay
   ══════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop */
.mobile-menu-btn {
  display: none;
  position: relative;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
  flex-shrink: 0;
}

.menu-bar {
  display: block;
  position: absolute;
  left: 50%;
  width: 20px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1),
    opacity 0.25s ease;
}

.menu-bar:nth-child(1) {
  top: 13px;
}

.menu-bar:nth-child(2) {
  top: 21px;
}

/* X state */
.menu-open .menu-bar:nth-child(1) {
  top: 17px;
  transform: translateX(-50%) rotate(45deg);
}

.menu-open .menu-bar:nth-child(2) {
  top: 17px;
  transform: translateX(-50%) rotate(-45deg);
}

/* Overlay — fullscreen */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 150;
  background: rgba(8, 9, 10, 0.0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    -webkit-backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.mobile-overlay-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  height: 100%;
  padding: 100px 32px 60px;
  gap: 40px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-subtle);
  text-decoration: none;
  letter-spacing: -0.03em;
  line-height: 1.3;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: color 0.2s ease, opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible,
.mobile-nav-link.active {
  color: var(--color-text);
}

.mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--color-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-accent);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-cta:hover {
  opacity: 0.85;
}

/* Open state — animate in */
.menu-open .mobile-overlay {
  background: #08090a;
  pointer-events: auto;
}

.menu-open .mobile-nav-link,
.menu-open .mobile-cta {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .header-inner {
    padding: 18px 20px;
  }

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

  .mobile-overlay {
    display: block;
  }

  /* Header bar stays above overlay; button above both */
  .site-header {
    z-index: 200;
    position: sticky;
  }

  .mobile-menu-btn {
    z-index: 210;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px 48px;
  }
}