/* ==========================================================================
   base.css — Reset, root typography, RTL defaults
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  color: var(--ink);
}
h1, h2, h3, .section__title { text-wrap: balance; }
.section__subtitle, .hero__lead, .module__lead { text-wrap: pretty; }

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); }

p { line-height: var(--lh-body); }

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--brand-700); }

img, svg {
  display: block;
  max-width: 100%;
}

ul { list-style: none; padding: 0; }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--brand-700);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Anchor targets clear the sticky header (72px) */
[id] { scroll-margin-top: 88px; }

/* Code, commands and hashes keep Latin digits (the body font is Estedad FD) */
code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Numerals in Latin contexts (phone, prices in english) */
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
