/* =========================================================
   Ramabe · Teaser Piratininga
   ========================================================= */

/* ---------- Fontes ---------- */
@font-face { font-family: "AV Estiana"; src: url("../assets/fonts/AVEstiana-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "AV Estiana"; src: url("../assets/fonts/AVEstiana-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "AV Estiana"; src: url("../assets/fonts/AVEstiana-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "SK Selanik"; src: url("../assets/fonts/SKSelanik-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "SK Selanik"; src: url("../assets/fonts/SKSelanik-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "SK Selanik"; src: url("../assets/fonts/SKSelanik-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "SK Selanik"; src: url("../assets/fonts/SKSelanik-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --green-950: #141912;
  --green-900: #1c2219;
  --green-800: #262e22;
  --cream:     #e0ddd2;
  --cream-hi:  #f1eee6;
  --sage:      #aeb293;
  --sage-dim:  rgba(224, 221, 210, .55);
  --line-dark: rgba(224, 221, 210, .45);
  --ink:       #1c2219;
  --ink-soft:  #5f6457;
  --error-on-dark:  #f2a47e;
  --error-on-light: #a4421c;

  --font-display: "AV Estiana", "Helvetica Neue", Arial, sans-serif;
  --font-body: "SK Selanik", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(24px, 6.6vw, 96px);
  --maxw: 1440px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--green-900);
  color: var(--cream-hi);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
strong { font-weight: 700; }
[hidden] { display: none !important; }

/* ---------- Fundo ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--green-900);
}
.bg::before {
  content: "";
  position: absolute;
  inset: -4%;
  background-image: url("../assets/img/pattern-lp-2560.jpg");
  background-image: image-set(url("../assets/img/pattern-lp-2560.webp") type("image/webp"), url("../assets/img/pattern-lp-2560.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  animation: breeze 38s ease-in-out infinite alternate;
  will-change: transform;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 25% 50%, rgba(20, 25, 18, .35) 0%, rgba(20, 25, 18, 0) 65%);
}
@media (max-width: 959px) {
  .bg::before {
    background-image: url("../assets/img/pattern-lp-1280.jpg");
    background-image: image-set(url("../assets/img/pattern-lp-1280.webp") type("image/webp"), url("../assets/img/pattern-lp-1280.jpg") type("image/jpeg"));
  }
  .bg::after { background: linear-gradient(rgba(20, 25, 18, .15), rgba(20, 25, 18, .35)); }
  .bg::before { animation-duration: 28s; }
}
@keyframes breeze {
  from { transform: scale(1.02) translate3d(-1%, 0, 0) rotate(-.3deg); }
  to   { transform: scale(1.06) translate3d(1%, -1%, 0) rotate(.3deg); }
}

/* ---------- Estrutura ---------- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 5.5vh, 56px) var(--gutter) clamp(24px, 4vh, 40px);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: inline-block; text-decoration: none; }
.logo img { width: 132px; }
.location {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cream);
}
.location__line { width: 28px; height: 1px; background: currentColor; opacity: .7; }

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
  padding: clamp(24px, 5.5vh, 80px) 0;
}
.eyebrow {
  margin: 0 0 clamp(20px, 3vh, 32px);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--sage);
}
.hero__lead--mobile { display: none; }

.hero__title {
  margin: 0 0 clamp(28px, 4.5vh, 48px);
  max-width: 10.5ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 5.4vw, 5rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--cream-hi);
}
.hero__title strong { font-weight: 700; }
.hero__lead {
  margin: 0;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.65;
  color: var(--cream);
}

/* ---------- Card / Form ---------- */
.card {
  /* tema claro (desktop) */
  --c-text: var(--ink);
  --c-label: var(--ink);
  --c-placeholder: var(--ink-soft);
  --c-line: rgba(28, 34, 25, .45);
  --c-line-focus: var(--ink);
  --c-error: var(--error-on-light);
  --btn-bg: var(--green-900);
  --btn-fg: var(--cream-hi);
  --btn-bg-hover: #2c3527;

  background: var(--cream);
  color: var(--c-text);
  padding: clamp(36px, 3.4vw, 48px) clamp(32px, 3.2vw, 44px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55);
}
.card__title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.form { display: grid; gap: 22px; }
.field { display: flex; flex-direction: column; }
.field label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--c-label);
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  width: 100%;
  margin: 0;
  padding: 12px 0 11px;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  border-radius: 0;
  background: transparent;
  color: var(--c-text);
  font: inherit;
  font-size: 1.0625rem; /* >=16px: evita zoom no iOS */
  font-weight: 300;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: var(--c-placeholder); opacity: 1; }
.field input:focus { border-bottom-color: var(--c-line-focus); box-shadow: 0 1px 0 0 var(--c-line-focus); }
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--c-text);
  transition: background-color 9999s ease-out 0s;
}
.field.is-invalid input { border-bottom-color: var(--c-error); box-shadow: 0 1px 0 0 var(--c-error); }
.field__error {
  min-height: 0;
  font-size: .8125rem;
  font-weight: 400;
  color: var(--c-error);
}
.field.is-invalid .field__error { margin-top: 6px; }

/* checkbox */
.field--check { margin-top: 4px; }
.check {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  font-size: .8125rem !important;
  font-weight: 300 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.55;
}
.check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.check__box {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid var(--c-line-focus);
  background: transparent;
  transition: background-color .15s var(--ease);
  display: grid;
  place-items: center;
}
.check__box::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--btn-fg);
  border-bottom: 2px solid var(--btn-fg);
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform .15s var(--ease);
}
.check input:checked + .check__box { background: var(--btn-bg); border-color: var(--btn-bg); }
.check input:checked + .check__box::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--c-line-focus); outline-offset: 2px; }
.field--check.is-invalid .check__box { border-color: var(--c-error); }
.check a { text-underline-offset: 2px; }

/* botão */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
  padding: 16px 24px;
  border: 0;
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s var(--ease), opacity .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.btn:hover { background: var(--btn-bg-hover); }
.btn:focus-visible { outline: 2px solid var(--c-line-focus); outline-offset: 3px; }
.btn[disabled] { cursor: progress; }
.btn__loader {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0;
  animation: spin .7s linear infinite;
  animation-play-state: paused;
}
.btn.is-loading .btn__label { opacity: 0; }
.btn.is-loading .btn__loader { opacity: 1; animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__status { margin: 0; font-size: .875rem; font-weight: 400; color: var(--c-error); }
.form__status:empty { display: none; }

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

/* agradecimento */
.thanks { outline: none; animation: fadeUp .6s var(--ease) both; }
.thanks .eyebrow { color: var(--ink-soft); margin-bottom: 18px; }
.thanks__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 2.4vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.thanks__title strong { display: block; }
.thanks__text { margin: 0; font-size: 1rem; line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(224, 221, 210, .16);
}
.footer-brands { display: flex; align-items: stretch; gap: 26px; }
.brand { display: grid; grid-template-rows: auto 1fr; row-gap: 12px; justify-items: center; text-align: center; }
.brand > a, .brand > picture { align-self: center; justify-self: center; }
.brand__label {
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--sage);
}
.logo--footer img { width: 104px; }
.footer-brands__sep { width: 1px; margin-top: 26px; background: rgba(224, 221, 210, .3); }
.logo-spin img { width: 76px; }
.footer-nav { display: flex; gap: 32px; }
.footer-nav a {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  transition: color .2s var(--ease);
}
.footer-nav a:hover, .footer-nav a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Entrada ---------- */
.site-header, .hero__copy > *, .card, .site-footer { animation: fadeUp .9s var(--ease) both; }
.hero__copy > :nth-child(1) { animation-delay: .05s; }
.hero__copy > :nth-child(2) { animation-delay: .05s; }
.hero__copy > :nth-child(3) { animation-delay: .15s; }
.hero__copy > :nth-child(4),
.hero__copy > :nth-child(5) { animation-delay: .25s; }
.card { animation-delay: .35s; }
.site-footer { animation-delay: .45s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   Tablet / mobile
   ========================================================= */
@media (max-width: 959px) {
  .page { padding-top: 40px; }

  .site-header { flex-direction: column; justify-content: center; gap: 18px; }
  .logo img { width: 116px; }
  .location { gap: 12px; font-size: .6875rem; letter-spacing: .3em; color: var(--sage); }
  .location__line { width: 20px; }

  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 36px;
    padding: 56px 0 64px;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
  .hero__copy { text-align: center; }
  .hero__lead--desktop { display: none; }
  .hero__copy .eyebrow { margin-bottom: 18px; letter-spacing: .3em; font-size: .75rem; }
  .hero__lead--mobile { display: block; margin: 0 auto; max-width: 30em; }
  .hero__title {
    max-width: none;
    margin-bottom: 20px;
    font-size: clamp(2.375rem, 9vw, 3.5rem);
    line-height: 1.12;
  }
  .hero__lead { font-size: clamp(1rem, 4.2vw, 1.125rem); line-height: 1.6; }

  /* formulário direto sobre o fundo escuro */
  .card {
    --c-text: var(--cream-hi);
    --c-label: var(--cream);
    --c-placeholder: var(--sage-dim);
    --c-line: var(--line-dark);
    --c-line-focus: var(--cream-hi);
    --c-error: var(--error-on-dark);
    --btn-bg: var(--cream);
    --btn-fg: var(--ink);
    --btn-bg-hover: var(--cream-hi);
    background: transparent;
    padding: 0;
    box-shadow: none;
  }
  .card__title { display: none; }
  .check__box { background: var(--cream-hi); border-color: var(--cream-hi); }
  .check input:checked + .check__box { background: var(--cream-hi); border-color: var(--cream-hi); }
  .check__box::after { border-color: var(--ink); }
  .btn { min-height: 56px; font-size: .875rem; }
  .thanks { text-align: center; }
  .thanks .eyebrow { color: var(--sage); }

  .site-footer { border-top: 0; padding-top: 0; }
}

/* notebooks com tela baixa */
@media (min-width: 960px) and (max-height: 820px) {
  .page { padding-top: 28px; padding-bottom: 20px; }
  .logo img { width: 118px; }
  .hero { padding: 20px 0; }
  .hero__title { font-size: clamp(2.75rem, 4.6vw, 4.25rem); margin-bottom: 24px; }
  .eyebrow { margin-bottom: 18px; }
  .card { padding: 32px 36px; }
  .card__title { margin-bottom: 18px; }
  .form { gap: 16px; }
  .site-footer { padding-top: 18px; }
  .logo--footer img { width: 92px; }
  .logo-spin img { width: 60px; }
}

@media (max-width: 600px) {
  .site-footer { flex-direction: column; gap: 26px; padding-top: 8px; }
  .footer-brands { gap: 20px; }
  .brand__label { font-size: .5625rem; letter-spacing: .14em; }
}

@media (max-width: 374px) {
  .footer-brands { gap: 14px; }
  .brand__label { white-space: normal; max-width: 13em; text-align: center; letter-spacing: .1em; line-height: 1.4; }
  .logo--footer img { width: 100px; }
  .logo-spin img { width: 72px; }
  .footer-nav { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .btn__loader { animation: spin 1.4s linear infinite !important; }
}
