/* ==========================================================
   Misquita Garage — estilos
   Índice: 1. Tokens  2. Base  3. Botões  4. Topo  5. Hero
           6. Seções  7. Serviços  8. Passos  9. Orçamento
           10. Contato  11. Rodapé  12. Utilidades
   ========================================================== */

/* 1. Tokens ------------------------------------------------ */
:root {
  --fundo: #050f20;
  --fundo-2: #081a36;
  --cartao: #0c2145;
  --linha: #1b3a6b;
  --azul: #2f8cff;
  --azul-claro: #7db8ff;
  --amarelo: #ffc61a;
  --verde: #25d366;
  --texto: #f2f6fc;
  --suave: #a9bbd6;
  --erro: #ff8a8a;

  --raio: 16px;
  --raio-p: 10px;
  --sombra: 0 18px 40px -18px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --f-titulo: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-texto: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* 2. Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--f-texto);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
svg { display: block; }
[hidden] { display: none !important; }
.sprites { position: absolute; }

h1, h2, h3 {
  font-family: var(--f-titulo);
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .005em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h3 { font-size: 1.5rem; }

.wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--amarelo); color: #1a1400; font-weight: 700;
  padding: .6rem 1rem; border-radius: var(--raio-p);
}
.skip:focus { top: 1rem; }

.selo {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--azul-claro); margin-bottom: .9rem;
}
.selo::before { content: ""; width: 26px; height: 3px; background: var(--amarelo); transform: skewX(-20deg); }

/* 3. Botões ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.6rem;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 700 1.05rem var(--f-texto);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn svg { width: 1.3em; height: 1.3em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--wa { background: var(--verde); color: #03240f; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .7); }
.btn--amarelo { background: var(--amarelo); color: #1a1400; box-shadow: 0 10px 24px -10px rgba(255, 198, 26, .7); }
.btn--linha { background: transparent; color: var(--texto); box-shadow: inset 0 0 0 1.5px var(--linha); }
.btn--linha:hover { box-shadow: inset 0 0 0 1.5px var(--verde); color: var(--verde); }
.btn--sm { min-height: 42px; padding: .5rem 1.1rem; font-size: .95rem; }
.btn--bloco { width: 100%; }

/* 4. Topo -------------------------------------------------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 15, 32, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.topo.rolou { border-bottom-color: var(--linha); background: rgba(5, 15, 32, .95); }
.topo__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }

.marca { display: inline-flex; flex-direction: column; line-height: 1; }
.marca__nome { font: italic 800 1.75rem var(--f-titulo); text-transform: uppercase; letter-spacing: .02em; }
.marca__sub {
  font-size: .68rem; font-weight: 700; letter-spacing: .42em; text-transform: uppercase;
  color: var(--azul); display: flex; align-items: center; gap: .4rem;
}
.marca__sub::before, .marca__sub::after { content: ""; flex: 1; height: 2px; background: var(--azul); }

.menu { display: flex; align-items: center; gap: 1.7rem; font-weight: 600; font-size: .98rem; }
.menu > a:not(.btn) { color: var(--suave); position: relative; padding: .4rem 0; transition: color .2s; }
.menu > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--amarelo); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.menu > a:not(.btn):hover, .menu > a.ativo { color: var(--texto); }
.menu > a.ativo::after, .menu > a:not(.btn):hover::after { transform: scaleX(1); }

.menu-btn {
  display: none; width: 46px; height: 46px; padding: 12px 10px;
  background: transparent; border: 1.5px solid var(--linha); border-radius: var(--raio-p); cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.menu-btn span { height: 2px; background: var(--texto); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1.25rem;
    background: var(--fundo); border-bottom: 1px solid var(--linha);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .menu.aberto { visibility: visible; opacity: 1; transform: none; }
  .menu > a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid var(--linha); font-size: 1.1rem; }
  .menu > a:not(.btn)::after { display: none; }
  .menu .btn { margin-top: 1rem; min-height: 50px; }
}

/* 5. Hero -------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) 0 2.5rem;
  background:
    radial-gradient(700px 420px at 82% 30%, rgba(47, 140, 255, .28), transparent 65%),
    linear-gradient(180deg, var(--fundo-2), var(--fundo));
}
/* faixas diagonais, como no panfleto */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(112deg,
    transparent 0 60%,
    rgba(47, 140, 255, .14) 60% 63%,
    transparent 63% 66%,
    rgba(47, 140, 255, .08) 66% 73%,
    transparent 73%);
}
.hero__in {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
}
.hero h1 { font-size: clamp(3rem, 9vw, 5.6rem); }
.hero h1 span { display: block; font-size: .56em; color: var(--azul); margin-top: .12em; }
.hero__lead { margin: 1.4rem 0 2rem; font-size: 1.2rem; color: var(--suave); max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }

.checks { display: flex; flex-wrap: wrap; gap: .7rem 1.8rem; margin-top: 2.2rem; font-weight: 600; }
.checks--col { flex-direction: column; margin-top: 1.6rem; }
.checks li { display: flex; align-items: center; gap: .6rem; }
.checks li::before {
  content: ""; flex: none; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: var(--amarelo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1400' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.hero__arte svg { width: 100%; height: auto; filter: drop-shadow(0 0 28px rgba(47, 140, 255, .45)); }
.js .hero__arte { animation: chegar .9s var(--ease) both .15s; }
@keyframes chegar { from { opacity: 0; transform: translateX(60px); } }

.faixa {
  position: relative;
  display: grid; grid-template-columns: repeat(6, 1fr);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background: rgba(12, 33, 69, .75); border: 1px solid var(--linha); border-radius: var(--raio);
  backdrop-filter: blur(6px);
}
.faixa a {
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  padding: 1.1rem .5rem; text-align: center;
  font: italic 700 1.02rem var(--f-titulo); text-transform: uppercase; letter-spacing: .03em; line-height: 1.1;
  transition: background-color .2s, color .2s;
}
.faixa li + li a { border-left: 1px solid var(--linha); }
.faixa li:first-child a { border-radius: var(--raio) 0 0 var(--raio); }
.faixa li:last-child a { border-radius: 0 var(--raio) var(--raio) 0; }
.faixa svg { width: 30px; height: 30px; color: var(--amarelo); transition: transform .25s var(--ease); }
.faixa a:hover { background: rgba(47, 140, 255, .14); }
.faixa a:hover svg { transform: translateY(-3px); }

@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__arte { order: -1; max-width: 340px; margin-inline: auto; }
  .faixa { grid-template-columns: repeat(3, 1fr); }
  .faixa li a { border-radius: 0 !important; }
  .faixa li:nth-child(4) a { border-left: 0; }
  .faixa li:nth-child(n+4) a { border-top: 1px solid var(--linha); }
}
@media (max-width: 480px) {
  .hero__cta .btn { width: 100%; }
  .faixa a { font-size: .9rem; padding: .9rem .3rem; }
}

/* 6. Seções ------------------------------------------------ */
.sec { padding: clamp(3.5rem, 9vw, 6rem) 0; }
.sec--alt { background: var(--fundo-2); border-block: 1px solid var(--linha); }
.sec__cab { margin-bottom: 2.5rem; }
.sec__cab p:not(.selo), .orc__txt > p:not(.selo) { color: var(--suave); max-width: 52ch; margin-top: .8rem; }

/* 7. Serviços ---------------------------------------------- */
.grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .grade { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grade { grid-template-columns: 1fr; } }

.cartao {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .7rem;
  padding: 1.6rem; scroll-margin-top: 100px;
  background: linear-gradient(160deg, var(--cartao), #091a37);
  border: 1px solid var(--linha); border-radius: var(--raio);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.cartao::after {
  content: attr(data-n);
  position: absolute; right: .9rem; top: .3rem;
  font: italic 800 4.2rem var(--f-titulo); line-height: 1;
  color: rgba(125, 184, 255, .09); transition: color .25s;
}
.cartao:hover, .cartao.destaque { transform: translateY(-4px); border-color: var(--azul); box-shadow: var(--sombra); }
.cartao:hover::after { color: rgba(255, 198, 26, .22); }
.cartao__ico {
  display: grid; place-items: center; width: 54px; height: 54px;
  border-radius: 14px; background: rgba(255, 198, 26, .12); color: var(--amarelo);
}
.cartao__ico svg { width: 30px; height: 30px; }
.cartao p { color: var(--suave); font-size: 1rem; flex: 1; }
.cartao .btn { align-self: flex-start; margin-top: .5rem; }

/* 8. Passos ------------------------------------------------ */
.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: p; }
.passos li { position: relative; padding-top: 1.4rem; border-top: 2px solid var(--linha); }
.passos li::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 2px; background: var(--amarelo); }
.passos__n { display: block; font: italic 800 3.6rem var(--f-titulo); line-height: 1; color: var(--azul); margin-bottom: .5rem; }
.passos p { color: var(--suave); margin-top: .5rem; }
@media (max-width: 760px) { .passos { grid-template-columns: 1fr; gap: 1.6rem; } }

/* 9. Orçamento --------------------------------------------- */
.orc { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .orc { grid-template-columns: 1fr; } }
@media (min-width: 861px) { .orc__txt { position: sticky; top: 110px; } }

.form {
  display: grid; gap: 1.1rem; padding: clamp(1.3rem, 3vw, 2rem);
  background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio);
  box-shadow: var(--sombra);
}
.form__linha { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 520px) { .form__linha { grid-template-columns: 1fr; } }
.campo { display: grid; gap: .4rem; }
.campo > span { font-size: .92rem; font-weight: 700; }
.campo em { font-style: normal; font-weight: 400; color: var(--suave); }
input, select, textarea {
  width: 100%; min-height: 50px; padding: .75rem .9rem;
  font: inherit; color: var(--texto);
  background: var(--fundo); border: 1.5px solid var(--linha); border-radius: var(--raio-p);
  transition: border-color .2s, box-shadow .2s;
}
select {
  appearance: none; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237db8ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem;
}
textarea { resize: vertical; min-height: 100px; }
::placeholder { color: #6f86a8; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(47, 140, 255, .22); }
.campo.invalido input, .campo.invalido select { border-color: var(--erro); }
.form__erro { color: var(--erro); font-weight: 600; font-size: .95rem; }

/* 10. Contato ---------------------------------------------- */
.contato { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
@media (max-width: 860px) { .contato { grid-template-columns: 1fr; } }
.info { display: grid; gap: .8rem; margin-top: 1.8rem; }
.info > * {
  display: flex; align-items: center; gap: .95rem; padding: 1rem 1.1rem;
  background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio);
  transition: border-color .2s, transform .2s var(--ease);
}
.info > a:hover { border-color: var(--azul); transform: translateX(4px); }
.info svg { width: 26px; height: 26px; flex: none; color: var(--amarelo); }
.info b { display: block; font-weight: 600; }
.info small { color: var(--suave); }
.mapa { min-height: 340px; border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; background: var(--cartao); }
.mapa iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }

/* 11. Rodapé ----------------------------------------------- */
.rodape { padding: 2rem 0 6rem; color: var(--suave); font-size: .95rem; }
.rodape__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.rodape .marca { color: var(--texto); }

.fab {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40;
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: var(--verde); color: #03240f;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .6);
  transition: transform .2s var(--ease);
}
.fab svg { width: 34px; height: 34px; }
.fab:hover { transform: scale(1.08); }
.fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--verde); animation: pulso 2.4s ease-out infinite;
}
@keyframes pulso { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* 12. Utilidades ------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--atraso, 0s); }
.js .reveal.visivel { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
