/* =============================================================
   EZ ONE Base Styles
   Reset, typography, accessibility essentials, body defaults.
   ============================================================= */

/* ── Skip link (WCAG 2.4.1) ─────────────────────────────────── */
.ez-skip-link {
  position: absolute;
  top: -9999px;
  left: var(--ez-space-sm);
  z-index: var(--ez-z-modal);
  padding: var(--ez-space-3) var(--ez-space-sm);
  background: var(--ez-color-primary);
  color: var(--ez-color-white);
  font-family: var(--ez-font-body);
  font-weight: var(--ez-font-weight-semibold);
  font-size: var(--ez-font-size-sm);
  text-decoration: none;
  border-radius: var(--ez-radius-sm);
}
.ez-skip-link:focus { top: var(--ez-space-2); }

/* ── Focus styles (WCAG 2.4.7) ──────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--ez-color-primary);
  outline-offset: 2px;
  border-radius: var(--ez-radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* ── Body ────────────────────────────────────────────────────── */
body {
  font-family: var(--ez-font-body);
  font-size: var(--ez-font-size-base);
  font-weight: var(--ez-font-weight-normal);
  line-height: var(--ez-line-height-normal);
  color: var(--ez-color-text);
  background-color: var(--ez-color-bg);
  -webkit-font-smoothing: antialiased;
}
body.has-sticky-cta { padding-bottom: var(--ez-sticky-cta-h); }

/* ── Headings ────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ez-font-heading);
  font-weight: var(--ez-font-weight-bold);
  line-height: var(--ez-line-height-tight);
  color: var(--ez-color-text);
  margin-top: 0;
}
h1 { font-size: var(--ez-font-size-3xl); }
h2 { font-size: var(--ez-font-size-2xl); }
h3 { font-size: var(--ez-font-size-xl);  }
h4 { font-size: var(--ez-font-size-lg);  }
h5 { font-size: var(--ez-font-size-md);  }
h6 { font-size: var(--ez-font-size-base);}

@media (min-width: 1024px) {
  h1 { font-size: var(--ez-font-size-4xl); }
  h2 { font-size: var(--ez-font-size-3xl); }
  h3 { font-size: var(--ez-font-size-2xl); }
}

/* ── Links ───────────────────────────────────────────────────── */
a {
  color: var(--ez-color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--ez-transition-fast);
}
a:hover { color: var(--ez-color-secondary); }

/* ── Media ───────────────────────────────────────────────────── */
img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Touch targets — 44 × 44 px min (WCAG 2.5.8) ────────────── */
.ez-btn,
.ez-header-cta,
.ez-menu-toggle,
.ez-sticky-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ez-btn-min-h);
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
