/* ==========================================================================
   Biena · site em manutenção
   ========================================================================== */

@font-face {
  font-family: "Coolvetica";
  src: url("fonts/coolvetica-rg.woff2") format("woff2"),
       url("fonts/coolvetica-rg.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --urucum: #cb2239;
  --mata: #141112;
  --tapioca: #eee7cc;

  --font-body: "Coolvetica", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: 16px;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  background: var(--mata);
  color: var(--tapioca);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grão de impressão por cima de tudo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background-image: var(--noise);
  background-size: 220px;
  mix-blend-mode: overlay;
  opacity: .55;
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

[hidden] { display: none !important; }

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

svg { display: block; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  /* biome-ignore lint/suspicious/noDuplicateProperties: fallback para navegadores sem svh */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background: var(--urucum);
}

.band {
  position: relative;
  z-index: 3;
  overflow: hidden;
  flex: none;
}
/* faixas marajoaras: padrão repetido na horizontal, cobre qualquer largura */
.band {
  background-repeat: repeat-x;
  background-position: left center;
  background-size: auto 100%;
  background-origin: content-box;
}
.band--top { background-image: url("assets/band-top.svg"); }
.band--bottom { background-image: url("assets/band-bottom.svg"); }
.band--top { height: 84px; padding: 12px 0 10px; background-color: var(--mata); box-shadow: 0 6px 0 rgba(20, 17, 18, .25); }

/* ---------- elementos de fundo ---------- */

.deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.layer { position: absolute; inset: 0; will-change: transform; }
.d { position: absolute; }
.d svg { width: 100%; height: auto; }

.bg-leaves { position: absolute; inset: 0; opacity: .17; }
.bg-leaves svg { width: 100%; height: 100%; }

.d-rain  { top: 14%; right: 22%; width: 230px; opacity: .35; }
.d-acai  { right: -120px; bottom: -3%; width: 320px; }
.d-waves { left: 0; right: 0; bottom: 0; height: 150px; opacity: .85; }
.d-waves svg { width: 100%; height: 100%; }

.cluster { position: absolute; bottom: 0; width: 1px; height: 1px; }
.cluster--bl { left: 0; }
.cluster--br { right: 0; }
.lf { position: absolute; }
.lf svg { width: 100%; height: auto; }
.lf-1 { left: -70px;  bottom: -150px; width: 230px; transform: rotate(-26deg); }
.lf-2 { left: 110px;  bottom: -190px; width: 170px; transform: rotate(14deg); }
.lf-3 { left: 30px;   bottom: 150px;  width: 70px;  transform: rotate(-58deg); }
.lf-4 { right: -60px; bottom: -130px; width: 220px; transform: rotate(24deg); }
.lf-5 { right: 120px; bottom: -200px; width: 160px; transform: rotate(-12deg); }
.lf-6 { right: 60px;  bottom: 190px;  width: 60px;  transform: rotate(40deg); }

.spin { animation: spin 160s linear infinite; }
.sway { transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite alternate; }
.sway--alt { animation-duration: 9s; animation-delay: -3s; }
.sway--slow { animation: sway-slow 11s ease-in-out infinite alternate; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes sway-slow { from { transform: rotate(-1.2deg); } to { transform: rotate(1deg); } }

/* ---------- conteúdo ---------- */

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  width: min(1260px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: 3vh 0 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero__text { display: flex; flex-direction: column; align-items: center; }

/* logo novo no lugar do relógio */
.marca { margin: 0; line-height: 0; }
.marca__logo {
  display: block;
  width: clamp(240px, 34vw, 500px);
  max-height: 52vh;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(6px 8px 0 rgba(20, 17, 18, .3));
}

.manutencao {
  margin: clamp(28px, 4.5vh, 44px) 0 0;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.1;
  color: var(--tapioca);
  text-shadow: 2px 3px 0 rgba(20, 17, 18, .35);
}
.manutencao span {
  display: inline-block;
  margin-top: .3em;
  padding: .08em .3em .04em;
  background: var(--mata);
  color: var(--tapioca);
  text-shadow: none;
  transform: rotate(-1.5deg);
}

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .8em 1.4em .75em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn--red {
  background: var(--urucum);
  color: var(--tapioca);
  box-shadow: 0 6px 0 var(--mata);
}
.btn--light {
  margin-top: 36px;
  background: var(--tapioca);
  color: var(--mata);
  box-shadow: 0 6px 0 var(--mata);
}
.btn:hover { transform: translateY(-3px); }
.btn--red:hover { box-shadow: 0 9px 0 var(--mata); }
.btn--light:hover { box-shadow: 0 9px 0 var(--mata); }
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--mata); }
.btn__arrow { width: 1.2em; height: auto; }

:focus-visible { outline: 3px solid var(--tapioca); outline-offset: 5px; border-radius: 4px; }
.btn:focus-visible { border-radius: 999px; }
.contact :focus-visible { outline-color: var(--mata); }

/* ==========================================================================
   Contato
   ========================================================================== */

.contact {
  position: relative;
  background: var(--tapioca);
  background-image: var(--noise);
  background-size: 220px;
  background-blend-mode: multiply;
  color: var(--mata);
}

.contact__inner {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(64px, 10vh, 110px) 0 clamp(48px, 7vh, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact__title {
  margin: 0 0 12px;
  max-width: 22ch;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.02;
  text-wrap: balance;
}

.contact__text { margin: 0 0 36px; font-size: clamp(17px, 1.6vw, 21px); }

.contact__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 16px;
  margin: 40px 0 0;
  font-size: 17px;
}
.contact__meta .dot { color: var(--urucum); font-size: 12px; }

.link {
  color: inherit;
  font-size: 20px;
  text-decoration: underline;
  text-decoration-color: var(--urucum);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.link:hover { text-decoration-thickness: 4px; }

.band--bottom { height: 58px; margin-bottom: 16px; }


/* chamada para os republicados do Instagram */
.portfolio {
  margin-top: clamp(48px, 7vh, 72px);
  padding-top: clamp(36px, 5vh, 52px);
  border-top: 2px dashed rgba(20, 17, 18, .25);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.portfolio__text { margin: 0; max-width: 34ch; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.25; text-wrap: balance; }
.portfolio__text strong { font-weight: 400; color: var(--urucum); }
.portfolio .btn--light { margin-top: 24px; background: var(--mata); color: var(--tapioca); box-shadow: 0 6px 0 var(--urucum); }
.portfolio .btn--light:hover { box-shadow: 0 9px 0 var(--urucum); }
.portfolio .btn--light:active { box-shadow: 0 3px 0 var(--urucum); }

/* ==========================================================================
   Tablet / celular
   ========================================================================== */

@media (max-width: 900px) {
  .hero__inner { padding: 2vh 0 120px; }
  .d-acai { right: -150px; width: 260px; }
}

@media (max-width: 640px) {
  .band--top { height: 62px; padding: 10px 0 8px; }
  .marca__logo { width: min(72vw, 300px); }
  .manutencao { font-size: clamp(22px, 7vw, 28px); }

  /* fundo reorganizado para a tela em pé */
  .bg-leaves { opacity: .14; }
  .d-rain  { top: 84px; left: -20px; right: auto; width: 140px; }
  .d-acai  { display: none; }
  .d-waves { height: 90px; }
  .lf-1 { left: -56px;  bottom: -96px; width: 150px; }
  .lf-2 { left: 58px;   bottom: -150px; width: 110px; }
  .lf-3 { display: none; }
  .lf-4 { right: -46px; bottom: -80px; width: 140px; }
  .lf-5 { right: 70px;  bottom: -160px; width: 100px; }
  .lf-6 { display: none; }

  .contact__meta { flex-direction: column; gap: 8px; }
  .contact__meta .dot { display: none; }
  .band--bottom { height: 42px; }
}

/* ==========================================================================
   Movimento reduzido
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .spin, .sway, .sway--slow, .sway--alt { animation: none; }
  .layer { transform: none !important; }
  .btn { transition: none; }
}

/* ==========================================================================
   Celular / toque: grão leve na rolagem (no desktop nada muda)
   ========================================================================== */

@media (hover: none), (pointer: coarse), (max-width: 900px) {
  /* grão: sai a camada fixa com mix-blend-mode (recalculada a cada quadro na rolagem)
     e entra um PNG pequeno em repetição, que rola junto com a página */
  body::after { display: none; }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: url("assets/grain.png") repeat;
    background-size: 160px;
  }
  .contact {
    background-image: url("assets/grain.png");
    background-size: 160px;
    background-blend-mode: normal;
  }

  /* sem parallax no toque: não precisa manter camadas de tela cheia na GPU */
  .layer { will-change: auto; }
}
