/* =========================================================
   VIP CAR ESTÉTICA AUTOMOTIVA
   Arquivo: reset.css

   Objetivo:
   - Remover diferenças de estilo entre navegadores
   - Padronizar margens, paddings e comportamento
   - Criar uma base consistente para todo o site
========================================================= */


/* =========================================================
   BOX SIZING
========================================================= */

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


/* =========================================================
   RESET GLOBAL
========================================================= */

* {
    margin: 0;
    padding: 0;
}


/* =========================================================
   HTML
========================================================= */

html {
    width: 100%;
    min-height: 100%;

    scroll-behavior: smooth;

    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    scroll-padding-top: var(--header-height);
}


/* =========================================================
   BODY
========================================================= */

body {
    width: 100%;
    min-height: 100vh;

    margin: 0;

    overflow-x: hidden;

    line-height: 1.5;

    text-rendering: optimizeLegibility;
}


/* =========================================================
   HEADINGS
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;

    font-size: inherit;
    font-weight: inherit;

    line-height: inherit;
}


/* =========================================================
   PARÁGRAFOS
========================================================= */

p {
    margin: 0;
}


/* =========================================================
   LINKS
========================================================= */

a {
    color: inherit;

    text-decoration: none;

    cursor: pointer;
}


/* =========================================================
   LISTAS
========================================================= */

ul,
ol {
    margin: 0;
    padding: 0;

    list-style: none;
}


/* =========================================================
   IMAGENS
========================================================= */

img,
picture,
svg,
canvas {
    display: block;

    max-width: 100%;
}


/* =========================================================
   IMAGENS
========================================================= */

img {
    height: auto;

    user-select: none;

    -webkit-user-drag: none;
}


/* =========================================================
   VÍDEOS
========================================================= */

video {
    display: block;

    max-width: 100%;
}


/* =========================================================
   IFRAMES
========================================================= */

iframe {
    display: block;

    max-width: 100%;

    border: 0;
}


/* =========================================================
   ELEMENTOS DE FORMULÁRIO
========================================================= */

button,
input,
textarea,
select {
    margin: 0;

    font: inherit;

    color: inherit;
}


/* =========================================================
   BOTÕES
========================================================= */

button {
    padding: 0;

    background: none;

    border: none;

    cursor: pointer;
}


/* =========================================================
   INPUTS
========================================================= */

input {
    min-width: 0;
}


/* =========================================================
   TEXTAREA
========================================================= */

textarea {
    resize: vertical;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

::placeholder {
    opacity: 1;
}


/* =========================================================
   FIELDSET
========================================================= */

fieldset {
    margin: 0;
    padding: 0;

    border: 0;
}


/* =========================================================
   LEGEND
========================================================= */

legend {
    padding: 0;
}


/* =========================================================
   TABLE
========================================================= */

table {
    border-spacing: 0;
    border-collapse: collapse;
}


/* =========================================================
   SUMMARY
========================================================= */

summary {
    cursor: pointer;
}


/* =========================================================
   DETAILS
========================================================= */

details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}


/* =========================================================
   ELEMENTOS DE MÍDIA
========================================================= */

audio,
video {
    width: 100%;
}


/* =========================================================
   STRONG
========================================================= */

strong {
    font-weight: inherit;
}


/* =========================================================
   ABBR
========================================================= */

abbr[title] {
    text-decoration: underline dotted;
}


/* =========================================================
   CODE
========================================================= */

code,
kbd,
samp,
pre {
    font-family: monospace;
}


/* =========================================================
   SUB / SUP
========================================================= */

sub,
sup {
    position: relative;

    vertical-align: baseline;

    font-size: 75%;
    line-height: 0;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}


/* =========================================================
   HORIZONTAL RULE
========================================================= */

hr {
    height: 1px;

    margin: 0;

    background: var(--border-subtle);

    border: 0;
}


/* =========================================================
   SELEÇÃO DE TEXTO
========================================================= */

::selection {
    background: var(--vip-gold);
    color: var(--text-dark);
}

::-moz-selection {
    background: var(--vip-gold);
    color: var(--text-dark);
}


/* =========================================================
   SCROLLBAR — FIREFOX
========================================================= */

html {
    scrollbar-width: thin;

    scrollbar-color:
        var(--vip-gold-dark)
        var(--bg-primary);
}


/* =========================================================
   SCROLLBAR — CHROME / EDGE / SAFARI
========================================================= */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            180deg,
            var(--vip-gold),
            var(--vip-gold-dark)
        );

    border: 2px solid var(--bg-primary);

    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            180deg,
            var(--vip-gold-light),
            var(--vip-gold)
        );
}


/* =========================================================
   FOCO DE ACESSIBILIDADE

   O :focus-visible aparece principalmente quando
   o usuário navega com teclado.
========================================================= */

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--vip-gold);

    outline-offset: 4px;

    border-radius: var(--radius-xs);
}


/* =========================================================
   ELEMENTOS DESABILITADOS
========================================================= */

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
    cursor: not-allowed;

    opacity: var(--opacity-disabled);
}


/* =========================================================
   REMOVE BOTÃO NATIVO DO INPUT SEARCH
========================================================= */

input[type="search"]::-webkit-search-cancel-button {
    appearance: none;
    -webkit-appearance: none;
}


/* =========================================================
   CORRIGE APARÊNCIA DE BOTÕES NO SAFARI
========================================================= */

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    appearance: none;
    -webkit-appearance: none;
}


/* =========================================================
   EVITA CLIQUE AZUL NO MOBILE
========================================================= */

a,
button {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   IMPEDE SELEÇÃO ACIDENTAL DE ÍCONES
========================================================= */

svg {
    pointer-events: none;
}


/* =========================================================
   ELEMENTOS OCULTOS
========================================================= */

[hidden] {
    display: none !important;
}


/* =========================================================
   ACESSIBILIDADE — CONTEÚDO VISUALMENTE OCULTO

   Pode ser usado para textos de leitores de tela.
========================================================= */

.sr-only {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* =========================================================
   REMOVE ANIMAÇÕES PARA QUEM PREFERE MENOS MOVIMENTO

   Isso é importante para acessibilidade.
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    html {
        scroll-padding-top: var(--header-height-mobile);
    }

    ::-webkit-scrollbar {
        width: 6px;
    }
}