/**
 * OneguS BioLynk — Base (layout global, body, tipografia)
 * Aplicado após reset e variáveis.
 */

html {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #fdf2f8;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  font-family: var(--ob-font-primary);
  color: var(--ob-txt);
  background-color: var(--ob-bg);
  background-image: var(--ob-body-bg-image, url('../assets/img/back2.png'));
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
  overflow-y: hidden;
  line-height: 1.6;
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  width: 100%;
  margin: 0;
  padding: var(--ob-safe-top) var(--ob-safe-right) var(--ob-safe-bottom) var(--ob-safe-left);
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

/* Camada fixa do background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  background-image: var(--ob-body-bg-image, url('../assets/img/back2.png'));
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -2;
  pointer-events: none;
}

@media (max-width: 768px) {
  body::before {
    background-attachment: scroll;
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* Overlay escuro sobre o fundo */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(11, 13, 19, 1);
  z-index: -1;
  pointer-events: none;
}

/* Focus visível (acessibilidade) */
a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: none;
  box-shadow: var(--ob-focus-ring);
  border-radius: inherit;
}

input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ob-accent-purple-light);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
