/* ═══════════════════════════════════════════════════════════
   Yoga du Ville — Responsive global (TODAS as páginas WpLive)
   Breakpoints oficiais: 1023 · 767 · 479
═══════════════════════════════════════════════════════════ */

:root {
  --ydv-brand: #a32483;
  --ydv-accent: #d8409f;
  --ydv-dark: #363636;
  --ydv-cream: #f7f2e6;
  --ydv-border: #e0d5d0;
  --ydv-header-h: 4.875rem;
  --ydv-page-pad: clamp(1rem, 4vw, 2.5rem);
  --ydv-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  max-width: 100%;
  font-family: 'Plus Jakarta Sans', 'Open Sans', sans-serif;
  color: var(--ydv-dark);
  line-height: 1.65;
}

/* ── Anti-overflow (Elementor full-bleed) ── */
img,
video,
iframe,
svg,
picture {
  max-width: 100%;
  height: auto;
}

.elementor-widget-image img,
.elementor-widget-theme-post-featured-image img {
  display: block;
}

.e-con,
.elementor-section,
.elementor-widget-wrap,
.elementor-widget-container {
  max-width: 100%;
  min-width: 0;
}

.elementor-section.elementor-section-stretched {
  width: 100% !important;
  max-width: 100vw;
  overflow-x: clip;
}

/* ── Tipografia editorial ── */
.elementor-heading-title,
h1, h2, h3, h4 {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.elementor-widget-heading .elementor-heading-title {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ── Botões e toque (44px mínimo) — conteúdo, não header nav ── */
.elementor-location-single .elementor-button,
.elementor-location-footer .elementor-button,
main .elementor-button,
a.elementor-button,
.elementor-button-link,
button:not(.nav-toggle):not(.hfe-nav-menu-icon) {
  min-height: 2.75rem;
}

.elementor-button {
  border-radius: 5px !important;
  font-weight: 700 !important;
  transition: transform 0.2s var(--ydv-ease), box-shadow 0.2s var(--ydv-ease) !important;
}

/* Botões Elementor preenchidos — texto branco (evita magenta ilegível) */
a.elementor-button:not(.elementor-button-outline),
.elementor-button-link:not(.elementor-button-outline),
.elementor-button.elementor-size-xs:not([style*='background-color: #ffffff']),
.elementor-button.elementor-size-sm:not([style*='background-color: #ffffff']),
.elementor-button.elementor-size-md:not([style*='background-color: #ffffff']),
.elementor-button.elementor-size-lg:not([style*='background-color: #ffffff']) {
  color: #ffffff !important;
  text-decoration: none !important;
}

.elementor-button:hover {
  transform: translateY(-1px);
}

/* ── Links ── */
.elementor-widget-text-editor a:not(.elementor-button),
.elementor-widget-theme-post-content a:not(.elementor-button) {
  color: var(--ydv-accent);
  text-decoration: underline;
  text-decoration-color: #b23590;
}

/* ── Cards Elementor ── */
.elementor-post__card,
.ha-card {
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.22s var(--ydv-ease), box-shadow 0.22s var(--ydv-ease);
}

.elementor-post__card:hover,
.ha-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(163, 36, 131, 0.1);
}

/* ── FAQ / acordeão ── */
.elementor-accordion-item,
.elementor-toggle-item {
  border-color: var(--ydv-border) !important;
}

/* ── Focus acessível ── */
a:focus-visible,
button:focus-visible,
.elementor-button:focus-visible {
  outline: 2px solid var(--ydv-accent);
  outline-offset: 2px;
}

/* ── Flutuantes (WhatsApp / Typebot) ── */
.wa-float,
#ydv-launcher,
#ydv-bubble {
  z-index: 999 !important;
}

@media (max-width: 767px) {
  .wa-float,
  #ydv-launcher {
    bottom: 1rem !important;
    right: 1rem !important;
  }
}

/* ══ TABLET (≤1023) ══ */
@media (max-width: 1023px) {
  .e-con.e-parent > .e-con-inner {
    flex-wrap: wrap !important;
  }

  .elementor-widget-heading .elementor-heading-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem) !important;
  }
}

/* ══ MOBILE (≤767) ══ */
@media (max-width: 767px) {
  .e-con.e-parent {
    --padding-left: clamp(1rem, 4vw, 1.25rem) !important;
    --padding-right: clamp(1rem, 4vw, 1.25rem) !important;
  }

  .elementor-widget-heading .elementor-heading-title {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem) !important;
  }

  /* Botões full-width só no conteúdo (não header) */
  .elementor-location-single .elementor-button-wrapper,
  .elementor-location-footer .elementor-button-wrapper,
  main .elementor-button-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .elementor-location-single .elementor-button,
  .elementor-location-footer .elementor-button,
  main .elementor-button {
    width: 100%;
    justify-content: center;
  }

  .elementor-grid-mobile-1 .elementor-grid {
    grid-template-columns: 1fr !important;
  }

  .elementor-posts-container {
    grid-template-columns: 1fr !important;
  }

  .elementor-widget-table,
  .elementor-widget-html {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ══ MOBILE ESTREITO (≤479) ══ */
@media (max-width: 479px) {
  .elementor-widget-heading .elementor-heading-title {
    font-size: clamp(1.25rem, 6vw, 1.6rem) !important;
  }

  .elementor-button {
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
  }
}

/* ══ DESKTOP GRANDE (≥1280) ══ */
@media (min-width: 1280px) {
  .e-con-boxed > .e-con-inner,
  .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1280px;
  }
}

/* ══ Preferências do usuário ══ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
