/*
Theme Name: BNG Studio
Theme URI: https://bng.studio
Author: BNG
Description: Custom full-screen, horizontally-scrolling theme for BNG Studio. Built with Tailwind CSS.
Version: 1.0.0
Text Domain: bng-studio
*/

/* ==========================================================================
   Design tokens (kept in sync with tailwind.config in functions.php)
   ========================================================================== */
:root {
  --coral: #E46457;
  --teal: #4AAAB7;
  --gold: #F7B32C;
  --paper: #FBF3E7;
  --paper-2: #F4E8D8;
  --ink: #2E2A26;
  --ink-soft: #6B6259;
}

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--ink);
}

/* Dotted background texture used across full-screen sections */
.bng-dotted-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(46,42,38,0.05) 1px, transparent 0);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   Full-screen horizontal rail (Home template only)
   ========================================================================== */
body.bng-rail-active {
  overflow: hidden;
  height: 100vh;
}

.bng-rail {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bng-rail::-webkit-scrollbar { display: none; }

.bng-panel {
  flex: 0 0 100vw;
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* ==========================================================================
   Hamburger menu
   ========================================================================== */
.bng-hamburger { width: 28px; height: 20px; position: relative; }
.bng-hamburger span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
}
.bng-hamburger span:nth-child(1) { top: 0; }
.bng-hamburger span:nth-child(2) { top: 9px; }
.bng-hamburger span:nth-child(3) { top: 18px; }

.bng-hamburger.is-open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.bng-hamburger.is-open span:nth-child(2) { opacity: 0; }
.bng-hamburger.is-open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

#bng-menu-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.77,0,.18,1);
}
#bng-menu-overlay.is-open { transform: translateY(0); }

.bng-menu-link {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
  transition: color .2s ease;
}
.bng-menu-link:hover,
.bng-menu-link.is-active { color: var(--coral); }

/* ==========================================================================
   Page-name progress indicator (replaces dots)
   ========================================================================== */
.bng-progress-item {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(46,42,38,0.35);
  cursor: pointer;
  transition: color .3s ease;
  writing-mode: vertical-rl;
}
.bng-progress-item.is-active { color: var(--coral); }

@media (max-width: 820px) {
  .bng-progress { display: none; }
}
