/*
 * Universal Refrigeração - página da loja.
 *
 * Noite índigo (do azul do logotipo) com dois brilhos: brasa, de Teresina a 40 °C,
 * e gelo, da geladeira a 4 °C. A abertura usa o eixo de largura da Archivo como
 * termômetro: o calor dilata o "40 °C" e o frio contrai o "4 °C". Ao rolar, a
 * barra-termômetro do topo vai do amarelo ao ciano.
 */

:root {
  color-scheme: dark;

  --noite: #0d0f2b;
  --noite-2: #151840;
  --noite-3: #1d2156;
  --borda: rgb(160 168 255 / 0.16);
  --borda-forte: rgb(160 168 255 / 0.32);
  --texto: #f1f3ff;
  --texto-2: #b9bfe6;

  --sol: #ffc23a;
  --brasa: #ff7a2f;
  --gelo: #7de3ff;
  --violeta: #8c8fff;
  --zap: #25d366;
  --zap-texto: #052e16;
  --erro: #ff9b9b;

  --vidro: rgb(21 24 64 / 0.55);
  --vidro-borda: rgb(255 255 255 / 0.12);

  --fonte: "Archivo", system-ui, sans-serif;
  --raio-g: 22px;
  --raio-m: 14px;
  --raio-p: 999px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--noite);
  background-image:
    radial-gradient(60rem 36rem at 12% -6rem, rgb(255 122 47 / 0.22), transparent 70%),
    radial-gradient(46rem 30rem at 92% 26rem, rgb(125 227 255 / 0.14), transparent 70%),
    radial-gradient(50rem 40rem at 20% 140rem, rgb(140 143 255 / 0.12), transparent 70%);
  background-repeat: no-repeat;
  color: var(--texto);
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.55;
}

img,
iframe,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ol,
ul,
address,
fieldset {
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  font-stretch: 115%;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
}

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

.sprite {
  display: none;
}

.ic {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
}

.largura {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 48rem) {
  .largura {
    padding-inline: 2rem;
  }
}

.pular {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--texto);
  color: var(--noite);
  border-radius: var(--raio-m);
}

.pular:focus {
  top: 1rem;
}

.vidro {
  background: var(--vidro);
  border: 1px solid var(--vidro-borda);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

/* Termômetro de rolagem */

.termometro {
  display: none;
}

@supports (animation-timeline: scroll()) {
  .termometro {
    display: block;
    position: fixed;
    inset: 0 0 auto;
    height: 3px;
    z-index: 60;
    background: linear-gradient(90deg, var(--brasa), var(--sol) 35%, var(--gelo) 75%, var(--violeta));
    transform-origin: left;
    animation: enche linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes enche {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Topo fixo de vidro: ligar e WhatsApp sempre à mão */

.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(13 15 43 / 0.62);
  border-bottom: 1px solid var(--borda);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.topo__linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.6rem;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 760;
  font-stretch: 110%;
  font-size: 0.95rem;
  line-height: 1.1;
}

.marca img {
  width: 44px;
  height: auto;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
}

.topo__acoes {
  display: flex;
  gap: 0.5rem;
}

.pilula {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border-radius: var(--raio-p);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.pilula--vidro {
  border: 1px solid var(--borda-forte);
  background: rgb(255 255 255 / 0.06);
}

.pilula--vidro:hover {
  background: rgb(255 255 255 / 0.12);
}

.pilula--zap {
  background: var(--zap);
  color: var(--zap-texto);
}

.pilula--zap:hover {
  background: #3ee07c;
}

@media (max-width: 26rem) {
  .marca span {
    display: none;
  }
}

/* Abertura */

.abertura {
  padding-block: clamp(1.75rem, 6vw, 5rem) clamp(2.5rem, 7vw, 6rem);
}

.abertura__grade {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

@media (min-width: 64rem) {
  .abertura__grade {
    grid-template-columns: 1.15fr 1fr;
    align-items: end;
  }
}

.termo {
  display: flex;
  flex-direction: column;
}

.termo + .termo {
  margin-top: clamp(0.5rem, 2vw, 1.25rem);
}

.termo__onde {
  font-size: clamp(1.0625rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: var(--texto-2);
}

.termo__grau {
  font-size: clamp(3.5rem, 15vw, 9.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  padding-bottom: 0.04em;
}

.termo--calor .termo__grau {
  font-stretch: 125%;
  background-image: linear-gradient(100deg, var(--sol) 10%, var(--brasa) 75%);
  animation: dilata 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}

.termo--frio .termo__grau {
  font-stretch: 62%;
  background-image: linear-gradient(100deg, var(--gelo) 10%, var(--violeta) 80%);
  animation: contrai 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}

@keyframes dilata {
  from {
    font-stretch: 100%;
  }
  to {
    font-stretch: 125%;
  }
}

@keyframes contrai {
  from {
    font-stretch: 100%;
  }
  to {
    font-stretch: 62%;
  }
}

.abertura__texto h1 {
  max-width: 30em;
  font-size: clamp(1.1875rem, 2.4vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.4rem;
  border: 0;
  border-radius: var(--raio-p);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.botao--principal {
  background: linear-gradient(100deg, var(--sol), var(--brasa));
  color: #2a1300;
  box-shadow: 0 10px 30px -10px rgb(255 122 47 / 0.6);
}

.botao--principal:hover {
  filter: brightness(1.06);
}

.botao--zap {
  background: var(--zap);
  color: var(--zap-texto);
}

.botao--zap:hover {
  background: #3ee07c;
}

.botao--vidro {
  border: 1px solid var(--borda-forte);
  background: rgb(255 255 255 / 0.06);
  color: var(--texto);
}

.botao--vidro:hover {
  background: rgb(255 255 255 / 0.12);
}

.botao--largo {
  width: 100%;
}

.botao[disabled] {
  opacity: 0.6;
  cursor: progress;
}

@media (max-width: 30rem) {
  .acoes .botao {
    width: 100%;
  }
}

/* Seções */

.secao {
  padding-block: clamp(3rem, 8vw, 6rem);
}

/* Bento */

.bento {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.bloco {
  position: relative;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--raio-g);
  background: linear-gradient(160deg, var(--noite-3), var(--noite-2) 60%);
  border: 1px solid var(--borda);
  overflow: hidden;
}

.bloco p,
.bloco address {
  margin-top: 0.5rem;
  color: var(--texto-2);
  font-style: normal;
}

.bloco__icone {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gelo);
  fill: currentColor;
}

.bloco__icone--pequeno {
  width: 1.75rem;
  height: 1.75rem;
}

.bloco--destaque {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(30rem 20rem at 100% 0%, rgb(125 227 255 / 0.18), transparent 70%),
    linear-gradient(160deg, var(--noite-3), var(--noite-2) 70%);
  border-color: var(--borda-forte);
}

.bloco--destaque h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  font-stretch: 112%;
}

.bloco--destaque .bloco__icone {
  width: 3.5rem;
  height: 3.5rem;
}

.bloco--pecas .bloco__icone {
  color: var(--sol);
}

.bloco--destaque p {
  max-width: 34em;
}

.sintomas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.sintomas li {
  padding: 0.35rem 0.8rem;
  border-radius: var(--raio-p);
  border: 1px solid var(--borda-forte);
  background: rgb(125 227 255 / 0.08);
  font-size: 0.9375rem;
}

@media (min-width: 40rem) {
  .bento--servicos {
    grid-template-columns: repeat(2, 1fr);
  }

  .bloco--destaque {
    grid-column: span 2;
  }
}

@media (min-width: 64rem) {
  .bento--servicos {
    grid-template-columns: repeat(6, 1fr);
  }

  .bento--servicos .bloco--destaque {
    grid-column: span 4;
    grid-row: span 2;
  }

  .bento--servicos .bloco {
    grid-column: span 2;
  }

  .bento--servicos .bloco--destaque {
    grid-column: span 4;
  }

  .bento--servicos .bloco--pecas {
    grid-column: span 4;
  }
}

/* Aparecimento dos blocos ao rolar (só onde o navegador suporta) */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .bloco,
    .passos li {
      animation: surge linear both;
      animation-timeline: view();
      /* Termina quando o bloco entrou inteiro na tela: os do fim da página também chegam lá. */
      animation-range: entry 0% entry 100%;
    }
  }
}

@keyframes surge {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Passos: é uma sequência de verdade, por isso numerada */

.passos {
  list-style: none;
  padding: 0;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: 1rem;
  counter-reset: passo;
}

@media (min-width: 48rem) {
  .passos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .passos {
    grid-template-columns: repeat(4, 1fr);
  }
}

.passos li {
  counter-increment: passo;
  padding: 1.5rem;
  border-radius: var(--raio-g);
  border: 1px solid var(--borda);
  background: rgb(255 255 255 / 0.03);
}

.passos li::before {
  content: counter(passo);
  display: block;
  margin-bottom: 0.75rem;
  font-size: 3.25rem;
  font-weight: 800;
  font-stretch: 62%;
  line-height: 1;
  background: linear-gradient(180deg, var(--gelo), var(--violeta));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.passos p {
  margin-top: 0.4rem;
  color: var(--texto-2);
}

/* Pedido pelo site */

.secao--pedido {
  position: relative;
}

.pedido {
  display: grid;
  gap: 2rem;
}

@media (min-width: 64rem) {
  .pedido {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
    align-items: start;
  }

  .pedido__intro {
    position: sticky;
    top: 6.5rem;
  }
}

.pedido__intro p {
  margin-top: 1rem;
  max-width: 30em;
  color: var(--texto-2);
}

.pedido__intro .pedido__alternativa a {
  color: var(--texto);
  text-decoration-color: var(--zap);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.pedido__cartao {
  position: relative;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--raio-g);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.6);
}

.pedido__cartao::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(28rem 18rem at 0% 0%, rgb(255 194 58 / 0.18), transparent 70%),
    radial-gradient(28rem 18rem at 100% 100%, rgb(125 227 255 / 0.18), transparent 70%);
}

.form {
  display: grid;
  gap: 1.15rem;
}

.form[hidden] {
  display: none;
}

.sem-js {
  margin-bottom: 1rem;
  color: var(--texto-2);
}

.campo {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  border: 0;
  padding: 0;
}

.campo label,
.campo legend {
  font-weight: 600;
  font-size: 0.975rem;
}

.campo legend {
  margin-bottom: 0.4rem;
  padding: 0;
}

.opcional {
  font-weight: 400;
  color: var(--texto-2);
}

input[type="text"],
input[type="tel"],
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--raio-m);
  border: 1px solid var(--borda-forte);
  background: rgb(13 15 43 / 0.55);
  color: var(--texto);
  font: inherit;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgb(185 191 230 / 0.6);
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gelo);
  outline-offset: 1px;
}

[aria-invalid="true"] {
  border-color: var(--erro) !important;
}

.campo__erro {
  min-height: 0;
  color: var(--erro);
  font-size: 0.9rem;
}

.campo__erro:empty {
  display: none;
}

.campos-lado {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 30rem) {
  .campos-lado {
    grid-template-columns: 1fr 1fr;
  }

  .campos-lado--rua {
    grid-template-columns: 2fr 1fr;
  }
}

.endereco {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--raio-m);
  border: 1px dashed var(--borda-forte);
}

.endereco[hidden],
.campo[hidden] {
  display: none;
}

.opcoes {
  display: grid;
  gap: 0.5rem;
}

.opcoes--4 {
  grid-template-columns: repeat(2, 1fr);
}

.opcoes--2 {
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 30rem) {
  .opcoes--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.opcao {
  position: relative;
  cursor: pointer;
}

.opcao input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.opcao span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5rem;
  border-radius: var(--raio-m);
  border: 1px solid var(--borda-forte);
  background: rgb(255 255 255 / 0.04);
  font-weight: 600;
  text-align: center;
}

.opcao input:checked + span {
  border-color: var(--gelo);
  background: rgb(125 227 255 / 0.16);
  color: #fff;
}

.opcao input:focus-visible + span {
  outline: 3px solid var(--gelo);
  outline-offset: 2px;
}

.aceite {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 400 !important;
  color: var(--texto-2);
  cursor: pointer;
}

.aceite input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  flex: none;
  accent-color: var(--gelo);
}

.armadilha {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__aviso {
  padding: 0.85rem 1rem;
  border-radius: var(--raio-m);
  border: 1px solid rgb(255 155 155 / 0.4);
  background: rgb(255 155 155 / 0.1);
  color: #ffd5d5;
}

.form__aviso a {
  color: #fff;
}

.sucesso {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
}

.sucesso[hidden] {
  display: none;
}

.sucesso:focus {
  outline: none;
}

.sucesso__icone {
  width: 3rem;
  height: 3rem;
  color: var(--zap);
  fill: currentColor;
}

.sucesso h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  font-stretch: 110%;
}

.sucesso p {
  color: var(--texto-2);
}

/* Onde estamos */

@media (min-width: 48rem) {
  .bento--onde {
    grid-template-columns: repeat(2, 1fr);
  }

  .bloco--mapa {
    grid-column: span 2;
  }
}

@media (min-width: 64rem) {
  .bento--onde {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .bloco--mapa {
    grid-column: 1;
    grid-row: span 2;
  }

  .bloco--contatos {
    grid-column: span 2;
  }
}

.bloco--mapa {
  padding: 0;
  min-height: 18rem;
}

.bloco--mapa iframe {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  border: 0;
  filter: grayscale(0.2) contrast(1.05);
}

.link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  text-decoration-color: var(--gelo);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.contatos {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .contatos {
    grid-template-columns: 1fr 1fr;
  }

  /* O e-mail é longo: ocupa a linha inteira para não quebrar no meio. */
  .contatos li:last-child {
    grid-column: 1 / -1;
  }
}

.contatos a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  color: var(--texto);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contatos a:hover {
  color: var(--gelo);
}

.contatos .ic {
  color: var(--gelo);
}

/* Rodapé */

.rodape {
  padding-block: 2rem 7rem;
  border-top: 1px solid var(--borda);
  color: var(--texto-2);
  font-size: 0.9375rem;
}

.rodape__linha {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.rodape a {
  text-underline-offset: 0.2em;
}

/* WhatsApp flutuante */

.zap-flutuante {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 70;
  display: grid;
  justify-items: end;
  gap: 0.75rem;
}

.zap-flutuante__botao {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--zap);
  color: var(--zap-texto);
  box-shadow: 0 12px 30px -8px rgb(37 211 102 / 0.55), 0 0 0 6px rgb(37 211 102 / 0.15);
  cursor: pointer;
}

.zap-flutuante__botao .ic {
  width: 1.75rem;
  height: 1.75rem;
}

.zap-flutuante__botao .ic--fechar,
.zap-flutuante__botao[aria-expanded="true"] .ic--abrir {
  display: none;
}

.zap-flutuante__botao[aria-expanded="true"] .ic--fechar {
  display: block;
}

.zap-flutuante__menu {
  display: grid;
  gap: 0.25rem;
  width: min(18rem, calc(100vw - 2rem));
  padding: 0.75rem;
  border-radius: var(--raio-g);
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.7);
  transform-origin: bottom right;
}

.zap-flutuante__menu[hidden] {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .zap-flutuante__menu:not([hidden]) {
    animation: abre 0.18s ease-out;
  }
}

@keyframes abre {
  from {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.96);
  }
}

.zap-flutuante__titulo {
  padding: 0.25rem 0.5rem 0.5rem;
  color: var(--texto-2);
  font-size: 0.9rem;
}

.zap-flutuante__menu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--raio-m);
  font-weight: 600;
  text-decoration: none;
}

.zap-flutuante__menu a:hover {
  background: rgb(255 255 255 / 0.08);
}

.zap-flutuante__menu .ic {
  color: var(--zap);
}

/* Quem prefere menos movimento vê o estado final direto */

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

  .termo__grau {
    animation: none !important;
  }

  .termometro {
    display: none !important;
  }
}
