/* Pilates Vitoria Lima — Style Sheet
   Colors: Purple (#7C3AED) + Light Pink (#F472B6) + Off-white */

:root {
  --bg: #fdf2f8;
  --bg-secondary: #fce7f3;
  --surface: #fff5f9;
  --overlay: rgba(0, 0, 0, 0.6);

  --primary: #7C3AED;
  --primary-light: #8B5CF6;
  --primary-dark: #6D28D9;

  --accent: #F472B6;
  --accent-light: #F9A8D4;
  --accent-glow: rgba(124, 58, 237, 0.2);

  --text: #111111;
  --text-secondary: #444444;
  --text-muted: #777777;
  --border: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.04);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --shadow-accent: 0 8px 30px rgba(124, 58, 237, 0.25);

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: 16px;

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --section-gap: 120px;
  --container: 1200px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration: 0.4s;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
p { color: var(--text-secondary); line-height: 1.7; }
.text-accent { color: var(--primary); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-gap) 0; }
.section-header { text-align: center; margin-bottom: 56px; }

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title { margin-bottom: 16px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-outline:hover {
  background: var(--text);
  color: #fff;
  transform: translateY(-2px);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--duration) var(--ease-out);
}
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124, 58, 237, 0.2);
}

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  transition: all var(--duration) var(--ease-out);
}
.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; }
.logo-img { height: 52px; width: auto; display: block; }
.navbar.scrolled .logo-img { height: 42px; }
.logo-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 1.1rem; font-weight: 800;
}
.logo-text { letter-spacing: 2px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  position: relative;
  font-size: 0.85rem; font-weight: 500;
  padding: 4px 0;
  transition: color var(--duration);
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width var(--duration) var(--ease-out);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--primary); }

.hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; z-index: 1001;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}
.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); }

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 10px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all var(--duration) var(--ease-out);
  color: var(--text-muted);
  margin-left: 12px;
  user-select: none;
  white-space: nowrap;
}
.lang-toggle:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.2);
}
.lang-toggle .active {
  color: var(--primary);
}
.lang-divider {
  color: var(--border);
  font-weight: 300;
}
.navbar.scrolled .lang-toggle {
  background: rgba(124, 58, 237, 0.12);
}

/* Hero */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(124, 58, 237, 0.1), transparent),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(244, 114, 182, 0.08), transparent),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 700px; margin: 0 auto; }
.hero-label { margin-bottom: 20px; }
.hero-title { margin-bottom: 20px; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2;
}
.scroll-indicator span {
  display: block; width: 2px; height: 40px;
  background: var(--text); opacity: 0.3;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.2; }
  50% { transform: scaleY(1); opacity: 0.6; }
}

/* About */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text .btn { margin-top: 16px; }
.about-image .img-wrapper { aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; }
.img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bg-secondary), var(--border));
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.6s var(--ease-out);
}
.img-wrapper:hover .img-placeholder { transform: scale(1.05); }
.video-wrapper { overflow: hidden; background: #000; }
.about-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.placeholder-icon { font-family: var(--font-heading); font-size: 8rem; font-weight: 800; color: var(--primary); opacity: 0.15; }

/* Classes */
.classes { background: var(--bg-secondary); }
.class-card { text-align: center; }
.card-icon {
  width: 56px; height: 56px; margin: 0 auto 20px;
  padding: 14px; background: rgba(124, 58, 237, 0.08);
  border-radius: var(--radius-md); color: var(--primary);
}
.card-icon svg { width: 100%; height: 100%; }
.card-title { margin-bottom: 12px; }
.card-text { font-size: 0.95rem; color: var(--text-secondary); }

/* Contact */
.contact-section { background: var(--bg); text-align: center; }
.contact-info {
  margin-top: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 48px; font-size: 1.1rem;
  letter-spacing: 0.5px; text-transform: none;
}
.contact-details { text-align: center; line-height: 2; }
.contact-details p { font-size: 1rem; }
.contact-details a { color: var(--primary); font-weight: 600; }
.contact-details a:hover { text-decoration: underline; }

/* Footer */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}
.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; max-width: 280px; margin-bottom: 24px; }

.social-links { display: flex; gap: 12px; }
.social-icon {
  width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.6); padding: 10px;
  transition: all var(--duration) var(--ease-out);
}
.social-icon svg { width: 100%; height: 100%; }
.social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-links a,
.footer-contact span {
  display: block;
  font-size: 0.9rem;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--duration);
}
.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* Loading */
.loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.loading-screen.fade-out { opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }
.loading-line {
  width: 60px; height: 2px;
  background: var(--primary);
  animation: loadingPulse 0.8s ease-in-out infinite;
}
@keyframes loadingPulse {
  0%, 100% { width: 60px; opacity: 0.3; }
  50% { width: 120px; opacity: 1; }
}

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.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; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 75%; max-width: 340px; height: 100vh;
    background: var(--surface);
    flex-direction: column; justify-content: center; align-items: center; gap: 32px;
    transition: right 0.4s var(--ease-out);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }
  .lang-toggle { margin-left: auto; margin-right: 8px; font-size: 0.7rem; padding: 3px 8px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { order: -1; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .navbar { padding: 14px 0; }
  .navbar.scrolled { padding: 10px 0; }
}
