/* Canal Rodéo — components v2 */

/* BUTTONS — beefed up for CTA prominence */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-0);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1.15rem 2rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: transform var(--fast) var(--ease-out),
              background var(--fast) ease,
              border-color var(--fast) ease,
              color var(--fast) ease,
              box-shadow var(--medium) ease;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(180deg, #f0cf78 0%, #d4a63f 50%, #b88830 100%);
  color: #0a0807;
  border-color: #d4a63f;
  font-weight: 400;
  box-shadow:
    0 0 0 0 rgba(212,166,63,0),
    0 4px 16px -2px rgba(212,166,63,0.35),
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #f7e4a2 0%, #e4b860 50%, #c9973d 100%);
  border-color: #f0cf78;
  color: #0a0807;
  box-shadow:
    0 0 30px 0 rgba(212,166,63,0.5),
    0 8px 24px -2px rgba(212,166,63,0.45),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  transform: translateY(-1px);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.7s ease;
}
.btn-primary:hover::before {
  left: 100%;
}

.btn-large {
  padding: 1.35rem 2.4rem;
  font-size: var(--step-1);
  letter-spacing: 0.1em;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-surface);
  border-color: var(--color-brand);
  color: var(--color-text);
}

.btn-on-dark {
  background: rgba(242,232,213,0.08);
  backdrop-filter: blur(8px);
  border-color: rgba(242,232,213,0.24);
  color: var(--color-text);
}
.btn-on-dark:hover {
  background: rgba(242,232,213,0.18);
  color: var(--color-text);
  border-color: rgba(242,232,213,0.4);
}

.btn-block { width: 100%; }
.btn-sm { padding: 0.65rem 1.1rem; font-size: var(--step--1); }

/* FORMS */
.form-row { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.form-row label {
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.form-input {
  font-family: var(--font-body);
  font-size: var(--step-0);
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--fast) ease, box-shadow var(--fast) ease;
  width: 100%;
}
.form-input::placeholder { color: var(--color-text-muted); }
.form-input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand) 22%, transparent);
}

.form-help {
  font-size: var(--step--1);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}
.form-error { font-size: var(--step--1); color: var(--cr-oxblood); margin-top: 0.3rem; letter-spacing: 0.02em; }
.form-success { font-size: var(--step--1); color: var(--cr-sage); margin-top: 0.3rem; letter-spacing: 0.02em; }

/* CARDS — leaner, Teton Ridge blocks */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2rem;
}
.card h3 {
  font-size: var(--step-2);
  margin-bottom: 0.6em;
  letter-spacing: 0.04em;
}
.card p { color: var(--color-text-faint); text-transform: none; font-family: var(--font-body); font-weight: 300; line-height: 1.55; }

/* Feature row blocks — rich numbered sections */
.feature-row {
  display: grid;
  grid-template-columns: 60px 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--color-border);
  align-items: start;
}
.feature-row:last-child { border-bottom: 1px solid var(--color-border); }
.feature-num {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--color-brand);
  letter-spacing: 0.1em;
  line-height: 1;
  padding-top: 0.7em;
}
.feature-body h3 {
  font-size: var(--step-4);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.feature-body p {
  color: var(--color-text-faint);
  font-size: var(--step-1);
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 300;
  line-height: 1.5;
  max-width: 48ch;
}
.feature-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.feature-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transition: transform var(--slow) var(--ease-out);
}
.feature-row:hover .feature-media img { transform: scale(1.03); }
@media (max-width: 820px) {
  .feature-row { grid-template-columns: 1fr; gap: 1.2rem; }
  .feature-num { padding-top: 0; }
  .feature-media { order: -1; aspect-ratio: 16 / 9; }
}

/* FAQ — clean accordion */
.faq {
  border-top: 1px solid var(--color-border);
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 0;
}
.faq-item summary {
  list-style: none;
  padding: 1.75rem 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--color-brand);
  transition: transform var(--fast) ease;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { color: var(--color-brand); }
.faq-answer {
  padding: 0 0 1.75rem;
  color: var(--color-text-faint);
  font-size: var(--step-0);
  max-width: 72ch;
  line-height: 1.6;
}

/* STAT */
.stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}
.stat-label {
  font-family: var(--font-display);
  font-size: var(--step--2);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.stat-value {
  font-family: var(--font-display);
  font-size: var(--step-5);
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-top: 0.4rem;
  line-height: 1;
}
.stat-delta {
  font-size: var(--step--1);
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* TABLE */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.table th, .table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  font-size: var(--step--1);
  border-bottom: 1px solid var(--color-border);
}
.table th {
  background: var(--color-bg-alt);
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: var(--step--2);
}
.table td { color: var(--color-text-faint); }
.table tr:last-child td { border-bottom: 0; }

/* BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--step--2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
}
.badge-active { color: var(--cr-sage); border-color: color-mix(in srgb, var(--cr-sage) 40%, transparent); }
.badge-off    { color: var(--color-text-muted); }
.badge-warn   { color: var(--color-brand); border-color: color-mix(in srgb, var(--color-brand) 40%, transparent); }
.badge-live   { color: var(--cr-oxblood); border-color: color-mix(in srgb, var(--cr-oxblood) 50%, transparent); background: color-mix(in srgb, var(--cr-oxblood) 10%, transparent); }

/* LIVE DOT */
.live-dot {
  display: inline-block;
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--cr-oxblood);
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cr-oxblood) 50%, transparent); }
  100% { box-shadow: 0 0 0 8px rgba(192,57,43,0); }
}

/* PLAYER */
.player-wrap {
  position: relative;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--color-border);
}
.player-wrap video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--color-text);
  text-align: center;
  padding: 2rem;
  background: rgba(20,16,11,0.82);
  backdrop-filter: blur(4px);
}

/* WATCH LAYOUT + CHAT */
.watch-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}
@media (max-width: 960px) { .watch-layout { grid-template-columns: 1fr; } }

.chat {
  display: flex;
  flex-direction: column;
  height: min(680px, 78vh);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: sticky;
  top: 90px;
}
@media (max-width: 960px) {
  .chat { position: static; height: 500px; margin-top: 1rem; }
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--cr-ink-2);
}
.chat-header h3 {
  margin: 0;
  font-size: var(--step-1);
  letter-spacing: 0.1em;
}
.chat-online {
  font-family: var(--font-display);
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  scroll-behavior: smooth;
}
.chat-empty {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--step--1);
  margin: auto;
  padding: 2rem 0;
}
.chat-msg { display: flex; flex-direction: column; gap: 0.15rem; }
.chat-msg-head {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: var(--step--2);
}
.chat-msg-author {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand);
}
.chat-msg-time { color: var(--color-text-muted); font-size: var(--step--2); }
.chat-msg-content {
  color: var(--color-text-faint);
  font-size: var(--step-0);
  line-height: 1.45;
  word-break: break-word;
  hyphens: auto;
}
.chat-msg-mine .chat-msg-author { color: var(--cr-copper-2); }

.chat-form {
  display: flex;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem;
  border-top: 1px solid var(--color-border);
  background: var(--cr-ink-2);
}
.chat-input {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--step--1);
}
.chat-input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand) 22%, transparent);
}
.chat-input:disabled { opacity: 0.4; }
.chat-send {
  padding: 0 1rem;
  font-size: var(--step-0);
  line-height: 1;
  min-width: 48px;
}
.chat-status {
  margin: 0;
  padding: 0.45rem 1.2rem;
  font-family: var(--font-display);
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  background: var(--cr-ink-2);
}
.chat-status.chat-status-ok    { color: var(--cr-sage); }
.chat-status.chat-status-warn  { color: var(--color-brand); }
.chat-status.chat-status-error { color: var(--cr-oxblood); }

/* ================================================
   ANIMATION & INTERACTION LAYER
   ================================================ */

/* Word splitting for text reveal — hides letters until GSAP reveals them */
.cr-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  perspective: 600px;
}
.cr-word-inner {
  display: inline-block;
  transform-origin: top center;
  will-change: transform, opacity;
}

/* Nav state change on scroll */
.nav {
  transition: background var(--medium) var(--ease-out),
              backdrop-filter var(--medium) var(--ease-out),
              border-color var(--medium) var(--ease-out),
              padding var(--medium) var(--ease-out);
}
.nav.nav-scrolled {
  background: color-mix(in srgb, var(--cr-ink) 96%, transparent);
  border-bottom-color: var(--cr-ink-4);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.nav.nav-scrolled .nav-inner { padding-block: 0.55rem; }

/* Marquee strip — infinite horizontal scroll */
.strip {
  overflow: hidden;
  border-block: 1px solid var(--color-border);
  padding: 0;
  height: 72px;
  display: flex;
  align-items: center;
  background: var(--cr-ink-2);
}
.strip-track {
  display: inline-flex;
  gap: 3rem;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: var(--step-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  animation: strip-scroll 38s linear infinite;
  padding-inline: 1.5rem;
  flex-shrink: 0;
}
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes strip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.strip-dot { color: var(--color-brand); font-size: 0.7em; }

/* Button base — add subtle hover lift (on top of magnetic JS) */
.btn-primary { box-shadow: 0 0 0 rgba(201,151,61,0); transition: box-shadow var(--fast) ease, transform var(--fast) ease, background var(--fast) ease, color var(--fast) ease; }
.btn-primary:hover { box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--color-brand) 60%, transparent); }

/* Feature row — subtle interactive state */
.feature-row {
  transition: background var(--medium) var(--ease-out);
  position: relative;
}
.feature-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 1px;
  background: var(--color-brand);
  transition: width var(--slow) var(--ease-out);
}
.feature-row:hover::before { width: 100%; }
.feature-row:hover .feature-num { color: var(--cr-copper-2); }

/* Images — blur on hover out, crisp on in */
.feature-media, .split-media, .hero-bg {
  will-change: transform, clip-path;
}

/* Text on display elements — perspective for 3D rotateX reveal */
.hero-title, .section-title, .display-xl { perspective: 900px; }

/* Countdown — tick affordance */
.countdown-num { will-change: transform, opacity; }

/* FAQ smooth open (using details' native disclosure) */
.faq-item[open] .faq-answer {
  animation: faq-open 0.45s var(--ease-out);
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================
   TOP ANNOUNCEMENT BAR + FLOATING CTA
   ================================================ */

.announce-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(90deg, #8a6520 0%, #d4a63f 50%, #8a6520 100%);
  color: #0a0807;
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  overflow: hidden;
}
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.6rem var(--gutter);
  flex-wrap: wrap;
}
.announce-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c0392b;
  animation: ann-pulse 1.6s ease-out infinite;
  margin-right: 0.3rem;
  vertical-align: middle;
}
@keyframes ann-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(192,57,43,0.6); }
  100% { box-shadow: 0 0 0 8px rgba(192,57,43,0); }
}
.announce-text { font-weight: 400; }
.announce-text strong { font-weight: 400; letter-spacing: 0.12em; }
.announce-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  background: rgba(10,8,7,0.85);
  color: #f0cf78;
  border: 1px solid #0a0807;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  transition: background var(--fast), color var(--fast), transform var(--fast);
}
.announce-cta:hover {
  background: #0a0807;
  color: #f7e4a2;
  transform: translateX(2px);
  text-decoration: none;
}

/* Floating CTA (always visible) */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.35rem;
  background: linear-gradient(180deg, #f0cf78 0%, #d4a63f 50%, #b88830 100%);
  color: #0a0807;
  font-family: var(--font-display);
  font-size: var(--step-0);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  box-shadow:
    0 0 40px 0 rgba(212,166,63,0.45),
    0 12px 32px -4px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(80px);
  transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out), box-shadow var(--fast);
  animation: float-bob 3s ease-in-out infinite;
}
.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
}
.floating-cta:hover {
  box-shadow:
    0 0 60px 0 rgba(212,166,63,0.7),
    0 16px 36px -4px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.5);
  text-decoration: none;
  color: #0a0807;
}
.floating-cta .floating-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: #0a0807;
  color: #f0cf78;
  border-radius: 50%;
  font-size: 0.8em;
}
.floating-cta .floating-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c0392b;
  margin-right: 0.4rem;
  animation: ann-pulse 1.6s ease-out infinite;
}
@keyframes float-bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -4px; }
}
@media (max-width: 600px) {
  .floating-cta { bottom: 1rem; right: 1rem; padding: 0.8rem 1.1rem; font-size: var(--step--1); }
}

/* Sticky in-section CTA band (used multiple places) */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(90deg,
    rgba(212,166,63,0.08) 0%,
    rgba(212,166,63,0.04) 50%,
    rgba(212,166,63,0.08) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.cta-band-text {
  font-family: var(--font-display);
  font-size: var(--step-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1.1;
}

/* Reduced motion — kill animations */
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Subtle vignette on hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    transparent 40%,
    rgba(0,0,0,0.4) 100%);
}

/* Full-bleed action break section */
.section-fullbleed {
  position: relative;
  min-height: 70svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(4rem, 10vw, 8rem);
}
.fullbleed-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.fullbleed-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.1);
}
.fullbleed-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0.85) 0%,
      rgba(0,0,0,0.45) 55%,
      rgba(0,0,0,0.3) 100%);
}
.fullbleed-inner {
  max-width: 820px;
  position: relative;
  z-index: 2;
}
.fullbleed-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 1.2rem;
}
.fullbleed-kicker::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--color-brand);
}
.fullbleed-title {
  font-size: var(--step-6);
  color: var(--color-text);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin-bottom: 0.6em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}
.fullbleed-lead {
  font-size: var(--step-1);
  color: var(--color-text-faint);
  max-width: 52ch;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
}
