/* Wittmann: quiet typography, accessible controls, one restrained motion language.
 * Load after the child theme, campaign and link-contrast styles. No remote assets.
 */
:root {
  --fw-polish-ink: #0a3d58;
  --fw-polish-line: #dce7ed;
  --fw-polish-focus: #10628c;
  --fw-polish-ease: cubic-bezier(.2, .6, .3, 1);
}

/* Native Elementor headings and the older, named shortcode components.
 * Retain each section's font size, white/navy color and layout decisions.
 */
body .elementor .elementor-widget-heading :is(h1, h2, h3).elementor-heading-title,
body .wm-section :is(h1, h2, h3),
body .wm-hero-split-section :is(h1, h2, h3),
body .wm-class-page :is(h1, h2, h3) {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  text-transform: none !important;
}
body .wm-section :is(h1, h2, h3),
body .wm-hero-split-section :is(h1, h2, h3),
body .wm-class-page :is(h1, h2, h3) {
  font-weight: 700 !important;
  letter-spacing: -.025em !important;
  line-height: 1.18 !important;
  overflow-wrap: break-word;
}
body .wm-section h1,
body .wm-hero-split-section h1,
body .wm-class-page h1 { font-size: clamp(34px, 4.6vw, 60px) !important; }
body .wm-section h2,
body .wm-class-page h2 { font-size: clamp(28px, 3.3vw, 42px) !important; }
body .wm-section h3,
body .wm-class-page h3 { font-size: clamp(21px, 2.1vw, 25px) !important; }
body .wm-section-header .wm-lead { line-height: 1.7; }
body .wm-section-header > :last-child { margin-bottom: 0; }

/* Controls have a reliable target size; ordinary inline text links stay inline. */
body :is(.wm-btn, .header-cta-btn),
body .elementor-widget-button .elementor-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  line-height: 1.45;
  white-space: normal;
}
body :is(.wm-btn, .header-cta-btn, .elementor-button, .wm-faq-summary):focus-visible,
body .fw-campaign.fc-faq :is(summary, .elementor-tab-title):focus-visible,
body .fw-campaign.fc-faq .elementor-tab-title a:focus-visible {
  outline: 3px solid var(--fw-polish-focus);
  outline-offset: 4px;
}
body .wm-cta-closing-box :is(a, button):focus-visible,
body .fw-campaign.fc-choice :is(a, button):focus-visible {
  outline-color: #fdd318;
}
body .wm-btn,
body .elementor-widget-button .elementor-button {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

/* Keep disclosure native: no height animation, no script, no hidden answers.
 * Existing open/closed state and legal content are preserved.
 */
body .wm-faq-accordion { gap: 12px; }
body .wm-faq-item,
body .fw-campaign.fc-faq .elementor-accordion-item {
  border: 1px solid var(--fw-polish-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
body .fw-campaign.fc-faq .elementor-accordion-item + .elementor-accordion-item { margin-top: 12px; }
body .wm-faq-summary,
body .fw-campaign.fc-faq .elementor-accordion .elementor-tab-title {
  min-height: 60px;
  padding: 18px 22px;
  font: 650 16px/1.5 Inter, sans-serif !important;
  letter-spacing: -.01em !important;
  text-transform: none !important;
  color: var(--fw-polish-ink) !important;
  gap: 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
body .wm-faq-summary:hover,
body .fw-campaign.fc-faq .elementor-tab-title:hover { background: #f4f8fa; }
body .wm-faq-summary { border-radius: 11px; }
body .wm-faq-item[open] { border-color: #a5c7d8; }
body .wm-faq-item[open] > .wm-faq-summary { border-radius: 11px 11px 0 0; }
body .wm-faq-body,
body .fw-campaign.fc-faq .elementor-accordion .elementor-tab-content {
  padding: 0 22px 22px;
  border: 0;
  font-size: 15px;
  line-height: 1.75;
}
body .wm-faq-body > :last-child,
body .fw-campaign.fc-faq .elementor-tab-content > :last-child { margin-bottom: 0; }
body .wm-faq-chevron { flex: 0 0 auto; }

/* Remove old entrance/attention effects before Elementor can hide content.
 * Functional tab, accordion, menu and [hidden] visibility are not overridden.
 * Motion layer transforms are presentation only; their background remains.
 */
body .elementor-element.elementor-invisible { visibility: visible !important; }
body .elementor-element.animated,
body .elementor-element[data-settings*="_animation"],
body .elementor-element[data-settings*='"animation"'] {
  animation: none !important;
  animation-delay: 0s !important;
  opacity: 1 !important;
}
body .elementor-element.animated { transform: none !important; }
body .elementor-motion-effects-layer {
  transform: none !important;
  transition: none !important;
}
body .elementor-element.elementor-motion-effects-element {
  transform: none !important;
  transition: none !important;
  --translateX: 0px !important;
  --translateY: 0px !important;
  --rotateX: 0deg !important;
  --rotateY: 0deg !important;
  --rotateZ: 0deg !important;
  --scale: 1 !important;
}
body .elementor :is([class*="elementor-animation-"]):is(:hover, :focus, :active),
body .wittmann-team-card:hover .team-img-wrap img {
  animation: none !important;
  transform: none !important;
}

/* Only explicit interactive components receive movement, capped at 2px.
 * No transition:all, oversized shadow pulse, image zoom or moving text arrows.
 */
body :is(.class-card, .wm-entry-card, .wm-answer-card, .wittmann-team-card),
body :is(.wm-btn, .header-cta-btn, .btn-primary-hero, .btn-secondary-hero),
body .elementor-widget-button .elementor-button,
body .wpcf7 input[type="submit"] {
  transition: transform 160ms var(--fw-polish-ease), background-color 160ms ease,
    border-color 160ms ease, color 160ms ease !important;
}
body :is(.class-card, .wm-entry-card, .wm-answer-card, .wittmann-team-card):hover {
  transform: none !important;
  box-shadow: 0 8px 24px #0a3d580a !important;
}
body article.post:hover { transform: none !important; }
body .class-card-link { transition: color 160ms ease !important; }
body .class-card-link:hover { gap: 6px; }
body :is(.wm-btn, .header-cta-btn, .btn-primary-hero, .btn-secondary-hero):hover,
body .elementor-widget-button .elementor-button:hover,
body .wpcf7 input[type="submit"]:hover {
  transform: none !important;
  box-shadow: none !important;
}
body header#site-header {
  transition: box-shadow 160ms ease, background-color 160ms ease !important;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body :is(.class-card, .wm-entry-card, .wm-answer-card, .wittmann-team-card):hover,
  body :is(.wm-btn, .header-cta-btn, .btn-primary-hero, .btn-secondary-hero):hover,
  body .elementor-widget-button .elementor-button:hover,
  body .wpcf7 input[type="submit"]:hover { transform: translateY(-2px) !important; }
}

@media (max-width: 767px) {
  body .wm-faq-summary,
  body .fw-campaign.fc-faq .elementor-accordion .elementor-tab-title { padding: 16px 18px; }
  body .wm-faq-body,
  body .fw-campaign.fc-faq .elementor-accordion .elementor-tab-content { padding: 0 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  body :is(.class-card, .wm-entry-card, .wm-answer-card, .wittmann-team-card,
    .wm-btn, .header-cta-btn, .btn-primary-hero, .btn-secondary-hero, .wm-faq-chevron),
  body .elementor-widget-button .elementor-button,
  body .elementor .elementor-element.animated,
  body .wpcf7 input[type="submit"],
  body .site-navigation :is(a, ul, button),
  body .site-navigation-toggle,
  body .site-navigation-toggle-icon,
  body .site-navigation-toggle-icon::before,
  body .site-navigation-toggle-icon::after,
  body header#site-header { transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  body :is(.wm-btn, .header-cta-btn, .elementor-button, .wm-faq-summary):focus-visible,
  body .fw-campaign.fc-faq :is(summary, .elementor-tab-title):focus-visible,
  body .fw-campaign.fc-faq .elementor-tab-title a:focus-visible { outline-color: Highlight; }
}
