/* ============================================================
   ANIMATIONS — The Indigo Road Hospitality Group
   ============================================================ */

/* ── Initial hidden states — GSAP animates these in ── */
.reveal-up   { opacity: 0; transform: translateY(40px); }
.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-fade { opacity: 0; }

/* ── Award row shimmer — triggered via .award-revealed class ── */
@keyframes awardShine {
  from { left: -40%; }
  to   { left: 115%; }
}

.hero-title-line1,
.hero-title-line2 {
  display: block;
  overflow: hidden;
}

/* ── Gate ── */
.gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--color-bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.gate-inner {
  text-align: center;
  user-select: none;
}

.gate-eyebrow {
  font-family: var(--font-body);
  font-size: var(--size-eyebrow);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(16px);
}

.gate-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--color-text-primary);
  opacity: 0;
  transform: translateY(36px);
}

.gate-headline .gate-accent { color: var(--color-accent); }

.gate-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 1.25rem;
  opacity: 0;
  transform: translateY(16px);
}

body:not(.gate-done) {
  overflow: hidden;
}

/* ── Hero slide transition ── */
.hero-slide {
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Ken Burns parallax — no will-change to avoid scroll compositing jank ── */
.hero-bg {
  /* will-change managed by GSAP only when animating */
}

/* ── Stat counter flash ── */
@keyframes statFlash {
  0%   { color: var(--color-accent); }
  100% { color: var(--color-bg-primary); }
}

.stat-number.counted {
  animation: statFlash 0.4s ease forwards;
}

/* ── Section entrance animations ── */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Tab panel entrance ── */
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Award card stagger ── */
.award-card {
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease, opacity 0.5s ease;
}

/* ── Button shimmer (CTA focus state) ── */
@keyframes btnPulse {
  0%   { box-shadow: 0 0 0 0 rgba(246, 136, 72, 0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(246, 136, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(246, 136, 72, 0); }
}

.btn-nav-cta:focus-visible {
  animation: btnPulse 1.2s ease;
  outline: none;
}

/* ── Smooth underline for nav links ── */
.nav-link::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out-expo);
}

.nav-link:hover::after { transform: scaleX(1); }

/* ── Image hover reveal ── */
.philosophy-img-wrap,
.community-img-wrap,
.about-img-wrap {
  overflow: hidden;
}

/* ── Overlay fade on hero scroll — no will-change to avoid scroll jank ── */
.hero-overlay {
  /* will-change managed by GSAP only when animating */
}
