/* =============================================
   XFIT - Premium Website Styles
   Design System: Dark Luxury / Gold Accents
   ============================================= */

/* --- CSS CUSTOM PROPERTIES --- */
:root {
  --xfit-bg: #0c0c0c;
  --xfit-bg-alt: #111111;
  --xfit-bg-card: rgba(255, 255, 255, 0.03);
  --xfit-gold: #CBA135;
  --xfit-gold-light: #D4AF37;
  --xfit-gold-dark: #B8972E;
  --xfit-gold-gradient: linear-gradient(135deg, #CBA135, #B8972E);
  --xfit-blue: #5DADE2;
  --xfit-green: #2ECC71;
  --xfit-white: #ffffff;
  --xfit-text: #ffffff;
  --xfit-text-secondary: #999999;
  --xfit-text-muted: #555555;
  --xfit-border: rgba(203, 161, 53, 0.12);
  --xfit-border-hover: rgba(203, 161, 53, 0.3);
  --xfit-card-hover: rgba(203, 161, 53, 0.06);
  --xfit-radius: 12px;
  --xfit-radius-sm: 8px;
  --xfit-max-width: 1100px;
  --xfit-transition: all 0.35s ease;
  --xfit-font: 'Montserrat', sans-serif;
  --xfit-font-tech: 'Orbitron', sans-serif;
  --xfit-font-cursive: 'Cormorant Garamond', serif;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--xfit-font);
  background-color: var(--xfit-bg);
  color: var(--xfit-text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--xfit-gold);
  text-decoration: none;
  transition: var(--xfit-transition);
}

a:hover {
  color: var(--xfit-gold-light);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

/* --- TYPOGRAPHY --- */
/* Fonte cursiva: fallback do sistema (Snell Roundhand no iOS, Segoe Script no Windows) */

.text-gold { color: var(--xfit-gold); }
.text-secondary { color: var(--xfit-text-secondary); }
.text-center { text-align: center; }

.eyebrow {
  font-family: var(--xfit-font-tech);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--xfit-gold);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--xfit-font);
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--xfit-white);
  margin-bottom: 12px;
  line-height: 1.15;
}

.section-cursive {
  font-family: var(--xfit-font-cursive);
  font-style: italic;
  font-size: 22px;
  color: var(--xfit-gold);
  font-weight: 400;
  margin-bottom: 16px;
}

.section-text {
  font-size: 14px;
  color: var(--xfit-text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
}

.divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--xfit-gold), transparent);
  margin: 0 auto 50px;
  border: none;
}

/* --- LAYOUT --- */
.container {
  max-width: var(--xfit-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: var(--xfit-font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--xfit-radius-sm);
  cursor: pointer;
  transition: var(--xfit-transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--xfit-gold-gradient);
  color: #000;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(203, 161, 53, 0.35);
  color: #000;
}

.btn-outline {
  background: transparent;
  color: var(--xfit-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--xfit-gold);
  color: var(--xfit-gold);
}

/* --- CARDS --- */
.card {
  background: var(--xfit-bg-card);
  border: 1px solid var(--xfit-border);
  border-radius: var(--xfit-radius);
  padding: 36px 28px;
  transition: var(--xfit-transition);
}

.card:hover {
  background: var(--xfit-card-hover);
  border-color: var(--xfit-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(203, 161, 53, 0.08);
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(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; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(203, 161, 53, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.navbar-logo img {
  height: 36px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--xfit-white);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--xfit-gold);
  transition: width 0.3s ease;
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.navbar-links a:hover {
  color: var(--xfit-gold);
}

.navbar-cta {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  padding: 12px 28px !important;
  background: var(--xfit-gold-gradient);
  color: #000 !important;
  border-radius: 6px;
  transition: var(--xfit-transition);
}

.navbar-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(203, 161, 53, 0.3);
  color: #000 !important;
}

.navbar-cta::after {
  display: none !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--xfit-white);
  transition: var(--xfit-transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 12, 12, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--xfit-transition);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--xfit-white);
  text-decoration: none;
  padding: 12px;
}

.mobile-menu a:hover {
  color: var(--xfit-gold);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-bottom: 220px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #0c0c0c 50%, #16213e 100%);
  z-index: 0;
}

/* Hero background as native <img> for instant LCP */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-bg-img.loaded {
  opacity: 1;
}

/* Shimmer loading animation while hero image loads */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 15%,
    rgba(203, 161, 53, 0.06) 35%,
    rgba(203, 161, 53, 0.12) 50%,
    rgba(203, 161, 53, 0.06) 65%,
    transparent 85%
  );
  background-size: 200% 100%;
  animation: heroShimmer 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes heroShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Hide shimmer once the hero img has loaded */
.hero-bg:has(.hero-bg-img.loaded)::before {
  animation: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--overlay-opacity, 0.5));
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Show overlay only when hero image is loaded */
.hero-bg:has(.hero-bg-img.loaded)::after {
  opacity: 1;
}

/* Animated glow orbs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: rgba(203, 161, 53, 0.08);
  bottom: -200px;
  left: -150px;
  animation: heroGlow 6s ease-in-out infinite;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: rgba(93, 173, 226, 0.05);
  top: -200px;
  right: -150px;
  animation: heroGlow 6s ease-in-out infinite 3s;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 48px 40px 40px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 75%);
}

.hero-eyebrow {
  display: block;
  font-family: var(--xfit-font-tech);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--xfit-gold);
  text-transform: uppercase;
  margin-bottom: 40px;
  animation: fadeInDown 0.8s ease both;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-title {
  font-size: 34px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 5px;
  line-height: 1.05;
  margin-bottom: 14px;
  animation: fadeInUp 0.8s ease both 0.2s;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-cursive {
  font-family: var(--xfit-font-cursive);
  font-style: italic;
  font-size: 22px;
  color: var(--xfit-gold);
  font-weight: 400;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease both 0.35s;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 550px;
  margin: 0 auto 36px;
  line-height: 1.8;
  letter-spacing: 1px;
  animation: fadeInUp 0.8s ease both 0.5s;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  animation: fadeInUp 0.8s ease both 0.65s;
}

.hero-buttons .btn {
  text-align: center;
}

.hero-buttons .btn-primary {
  background: transparent;
  color: var(--xfit-gold);
  border: 1px solid var(--xfit-gold);
  padding: 18px 44px;
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 700;
}

.hero-buttons .btn-primary:hover {
  background: var(--xfit-gold);
  color: #000;
  box-shadow: 0 4px 24px rgba(203, 161, 53, 0.3);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: scrollBounce 2s ease-in-out infinite;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.hero-scroll svg {
  width: 24px;
  height: 24px;
  stroke: var(--xfit-gold);
  opacity: 0.6;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* =============================================
   BELOW-FOLD SECTIONS - skip rendering until near viewport
   ============================================= */
.precision,
.depoimentos,
.arena-teaser,
.contato,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* =============================================
   XFIT PRECISION
   ============================================= */
.precision {
  background: var(--xfit-bg-alt);
  text-align: center;
  overflow: hidden;
}

.precision-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 50px;
}

.precision-card {
  text-align: center;
}

.precision-card-icon {
  margin-bottom: 12px;
  color: var(--xfit-gold);
  opacity: 0.7;
}

.precision-card h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.precision-card p {
  font-size: 14px;
  color: var(--xfit-text-secondary);
  line-height: 1.6;
}

/* =============================================
   METODO X
   ============================================= */
.metodo {
  background: var(--xfit-bg-alt);
  text-align: center;
  overflow: hidden;
}

.metodo-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--xfit-font);
  font-size: 200px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 20px;
  color: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.metodo-stat {
  font-family: var(--xfit-font-tech);
  font-size: 64px;
  font-weight: 900;
  color: var(--xfit-gold);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 60px rgba(203, 161, 53, 0.3);
}

.metodo-stat-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--xfit-text-secondary);
  margin-bottom: 32px;
}

.metodo-narrative {
  max-width: 700px;
  margin: 0 auto 32px;
  padding: 0 4px;
}

.metodo-narrative p {
  font-size: 15px;
  color: var(--xfit-text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.metodo-narrative strong {
  color: var(--xfit-white);
  font-weight: 700;
}

.metodo-highlight {
  color: var(--xfit-gold) !important;
  font-weight: 700;
}

.metodo-scarcity {
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* =============================================
   MODALIDADES
   ============================================= */
/* Section background image (reusable) */
.section-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  display: none;
}
.section-bg.has-image {
  display: block;
}
.section-bg.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--overlay-opacity, 0.6));
}
.section-bg + .container {
  position: relative;
  z-index: 1;
}

.modalidades {
  background: var(--xfit-bg);
  position: relative;
  overflow: hidden;
}

.modalidades-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.modalidades-loading {
  text-align: center;
  padding: 60px 0;
  color: var(--xfit-text-secondary);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.modalidade-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.modalidade-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-color: #111;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Placeholder gradient for images */
.modalidade-card-bg.placeholder {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0c0c0c 100%);
}

.modalidade-card:hover .modalidade-card-bg {
  transform: scale(1.03);
}

.modalidade-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  z-index: 1;
  transition: all 0.4s ease;
}

.modalidade-card:hover .modalidade-card-overlay {
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.05) 100%);
}

.modalidade-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 28px;
}

.modalidade-card-name {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
  transition: color 0.4s ease;
}

.modalidade-card:hover .modalidade-card-name {
  color: var(--xfit-gold);
}

.modalidade-card-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
}

.modalidade-card-line {
  width: 24px;
  height: 1px;
  background: var(--xfit-gold);
  margin-top: 14px;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.5s ease;
  opacity: 0.8;
}

/* =============================================
   DEPOIMENTOS
   ============================================= */
.depoimentos {
  background: var(--xfit-bg-alt);
}

.depoimentos-track {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.depoimentos-slider {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.depoimento-item {
  flex: 0 0 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0 16px;
  text-align: center;
  box-sizing: border-box;
}

.depoimento-quote {
  font-size: 40px;
  color: var(--xfit-gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}

.depoimento-text {
  font-size: 15px;
  font-style: italic;
  color: var(--xfit-text-secondary);
  max-width: 650px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.depoimento-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.depoimento-stars {
  color: var(--xfit-gold);
  font-size: 14px;
  letter-spacing: 4px;
}

.depoimentos-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.depoimentos-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--xfit-gold);
  background: transparent;
  cursor: pointer;
  transition: var(--xfit-transition);
  padding: 0;
}

.depoimentos-dot.active {
  background: var(--xfit-gold);
}

/* =============================================
   ARENA TEASER (BANNER)
   ============================================= */
.arena-teaser {
  background: var(--xfit-bg);
}

.arena-banner {
  background: linear-gradient(135deg, rgba(203, 161, 53, 0.06), rgba(12, 12, 12, 1));
  border: 1px solid var(--xfit-border);
  border-radius: var(--xfit-radius);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.arena-banner::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(203, 161, 53, 0.06);
  border-radius: 50%;
  filter: blur(100px);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.arena-banner-content {
  position: relative;
  z-index: 1;
}

.arena-banner-text {
  font-size: 15px;
  color: var(--xfit-text-secondary);
  max-width: 500px;
  margin: 0 auto 32px auto;
  line-height: 1.7;
}

.arena-banner-sub {
  font-size: 11px;
  color: var(--xfit-text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 16px;
}

/* =============================================
   ESPAÇO - GALERIA
   ============================================= */
.espaco {
  background: var(--xfit-bg);
  text-align: center;
}

.espaco-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.espaco-gallery-item {
  position: relative;
  border-radius: var(--xfit-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.espaco-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.85);
}

.espaco-gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}

.espaco-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.espaco-gallery-item:hover::after {
  opacity: 0.3;
}

.espaco-gallery-item .espaco-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  z-index: 1;
  text-align: left;
}

.espaco-gallery-item .espaco-caption span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}

/* Layout variations for visual interest */
.espaco-gallery.has-6 .espaco-gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.espaco-gallery.has-5 .espaco-gallery-item:nth-child(1) {
  grid-column: span 2;
  aspect-ratio: 8 / 3;
}

.espaco-gallery-empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  color: var(--xfit-text-muted);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Lightbox */
.espaco-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.espaco-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.espaco-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.espaco-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.espaco-lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.espaco-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.espaco-lightbox-nav:hover {
  background: rgba(255,255,255,0.15);
}

.espaco-lightbox-prev { left: 24px; }
.espaco-lightbox-next { right: 24px; }

/* =============================================
   CONTATO
   ============================================= */
.contato {
  background: var(--xfit-bg-alt);
}

/* Form - Centered Layout */
.contato-form-wrapper {
  max-width: 720px;
  margin: 0 auto 48px;
}

.contato-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contato-form-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: end;
}

.contato-form-inline .contato-form-btn {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--xfit-text-muted);
}

.form-group input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--xfit-border);
  border-radius: var(--xfit-radius-sm);
  padding: 14px 18px;
  color: var(--xfit-white);
  font-family: var(--xfit-font);
  font-size: 15px;
  transition: var(--xfit-transition);
  outline: none;
}

.form-group input:focus {
  border-color: var(--xfit-gold);
  background: rgba(203, 161, 53, 0.04);
}

.contato-form-btn .btn {
  width: 100%;
  height: 50px;
}

.form-message {
  padding: 14px;
  border-radius: var(--xfit-radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: var(--xfit-green);
}

.form-message.error {
  display: block;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

/* =============================================
   INSTAGRAM
   ============================================= */
.instagram {
  background: var(--xfit-bg);
  text-align: center;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 40px;
}

.instagram-item {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  position: relative;
  overflow: hidden;
  transition: var(--xfit-transition);
}

.instagram-item:hover {
  opacity: 0.8;
}

.instagram-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(203, 161, 53, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--xfit-transition);
}

.instagram-item:hover .instagram-item-overlay {
  opacity: 1;
}

/* =============================================
   INTERNAL PAGES - SHARED
   ============================================= */
.internal-page {
  padding-top: 100px;
  min-height: 100vh;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  z-index: 10;
}

.back-link:hover { color: var(--xfit-gold); }

.page-divider {
  width: 100%;
  max-width: 1100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(203,161,53,0.15), transparent);
  margin: 0 auto;
  border: none;
}

/* Internal page hero - background image support */
.internal-hero {
  text-align: center;
  padding: 40px 40px 50px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.internal-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--xfit-bg);
  z-index: 0;
}

/* Native <img> inside internal hero for smooth load */
.internal-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.internal-hero-img.loaded {
  opacity: 1;
}

/* Overlay - appears when image loads */
.internal-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--overlay-opacity, 0.5));
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.internal-hero-bg:has(.internal-hero-img.loaded)::after {
  opacity: 1;
}

/* Legacy: JS-driven background-image */
.internal-hero-bg.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.internal-hero-bg.has-image::after {
  opacity: 1;
}

.internal-hero.has-hero-image {
  max-width: none;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  margin-top: -100px;
}

.internal-hero .hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
}

/* Add radial gradient backdrop on internal heroes with background image */
.internal-hero.has-hero-image .hero-content {
  padding: 48px 40px 40px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 75%);
}

/* Text legibility on internal heroes with background image */
.internal-hero.has-hero-image .eyebrow {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.internal-hero.has-hero-image .section-title {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.internal-hero.has-hero-image .section-cursive {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .internal-hero { padding: 30px 24px 40px; }
  .internal-hero.has-hero-image { padding: 0 24px; }
}

@media (max-width: 480px) {
  .internal-hero { padding: 24px 16px 32px; }
  .internal-hero.has-hero-image { padding: 0 16px; }
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #080808;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(203, 161, 53, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
  text-align: center;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--xfit-gold);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--xfit-text-secondary);
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: var(--xfit-gold);
}

.footer-col p {
  font-size: 14px;
  color: var(--xfit-text-secondary);
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--xfit-text-muted);
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: var(--xfit-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--xfit-gold);
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 998;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: var(--xfit-transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* =============================================
   RESPONSIVE - Mobile First
   ============================================= */

/* --- Mobile base (< 480px already covered by default mobile-first styles above) --- */

/* Hide desktop nav, show hamburger by default on anything below 1024 */
@media (max-width: 1024px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
}

/* --- Small phones (up to 480px) --- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }

  /* Typography */
  .section-title { font-size: 24px; letter-spacing: 2px; }
  .section-cursive { font-size: 18px; }
  .section-text { font-size: 14px; }
  .eyebrow { font-size: 10px; letter-spacing: 2px; }

  /* Hero */
  .hero-title { font-size: 32px; letter-spacing: 2px; }
  .hero-cursive { font-size: 20px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: 2px; }
  .hero-subtitle { font-size: 14px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  .hero-content { padding: 0 16px; }

  /* Buttons */
  .btn { padding: 16px 24px; font-size: 11px; letter-spacing: 2px; width: 100%; text-align: center; }

  /* Precision / Metodo */
  .metodo-stat { font-size: 56px; }
  .metodo-stat-label { font-size: 11px; letter-spacing: 2px; }
  .metodo-narrative p { font-size: 14px; line-height: 1.8; }
  .precision-cards { gap: 12px; }
  .precision-card { padding: 24px 20px; }

  /* Modalidades */
  .modalidades-grid { grid-template-columns: 1fr; gap: 14px; }
  .modalidade-card { aspect-ratio: 3/4; }
  .modalidade-card-content {
    background: linear-gradient(0deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 70%, transparent 100%);
    padding-top: 48px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .modalidade-card-desc { color: rgba(255,255,255,0.85); }

  /* Depoimentos */
  .depoimento-item { padding: 0 16px; }
  .depoimento-text { font-size: 15px; }
  .depoimento-quote { font-size: 40px; }

  /* Contact */
  .contato-form-inline { grid-template-columns: 1fr; }

  /* Instagram */
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }

  /* Espaço Gallery */
  .espaco-gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .espaco-gallery.has-6 .espaco-gallery-item:nth-child(1),
  .espaco-gallery.has-5 .espaco-gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 9;
  }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }

  /* WhatsApp */
  .whatsapp-float { bottom: 16px; right: 16px; width: 50px; height: 50px; }
  .whatsapp-float svg { width: 22px; height: 22px; }
}

/* --- Medium phones (481px to 767px) --- */
@media (min-width: 481px) and (max-width: 767px) {
  .container { padding: 0 20px; }
  .section { padding: 70px 0; }

  .section-title { font-size: 28px; letter-spacing: 2px; }
  .section-cursive { font-size: 20px; }

  .hero-title { font-size: 40px; letter-spacing: 3px; }
  .hero-cursive { font-size: 24px; }
  .hero-eyebrow { font-size: 10px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 360px; text-align: center; }

  .btn { padding: 16px 32px; font-size: 12px; }

  .metodo-stat { font-size: 72px; }
  .metodo-narrative p { font-size: 15px; }

  .modalidades-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .espaco-gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .espaco-gallery.has-6 .espaco-gallery-item:nth-child(1),
  .espaco-gallery.has-5 .espaco-gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 9;
  }

  .contato-form-inline { grid-template-columns: 1fr 1fr; }
  .contato-form-btn { grid-column: 1 / -1; }
  .contato-form-btn .btn { width: 100%; }

  .instagram-grid { grid-template-columns: repeat(3, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
}

/* --- Tablet (768px to 1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) {
  .container { padding: 0 30px; }
  .section { padding: 80px 0; }

  .section-title { font-size: 36px; letter-spacing: 3px; }
  .section-cursive { font-size: 24px; }
  .section-text { font-size: 15px; }

  .hero-title { font-size: 52px; letter-spacing: 5px; }
  .hero-cursive { font-size: 28px; }
  .hero-eyebrow { font-size: 11px; letter-spacing: 3px; }
  .hero-subtitle { font-size: 15px; }
  .hero-buttons { flex-direction: row; justify-content: center; gap: 16px; align-items: center; }
  .hero-buttons .btn { width: auto; }

  .metodo-stat { font-size: 90px; }

  .precision-cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .modalidades-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }

  .espaco-gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }

  .contato-form-inline { grid-template-columns: 1fr 1fr; }

  .instagram-grid { grid-template-columns: repeat(3, 1fr); }

  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: left; }
}

/* --- Desktop (above 1024px) --- */
@media (min-width: 1025px) {
  .container { padding: 0 40px; }
  .section { padding: 100px 0; }

  .section-header { margin-bottom: 60px; }
  .section-title { font-size: 42px; letter-spacing: 4px; }
  .section-cursive { font-size: 26px; }
  .section-text { font-size: 16px; }
  .metodo-stat { font-size: 120px; }
  .metodo-stat-label { font-size: 14px; letter-spacing: 3px; }
  .metodo-narrative p { font-size: 17px; line-height: 1.9; }

  .hero-title { font-size: 72px; letter-spacing: 8px; }
  .hero-cursive { font-size: 36px; }
  .hero-eyebrow { font-size: 12px; letter-spacing: 4px; }
  .hero-subtitle { font-size: 16px; margin-bottom: 40px; }
  .hero-content { padding: 0 30px; }
  .hero-buttons { flex-direction: row; justify-content: center; gap: 16px; align-items: center; }
  .hero-buttons .btn { width: auto; }
  .btn { font-size: 13px; letter-spacing: 2.5px; padding: 18px 48px; }

  /* Depoimentos desktop */
  .depoimento-item { padding: 0 40px; }
  .depoimento-quote { font-size: 60px; }
  .depoimento-text { font-size: 18px; line-height: 1.8; }

  /* Hover effects only on desktop */
  .modalidade-card-desc { opacity: 0; transform: translateY(8px); }
  .modalidade-card:hover .modalidade-card-desc { opacity: 1; transform: translateY(0); }
  .modalidade-card-line { transform: scaleX(0); }
  .modalidade-card:hover .modalidade-card-line { transform: scaleX(1); }

  .precision-cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .modalidades-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .contato-form-inline { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: left; }
  .instagram-grid { grid-template-columns: repeat(6, 1fr); }
}

/* --- Small phones (under 360px) --- */
@media (max-width: 360px) {
  .hero-title { font-size: 26px; letter-spacing: 1px; }
  .hero-cursive { font-size: 17px; }
  .section-title { font-size: 20px; letter-spacing: 1px; }
  .section-cursive { font-size: 16px; }
  .metodo-stat { font-size: 48px; }
  .container { padding: 0 12px; }
}
