/* ============================================
   JOELMA ZACARIAS PILATES - Swiss Park, Campinas
   Desenvolvido por AdWave
   ============================================ */

:root {
  --bg-main: #FFFFFF;
  --bg-alt: #FAFAF9;
  --text-main: #2A2A28;
  --text-muted: #666662;

  --accent: #C69239;
  --accent-hover: #A87A2D;
  --accent-light: #F9F4EB;
  --accent-rgb: 198, 146, 57;

  --border: #EFEFEA;
  --border-strong: #DCDCD8;

  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.08);

  --container: 1120px;
  --header-h: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
@media (max-width: 768px) {
  .section { padding: 56px 0; }
}

.section-head { max-width: 600px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.section-head p { font-size: 17px; color: var(--text-muted); }
.section-head.center { margin: 0 auto 48px; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.header .container { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; }
.logo img { height: 28px; width: auto; display: block; }
@media (max-width: 480px) { .logo img { height: 24px; } }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-cta .btn { padding: 10px 24px; font-size: 14.5px; }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .header-cta .btn-label { display: none; }
  .header-cta .btn { padding: 12px; border-radius: 50%; width: 44px; height: 44px; }
  .header-cta .btn svg { width: 20px; height: 20px; margin: 0; }

  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ''; display: block; width: 22px; height: 2px;
    background: var(--text-main); position: relative; transition: 0.2s ease;
  }
  .nav-toggle span::before { position: absolute; top: -7px; }
  .nav-toggle span::after { position: absolute; top: 7px; }
}

.mobile-menu {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 16px 24px 24px;
  display: flex; flex-direction: column;
  transform: translateY(-10px);
  opacity: 0; pointer-events: none;
  transition: all 0.3s ease;
  z-index: 99;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { padding: 14px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--border); }

/* Hero - split layout clean */
.hero {
  padding: calc(var(--header-h) + 60px) 0 80px;
  background: var(--bg-main);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-copy { max-width: 540px; }

.hero h1 {
  font-size: clamp(38px, 4.5vw, 56px);
  margin-bottom: 24px;
  line-height: 1.1;
}
.accent-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}

.hero-sub { font-size: 18px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; }

.hero-bullets { display: flex; flex-direction: column; gap: 13px; margin-bottom: 32px; text-align: left; }
.hero-bullets li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; font-weight: 500; color: var(--text-main); }
.hero-bullets .check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.hero-bullets .check svg { width: 12px; height: 12px; }

.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-micro { font-size: 13.5px; color: var(--text-muted); }

.hero-open-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-light);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  color: var(--accent-hover); font-size: 13.5px; font-weight: 600;
  margin-top: 26px;
}
.hero-open-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { width: 100%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
  .hero-visual { aspect-ratio: 16 / 9; max-width: 700px; margin: 0 auto; }
}

/* Stats bar */
.stats {
  background: var(--bg-alt);
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat strong { display: block; font-size: clamp(22px, 3vw, 28px); font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.stat span { font-size: 14px; color: var(--text-muted); }
@media (max-width: 640px) {
  .stats .container { grid-template-columns: 1fr; gap: 20px; }
}

/* Padroes / pattern interrupt ("Isso soa familiar?") */
.patterns { background: var(--bg-alt); }
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .pattern-grid { grid-template-columns: repeat(2, 1fr); }
}

.pattern-card-photo {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 4.2;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pattern-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pattern-card-photo img.brighten { filter: brightness(1.18) contrast(1.04); }
.pattern-card-photo.pattern-card-solid { background: var(--accent); }
.pattern-card-photo .photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, 0.78) 100%);
}
.pattern-card-photo.pattern-card-solid .photo-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.4) 100%);
}
.pattern-card-photo .photo-quote {
  position: absolute; left: 0; right: 0; bottom: 0;
  margin: 0; padding: 18px 16px;
  color: #fff; font-size: 14px; font-weight: 500; font-style: italic; line-height: 1.4;
}

.pattern-closing {
  text-align: center;
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 600;
  color: var(--text-main);
  max-width: 640px;
  margin: 0 auto;
}
.pattern-closing strong { color: var(--accent); }

/* Contextualizacao */
.context .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.context-text { min-width: 0; }
.context-text p { font-size: 16.5px; color: var(--text-muted); margin-bottom: 18px; }
.context-text .btn { white-space: normal; text-align: center; }
.context-visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.context-visual img { width: 100%; height: 100%; object-fit: cover; }
.context-visual .placeholder-fill { color: var(--text-muted); }
.context-visual .placeholder-fill svg { width: 44px; height: 44px; }

@media (max-width: 860px) {
  .context .container { grid-template-columns: 1fr; gap: 32px; }
  .context-visual { order: -1; }
}

/* Diferencial */
.diferencial { background: var(--bg-alt); }

.diff-showcase {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto 44px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.diff-showcase img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
@media (max-width: 640px) {
  .diff-showcase { aspect-ratio: 3 / 2; }
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.diff-card {
  background: var(--bg-main);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.diff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.diff-icon {
  width: 48px; height: 48px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.diff-icon svg { width: 24px; height: 24px; stroke-width: 1.5px; }
.diff-card h3 { font-size: 18px; margin-bottom: 12px; }
.diff-card p { font-size: 15px; color: var(--text-muted); }

.diff-card-visual {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.diff-card-visual .diff-card-text { min-width: 0; }
.diff-card-photos { display: flex; gap: 12px; min-width: 0; }
.diff-card-photos img {
  width: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}
@media (max-width: 700px) {
  .diff-card-visual { grid-template-columns: 1fr; }
}

/* Sobre */
.about { background: var(--bg-main); }
.about .container { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.about-visual {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-visual .placeholder-fill { color: var(--text-muted); }
.about-visual .placeholder-fill svg { width: 40px; height: 40px; }

.about-stat-badge {
  position: absolute;
  bottom: 20px; right: 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-md);
}
.about-stat-badge strong { font-size: 30px; font-weight: 600; line-height: 1; }
.about-stat-badge span { font-size: 12px; font-weight: 600; line-height: 1.25; text-transform: uppercase; letter-spacing: 0.02em; }
@media (max-width: 480px) {
  .about-stat-badge { right: 12px; bottom: 12px; padding: 12px 16px; }
  .about-stat-badge strong { font-size: 24px; }
}

.about h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 22px; }
.about p { font-size: 16px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.65; }

.about-creds { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.cred {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  display: flex; align-items: center; gap: 12px;
}
.cred svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

@media (max-width: 860px) {
  .about .container { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }
}

/* Como funciona */
.steps { background: var(--bg-main); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { position: relative; text-align: center; }
.step-num {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--accent);
  font-family: var(--font-serif);
  font-size: 20px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--text-muted); }

@media (max-width: 860px) {
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* Depoimentos (carrossel) */
.testimonials { background: var(--bg-alt); overflow: hidden; }
.testimonial-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
}
.carousel-track {
  flex: 1;
  min-width: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: center;
  padding: 0 4px;
}
.carousel-slide img {
  width: 100%; height: auto;
  border-radius: var(--radius-md);
  display: block;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.carousel-arrow {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-main);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.carousel-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.carousel-arrow svg { width: 20px; height: 20px; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); transition: 0.2s ease; }
.carousel-dot.active { background: var(--accent); transform: scale(1.3); }

/* FAQ */
.faq { background: var(--bg-main); }
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  font-size: 16px; font-weight: 500;
  color: var(--text-main);
  text-align: left;
}
.faq-q .plus {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-main); color: var(--text-main);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.faq-q .plus svg { width: 14px; height: 14px; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 24px 24px; font-size: 15px; color: var(--text-muted); line-height: 1.6; }

/* CTA final / Contato */
.cta-final {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  border: 1px solid var(--border);
}
.cta-final h2 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 16px; }
.cta-final p { font-size: 17px; color: var(--text-muted); max-width: 500px; margin: 0 auto 32px; }

.contact-info {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border);
}
.contact-item { font-size: 15px; color: var(--text-main); display: flex; align-items: center; gap: 8px; font-weight: 500; }
.contact-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }

@media (max-width: 640px) {
  .cta-final { padding: 40px 24px; }
  .contact-info { flex-direction: column; align-items: center; gap: 16px; }
}

.contact-map {
  width: 100%;
  margin-top: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 21 / 9;
  background: var(--bg-alt);
}
.contact-map iframe { width: 100%; height: 100%; display: block; border: 0; }

@media (max-width: 640px) {
  .contact-map { aspect-ratio: 4 / 3; }
}

/* Footer */
footer { padding: 40px 0 100px; text-align: center; background: var(--bg-main); }
footer .foot-brand { font-size: 15px; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
footer .foot-credit { font-size: 13px; color: var(--text-muted); }
footer .foot-credit a { font-weight: 600; color: var(--accent); }

@media (min-width: 641px) {
  footer { padding: 40px 0 48px; }
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* WhatsApp float (desktop) */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 32px; height: 32px; }
@media (max-width: 640px) { .wa-float { display: none; } }
