/* ==========================================================================
   GAV Hotéis e Resorts — LP Black Friday
   Medidas desktop extraídas do LP_BF.psd (canvas 1920 × 1644).
   ========================================================================== */

/* Fontes originais do PSD (licenciadas). Se os arquivos estiverem instalados
   na máquina, são usados; para servir via web, adicione os .woff2 em
   assets/fonts/ e inclua o url() correspondente em cada src. */
@font-face {
  font-family: "Maison Neue Extended";
  font-weight: 700;
  font-display: swap;
  src: local("Maison Neue Extended Bold"), local("MaisonNeue-ExtendedBold");
}
@font-face {
  font-family: "Motiva Sans";
  font-weight: 400;
  font-display: swap;
  src: local("Motiva Sans Regular"), local("MotivaSans-Regular");
}
@font-face {
  font-family: "Motiva Sans";
  font-weight: 500;
  font-display: swap;
  src: local("Motiva Sans Medium"), local("MotivaSans-Medium");
}

:root {
  --blue: #053f9b;
  --cream: #fefbea;
  --ink: #000d19;
  --sky: #00050f;
  --white: #ffffff;

  --font-display: "Maison Neue Extended", "Archivo", "Arial Black", sans-serif;
  --font-text: "Motiva Sans", "Red Hat Text", "Segoe UI", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* --------------------------------------------------------------------------
   Página + fundo
   -------------------------------------------------------------------------- */
.lp {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 1624px;
  padding-bottom: 133px;
  background: var(--sky);
}

.lp__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Foto do resort: no PSD em x=-21, y=-1491, 1943 × 3360 —
   ancorada no rodapé e centralizada (−9.5px) */
.lp__photo {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: max(1943px, 101.2vw);
  max-width: none;
  transform: translate(-50.489%, 7.292%);
}

/* "BL" gigante: multiply 50% sobre o céu (x=0, y=-39, 1920 × 924) */
.lp__letters {
  position: absolute;
  left: 50%;
  top: 0;
  width: max(1920px, 100vw);
  max-width: none;
  transform: translate(-50%, -4.22%);
  mix-blend-mode: multiply;
  opacity: .502;
}

.footer-bar {
  height: 20px;
  background: var(--ink);
}

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */
.brand {
  position: relative;
  width: 180px;
  height: 216px;
  margin: 0 auto;
  background: var(--blue);
  border-bottom: 19px solid var(--cream);
}

.brand__logo {
  position: absolute;
  left: 26.4px;
  top: 79.7px;
  width: 127.2px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.hero__title {
  margin: 106px 0 0;
  width: 548px;
  transform: translateX(-10px);
  font-size: 0;
  line-height: 0;
}
.hero__title img { width: 100%; }

.offer {
  margin-top: 81px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.offer__value {
  width: 317px;
  transform: translateX(-2.5px);
}

.offer__extra {
  margin: 19px 0 0;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 17.7px;
  line-height: 17.7px;
  letter-spacing: .34em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cream);
  /* compensa o espaçamento após a última letra */
  margin-right: -.34em;
  transform: translateX(-6px);
}

.intro {
  margin-top: 58px;
  max-width: 900px;
}

.intro__title {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 700;
  font-size: 37.5px;
  line-height: 29.2px;
  letter-spacing: -.012em;
  color: var(--cream);
}

.nowrap { white-space: nowrap; }

.intro__text strong { font-weight: 700; }

.intro__text {
  margin: 4px 0 0;
  font-size: 20.8px;
  line-height: 29.2px;
  font-weight: 400;
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   Cadastro
   -------------------------------------------------------------------------- */
.signup {
  width: 473px;
  margin: 28px auto 0;
  transform: translateX(-1.5px);
  padding: 36px 38px 25px 40px;
  background: var(--ink);
  color: var(--white);
  /* sombra do PSD: multiply 72%, ângulo 90°, distância 20, espalhamento 16%, tamanho 38 */
  box-shadow: 0 20px 32px 6px rgba(0, 0, 0, .72);
}

.field + .field { margin-top: 34px; }

.field label,
.destinos legend {
  display: block;
  padding: 0 0 0 3px;
  font-size: 15.17px;
  line-height: 15px;
  font-weight: 400;
  color: var(--white);
}
.field label { margin-bottom: 6px; }

.field input {
  display: block;
  width: 395px;
  max-width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/40px var(--font-text);
  outline: none;
  box-shadow: inset 0 0 0 0 transparent;
  transition: box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #e5484d; }

.destinos {
  margin: 26px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.destinos legend { padding-left: 4px; margin-bottom: 11px; float: left; width: 100%; }

.destinos__grid {
  clear: both;
  display: grid;
  grid-template-columns: 217px auto;
  padding-left: 3px;
  row-gap: 8px;
}

/* Checkboxes — quadrado creme 17×17 */
.check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10.6px;
  min-height: 17px;
  font-size: 15.17px;
  line-height: 17px;
  color: var(--white);
  cursor: pointer;
  user-select: none;
}
.check input {
  position: absolute;
  opacity: 0;
  width: 17px; height: 17px;
  margin: 0;
  cursor: pointer;
}
.check__box {
  position: relative;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  background: var(--cream);
  transform: translateY(1px);
}
.check__box::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 1.5px;
  width: 5px;
  height: 10px;
  border: solid var(--ink);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .12s ease-out;
}
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--cream); outline-offset: 2px; }

.btn {
  display: block;
  width: 187px;
  height: 40px;
  margin: 38px auto 0;
  padding: 0;
  border: 0;
  border-right: 8px solid transparent;
  background-clip: padding-box;
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: 15.8px;
  line-height: 40px;
  letter-spacing: -.01em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn:hover { background-color: var(--blue); color: var(--cream); }
.btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.btn[disabled] { opacity: .7; cursor: progress; }

.check--consent {
  justify-content: center;
  margin-top: 19px;
  gap: 5px;
  font-size: 11.2px;
  font-weight: 500;
  line-height: 13px;
}
.check--consent .check__box { flex-basis: 16px; width: 16px; transform: none; }
.check--consent .check__box::after { left: 5px; }
.check--consent.is-invalid .check__box { box-shadow: 0 0 0 2px #e5484d; }

.signup__feedback {
  margin: 12px 0 0;
  min-height: 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  color: var(--cream);
}
.signup__feedback:empty { display: none; }
.signup__feedback.is-error { color: #ffd0d0; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 959px) {
  .lp { min-height: 0; padding-bottom: 72px; }
  .check--consent { justify-content: flex-start; }

  .lp__letters { width: 210vw; }

  .brand {
    width: 140px;
    height: 168px;
    border-bottom-width: 15px;
  }
  .brand__logo { left: 20.5px; top: 62px; width: 99px; }

  .hero__title { margin-top: 72px; width: min(548px, 80vw); transform: none; }

  .offer { margin-top: clamp(40px, 9vw, 75px); }
  .offer__value { width: min(317px, 58vw); transform: translateX(-.8%); }
  .offer__extra { margin-top: 14px; font-size: min(17.7px, 3.9vw); line-height: 1; transform: none; }

  .intro { margin-top: 48px; }
  .intro__title { font-size: clamp(22px, 5.4vw, 37.5px); line-height: 1.15; }
  .intro__text { margin-top: 10px; font-size: clamp(16px, 4.1vw, 20.8px); line-height: 1.45; }

  .signup {
    width: min(473px, calc(100% - 32px));
    margin-top: 36px;
    transform: none;
    padding: 34px 24px 26px;
  }
  .field input { width: 100%; }
  .destinos__grid { grid-template-columns: auto auto; justify-content: start; column-gap: 28px; }
  .btn { margin: 32px auto 0; }
}

@media (max-width: 767px) {
  /* foto mobile: maior em relação à largura para mostrar a piscina */
  .lp__photo { width: max(250vw, 960px); }
  .lp__letters { width: 230vw; top: 0; }
  .intro__text br { display: none; }
}

@media (max-width: 350px) {
  .destinos__grid { grid-template-columns: 1fr; }
  .signup { padding-left: 20px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Popup de agradecimento
   -------------------------------------------------------------------------- */
.thanks {
  width: min(520px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  overflow: visible;
}
.thanks::backdrop {
  background: rgba(0, 5, 15, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.thanks__card {
  position: relative;
  padding: 56px 48px 44px;
  background: var(--ink);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  /* faixa azul + creme, como o selo do logo */
  border-top: 6px solid var(--blue);
}
.thanks__card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--cream);
}

.thanks__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(254, 251, 234, .6);
  cursor: pointer;
  transition: color .2s;
}
.thanks__close:hover { color: var(--cream); }
.thanks__close:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.thanks__close svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
}

.thanks__badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
}
.thanks__badge svg { width: 100%; height: 100%; overflow: visible; }
.thanks__badge circle {
  fill: var(--blue);
  stroke: var(--cream);
  stroke-width: 1.5;
}
.thanks__badge path {
  fill: none;
  stroke: var(--cream);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
}

.thanks__eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(254, 251, 234, .7);
}

.thanks__title {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 700;
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.12;
  letter-spacing: -.012em;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.thanks__text {
  margin: 18px auto 0;
  max-width: 400px;
  font-size: 16.5px;
  line-height: 1.55;
  color: rgba(254, 251, 234, .86);
}
.thanks__text strong { font-weight: 700; color: var(--cream); }

.thanks__sign {
  margin: 22px 0 0;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cream);
}

.thanks__btn { width: 179px; margin: 30px auto 0; border-right: 0; }

/* animação de entrada */
.thanks[open] .thanks__card { animation: thanks-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.thanks[open]::backdrop { animation: thanks-fade .3s ease-out both; }
.thanks[open] .thanks__badge circle { animation: thanks-pop .5s .15s cubic-bezier(.2, .8, .2, 1.3) both; transform-origin: center; }
.thanks[open] .thanks__badge path { animation: thanks-check .45s .45s ease-out forwards; }

@keyframes thanks-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes thanks-fade { from { opacity: 0; } }
@keyframes thanks-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes thanks-check { to { stroke-dashoffset: 0; } }

@media (max-width: 480px) {
  .thanks__card { padding: 48px 24px 32px; }
  .thanks__text { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .thanks[open] .thanks__card,
  .thanks[open]::backdrop,
  .thanks[open] .thanks__badge circle { animation: none; }
  .thanks__badge path { stroke-dashoffset: 0; animation: none !important; }
}
