/**
 * Bridge3 — Reset + base + utilitários de acessibilidade.
 */

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

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: var(--lh-base);
  color: var(--c-body);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  color: var(--c-ink);
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { text-wrap: pretty; }

a { color: var(--c-teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-teal-900); }

ul, ol { padding-inline-start: 1.2em; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* ---- Foco visível (teclado) ---- */
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* ---- Acessibilidade: conteúdo só para leitores de tela ---- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link.screen-reader-text:focus {
  position: fixed !important;
  top: 0.5rem; left: 0.5rem;
  z-index: 1000;
  width: auto; height: auto;
  padding: 0.75rem 1.25rem;
  margin: 0; clip: auto;
  background: var(--c-navy);
  color: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  text-decoration: none;
}

/* ---- Botões ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.8em 1.5em;
  font-weight: var(--fw-medium);
  line-height: 1.2;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t-fast);
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--c-accent); color: #fff; box-shadow: 0 6px 16px rgba(156,82,16,0.28); }
.btn--accent:hover { background: var(--c-accent-700); color: #fff; box-shadow: 0 8px 22px rgba(156,82,16,0.38); transform: translateY(-1px); }
.btn--hero-primary { border-radius: 8px; min-height: 48px; }
.btn--outline { background: transparent; border-color: #fff; color: #fff; }
.btn--outline:hover { background: #fff; color: var(--c-teal); border-color: #fff; }
.btn--outline-hero { border-width: 1.6px; border-radius: 8px; min-height: 48px; }
.btn--ghost-dark { background: transparent; border-color: var(--c-navy); color: var(--c-navy); }
.btn--ghost-dark:hover { background: var(--c-navy); color: #fff; }

/* ---- Utilitários ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.section { padding-block: var(--section-y); }
.section--dark { background: var(--grad-band); color: var(--c-on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--teal { background: var(--grad-teal); color: var(--c-on-dark); }
.section--teal h2, .section--teal h3 { color: #fff; }
.section--alt { background: var(--c-surface-alt); }
.section--muted { background: var(--c-surface-muted); }
.section--bridge {
  position: relative;
  isolation: isolate;
  background: var(--grad-bridge3);
  color: var(--c-on-dark);
}
.section--bridge::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../img/textura.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  pointer-events: none;
}
.section--bridge h2,
.section--bridge h3 { color: #fff; }

.section__head { text-align: center; max-width: 46rem; margin-inline: auto; margin-bottom: var(--space-7); }
.section__head p { color: var(--c-muted); font-size: var(--step-1); margin-top: var(--space-3); }
.section--dark .section__head p,
.section--teal .section__head p,
.section--bridge .section__head p { color: var(--c-on-dark-muted); }

.eyebrow { letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--step--1); font-weight: var(--fw-bold); color: var(--c-accent); }

/* ---- Carrosséis horizontais: sem scrollbar, sem corte vertical ---- */
[data-carousel-track] {
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-y: visible;
}
[data-carousel-track]::-webkit-scrollbar {
  display: none;
}

.cursos-depo__viewport,
.cursos__viewport,
.cursos-cert__viewport,
.time-equipe__viewport {
  overflow-x: hidden;
  overflow-y: visible;
}
