/**
 * Physio eXpert Education — Stage 2
 * Doar fundația vizuală. Structura, conținutul și funcțiile rămân intacte.
 */

:root {
  --px-navy: #06213f;
  --px-navy-2: #0a2c50;
  --px-cobalt: #2d6cdf;
  --px-white: #ffffff;
  --px-ink: #0b1725;
  --px-muted: #5d6b7b;
  --px-line: #dce3ea;
  --px-surface: #f5f7fa;
  --px-surface-blue: #eef4ff;
  --px-radius-sm: 7px;
  --px-radius: 10px;
  --px-shadow: 0 18px 48px rgba(6, 33, 63, 0.08);
  --px-font-head: Montserrat, Poppins, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --px-font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --px-shell: min(1180px, calc(100% - 48px));
  --px-space-1: 0.5rem;
  --px-space-2: 0.75rem;
  --px-space-3: 1rem;
  --px-space-4: 1.5rem;
  --px-space-5: 2rem;
  --px-space-6: 3rem;
  --px-space-7: 4.5rem;
  --px-space-8: 7rem;
}

.px-stage2-visual-system {
  color: var(--px-ink);
  background: var(--px-white);
  font-family: var(--px-font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.px-stage2-visual-system :where(*, *::before, *::after) {
  box-sizing: border-box;
}

.px-stage2-visual-system :where(h1, h2, h3, h4, h5, h6) {
  color: var(--px-navy);
  font-family: var(--px-font-head);
  text-wrap: balance;
}

.px-stage2-visual-system :where(h1) {
  font-size: clamp(2.75rem, 5.2vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.px-stage2-visual-system :where(h2) {
  font-size: clamp(2.05rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.px-stage2-visual-system :where(h3) {
  font-size: clamp(1.45rem, 2.35vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.px-stage2-visual-system :where(p, li) {
  text-wrap: pretty;
}

.px-stage2-visual-system :where(a) {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

.px-stage2-visual-system :where(a, button, input, select, textarea) {
  font-family: inherit;
}

.px-stage2-visual-system :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #8bb2ff;
  outline-offset: 3px;
}

.px-stage2-visual-system:not(.woocommerce-page):not(.woocommerce-checkout):not(.woocommerce-cart) :where(.elementor-button, a.elementor-button) {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: var(--px-radius-sm);
  font-weight: 700;
  line-height: 1.2;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.px-stage2-visual-system:not(.woocommerce-page):not(.woocommerce-checkout):not(.woocommerce-cart) :where(.elementor-button, a.elementor-button):hover {
  transform: translateY(-2px);
}

.px-stage2-visual-system:not(.woocommerce-page):not(.woocommerce-checkout):not(.woocommerce-cart) :where(.elementor-button, a.elementor-button):active {
  transform: translateY(0);
}

/* Clase neutre pentru componentele educaționale reconstruite în etapele 3–8. */
.px-stage2-visual-system :where(.px-shell) {
  width: var(--px-shell);
  margin-inline: auto;
}

.px-stage2-visual-system :where(.px-section) {
  padding-block: clamp(var(--px-space-7), 8vw, var(--px-space-8));
}

.px-stage2-visual-system :where(.px-section--soft) {
  background: var(--px-surface);
}

.px-stage2-visual-system :where(.px-section--blue) {
  background: var(--px-surface-blue);
}

.px-stage2-visual-system :where(.px-eyebrow) {
  margin: 0 0 var(--px-space-3);
  color: var(--px-cobalt);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.px-stage2-visual-system :where(.px-card) {
  background: var(--px-white);
  border: 1px solid var(--px-line);
  border-radius: var(--px-radius);
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.px-stage2-visual-system :where(a.px-card:hover, .px-card--interactive:hover) {
  border-color: rgba(45, 108, 223, 0.55);
  box-shadow: var(--px-shadow);
  transform: translateY(-4px);
}

.px-stage2-visual-system :where(.px-media-frame) {
  overflow: hidden;
  border-radius: var(--px-radius);
  box-shadow: var(--px-shadow);
}

.px-stage2-visual-system :where(.px-media-frame img, .px-media-frame video) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.px-stage2-visual-system :where(.px-grid) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.375rem;
}

.px-stage2-visual-system :where(.px-button-primary) {
  color: var(--px-white);
  background: var(--px-navy);
  border-color: var(--px-navy);
  box-shadow: 0 10px 26px rgba(6, 33, 63, 0.15);
}

.px-stage2-visual-system :where(.px-button-primary:hover) {
  color: var(--px-white);
  background: var(--px-navy-2);
}

.px-stage2-visual-system :where(.px-button-secondary) {
  color: var(--px-navy);
  background: transparent;
  border-color: var(--px-navy);
}

.px-stage2-visual-system :where(.px-button-secondary:hover) {
  color: var(--px-white);
  background: var(--px-navy);
}

/* Imaginile existente rămân originale; regulile controlează doar afișarea. */
.px-stage2-visual-system img {
  max-width: 100%;
  height: auto;
}

.px-stage2-visual-system :where(img[width][height]) {
  contain-intrinsic-size: auto;
}

/* Formularele și fluxurile comerciale își păstrează stilurile și comportamentul. */
.px-stage2-visual-system :where(form, .woocommerce, .woocommerce-checkout, .woocommerce-cart-form) {
  --px-form-protected: 1;
}


@media (max-width: 1024px) {
  .px-stage2-visual-system :where(.px-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  :root {
    --px-shell: min(100% - 32px, 680px);
    --px-space-7: 3.75rem;
    --px-space-8: 5rem;
  }

  .px-stage2-visual-system {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .px-stage2-visual-system :where(.elementor-button, a.elementor-button, button, [role="button"]) {
    min-height: 48px;
  }

  .px-stage2-visual-system :where(.px-grid) {
    grid-template-columns: 1fr;
  }

  .px-stage2-visual-system :where(.elementor-widget-heading h1, .elementor-heading-title.elementor-size-xxl) {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
  }

  .px-stage2-visual-system :where(.elementor-widget-heading h2, .elementor-heading-title.elementor-size-xl) {
    font-size: clamp(1.9rem, 8vw, 2.65rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .px-stage2-visual-system *,
  .px-stage2-visual-system *::before,
  .px-stage2-visual-system *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
