/* Static-site adapter for the existing CRM buttons, without importing app-wide
   layout rules. Source: apps/web/app/styles.css (brand tokens, primary-button,
   secondary-button) and workspace-macos.css (8px radius, flat material).
   The logo-blue/white contrast exception is recorded in apps/web/DESIGN.md. */
:root {
  --brand-primary: #02a1ef;
  --brand-primary-hover: #0a8fd6;
  --on-brand-primary: #fff;
  --on-brand-primary-shadow: 0 1px 1px rgb(0 52 92 / 0.55);
  --brand-whatsapp: #0a7a63;
  --brand-whatsapp-strong: #075e54;
  --radius-sm: 8px;
  --motion-fast: 140ms;
  --motion-ease: cubic-bezier(0.2, 0, 0, 1);
}

:is(.btn, .btn-order, .btn-product, .hdr-wa-btn, a.button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--brand-primary);
  box-shadow: none;
  color: var(--on-brand-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  text-align: center;
  text-shadow: var(--on-brand-primary-shadow);
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
}

:is(.btn, .btn-order, .btn-product, .hdr-wa-btn, a.button):hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}

:is(.btn, .btn-order, .btn-product, .hdr-wa-btn, a.button):active {
  transform: translateY(0);
}

:is(a, button):focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

:is(.hero, .page-hero, .cta-section) :is(a, button):focus-visible {
  outline-color: #fff;
}

.btn.btn-outline {
  border-color: rgb(255 255 255 / 0.7);
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  text-shadow: none;
}

.btn.btn-outline:hover { background: rgb(255 255 255 / 0.22); }
.btn.btn-white { background: #fff; color: #132238; text-shadow: none; }
.btn.btn-white:hover { background: #f4f7fc; }
.hdr-wa-btn { background: var(--brand-whatsapp); text-shadow: none; }
.hdr-wa-btn:hover { background: var(--brand-whatsapp-strong); }
.btn-product { display: flex; width: 100%; }
.btn-order--center { display: flex; }
.logo { flex-shrink: 0; }
.logo img { max-width: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
