/* Public CTA system. Existing functional classes remain supported aliases.
   New components can use .zeh-btn + a variant, without JS class migration. */
:root {
  /* Supplied design-tokens.css, integrated into the shared system. */
  --zeh-burgundy: #990c1c;
  --zeh-burgundy-dark: #650714;
  --zeh-ink: #161c2b;
  --zeh-ivory: #fbf8f4;
  --zeh-card: #fffdfa;
  --zeh-muted: #626672;
  --zeh-border: #e8ddd7;
  --zeh-chip: #fae9e9;
  --zeh-wa: #0bbf53;
  --zeh-gold: #cf9e25;
  --zeh-card-radius: 16px;
  --zeh-button-radius: 999px;
  --zeh-shadow: 0 8px 22px rgba(64, 37, 29, .10);
  --zeh-button-gradient: linear-gradient(105deg, #c81629, #880b1b);
  --zeh-cta-bg: var(--zeh-button-gradient);
  --zeh-cta-hover: linear-gradient(110deg, #9d1020, #5c0913);
  --zeh-cta-radius: var(--zeh-button-radius);
  --zeh-cta-shadow: 0 4px 12px #79101c21;
  --zeh-cta-ink: #fff;
  --zeh-cta-border: #9e1423;
  --zeh-cta-ivory: #fffaf6;
  --zeh-cta-focus: #95162a;
  --zeh-cta-height: 40px;
  --zeh-cta-green: linear-gradient(110deg, #078536, #066b30);
  --zeh-cta-green-hover: linear-gradient(110deg, #066e2e, #045323);
}

/* :root/body specificity retires the old component-specific visual overrides.
   Native controls, text links, accordion summaries and admin UI are excluded. */
:root body :is(.zeh-btn, .btn, .btn-outline, .zs-btn, .zeh-header-action,
  .inspection-services__button, .inspection-services__email, .btn-directions,
  .blog-pagination a, .slider-btn, .product-gallery-close,
  .zeh-header-drawer-heading button, .zeh-footer-social-btn, .zs-slider-arrow) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  box-sizing: border-box;
  min-block-size: var(--zeh-cta-height);
  min-height: var(--zeh-cta-height);
  max-inline-size: 100%;
  padding: .55rem 1.15rem;
  border: 1px solid var(--_zeh-border, var(--zeh-cta-border));
  border-radius: var(--zeh-cta-radius);
  background: var(--_zeh-bg, var(--zeh-cta-bg));
  color: var(--_zeh-ink, var(--zeh-cta-ink));
  box-shadow: var(--zeh-cta-shadow);
  font-family: var(--font-ui, 'Nunito', sans-serif);
  font-size: var(--zeh-btn-font-size, .875rem);
  font-weight: 800;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  -webkit-tap-highlight-color: transparent;
}

:is(.zeh-btn--secondary, .btn-outline, .btn-secondary, .zs-btn-ghost,
  .inspection-services__email, .btn-directions, .blog-pagination a) {
  --_zeh-bg: var(--zeh-cta-ivory);
  --_zeh-hover: #fbe7e8;
  --_zeh-ink: #7e1422;
  --_zeh-border: #cba5a9;
}
:is(.zeh-btn--whatsapp, .btn-whatsapp, .zeh-header-action--whatsapp,
  .inspection-services__button, .zeh-footer-social-wa) {
  --_zeh-bg: var(--zeh-cta-green);
  --_zeh-hover: var(--zeh-cta-green-hover);
  --_zeh-ink: #fff;
  --_zeh-border: #078536;
}
.zeh-btn--danger { --_zeh-bg: #b42318; --_zeh-hover: #8f1b13; --_zeh-border: #b42318; --_zeh-ink: #fff; }
.zeh-btn--compact { --zeh-cta-height: 30px; }

/* Icon actions share the same geometry; disclosure text links stay text links. */
:root body :is(.zeh-btn--icon, .slider-btn, .product-gallery-close,
  .zeh-header-toggle, .zeh-header-drawer-heading button, .zeh-footer-social-btn,
  .zs-slider-arrow) {
  --_zeh-bg: #fff;
  --_zeh-hover: #fbe7e8;
  --_zeh-ink: #901425;
  --_zeh-border: #e2ccd0;
  inline-size: 44px;
  width: 44px;
  block-size: 44px;
  height: 44px;
  min-inline-size: 44px;
  min-block-size: 44px;
  min-height: 44px;
  padding: 0;
  flex: 0 0 44px;
  border: 1px solid var(--_zeh-border);
  background: var(--_zeh-bg);
  color: var(--_zeh-ink);
  box-shadow: var(--zeh-cta-shadow);
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
}
:root body .zeh-footer-social-wa { --_zeh-bg: var(--zeh-cta-green); --_zeh-hover: var(--zeh-cta-green-hover); --_zeh-ink: #fff; --_zeh-border: #078536; }
.zeh-header { --zeh-btn-font-size: .8125rem; }
.zeh-mega-custom { --zeh-btn-font-size: .75rem; }

:root body :is(.zeh-btn, .btn, .btn-outline, .zs-btn, .zeh-header-action,
  .inspection-services__button, .inspection-services__email, .btn-directions,
  .blog-pagination a, .slider-btn, .product-gallery-close, .zeh-header-toggle,
  .zeh-header-drawer-heading button, .zeh-footer-social-btn, .zs-slider-arrow):hover {
  background: var(--_zeh-hover, var(--zeh-cta-hover));
  color: var(--_zeh-ink, var(--zeh-cta-ink));
  border-color: var(--_zeh-border, var(--zeh-cta-border));
  box-shadow: 0 6px 18px #79101c26;
  text-decoration: none;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :root body :is(.zeh-btn, .btn, .btn-outline, .zs-btn, .zeh-header-action,
    .inspection-services__button, .inspection-services__email, .btn-directions,
    .blog-pagination a, .slider-btn, .zeh-footer-social-btn):hover { transform: translateY(-2px); }
}
:root body :is(.zeh-btn, .btn, .btn-outline, .zs-btn, .zeh-header-action,
  .inspection-services__button, .inspection-services__email, .btn-directions,
  .blog-pagination a, .slider-btn, .product-gallery-close, .zeh-header-toggle,
  .zeh-header-drawer-heading button, .zeh-footer-social-btn):active {
  transform: translateY(0);
  box-shadow: inset 0 2px 5px #35071126;
}
:root body :is(.zeh-btn, .btn, .btn-outline, .zs-btn, .zeh-header-action,
  .inspection-services__button, .inspection-services__email, .btn-directions,
  .blog-pagination a, .slider-btn, .product-gallery-close, .zeh-header-toggle,
  .zeh-header-drawer-heading button, .zeh-footer-social-btn, .zs-slider-arrow,
  .faq-question, .reviews-dot, .zs-slider-dot, .howto-dot):focus-visible {
  outline: 3px solid var(--zeh-cta-focus);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px #fff;
}
:root body :is(.zeh-btn, .btn, .btn-outline, .zs-btn, .zeh-header-action,
  .inspection-services__button, .inspection-services__email):is(:disabled, [aria-disabled="true"]) {
  opacity: .6;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
:root body :is(.zeh-btn, .btn)[aria-busy="true"] { cursor: progress; background: #6f2531; }
:root body :is(.btn-primary, .btn-secondary)::after { display: none; }
:root body .btn-whatsapp::before { display: none; }
:root body :is(.zeh-btn--primary, .btn-primary):not(:has(svg))::after {
  content: '→';
  display: inline-block;
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  flex: 0 0 auto;
  background: none;
  transform: none;
  line-height: 1;
  border-radius: 0;
}
:root body :is(.zeh-btn--primary, .btn-primary)[aria-busy="true"]::after { content: '…'; }
:root body :is(.zeh-btn, .btn, .btn-outline, .zs-btn) svg { width: 18px; height: 18px; flex-shrink: 0; }
[dir="rtl"] :is(.zeh-ui-icon--arrow-right, .zeh-btn--primary::after, .btn-primary::after) { rotate: 180deg; }
:root body .whatsapp-float {
  background: var(--zeh-cta-green);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--zeh-cta-shadow);
}
:root body .whatsapp-float:hover { background: var(--zeh-cta-green-hover); }
:root body .whatsapp-float:focus-visible { outline: 3px solid var(--zeh-cta-focus); outline-offset: 4px; }

@media (max-width: 699px), (pointer: coarse) {
  :root { --zeh-cta-height: 44px; }
  .zeh-btn--compact { --zeh-cta-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  :root body :is(.zeh-btn, .btn, .btn-outline, .zs-btn, .zeh-header-action,
    .slider-btn, .zs-slider-arrow, .inspection-services__button,
    .inspection-services__email, .zeh-footer-social-btn, .btn-directions) {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  :root body .whatsapp-float, :root body .whatsapp-float::before,
  :root body .whatsapp-float::after { animation: none !important; transition: none !important; }
}
