/* Anamá — folha de estilo base
   Layout: celular primeiro (390px); a partir de 900px vira a versão de computador.
   Faixas de cor ocupam a largura toda; o conteúdo respeita o recuo lateral (--gutter). */

:root {
  /* Cores da marca */
  --verde: #245738;
  --verde-escuro: #163A24;
  --verde-claro: #C9D6CC;
  --creme: #ECE6DA;
  --creme-fundo: #DCD3C3;
  --tinta: #1D1D1B;
  --tinta-suave: #3B3934;
  --cinza: #5E5A52;
  --linha: #D4CCBD;
  --sol: #E8B931;
  --branco: #FFFFFF;

  /* Tipografia */
  --f-sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mao: "Caveat", "Bradley Hand", "Segoe Print", cursive;

  /* Medidas */
  --gutter: clamp(22px, 3.4vw, 48px);
  --pad-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --header-h: 62px;

  --tex-verde: url("../img/textura-verde.jpg");
  --tex-creme: url("../img/textura-creme.jpg");

  color-scheme: light;
}

@media (min-width: 900px) {
  :root { --header-h: 84px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--creme) var(--tex-creme) repeat;
  background-size: 300px;
  color: var(--tinta);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Faixa de cima do aparelho (notch) pintada na cor do cabeçalho */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--creme) var(--tex-creme) repeat;
  background-size: 300px;
}

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: var(--verde); }
a:hover { color: var(--verde-escuro); }
button, input, select { font: inherit; }

:focus-visible { outline: 2px solid var(--sol); outline-offset: 2px; }

.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;
}

/* Superfícies */
.tg { background: var(--verde) var(--tex-verde) repeat; background-size: 300px; color: var(--creme); }
.tc { background: var(--creme) var(--tex-creme) repeat; background-size: 300px; color: var(--tinta); }

/* Peças de texto reutilizáveis */
.wide { font-stretch: 125%; font-weight: 600; text-transform: uppercase; }
.mao { font-family: var(--f-mao); font-weight: 600; line-height: 1.05; }
.eyebrow {
  font-size: 10px; font-weight: 500; font-stretch: 125%;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---------- Faixa de aviso ---------- */
.announce {
  height: 30px;
  display: flex; align-items: center; justify-content: center;
  padding-left: var(--pad-l); padding-right: var(--pad-r);
  font-size: 10px; font-weight: 500; font-stretch: 125%; letter-spacing: 0.14em;
  text-align: center; white-space: nowrap;
}
@media (min-width: 900px) {
  .announce { height: 34px; font-size: 11px; letter-spacing: 0.16em; }
}

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-left: max(14px, env(safe-area-inset-left, 0px));
  padding-right: max(14px, env(safe-area-inset-right, 0px));
  transition: box-shadow .25s ease;
}
.header.is-stuck { box-shadow: 0 1px 0 var(--linha); }

.header__logo { justify-self: center; display: block; line-height: 0; }
.header__logo img { height: 24px; width: auto; }

.header__nav { display: none; }
.header__start, .header__end { display: flex; align-items: center; }
.header__end { justify-self: end; }

.icon-btn {
  width: 44px; height: 44px;
  border: 0; background: transparent; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--verde); cursor: pointer;
  text-decoration: none;
}
.header__start .icon-btn { justify-content: flex-start; }
.header__end .icon-btn { justify-content: flex-end; }
.icon-btn:hover { color: var(--verde-escuro); }

@media (min-width: 900px) {
  .header { padding-left: var(--pad-l); padding-right: var(--pad-r); }
  .header__logo img { height: 32px; }
  .header__menu-btn { display: none; }
  .header__nav {
    display: flex; gap: 32px;
    font-size: 12px; font-weight: 600; font-stretch: 125%; letter-spacing: 0.12em; text-transform: uppercase;
  }
  .header__nav a { text-decoration: none; padding: 12px 0; }
  .header__nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
}

/* ---------- Menu (celular) ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 80;
  display: flex;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__scrim {
  position: absolute; inset: 0; background: rgba(22, 58, 36, 0.45);
  opacity: 0; transition: opacity .3s ease;
  border: 0; padding: 0; cursor: pointer;
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: relative;
  width: min(86vw, 380px);
  height: 100%;
  display: flex; flex-direction: column;
  padding-top: calc(env(safe-area-inset-top, 0px) + 9px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: 22px;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .drawer__panel, .drawer__scrim { transition: none; }
}
.drawer__top { height: 44px; display: flex; align-items: center; justify-content: space-between; margin-left: -8px; }
.drawer__top .icon-btn { color: var(--creme); }
.drawer__top img { height: 22px; width: auto; }
.drawer__links {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: flex; flex-direction: column;
}
.drawer__links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(236, 230, 218, 0.22);
  color: var(--creme); text-decoration: none;
  font-size: 18px; font-weight: 600; font-stretch: 125%; letter-spacing: 0.04em; text-transform: uppercase;
}
.drawer__links a:hover { color: var(--branco); }
.drawer__links li:first-child a { border-top: 1px solid rgba(236, 230, 218, 0.22); }
.drawer__secondary {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
  font-size: 14px;
}
.drawer__secondary a { color: var(--verde-claro); text-decoration: none; }
.drawer__secondary a:hover { color: var(--creme); }
.drawer__sign { margin-top: auto; padding-top: 32px; font-size: 22px; color: var(--sol); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(460px, 159vw, 660px);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--branco);
  background-color: #2b2420;
  overflow: hidden;
  isolation: isolate;
}
.hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.62) 0%, rgba(20, 16, 12, 0.18) 34%, rgba(20, 16, 12, 0) 52%);
}
.hero__inner {
  display: flex; flex-direction: column; gap: 2px;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
  padding-block: 0 22px;
}
.hero__head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero__kicker { font-size: 22px; color: var(--sol); }
.hero__title {
  margin: 0;
  font-size: min(17px, 4.3vw);
  line-height: 1.2;
  font-weight: 600; font-stretch: 125%; letter-spacing: 0.03em;
  white-space: nowrap;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.18);
}
.countdown {
  margin: 12px 0 0;
  display: flex; gap: 18px;
  font-stretch: 125%; font-weight: 600; font-size: 22px; letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.countdown__unit { display: inline-flex; align-items: baseline; }
.countdown__label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.12em; margin-left: 3px;
}
.countdown__live {
  font-size: 13px; font-weight: 600; font-stretch: 125%; letter-spacing: 0.14em;
  display: inline-flex; align-items: center; gap: 8px;
}
.countdown__live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sol);
}

@media (min-width: 900px) {
  .hero { min-height: clamp(560px, 50vw, 760px); }
  .hero__inner {
    flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
    gap: 32px;
    padding-left: var(--pad-l); padding-right: var(--pad-r);
    padding-block: 0 48px;
  }
  .hero__kicker { font-size: 32px; }
  .hero__title { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.1; letter-spacing: 0.02em; }
  .countdown { margin: 0; gap: 28px; font-size: clamp(30px, 2.8vw, 40px); }
  .countdown__label { font-size: 13px; margin-left: 4px; }
}

/* ---------- Captura ---------- */
.capture {
  padding-left: var(--pad-l); padding-right: var(--pad-r);
  padding-block: 36px 34px;
  scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}
.capture__grid { display: flex; flex-direction: column; gap: 22px; }
.capture__head { display: flex; flex-direction: column; gap: 8px; }
.capture__title {
  margin: 0; max-width: 270px;
  font-size: 20px; line-height: 1.15; font-weight: 600; font-stretch: 125%; letter-spacing: 0.01em;
  text-wrap: balance;
}
.capture__sub { font-size: 22px; color: var(--sol); }

.form { display: flex; flex-direction: column; gap: 10px; }
.form__label { color: var(--verde-claro); }
.form__row { display: flex; flex-wrap: wrap; gap: 6px; }
.form__row .btn-outline { flex: 1 0 100%; margin-top: 4px; }
.form__select-wrap { position: relative; flex: none; width: 104px; }
.form__select-wrap svg {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--tinta);
}
.form select, .form input[type="tel"] {
  height: 50px; border: 0; border-radius: 0;
  background: var(--creme); color: var(--tinta);
  font-size: 16px; /* 16px evita o zoom automático no iPhone */
}
.form select {
  width: 100%; padding: 0 28px 0 12px;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  font-size: 15px;
}
.form input[type="tel"] { flex: 1; min-width: 0; padding: 0 14px; }
.form input::placeholder { color: #8C867A; }
.form input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--sol); }

.btn-outline {
  height: 50px; padding: 0 24px;
  border: 1.5px solid var(--creme); background: transparent; color: var(--creme);
  font-size: 12.5px; font-weight: 600; font-stretch: 125%; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.btn-outline:hover { background: var(--creme); color: var(--verde); }
.btn-outline[disabled] { opacity: .6; cursor: progress; }

.form__error {
  margin: 0; font-size: 13px; color: var(--sol); min-height: 0;
}
.form__legal { margin: 2px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--verde-claro); max-width: 46ch; }
.form__legal a { color: var(--creme); }
.form__trap { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.done { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 899px) { .capture.is-done .capture__head { display: none; } }
.done__title {
  margin: 0; font-size: 20px; line-height: 1.15; font-weight: 600; font-stretch: 125%; letter-spacing: 0.01em;
}
.done__text { margin: 0; font-size: 14.5px; color: var(--verde-claro); max-width: 40ch; }
.done__dates {
  list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; max-width: 420px;
}
.done__dates li {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-top: 1px solid rgba(236, 230, 218, 0.28);
}
.done__dates li:last-child { border-bottom: 1px solid rgba(236, 230, 218, 0.28); }
.done__dates li.is-you { color: var(--sol); font-weight: 600; }
.done__again {
  align-self: flex-start; margin-top: 4px; padding: 6px 0;
  background: none; border: 0; color: var(--creme); font-size: 13px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

@media (min-width: 900px) {
  .capture { padding-block: 64px; }
  .capture__grid { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
  .capture__title { font-size: clamp(24px, 2.1vw, 30px); max-width: none; }
  .capture__sub { font-size: 28px; }
  .form { flex: 0 1 560px; }
  .form__row { gap: 8px; flex-wrap: wrap; }
  .form__select-wrap { width: 110px; }
  .form select, .form input[type="tel"] { height: 54px; }
  .form input[type="tel"] { flex: 1 1 200px; padding: 0 16px; }
  .form .btn-outline { height: 54px; padding: 0 28px; flex: none; margin-top: 0; }
  .done { flex: 0 1 560px; }
}

/* ---------- Faixa do Club ---------- */
.club-strip {
  display: flex; align-items: center; gap: 12px;
  padding-left: var(--pad-l); padding-right: var(--pad-r);
  padding-block: 20px;
  border-bottom: 1px solid var(--linha);
  color: var(--tinta); text-decoration: none;
  font-size: 14px; line-height: 1.4;
}
.club-strip:hover { color: var(--tinta); background: rgba(36, 87, 56, 0.04); }
.club-strip span { flex: 1; }
.club-strip strong { font-weight: 600; }
.club-strip svg { color: var(--verde); flex: none; transition: transform .2s ease; }
.club-strip:hover svg { transform: translateX(3px); }
@media (min-width: 900px) {
  .club-strip { justify-content: center; padding-block: 24px; font-size: 15px; gap: 14px; }
  .club-strip span { flex: 0 1 auto; }
}

/* ---------- Quem veste ---------- */
.wear { padding-block: 40px 44px; display: flex; flex-direction: column; gap: 16px; }
.wear__title {
  margin: 0;
  padding-left: var(--pad-l); padding-right: var(--pad-r);
  font-size: 13px; font-weight: 600; font-stretch: 125%; letter-spacing: 0.12em; color: var(--verde);
}
.wear__track {
  display: flex; gap: 10px;
  margin: 0; padding: 0 var(--pad-r) 4px var(--pad-l);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--pad-l);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.wear__track::-webkit-scrollbar { display: none; }
.wear__item { flex: none; width: 168px; scroll-snap-align: start; }
.wear__item figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.wear__item img {
  width: 100%; aspect-ratio: 168 / 220; height: auto; object-fit: cover;
  background: var(--creme-fundo);
}
.wear__item figcaption { font-size: 19px; color: var(--cinza); }
.wear__hint {
  padding-left: var(--pad-l); padding-right: var(--pad-r);
  display: flex; gap: 6px; align-items: center;
}
.wear__dot { width: 18px; height: 2px; background: var(--linha); border: 0; padding: 0; transition: background-color .2s ease, width .2s ease; }
.wear__dot.is-on { background: var(--verde); width: 28px; }

@media (min-width: 560px) {
  .wear__item { width: 220px; }
}
@media (min-width: 900px) {
  .wear { padding-block: 64px 72px; gap: 24px; }
  .wear__title { font-size: 14px; }
  .wear__track {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
    overflow: visible;
  }
  .wear__item { width: auto; }
  .wear__item figure { gap: 8px; }
  .wear__item img { aspect-ratio: auto; height: clamp(260px, 23.6vw, 380px); }
  .wear__item figcaption { font-size: 22px; }
  .wear__hint { display: none; }
}

/* ---------- Rodapé ---------- */
.footer {
  padding-left: var(--pad-l); padding-right: var(--pad-r);
  padding-block: 36px calc(48px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 24px;
}
.footer__brand { display: flex; flex-direction: column; gap: 24px; }
.footer__brand img { height: 34px; width: auto; align-self: flex-start; }
.footer__nav {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px;
  font-size: 13px; order: 2;
}
.footer__nav a { color: var(--creme); text-decoration: none; padding: 4px 0; }
.footer__nav a:hover { color: var(--branco); text-decoration: underline; text-underline-offset: 3px; }
.footer__sign { font-size: 20px; color: var(--sol); order: 3; }
.footer__fine { order: 4; font-size: 11px; color: var(--verde-claro); letter-spacing: 0.04em; }

@media (min-width: 900px) {
  .footer {
    padding-block: 48px;
    display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 16px 48px;
  }
  .footer__brand { gap: 16px; }
  .footer__brand img { height: 40px; }
  .footer__nav {
    grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: auto;
    gap: 14px 48px; font-size: 13.5px; grid-row: 1 / span 2; grid-column: 2;
  }
  .footer__sign { font-size: 24px; grid-column: 1; grid-row: 2; }
  .footer__fine { grid-column: 1 / -1; }
}

/* ---------- Aviso flutuante ---------- */
.toast {
  position: fixed; z-index: 90;
  left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 16px);
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  background: var(--tinta); color: var(--creme);
  font-size: 13.5px; line-height: 1.4; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Entrada suave do texto do hero (começa visível; só anima se o movimento estiver liberado) */
@media (prefers-reduced-motion: no-preference) {
  .hero__head > *, .countdown { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero__head > *:nth-child(2) { animation-delay: .06s; }
  .countdown { animation-delay: .12s; }
  .hero__img { animation: settle 1.6s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes rise { from { transform: translateY(12px); } to { transform: none; } }
@keyframes settle { from { transform: scale(1.04); } to { transform: none; } }
