/* ── Google Font import (Cormorant + Inter) ── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Cormorant+Garamond:wght@300;400;600&family=Jost:wght@400;500&family=Inter:wght@300;400;500&display=swap');

/* ══════════════════════════════════════════
   RESET / BODY OVERRIDES (fullscreen mode)
══════════════════════════════════════════ */
.bw-fullscreen-body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* ══════════════════════════════════════════
   ROOT SECTION — fixed overlay, covers all theme chrome
══════════════════════════════════════════ */

/* Hide theme header, footer, sidebar, admin bar when waitlist is on the page */
body:has(#become-waitlist-section) #wpadminbar,
body:has(#become-waitlist-section) header,
body:has(#become-waitlist-section) .site-header,
body:has(#become-waitlist-section) #masthead,
body:has(#become-waitlist-section) .navbar,
body:has(#become-waitlist-section) nav,
body:has(#become-waitlist-section) footer,
body:has(#become-waitlist-section) .site-footer,
body:has(#become-waitlist-section) #colophon,
body:has(#become-waitlist-section) .sidebar,
body:has(#become-waitlist-section) #secondary {
  display: none !important;
}

body:has(#become-waitlist-section) {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.bw-root {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background-color: #0a0a0a;
  overflow: hidden;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  box-sizing: border-box;
  z-index: 99999 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Marble background image ── */
.bw-marble {
  position: absolute;
  inset: 0;
  background-image: url('../assets/marble-bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* ── Subtle dark overlay so text stays legible ── */
.bw-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.38);
}

/* ══════════════════════════════════════════
   CENTER CONTENT
══════════════════════════════════════════ */
.bw-center {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 24px 24px;
  max-width: 580px;
  width: 100%;
}

/* ══════════════════════════════════════════
   LOGO
══════════════════════════════════════════ */
.bw-logo {
  margin-bottom: 4px;
  animation: bw-drop-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bw-logo-img {
  width: 510px;
  height: 510px;
  object-fit: contain;
  filter: none;
}

/* ══════════════════════════════════════════
   BRAND BADGE
══════════════════════════════════════════ */
.bw-brand-badge {
  margin-bottom: 20px;
  animation: bw-fade-up 1s 0.3s cubic-bezier(0.22,1,0.36,1) both;
}

.bw-badge-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bw-badge-line {
  display: block;
  height: 1px;
  width: 54px;
  background: linear-gradient(
    to right,
    transparent,
    #c9a84c 40%,
    #f5d87a 60%,
    #c9a84c 80%,
    transparent
  );
}
.bw-badge-line--right {
  background: linear-gradient(
    to left,
    transparent,
    #c9a84c 40%,
    #f5d87a 60%,
    #c9a84c 80%,
    transparent
  );
}

.bw-badge-text {
  font-family: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 7px;
  color: #c9a84c;
  text-transform: uppercase;
  background: linear-gradient(135deg, #8a6000 0%, #f5d87a 40%, #c9a84c 60%, #8a6000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 9px 26px;
  border: 1px solid rgba(197,160,60,0.35);
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  background-color: rgba(197,160,60,0.06);
}

/* ══════════════════════════════════════════
   HEADLINE & SUBLINE
══════════════════════════════════════════ */
.bw-headline {
  font-family: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 0 0 16px;
  animation: bw-fade-up 1s 0.5s cubic-bezier(0.22,1,0.36,1) both;
}

.bw-subline {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 2px;
  color: rgba(197,160,60,0.75);
  text-transform: uppercase;
  margin: 0 0 44px;
  animation: bw-fade-up 1s 0.65s cubic-bezier(0.22,1,0.36,1) both;
}

/* ══════════════════════════════════════════
   FORM
══════════════════════════════════════════ */
.bw-form {
  width: 100%;
  margin-top: -60px;
  animation: bw-fade-up 1s 0.8s cubic-bezier(0.22,1,0.36,1) both;
}

.bw-field-wrap {
  display: flex;
  gap: 0;
  width: calc(100% - 32px);
  margin: 0 16px;
  border: 1px solid rgba(197,160,60,0.35);
  border-radius: 0;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255,255,255,0.03);
  transform: skewX(-30deg);
}

.bw-field-wrap:focus-within {
  border-color: rgba(197,160,60,0.75);
  box-shadow: 0 0 0 3px rgba(197,160,60,0.1), 0 0 20px rgba(197,160,60,0.15);
}

.bw-input {
  flex: 1;
  padding: 16px 24px;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #e8e0cc;
  letter-spacing: 0.5px;
  transform: skewX(30deg);
}

.bw-input::placeholder {
  color: rgba(200,180,130,0.35);
}

.bw-input:-webkit-autofill,
.bw-input:-webkit-autofill:hover,
.bw-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #e8e0cc;
  -webkit-box-shadow: 0 0 0 1000px #0f0e0a inset;
  transition: background-color 5000s ease-in-out 0s;
}

.bw-btn {
  position: relative;
  padding: 16px 36px;
  background: linear-gradient(135deg, #8a6000 0%, #c9a84c 35%, #f5d87a 50%, #c9a84c 65%, #8a6000 100%);
  background-size: 200% 200%;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #0a0a0a;
  white-space: nowrap;
  transition: background-position 0.4s ease;
  outline: none;
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bw-btn:hover {
  background-position: 100% 100%;
}

.bw-btn:active {
  filter: brightness(1.1);
}

.bw-btn-text,
.bw-btn-spinner {
  transform: skewX(30deg);
}

.bw-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Loading spinner */
.bw-btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.25);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: bw-spin 0.7s linear infinite;
}

.bw-btn.is-loading .bw-btn-text   { opacity: 0.5; }
.bw-btn.is-loading .bw-btn-spinner { display: block; }

/* ══════════════════════════════════════════
   PRIVACY NOTE
══════════════════════════════════════════ */
.bw-privacy {
  margin: 14px 0 0;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(197,160,60,0.35);
}

/* ══════════════════════════════════════════
   MESSAGES
══════════════════════════════════════════ */
.bw-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.5px;
  animation: bw-fade-up 0.5s ease both;
}

.bw-msg[hidden] { display: none; }

.bw-msg--success {
  border: 1px solid rgba(197,160,60,0.4);
  background: rgba(197,160,60,0.07);
  color: #c9a84c;
}

.bw-msg--success svg {
  width: 18px;
  height: 18px;
  stroke: #c9a84c;
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
}

.bw-msg--error {
  border: 1px solid rgba(200,60,60,0.4);
  background: rgba(200,60,60,0.07);
  color: #e08080;
}

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes bw-drop-in {
  from { opacity: 0; transform: translateY(-30px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0)     scale(1);    }
}

@keyframes bw-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes bw-spin-slow {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}

@keyframes bw-counter-spin {
  from { transform: rotate(0deg);    }
  to   { transform: rotate(-360deg); }
}

@keyframes bw-spin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 520px) {
  .bw-field-wrap {
    flex-direction: column;
  }

  .bw-btn {
    min-width: 100%;
    justify-content: center;
    border-top: 1px solid rgba(197,160,60,0.2);
  }

  .bw-logo-img {
    width: 350px;
    height: 350px;
  }

  .bw-badge-line { width: 32px; }
}
