/* === GymThoy Landing — site.css === */

/* --- Custom Properties --- */
:root {
  /* Backgrounds — blue-slate family */
  --bg-900: #0e1117;
  --bg-800: #141820;
  --bg-700: #1e2433;
  --bg-600: #252d3d;
  /* Brand (logo-locked) */
  --brand-navy: #384051;
  --brand-gold: #a37b40;
  /* Gold accent scale */
  --gold-400: #c49a55;
  --gold-300: #d4ae72;
  --gold-600: #8a6535;
  --gold-glow: rgba(196,154,85,0.35);
  /* Text */
  --text-100: #f0f2f5;
  --text-200: #b8bfcc;
  --text-300: #7a8496;
  /* Structural */
  --border: #2e3848;
  --white: #ffffff;
  /* Fonts & layout */
  --font-head: 'Barlow Condensed', 'Oswald', 'Impact', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-100);
  background: var(--bg-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* --- Container --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* --- NAV --- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
#nav.scrolled {
  background: rgba(20,24,32,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 0;
  box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center;
}
.nav-logo img {
  height: 44px; width: auto; transition: opacity 0.3s;
  filter: drop-shadow(0 0 10px rgba(196,154,85,0.6));
}
.nav-logo:hover img { opacity: 0.8; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--text-200);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--gold-400); transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-100); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  padding: 8px 20px !important;
  border-radius: 6px;
  color: var(--bg-900) !important;
  font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { opacity: 0.9; }

/* Burger */
.burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 30px; height: 24px; position: relative; z-index: 110;
}
.burger span {
  display: block; width: 100%; height: 2px; background: var(--text-100);
  position: absolute; left: 0; transition: all 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 0; }
.burger.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* --- HERO --- */
#hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#hero-bg { position: absolute; inset: 0; z-index: 0; }
#hero-particles { position: absolute; inset: 0; z-index: 5; }
.hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 140px; z-index: 6;
  background: linear-gradient(to bottom, transparent, var(--bg-900));
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 10;
  text-align: center; pointer-events: none;
}
.hero-content::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(196,154,85,0.14) 0%, rgba(196,154,85,0.06) 40%, transparent 70%);
  filter: blur(30px);
  pointer-events: none; z-index: -1;
}
.hero-content > * { pointer-events: auto; }
.hero-logo {
  width: clamp(220px, 30vw, 400px); margin-bottom: 24px;
  filter: drop-shadow(0 0 50px rgba(196,154,85,0.5)) drop-shadow(0 0 100px rgba(196,154,85,0.25));
}
.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 500; letter-spacing: 5px; text-transform: uppercase;
  color: var(--text-200);
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 10; color: var(--gold-400); opacity: 0.6;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 14px 32px; border-radius: 6px;
  transition: all 0.3s var(--ease); cursor: pointer;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  color: var(--bg-900);
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--gold-glow); }
.btn-gold:active { transform: translateY(0); }
.btn-ghost {
  border: 1.5px solid var(--border);
  color: var(--text-100);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-400); }
.btn-ghost-sm {
  border: 1.5px solid var(--border);
  color: var(--text-100); background: transparent;
  padding: 10px 24px; font-size: 13px;
}
.btn-ghost-sm:hover { border-color: var(--gold-400); color: var(--gold-400); }
.btn-lg { padding: 18px 48px; font-size: 16px; }

/* --- SECTIONS --- */
.section {
  padding: 100px 0;
  background: var(--bg-900);
  position: relative;
}
.section-alt { background: var(--bg-800); }
.section-dark { background: var(--bg-900); }

.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: 16px;
}
.section h2, h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 56px); font-weight: 700;
  line-height: 1.1; margin-bottom: 32px;
  color: var(--text-100);
}

/* --- ABOUT --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px; align-items: center;
}
.about-text p {
  font-size: 16px; line-height: 1.75;
  color: var(--text-200);
  margin-bottom: 16px;
}
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 56px); font-weight: 700;
  color: var(--gold-400);
  display: inline;
}
.stat-plus {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  color: var(--gold-400);
}
.stat-label {
  display: block;
  font-size: 14px; color: var(--text-300);
  margin-top: 4px; text-transform: uppercase; letter-spacing: 1px;
}

/* --- Divider --- */
.section::after {
  content: ''; display: block;
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-600), transparent);
}
.section-dark::after { display: none; }

/* --- SERVICE CARDS --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 16px;
}
.card {
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: all 0.35s var(--ease);
}
.card:hover {
  border-color: var(--gold-400);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.card-icon {
  margin-bottom: 16px;
  color: var(--gold-400);
  line-height: 1;
}
.card-icon svg {
  width: 36px; height: 36px;
}
.card h3 {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 600;
  margin-bottom: 10px;
}
.card p {
  font-size: 15px; line-height: 1.6;
  color: var(--text-200);
}

/* --- GALLERY --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 16px;
}
.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.4s;
}
.gallery-item { cursor: zoom-in; }
.gallery-item:hover { border-color: var(--gold-400); }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: brightness(0.88);
}
.gallery-item:hover img { transform: scale(1.05); filter: brightness(1); }
.gallery-caption {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--font-head);
  font-size: 15px; font-weight: 600;
  color: #fff; letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  pointer-events: none;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(5, 8, 15, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-image {
  max-width: 92vw; max-height: 88vh;
  border-radius: 10px;
  border: 1px solid var(--gold-600);
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
  transform: scale(0.96);
  transition: transform 0.3s ease;
}
.lightbox.open .lb-image { transform: scale(1); }
.lb-close, .lb-nav {
  position: absolute;
  background: rgba(20, 24, 32, 0.7);
  color: #fff;
  border: 1px solid rgba(196, 154, 85, 0.4);
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 22px; font-family: var(--font-head); font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.lb-close:hover, .lb-nav:hover {
  background: var(--gold-600); border-color: var(--gold-400);
  transform: scale(1.08);
}
.lb-close { top: 24px; right: 24px; font-size: 28px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.lb-next:hover { transform: translateY(-50%) scale(1.08); }
@media (max-width: 720px) {
  .lb-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .lb-prev { left: 8px; width: 40px; height: 40px; }
  .lb-next { right: 8px; width: 40px; height: 40px; }
}
.gallery-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bg-700), var(--bg-900));
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-head); font-size: 18px;
  color: var(--text-300);
}
.gallery-placeholder small { font-family: var(--font-body); font-size: 13px; opacity: 0.5; }
.gallery-note {
  text-align: center; margin-top: 20px;
  font-size: 13px; color: var(--text-300);
}

/* --- TRAINERS --- */
.trainers-row {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  margin-top: 16px;
}
.trainer {
  text-align: center; width: 240px;
}
.trainer-photo {
  width: 160px; height: 160px; border-radius: 50%;
  margin: 0 auto 20px;
  border: 2px solid var(--gold-600);
  background: linear-gradient(135deg, var(--bg-700), var(--bg-900));
  transition: transform 0.3s, box-shadow 0.3s;
}
.trainer:hover .trainer-photo {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--gold-glow);
}
.trainer h3 {
  font-family: var(--font-head); font-size: 20px; font-weight: 600;
  margin-bottom: 4px;
}
.trainer-role {
  display: block;
  font-size: 13px; font-weight: 500;
  color: var(--gold-400); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 10px;
}
.trainer p {
  font-size: 14px; line-height: 1.5;
  color: var(--text-300);
}

/* --- PRICING --- */
.pricing-row {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin-top: 16px; align-items: stretch;
}
.price-card {
  flex: 0 1 340px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  background: var(--bg-700);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
  position: relative;
}
.price-card:hover { transform: translateY(-4px); }
.price-featured {
  border-color: var(--gold-400);
  transform: scale(1.04);
  box-shadow: 0 0 50px rgba(196,154,85,0.15);
}
.price-featured:hover { transform: scale(1.04) translateY(-4px); }
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  color: var(--bg-900); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; padding: 6px 20px;
  border-radius: 20px;
}
.price-card h3 {
  font-family: var(--font-head); font-size: 24px; font-weight: 600;
  margin-bottom: 16px; color: var(--text-100);
}
.price { margin-bottom: 24px; }
.price-amount {
  font-family: var(--font-head); font-size: 48px; font-weight: 700;
}
.price-featured .price-amount { color: var(--gold-400); }
.price-period { font-size: 16px; color: var(--text-300); margin-left: 4px; }
.price-card ul { flex: 1; margin-bottom: 28px; }
.price-card li {
  padding: 10px 0;
  font-size: 15px; color: var(--text-200);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.price-card li.muted { color: rgba(255,255,255,0.15); }

/* --- CONTACT --- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
.contact-details { margin-top: 8px; }
.contact-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
  font-size: 15px; color: var(--text-200);
}
.contact-row svg { color: var(--gold-400); flex-shrink: 0; }
a.contact-link {
  text-decoration: none;
  transition: color 0.2s;
}
a.contact-link:hover { color: var(--gold-400); }
a.contact-link:hover svg { color: var(--gold-300, var(--gold-400)); }
.socials { display: flex; gap: 16px; margin-top: 24px; }
.social-link {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%; color: var(--text-200);
  transition: all 0.3s;
}
.social-link:hover { border-color: var(--gold-400); color: var(--gold-400); }
.map-placeholder {
  width: 100%; min-height: 320px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-700);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  color: var(--text-300); text-align: center; font-size: 15px;
}
.map-placeholder small { opacity: 0.5; font-size: 13px; }
.map-frame {
  width: 100%; min-height: 360px; height: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
}

/* CTA strip */
.cta-strip {
  margin-top: 80px; padding: 48px 0;
  text-align: center;
  border-top: 1px solid var(--gold-600);
}
.cta-strip h3 {
  font-family: var(--font-head); font-size: clamp(24px, 4vw, 40px);
  font-weight: 700; margin-bottom: 24px;
}

/* --- FOOTER --- */
footer {
  background: var(--bg-900);
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { opacity: 0.5; height: 32px; width: auto; }
footer span { font-size: 13px; color: var(--text-300); }

/* --- HERO ENTRANCE ANIMATION --- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
#hero .hero-logo { animation: heroFadeUp 1s var(--ease) 0.3s both; }
#hero .hero-tagline { animation: heroFadeUp 1s var(--ease) 0.6s both; }
#hero .hero-actions { animation: heroFadeUp 1s var(--ease) 0.9s both; }

/* --- REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Hero children use keyframes, not IntersectionObserver */
#hero .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* --- LANG SWITCHER --- */
.lang-switcher {
  position: relative;
  margin-left: 20px;
  z-index: 110;
}
.lang-btn {
  display: flex; align-items: center; gap: 4px;
  background: none; border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 10px;
  color: var(--text-200); font-family: var(--font-body);
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  cursor: pointer; transition: all 0.2s var(--ease);
}
.lang-btn:hover { border-color: var(--gold-400); color: var(--text-100); }
.lang-btn svg { transition: transform 0.2s var(--ease); }
.lang-switcher.open .lang-btn { border-color: var(--gold-400); }
.lang-switcher.open .lang-btn svg { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 4px;
  min-width: 160px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s var(--ease), visibility 0.2s, transform 0.2s var(--ease);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.lang-switcher.open .lang-dropdown {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.lang-option {
  display: flex; align-items: center; gap: 10px;
  width: 100%; background: none; border: none;
  padding: 10px 12px; border-radius: 6px;
  color: var(--text-200); font-family: var(--font-body);
  font-size: 14px; cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.lang-option:hover { background: var(--bg-600); color: var(--text-100); }
.lang-option.active { color: var(--gold-400); }
.lang-flag {
  width: 20px; height: 15px; flex-shrink: 0;
  border-radius: 2px; object-fit: cover;
}
.lang-code {
  font-weight: 700; font-size: 12px; letter-spacing: 1px;
  width: 28px; text-align: center; flex-shrink: 0;
}

/* --- CURSOR & FOCUS --- */
.btn, .card, .social-link, .gallery-item, .nav-cta, .burger, .lang-btn, .lang-option { cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}
.btn:focus-visible {
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #hero .hero-logo,
  #hero .hero-tagline,
  #hero .hero-actions { animation: none; opacity: 1; transform: none; }
  .scroll-hint { animation: none; opacity: 0.6; }
  #hero-particles { display: none; }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-wide { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .burger { display: block; }
  .lang-switcher { margin-left: auto; margin-right: 12px; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    flex-direction: column; justify-content: center; gap: 24px;
    background: rgba(20,24,32,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    transition: right 0.4s var(--ease);
  }
  .nav-links.open { right: 0; }
  .nav-links a::after { display: none; }
  .hero-tagline { letter-spacing: 3px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-wide { grid-column: span 1; }
  .pricing-row { flex-direction: column; align-items: center; }
  .price-featured { transform: none; }
  .price-featured:hover { transform: translateY(-4px); }
  .trainers-row { gap: 24px; }
  .trainer { width: 200px; }
  .section { padding: 72px 0; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .btn-lg { padding: 14px 32px; font-size: 14px; }
}
