/* ============================================
   KINGDOM WORKSHOP — Shared Base Styles
   ============================================ */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-accent: #0d1f22;
  --text-primary: #e8e4de;
  --text-secondary: #8a8680;
  --accent: #27b6c4;
  --accent-warm: #c49a6c;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(39, 182, 196, 0.25);
  color: var(--text-primary);
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3vw;
  mix-blend-mode: difference;
}

.site-header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.header-links {
  display: flex;
  gap: 2rem;
}

.header-links a {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.header-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

.header-links a:hover::after {
  width: 100%;
}

/* ============================================
   SECTION LABELS / HEADINGS / BODY
   ============================================ */

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.section-body {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 500px;
}

/* ============================================
   CTA BUTTON
   ============================================ */

.cta-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 2.5rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--accent);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background: var(--accent-warm);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(39, 182, 196, 0.25);
}

/* ============================================
   HEADER MOBILE BREAKPOINT
   ============================================ */

/* Hamburger button — hidden on desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  width: 44px;
  height: 44px;
  position: relative;
  padding: 0;
}

.menu-toggle::before,
.menu-toggle::after,
.menu-toggle i {
  content: '';
  display: block;
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle::before { top: 14px; }
.menu-toggle i { top: 21px; }
.menu-toggle::after { top: 28px; }

.menu-toggle.is-open::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open i {
  opacity: 0;
}

.menu-toggle.is-open::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile dropdown — appended to body, sits below header */
.mobile-nav {
  display: none;
}

.mobile-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

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

  .site-header {
    padding: 1rem 4vw;
    mix-blend-mode: normal;
    z-index: 200;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50vh;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 5rem 8vw 2rem;
    justify-content: center;
    gap: 0.25rem;
    z-index: 199;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
  }

  .mobile-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ============================================
   GRAIN OVERLAY
   ============================================ */

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