/* =========================================
   HUMA GYM — INTRO ANIMATION & FOOTER CSS
   Gym Equipment Opening Transition
   New Footer Design
   ========================================= */

/* =========================================
   GYM INTRO / OPENING ANIMATION
   ========================================= */
.gym-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #05050a; /* Sleek luxury deep dark background */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

.intro-glow-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.14) 0%, transparent 60%),
              radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

#introParticles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.intro-scenes-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Scene wrappers */
.intro-scene-1-2,
.intro-scene-3,
.intro-scene-4 {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Scene 1-2 initially visible (Logo starts drawing) */
.gym-intro:not(.scene-3):not(.scene-4) .intro-scene-1-2 {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* SVG Line Art Logo */
.intro-svg-logo {
  filter: drop-shadow(0 0 15px rgba(249, 115, 22, 0.4));
  margin-bottom: 1.5rem;
  overflow: visible;
}

.draw-path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawStroke 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.circle-path {
  animation-delay: 0.1s;
}

.wave-path {
  animation-delay: 0.3s;
}

.fade-in-dot {
  opacity: 0;
  transform: scale(0);
  transform-origin: 50px 22px;
  animation: scaleFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards;
}

@keyframes drawStroke {
  to { stroke-dashoffset: 0; }
}

@keyframes scaleFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scene 2 Details (Text Fade Up) */
.intro-brand-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
  letter-spacing: -0.5px;
  text-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
}

.intro-brand-title span {
  background: linear-gradient(135deg, #F97316 30%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-brand-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}

/* Trigger Scene 2 text transitions when scene-2 active */
.gym-intro.scene-2 .intro-brand-title,
.gym-intro.scene-2 .intro-brand-subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* Scene 3: Statistics Grid */
.gym-intro.scene-3 .intro-scene-1-2 {
  opacity: 0;
  transform: translateY(-20px) scale(0.9);
}

.gym-intro.scene-3 .intro-scene-3 {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.intro-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 480px;
}

.intro-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1.5rem 1rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  background-image: linear-gradient(135deg, rgba(255,255,255,0.01) 0%, rgba(249,115,22,0.02) 100%);
}

.intro-stat-value-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.intro-stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 900;
  color: #F97316;
  background: linear-gradient(135deg, #F97316 30%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.intro-stat-suffix {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: #FBBF24;
  line-height: 1;
  margin-left: 2px;
}

.intro-stat-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
}

/* Scene 4: Tagline */
.gym-intro.scene-4 .intro-scene-3 {
  opacity: 0;
  transform: translateY(-20px) scale(0.9);
}

.gym-intro.scene-4 .intro-scene-4 {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.intro-tagline-container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.intro-tagline-main {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.intro-tagline-sub {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  color: #F97316;
  background: linear-gradient(135deg, #F97316 30%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.25;
  letter-spacing: -0.5px;
  text-shadow: 0 0 40px rgba(249, 115, 22, 0.25);
}

/* Exit Transition fade */
.gym-intro.exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gym-intro[hidden] {
  display: none !important;
}

/* =========================================
   GYM DECORATIVE ELEMENTS (Facilities Sec)
   ========================================= */
.facilities {
  position: relative;
  overflow: hidden;
}
.gym-deco-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.gym-deco {
  position: absolute;
  color: var(--primary);
  animation: decoFloat 8s ease-in-out infinite;
}
.deco-barbell {
  top: 5%;
  right: -2%;
  transform: rotate(20deg);
  animation-delay: 0s;
  color: var(--primary);
}
.deco-dumbbell {
  bottom: 8%;
  left: -1%;
  transform: rotate(-15deg);
  animation-delay: -3s;
  color: var(--accent);
}
.deco-kettlebell {
  top: 40%;
  right: 2%;
  animation-delay: -6s;
  color: var(--secondary);
}
@keyframes decoFloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); opacity: 0.4; }
  50%       { transform: translateY(-20px) rotate(calc(var(--rot, 0deg) + 5deg)); opacity: 0.6; }
}
.deco-barbell { --rot: 20deg; }
.deco-dumbbell { --rot: -15deg; }
.deco-kettlebell { --rot: 0deg; }

/* Make sure container within facilities is above deco */
.facilities .container {
  position: relative;
  z-index: 1;
}

/* =========================================
   HERO FALLBACK BACKGROUND
   ========================================= */
.hero-fallback-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #1A0A00 0%,
    #2D1200 25%,
    #1C1000 50%,
    #0D0800 75%,
    #0F0A00 100%
  );
  z-index: -1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0D0D0D;
}

/* =========================================
   REDESIGNED FOOTER
   ========================================= */
.footer {
  background: #07070F;
  position: relative;
}

/* Wave divider */
.footer-wave {
  width: 100%;
  line-height: 0;
  margin-bottom: -2px;
}
.footer-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* Footer main area */
.footer-main {
  background: #07070F;
  padding: 3.5rem 0 0;
}

/* ===== TOP ROW: Brand + Newsletter ===== */
.footer-top-row {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer-top-row {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Brand Column */
.footer-brand-new {}
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 1rem;
}
.footer-logo-icon { flex-shrink: 0; filter: drop-shadow(0 0 12px rgba(249,115,22,0.4)); }
.footer-logo-name {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: #FFFFFF;
  line-height: 1.1;
}
.footer-logo-tag {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
}

.footer-tagline-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.footer-tagline-text em {
  color: #F97316;
  font-style: normal;
  font-weight: 700;
}

.footer-rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-stars { font-size: 1rem; letter-spacing: 2px; }
.footer-rating-info strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  color: #FBBF24;
  font-size: 1rem;
  font-weight: 700;
}
.footer-rating-info span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* Newsletter Column */
.footer-newsletter {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(249,115,22,0.15);
  border-radius: 16px;
  padding: 1.75rem;
}
.footer-newsletter h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}
.footer-newsletter p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  border-radius: 50px;
  background: rgba(255,255,255,0.06);
  padding: 4px 4px 4px 16px;
  border: 1px solid rgba(255,255,255,0.1);
}
.newsletter-form input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #F97316, #FBBF24);
  color: #000;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(249,115,22,0.4);
}
.newsletter-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(249,115,22,0.55);
}

/* ===== DIVIDER ===== */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,0.3) 30%, rgba(251,191,36,0.3) 70%, transparent);
  margin: 0 0 2.5rem;
}

/* ===== NAV GRID ===== */
.footer-nav-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer-nav-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-nav-col {}
.footer-nav-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.footer-nav-icon { font-size: 1rem; }

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-nav-list a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, transform 0.2s;
}
.footer-nav-list a span {
  color: #F97316;
  font-size: 1.1rem;
  line-height: 1;
}
.footer-nav-list a:hover {
  color: #FBBF24;
  transform: translateX(4px);
}

/* Find Us column */
.footer-addr p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}
.footer-contact-link:hover { color: #F97316; }
.footer-contact-link.wa:hover { color: #25D366; }

/* Hours column */
.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.hours-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hours-day {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'Poppins', sans-serif;
}
.hours-time {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}
.hours-open-badge {
  display: inline-block;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-top: 0.5rem;
  width: fit-content;
  animation: pulse 2s ease-in-out infinite;
}

/* Social Icons */
.footer-socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.fsocial {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.25s ease;
}
.fsocial:hover {
  background: linear-gradient(135deg, #F97316, #FBBF24);
  color: #000;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(249,115,22,0.4);
}

/* ===== BOTTOM ROW ===== */
.footer-bottom-row {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.3);
  font-family: 'Inter', sans-serif;
}
.footer-copy strong { color: rgba(255,255,255,0.5); }
.footer-credit {
  font-size: 0.775rem;
  color: rgba(255,255,255,0.2);
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-badge {
  font-size: 0.75rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.2);
  color: rgba(255,255,255,0.55);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}
@media (max-width: 640px) {
  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}
