/**
 * ╔══════════════════════════════════════╗
 * ║  KLUE DIGITAL — reset.css            ║
 * ║  Reset and normalize styles          ║
 * ║  Versão: 2.0.0                       ║
 * ╚══════════════════════════════════════╝
 */

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

/* HTML & Body */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: var(--lh-normal);
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

/* Typography */
a {
  text-decoration: none;
  color: inherit;
  transition: color var(--dur-base) var(--ease-out);
}

a:hover {
  color: var(--clr-primary);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

picture {
  display: block;
}

svg {
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: inherit;
  border: inherit;
}

button {
  cursor: pointer;
}

textarea {
  resize: none;
  font-family: var(--font-sans);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: var(--sp-4);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  background: var(--clr-surface);
  color: var(--clr-text);
  transition: all var(--dur-base) var(--ease-out);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  background: var(--clr-primary-light);
  box-shadow: 0 0 0 3px rgba(145, 43, 255, 0.1);
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-base);
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
