/* =========================================================
   FILIPE ASSIS | DEV
   ESTILOS GERAIS
========================================================= */

:root {
  /* Cores principais */
  --color-bg: #080808;
  --color-bg-soft: #101010;
  --color-bg-card: #141414;

  --color-white: #ffffff;
  --color-gray-light: #d8d8d8;
  --color-gray: #a7a7a7;
  --color-gray-dark: #555555;

  /* Destaque - usar com moderação */
  --color-accent: #b32025;

  /* Bordas */
  --color-border: #1d1d1d;
  --color-border-light: #343434;

  /* Layout */
  --container-width: 1240px;
  --page-padding: 24px;
  --header-height: 90px;
  --anchor-gap: 0px;
  --header-offset: var(--header-height);
  --floating-offset: 24px;
  --whatsapp-size: 66px;
  --color-whatsapp: #25d366;

  /* Transições */
  --transition-fast: 0.2s ease;
  --transition-default: 0.25s ease;
}

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  background: var(--color-bg);
  color: var(--color-white);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
button,
input,
textarea,
select {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  border: 0;
  background: transparent;
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   ACESSIBILIDADE
========================================================= */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);

  white-space: nowrap;

  border: 0;
}

/* =========================================================
   CONTAINER
========================================================= */

.container {
  width: min(
    var(--container-width),
    calc(100% - (var(--page-padding) * 2))
  );

  margin-inline: auto;
}

/* =========================================================
   RESPONSIVO GLOBAL
========================================================= */

@media (max-width: 940px) {
  :root {
    --page-padding: 16px;
  }
}

@media (max-width: 480px) {
  :root {
    --page-padding: 14px;
  }
}

/* =========================================================
   HEADER FIXA / ÂNCORAS
========================================================= */

body {
  padding-top: var(--header-height, 90px);
}

body section[id] {
  scroll-margin-top: var(--header-offset);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Material claro extraído do card de condição/oferta. */
:root {
  --surface-light-bg: #f7f7f5;
  --surface-light-grid: linear-gradient(rgba(8, 8, 8, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 8, 8, 0.045) 1px, transparent 1px);
  --surface-light-grid-size: 64px;
  --surface-light-border: 1px solid rgba(255, 255, 255, 0.08);
  --surface-light-radius: 30px;
  --surface-light-shadow: none;
  --surface-light-glow: radial-gradient(circle, rgba(227, 38, 54, 0.12) 0%, rgba(227, 38, 54, 0.045) 38%, transparent 70%);
}
.surface-light.surface-light,
.page-sobre .contact-section,
.home-surfaces .contact-section > .container {
  position: relative;
  isolation: isolate;
  background: var(--surface-light-grid), var(--surface-light-bg);
  background-size: var(--surface-light-grid-size) var(--surface-light-grid-size);
  border: var(--surface-light-border);
  border-radius: var(--surface-light-radius);
  box-shadow: var(--surface-light-shadow);
  overflow: hidden;
}
.surface-light.surface-light::before,
.page-sobre .contact-section::before,
.home-surfaces .contact-section > .container::before {
  content: "";
  position: absolute;
  inset: auto;
  width: 560px;
  height: 560px;
  right: -140px;
  top: -220px;
  z-index: 0;
  background: var(--surface-light-glow);
  background-size: auto;
  mask-image: none;
  opacity: 1;
  transform: none;
  pointer-events: none;
}
.surface-light > *,
.page-sobre .contact-section > *,
.home-surfaces .contact-section > .container > * {
  position: relative;
  z-index: 1;
}
@media (max-width: 640px) {
  :root { --surface-light-radius: 22px; --surface-light-grid-size: 44px; }
}

/* A mesma superfície pode ser uma faixa inteira ou um card compacto. */
.surface-light.surface-light--full,
.page-sobre .contact-section {
  width: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Respeita movimento reduzido também em pseudo-elementos e fragmentos. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
