/* ==========================================================================
   Altis Nordeste — Landing page
   ========================================================================== */

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/rubik-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/rubik-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --laranja: #fc3b00;
  --laranja-escuro: #be2c00;
  --verde-whatsapp: #4dc247;
  --preto: #111;
  --texto: #595959;
  --cinza-claro: #f9f9f9;
  --cinza: #e9e9e9;
  --rodape: #222026;
  --sombra: 0 8px 20px -3px rgba(20, 20, 20, .35);
  --raio: 5px;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--texto);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0 0 10px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--preto);
}

p { margin: 0 0 15px; font-size: 17px; }

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

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-block;
  padding: 15px 40px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  background: var(--laranja);
  border: 2px solid var(--laranja);
  border-radius: 30px;
  box-shadow: var(--sombra);
  cursor: pointer;
  transition: background-color .35s, border-color .35s;
}
.btn:hover { background: var(--laranja-escuro); border-color: var(--laranja-escuro); }

.btn--square { padding: 10px 30px; border-radius: var(--raio); box-shadow: none; }
.btn--square:hover { box-shadow: var(--sombra); }
.btn--block { display: block; width: 100%; }
.btn--light { background: #fff; color: var(--laranja); border-color: #fff; }
.btn--light:hover { background: var(--preto); border-color: var(--preto); color: #fff; }

/* ---------- Título com linha ---------- */

.titulo-linha {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 32px;
  text-transform: uppercase;
}
.titulo-linha::before {
  content: "";
  flex: 0 0 7%;
  height: 3px;
  background: var(--laranja);
}

/* ---------- Header ---------- */

.header { padding: 10px 0; background: #fff; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header__logo img { height: 76px; width: auto; }
.header .btn { font-size: 22px; }

/* ---------- Banner ---------- */

.banner img { width: 100%; }

/* ---------- Slogan ---------- */

.slogan { padding: 70px 0; text-align: center; background: var(--laranja); }
.slogan h1 {
  margin: 0;
  font-size: 41px;
  line-height: 1.1;
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
}

/* ---------- Diferença ---------- */

.diferenca { padding: 90px 0 110px; background: var(--cinza-claro); }
.diferenca h2 { font-size: 30px; margin-bottom: 20px; text-transform: uppercase; }
.diferenca .btn { margin-top: 15px; }
.diferenca img { width: 100%; border-radius: var(--raio); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

/* ---------- Coberturas ---------- */

.coberturas { padding: 80px 0; overflow-x: clip; }

.coberturas__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: center;
}

.coberturas__texto {
  position: relative;
  z-index: 2;
  padding: 40px 30px 40px 0;
  color: #fff;
}
.coberturas__texto::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100%;
  border-radius: var(--raio);
  background: var(--preto);
}
.coberturas__texto h2 { font-size: 30px; color: #fff; margin-bottom: 20px; }
.coberturas__texto p { color: #fff; }

.coberturas__lista {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.coberturas__lista li {
  min-height: 180px;
  padding: 20px 15px;
  text-align: center;
  border: 2px solid #dedede;
  border-radius: var(--raio);
}
.coberturas__lista img { width: 80px; margin: 0 auto 10px; }
.coberturas__lista h3 { font-size: 18px; margin: 0; }

/* Popup de contato */

.popup { position: relative; margin-top: 25px; }

.popup__form {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  padding: 20px;
  text-align: center;
  background: var(--laranja);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}
.popup__form[hidden] { display: none; }
.popup__form h3 { font-size: 25px; color: #fff; }
.popup__form input {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 15px 20px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: #787878;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 12px 18px 0 rgba(0, 0, 0, .15);
}
.popup__form input::placeholder { font-size: 14px; font-weight: 400; }
.popup__form .btn { margin-top: 10px; }

/* ---------- Assistência 24h ---------- */

.assistencia { position: relative; }

.assistencia__titulo {
  margin: 0;
  padding: 10px 15px;
  font-size: 42px;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  background: var(--laranja);
  border-radius: 10px 10px 0 0;
}

.assistencia__corpo {
  padding: 50px 0;
  margin-bottom: 50px;
  text-align: center;
  color: #fff;
  background: url("../img/bg-cta.webp") center / cover no-repeat;
  border-radius: 0 0 10px 10px;
}

.assistencia__lista {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px 15px;
  align-items: end;
  padding: 20px 15px;
}
.assistencia__lista img { width: 70px; margin: 0 auto 10px; }
.assistencia__lista h3 { font-size: 18px; color: #fff; margin: 0; }

.assistencia__destaque {
  margin: 20px 0 0;
  padding: 10px 15px;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  background: rgba(252, 59, 0, .8);
}

/* ---------- CTA ---------- */

.cta__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 40px 80px;
  border-radius: var(--raio);
  background: url("../img/bg-cta.webp") center / cover no-repeat;
}
.cta__box h2 { max-width: 550px; margin: 0; font-size: 32px; font-weight: 500; color: #fff; }
.cta__box p { margin: 12px 0 0; color: #fff; }
.cta__box .btn { flex-shrink: 0; }

/* ---------- Como funciona ---------- */

.passos { position: relative; margin-top: 60px; padding: 60px 0; }
.passos::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: #f3f3f3;
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
}

.passos__titulo { margin-bottom: 40px; text-align: center; }
.passos__titulo h2 {
  max-width: 700px;
  margin: 0 auto 20px;
  font-size: 50px;
  line-height: 1.1;
  letter-spacing: -3px;
  text-transform: uppercase;
}
.passos__titulo h2 span { display: block; color: var(--laranja); }
.passos__titulo p { max-width: 1020px; margin: 0 auto; }

.passos__lista {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  counter-reset: passo;
}
.passos__lista li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 15px;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(0, 0, 0, .15);
  counter-increment: passo;
}
.passos__lista img { width: 100%; }
/* número do passo, entre a imagem e o texto */
.passos__lista li::after {
  content: counter(passo);
  order: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--laranja);
  border-radius: 50%;
}
.passos__lista h3 { order: 2; margin: 20px 0 0; font-size: 15px; }

.passos__rodape { margin-top: 40px; text-align: center; }
.passos__rodape p {
  margin-bottom: 50px;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -2px;
  color: var(--laranja);
}

/* ---------- FAQ ---------- */

.faq { padding: 70px 0; text-align: center; }
.faq .titulo-linha { text-align: left; }

.faq__colunas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 40px 0;
  text-align: left;
  align-items: start;
}

.faq details {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .13);
}
.faq summary {
  position: relative;
  padding: 25px 67px 25px 35px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .05em;
  color: #191919;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 37px;
  width: 10px;
  height: 10px;
  border-right: 3px solid var(--laranja);
  border-bottom: 3px solid var(--laranja);
  transform: translateY(-75%) rotate(45deg);
  transition: transform .2s linear;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p {
  margin: 0;
  padding: 0 35px 25px;
  font-size: 17px;
  line-height: 1.35;
  color: #686868;
}

/* ---------- Depoimentos ---------- */

.depoimentos {
  position: relative;
  padding: 85px 0;
  text-align: center;
  background: var(--cinza);
}
.depoimentos::before,
.depoimentos::after {
  content: "";
  position: absolute;
  top: 0;
  width: 200px;
  height: 150px;
  background: var(--laranja);
}
.depoimentos::before { left: 0; clip-path: polygon(100% 0, 0 0, 0 14%); }
.depoimentos::after { right: 0; clip-path: polygon(100% 0, 0 0, 100% 14%); }
.depoimentos h2 { font-size: 28px; }

.depoimentos__lista {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 3);
  gap: 30px;
  margin-top: 50px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.depoimentos__lista::-webkit-scrollbar { display: none; }
.depoimentos__lista li {
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  scroll-snap-align: start;
}
.depoimentos__lista img { width: 50px; margin: 0 auto 20px; }
.depoimentos__lista blockquote { margin: 0 0 15px; font-size: 17px; }
.depoimentos__lista cite { font-style: normal; }

/* ---------- Cotação ---------- */

.cotacao { padding: 90px 0; }
.cotacao__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: center;
}
.cotacao h2 { font-size: 32px; text-transform: uppercase; }
.cotacao__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 25px;
  background: var(--laranja);
  border-radius: 4px;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .25);
}
.cotacao__form input,
.cotacao__form select,
.cotacao__form textarea {
  width: 100%;
  padding: 12px 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  background: #fff;
  border: 0;
  border-radius: 2px;
}
.cotacao__form textarea { grid-column: 1 / -1; height: 100px; resize: vertical; }
.cotacao__form .btn { grid-column: 1 / -1; justify-self: end; }

/* ---------- Footer ---------- */

.footer { margin-top: 75px; }
.footer__top { padding: 75px 0; background: var(--cinza); }
.footer__grid { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 30px; }
.footer h2 { font-size: 20px; margin-bottom: 15px; }
.footer__logo { height: 102px; width: auto; margin-bottom: 10px; }
.footer p { font-size: 14px; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer li a { color: #3b3b3b; transition: color .2s; }
.footer li a:hover { color: var(--laranja); }
.footer__contatos { margin-bottom: 30px; }
.footer__contatos a { display: inline-flex; align-items: center; gap: 8px; }
.footer__contatos svg { width: 18px; height: 18px; fill: currentColor; }

.footer__copy {
  padding: 15px 0;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: .05em;
  color: #fff;
  background: var(--rodape);
}
.footer__copy-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer__copy p { font-size: 15px; }
.footer__copy img { height: 50px; width: auto; }

/* ---------- WhatsApp flutuante ---------- */

.whatsapp-float {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--verde-whatsapp);
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: rgba(77, 194, 71, .7);
  animation: pulso 2s 2s infinite alternate;
}
.whatsapp-float svg { width: 34px; height: 34px; fill: #fff; }

@keyframes pulso {
  from { opacity: .3; transform: scale(1); box-shadow: 0 0 0 var(--verde-whatsapp); }
  to   { opacity: .7; transform: scale(1.25); box-shadow: 0 0 20px var(--verde-whatsapp); }
}

/* ---------- Animação de entrada ---------- */

.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .75s ease-in-out, transform .75s ease-in-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .whatsapp-float::before { animation: none; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1024px) {
  .coberturas__lista { grid-template-columns: repeat(3, 1fr); }
  .depoimentos__lista { grid-auto-columns: calc((100% - 30px) / 2); }
  .passos__lista { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .header__logo img { height: 64px; }

  .coberturas__inner,
  .cotacao__inner { grid-template-columns: 1fr; }
  .coberturas__texto { padding: 40px 0; }
  .coberturas__texto::before { right: -15px; width: 100vw; border-radius: 0; }
  .coberturas__lista { grid-template-columns: repeat(2, 1fr); }

  .assistencia__corpo { padding: 80px 0; background-image: url("../img/bg-cta-mobile.webp"); }
  .assistencia__lista { grid-template-columns: repeat(3, 1fr); }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .grid-2,
  .faq__colunas { grid-template-columns: 1fr; }
  .faq__colunas { gap: 0; }
}

@media (max-width: 577px) {
  p { font-size: 16px; }

  .header__inner { justify-content: center; flex-wrap: wrap; gap: 10px; }
  .header .btn { font-size: 16px; }

  .btn { padding: 12px 28px; font-size: 14px; line-height: 1.25; }

  .titulo-linha { font-size: 27px; }

  .slogan { padding: 40px 0; }
  .slogan h1 { font-size: 30px; }

  .diferenca,
  .cotacao { padding: 70px 0 50px; }

  .diferenca h2,
  .coberturas__texto h2,
  .cta__box h2,
  .cotacao h2 { font-size: 27px; }

  .coberturas__lista { gap: 15px; }

  .assistencia__titulo { font-size: 28px; }
  .assistencia__lista { grid-template-columns: repeat(2, 1fr); }
  .assistencia__lista h3 { font-size: 16px; }
  .assistencia__destaque { font-size: 22px; }

  .cta__box { flex-direction: column; padding: 30px 20px; text-align: center; }

  .passos { background: #f3f3f3; }
  .passos::before { display: none; }
  .passos__titulo h2 { font-size: 30px; letter-spacing: -1px; }
  .passos__lista { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .passos__rodape p { font-size: 28px; }

  .faq summary { padding: 20px 55px 20px 20px; font-size: 16px; line-height: 1.3; letter-spacing: 0; }
  .faq summary::after { right: 25px; }
  .faq details p { padding: 0 20px 20px; font-size: 16px; }

  .depoimentos::before,
  .depoimentos::after { width: 100px; }
  .depoimentos__lista { grid-auto-columns: 100%; }

  .cotacao__form { grid-template-columns: 1fr; }
  .cotacao__form .btn { justify-self: stretch; }

  .footer__top { padding: 50px 0 30px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__copy-inner { flex-direction: column; text-align: center; }
}
