/* ==========================================================================
   iSell Brasil — Base (reset, tipografia, utilitarios)
   ========================================================================== */

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

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--lh-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  letter-spacing: var(--ls-tight);
  color: var(--color-text-primary);
}

/* ——— Tipografia utilitaria ——— */
.t-h1 {
  font-size: var(--text-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-tighter);
}

.t-h2 {
  font-size: var(--text-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-tighter);
}

.t-h3 {
  font-size: var(--text-h3);
  line-height: var(--lh-h3);
}

.t-lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  font-weight: var(--weight-regular);
  color: var(--color-text-secondary);
}

.t-eyebrow {
  display: inline-block;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-red);
}

.t-muted {
  color: var(--color-text-secondary);
}

/* ——— Acentos de marca ——— */
.accent-red { color: var(--brand-red); }
.accent-green { color: var(--brand-green); }

/* ——— Layout ——— */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.section {
  padding-block: clamp(56px, 9vw, var(--space-section-lg));
}

.section--tight {
  padding-block: clamp(40px, 6vw, 64px);
}

.section-head {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(32px, 5vw, 56px);
  text-align: center;
}

.section-head .t-lead {
  margin-top: var(--space-md);
}

/* ——— Acessibilidade ——— */
*:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
  border-radius: 4px;
}

.u-skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-text-primary);
  color: var(--color-text-inverse);
  border-radius: 0 0 var(--radius-sm) 0;
}

.u-skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  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.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
