@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --accent: #E8943A;
  --accent-light: #F4B76A;
  --accent-dark: #C47A2C;
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-elevated: #1E1E1E;
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-muted: #666666;
  --border: #2A2A2A;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

.grain::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── Hero Animations ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(232, 148, 58, 0.3); }
  50% { box-shadow: 0 0 40px rgba(232, 148, 58, 0.5); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes lineExpand {
  from { width: 0; }
  to { width: 60px; }
}
@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}
@keyframes imageReveal {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.hero-title { animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero-subtitle { animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.hero-cta { animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }
.hero-badge { animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both; }

/* ─── Ken Burns Hero ─── */
.hero-ken-burns {
  animation: kenBurns 20s ease-in-out infinite alternate;
}

/* ─── Cinematic Image Filter ─── */
.img-cinematic {
  filter: contrast(1.05) saturate(0.85);
  transition: filter 0.6s ease;
}
.img-cinematic:hover {
  filter: contrast(1.1) saturate(1);
}

/* ─── Image Reveal on Scroll ─── */
.img-reveal {
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}
.img-reveal.active {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

/* ─── Image Shine Effect ─── */
.img-shine {
  position: relative;
  overflow: hidden;
}
.img-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.04) 45%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 55%, transparent 60%);
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

/* ─── Parallax Scroll ─── */
.parallax-container {
  overflow: hidden;
}
.parallax-img {
  will-change: transform;
  transition: transform 0.1s linear;
}
.hero-scroll { animation: float 2.5s ease-in-out infinite 1.2s; }
.anim-line { animation: lineExpand 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }

/* ─── Navbar ─── */
.navbar {
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled {
  background-color: rgba(10, 10, 10, 0.95) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(232, 148, 58, 0.08);
}

/* ─── Cards ─── */
.card-hover {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px -12px rgba(232, 148, 58, 0.12);
}

.img-zoom { overflow: hidden; }
.img-zoom img, .img-zoom .img-placeholder {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-zoom:hover img, .img-zoom:hover .img-placeholder {
  transform: scale(1.06);
}

/* ─── Buttons ─── */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.6s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 12px 35px rgba(232, 148, 58, 0.3); }
.btn-primary:active { transform: scale(0.96); }

.btn-outline {
  position: relative;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.03);
}

/* ─── Section Divider ─── */
.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* ─── Mobile Menu ─── */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open { transform: translateX(0); }

/* ─── Pricing Highlight ─── */
.pricing-highlight { position: relative; }
.pricing-highlight::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ─── WhatsApp Float ─── */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 45;
  animation: pulseGlow 2.5s infinite;
  transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }
@media (min-width: 1024px) {
  .whatsapp-float { bottom: 28px; }
}

/* ─── Text Gradient ─── */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-light), var(--accent), var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Counter ─── */
.counter { font-variant-numeric: tabular-nums; }

/* ─── Horizontal Scroll ─── */
.horizontal-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.horizontal-scroll::-webkit-scrollbar { display: none; }

/* ─── Focus ─── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── Forms ─── */
input, select, textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(232, 148, 58, 0.08);
}

/* ─── Image Placeholder ─── */
.img-placeholder {
  background: linear-gradient(135deg, #1A1A1A 0%, #222222 50%, #1A1A1A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Stat Counter Line ─── */
.stat-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ─── Nav active link ─── */
.nav-active { color: var(--accent) !important; }

/* ─── Responsive Hero Text ─── */
@media (max-width: 768px) {
  .hero-title-text { font-size: 3rem !important; line-height: 1 !important; }
}
@media (max-width: 480px) {
  .hero-title-text { font-size: 2.25rem !important; line-height: 1 !important; }
}

/* ─── Page Transition ─── */
.page-enter { animation: fadeIn 0.4s ease both; }

/* ─── Trainer Card Overlay ─── */
.trainer-overlay {
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.4) 50%, transparent 100%);
}

/* ─── Before/After Card ─── */
.ba-card .ba-label {
  transition: opacity 0.3s ease;
}
.ba-card:hover .ba-label { opacity: 1; }

/* ─── Membership Status Badge ─── */
.badge-active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
}
.badge-expired {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}
