/*
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: #e16052;
  --teal: #43a6b4;
  --gold: #fcb30e;
  --paper: #fbf3e7;
  --paper-2: #f4e8d8;
  --ink: #6b6259;
  --ink-soft: #6b6259;
  --white-one: #fff;
}

html,
body {
  height: 100%;
  font-family: "Inter", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
h1,
h2,
h4,
h5,
h6 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

/* 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: 0;
}
/* ==========================================================================
   header
   ========================================================================== */

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ==========================================================================
   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;
}

/* ==========================================================================
   effect motions
   ========================================================================== */

@keyframes glow-left {
    0%, 100% {
        left: 38vw;
    }
    50% {
        left: 20vw;
    }
}

@keyframes glow-right {
    0%, 100% {
        left: 8vw;
    }
    50% {
        left: 54vw;
    }
}
@keyframes glow-size {
    0%, 100% {
        width: 520px;
        height: 520px;
    }
    50% {
        width: 720px;
        height: 720px;
    }
}

.glow-size {
    animation: glow-size 16s ease-in-out infinite;
}

.glow-left {
    animation: glow-left 12s ease-in-out infinite;
}

.glow-right {
    animation: glow-right 14s ease-in-out infinite;
}


/* ==========================================================================
   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 0.3s ease,
    opacity 0.3s ease,
    top 0.3s ease;
}
.bng-hamburger span:nth-child(1) {
  top: 0;
}
.bng-hamburger span:nth-child(2) {
  top: 9px;
  width: 80%;
  right: 0;
  left: auto;
}
.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 0.5s cubic-bezier(0.77, 0, 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 0.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: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(46, 42, 38, 0.35);
  cursor: pointer;
  transition: color 0.3s ease;
  writing-mode: vertical-rl;
}
.bng-progress-item.is-active {
  color: var(--coral);
}

/* ==========================================================================
   contact form
   ========================================================================== */

#Ctn-Form {
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.32);
  -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.32);
  -moz-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.32);
  margin: 0 auto;
  background: rgb(255 255 255 / 30%);
}


#Ctn-Form input[type="text"],
#Ctn-Form input[type="email"],
#Ctn-Form select {
  height: 45px;
  margin: 7px 0;
  background: transparent;
  border: 2px solid #d9d9d9;
  width: 100%;
  padding: 2px 10px;
}

#Ctn-Form label {
  font-weight: 700;
}
.wpcf7-spinner{
  margin: 0 auto !important;
    position: absolute !important;
    bottom: 16px !important;
    left: 14px !important;
}

#Ctn-Form textarea {
  resize: none;
  background: transparent;
  border: 2px solid #d9d9d9;
  width: 100%;
  margin: 7px 0;
  padding: 10px;
  max-height: 170px;
}

#Ctn-Form .wpcf7-submit {
  cursor: pointer;
    padding: 11px;
    background-color: var(--coral);
    border-radius: 10px;
    width: 240px;
    display: block;
    margin: 0 auto;
    margin-top: 11px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 800;
    transition: color 0.5s ease;
}
#Ctn-Form .wpcf7-submit:hover {
  background-color: var(--teal);
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.32);
  -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.32);
  -moz-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.32);
}
#Ctn-Form .wpcf7-response-output {
  border: 0;
  width: auto;
  margin: 0;
  font-size: 15px;
}
#Ctn-Form .wpcf7-not-valid-tip {
  color: var(--coral);
    font-weight: normal;
    width: 200px;
    position: absolute;
    right: 0;
    bottom: -1px;
    padding: 4px;
    text-align: center;
    border-radius: 11px;
    background-color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) and (max-width: 991px) {
  #Ctn-Form {}
}


@media (max-width: 767px) {
  .bng-progress {
    display: none;
  }
  #Ctn-Form {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    background: none;
  }
  #Ctn-Form textarea {
    max-height: 120px;
  }
}
