/* ═══════════════════════════════════════════════════════════════════
   1-base.css — Reset & Base
   Regras para elementos HTML puro. Sem classes de componentes.
   Inclui: box-model, body, Locomotive Scroll hooks, scrollbar.
   ═══════════════════════════════════════════════════════════════════ */

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

body {
  margin: 0;
  background-color: var(--clr-teal-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--clr-ink);
  --color-text:       var(--clr-ink);
  --color-bg:         var(--clr-teal-body);
  --color-link:       var(--clr-teal-body);
  --color-link-hover: var(--clr-apricot);
  --cursor-fill:      var(--clr-apricot);
}

/* ── Locomotive Scroll: trava o scroll nativo ── */
html.has-scroll-smooth        { overflow: hidden; }
html.has-scroll-dragging      { user-select: none; }
.has-scroll-smooth body       { overflow: hidden; }
.has-scroll-smooth [data-scroll-container] { min-height: 100vh; }

[data-scroll-direction="horizontal"] [data-scroll-container] {
  white-space: nowrap;
  height: 100vh;
  display: inline-block;
}

[data-scroll-direction="horizontal"] [data-scroll-section] {
  display: inline-block;
  vertical-align: top;
  white-space: nowrap;
  height: 100%;
}

/* ── Mobile: liberar scroll nativo ── */
@media (max-width: 1023.98px) {
  html.has-scroll-smooth,
  .has-scroll-smooth body { overflow: auto; }

  [data-scroll-direction="horizontal"] [data-scroll-container] {
    white-space: normal;
    height: auto;
    display: block;
  }

  [data-scroll-direction="horizontal"] [data-scroll-section] {
    display: block;
    white-space: normal;
    height: auto;
  }
}

/* ── Locomotive Scrollbar customizada ── */
.c-scrollbar {
  position: absolute;
  right: 0; top: 0;
  width: 8px; height: 100%;
  background-color: var(--clr-scrollbar-track);
  z-index: var(--z-scrollbar);
  opacity: 0;
  transition: opacity var(--duration-m);
}

.c-scrollbar:hover,
.has-scroll-scrolling .c-scrollbar,
.has-scroll-dragging  .c-scrollbar { opacity: 1; }

[data-scroll-direction="horizontal"] .c-scrollbar {
  width: 100%; height: 10px;
  top: auto; bottom: 0;
  background-color: transparent;
}

.c-scrollbar_thumb {
  position: absolute;
  top: 0; right: 0;
  background-color: var(--clr-scrollbar-thumb);
  width: 7px;
  cursor: grab;
}

.has-scroll-dragging .c-scrollbar_thumb { cursor: grabbing; }

[data-scroll-direction="horizontal"] .c-scrollbar_thumb {
  right: auto; bottom: 0;
}
