/* ================================================
   1. TOKENS & RESET
================================================ */
:root {
  --preto: #000000;
  --bege: #a07d56;
  --bege-claro: #d9c7b3;
  --bege-fundo: #f5efe7;
  --branco: #ffffff;
  --creme: #faf8f4;
  --texto: #2a2420;
  --texto-leve: #6b5c50;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", sans-serif;

  --max-w: 1160px;
  --gutter: clamp(1.5rem, 5vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  background-color: #fff;
}

body {
  background: var(--creme);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

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

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

/* ================================================
   2. GRAIN OVERLAY — textura sutil de luxo
================================================ */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ================================================
   3. UTILITÁRIOS
================================================ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hidden {
  display: none;
}

/* Estado inicial das animações GSAP */
.js-fade-up {
  opacity: 0;
  transform: translateY(48px);
}

.js-fade-in {
  opacity: 0;
}

.js-img-wrap {
  overflow: hidden;
}

.js-img-wrap img {
  transform: scale(1.08);
  opacity: 0;
}

/* ================================================
   4. NAVEGAÇÃO
================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;

  /* Adiciona o espaço do notch/dynamic island */
  padding-top: calc(1.25rem + env(safe-area-inset-top));
  padding-bottom: 1.25rem;
  padding-left: var(--gutter);
  padding-right: var(--gutter);

  display: flex;
  justify-content: center;
  align-items: center;

  /* Garante que o fundo cubra a área transparente */
  background: transparent;

  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    padding 0.4s ease;

  /* Melhora a performance de renderização no scroll */
  will-change: background, backdrop-filter;
}

/* No topo: mix-blend-mode diferença — logo branca sobre qualquer fundo */
.nav--top {
  mix-blend-mode: difference;
}

.nav-logo {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--branco);
  transition: color 0.3s ease;
}

/* Ao fazer scroll: fundo creme translúcido */
.nav--scrolled {
  mix-blend-mode: normal;
  background: rgba(
    250,
    248,
    244,
    0.96
  ); /* Aumentei a opacidade para evitar transparência indesejada */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(160, 125, 86, 0.12);

  /* Opcional: reduz o padding geral ao dar scroll para ocupar menos espaço */
  padding-top: calc(0.8rem + env(safe-area-inset-top));
  padding-bottom: 0.8rem;
}

.nav--scrolled .nav-logo {
  color: var(--preto);
}

/* ================================================
   5. BANNER
================================================ */
.banner {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url("../img/banner.jpg");
}

/* Camada parallax do banner */
.banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 115%; /* margem para o parallax não mostrar bordas */
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
}

/* Gradiente suave para o texto ser legível */
.banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

/* Conteúdo centralizado na parte inferior */
.banner__content {
  position: absolute;
  bottom: 9%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--branco);
  width: 100%;
  padding-inline: var(--gutter);
}

/* "Win Bag" — tag pequena acima do título */
.banner__eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  opacity: 0; /* animado via GSAP */
}

/* "Memória" — H1 em Instrument Serif */
.banner__title {
  font-family: var(--serif);
  font-size: clamp(4rem, 11vw, 9.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.01em;
  /* Os caracteres são injetados como <span> via JS */
}

.banner__title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(32px);
}

/* ================================================
   6. APRESENTAÇÃO
================================================ */
.apresentacao {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--creme);
}

.apresentacao__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 30px);
  align-items: start;
}

.apresentacao__texto h2 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 10px;
}

.apresentacao__texto h4 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  color: var(--bege);
  line-height: 1.65;
  margin-bottom: 20px;
}

.apresentacao__texto p {
  font-size: 15px;
  color: var(--texto-leve);
  line-height: 1.8;
  margin-bottom: 10px;
}

.apresentacao__texto p:last-child {
  margin-bottom: 0;
}

.apresentacao__foto {
  position: relative;
}

.apresentacao__foto img {
  width: 100%;
  height: clamp(420px, 55vw, 620px);
  object-fit: cover;
  object-position: top center;
}

/* ================================================
   7. SOBRE
================================================ */
.sobre {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--branco);
}

.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 30px);
  align-items: start;
}

.sobre__foto img {
  width: 100%;
  /* height: clamp(400px, 50vw, 580px); */
  object-fit: cover;
}

.sobre__texto h2 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 15px;
}

.sobre__texto p {
  font-size: 15px;
  color: var(--texto-leve);
  line-height: 1.8;
  margin-bottom: 10px;
}

.sobre__texto p:last-child {
  margin-bottom: 0;
}

/* ================================================
   8. CITAÇÃO
================================================ */
.citacao {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--bege-fundo);
  position: relative;
  overflow: hidden;
}

/* Aspas decorativas gigantes */
.citacao::before {
  content: "\201C";
  position: absolute;
  top: -0.3em;
  left: var(--gutter);
  font-family: var(--serif);
  font-size: clamp(8rem, 18vw, 18rem);
  color: rgba(160, 125, 86, 0.08);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.citacao__texto {
  font-family: var(--serif);
  font-size: clamp(14px, 1.5vw, 20px);
  font-style: italic;
  text-align: center;
  max-width: 950px;
  margin-inline: auto;
  line-height: 1.85;
  color: var(--texto);
  position: relative;
  z-index: 1;
}

/* ================================================
   9. FOTO FULL — parallax total
================================================ */
.full-foto {
  position: relative;
  height: clamp(450px, 75vh, 780px);
  overflow: hidden;
}

.full-foto__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 20%;
  will-change: transform;
}

/* ================================================
   10. PRODUTO
================================================ */
.produto {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--creme);
}

.produto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 30px);
  align-items: center;
}

.produto__texto h2 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 20px;
}

.produto__texto p {
  font-size: 15px;
  color: var(--texto-leve);
  line-height: 1.8;
  margin-bottom: 10px;
}

.produto__texto p:last-child {
  margin-bottom: 0;
}

/* ================================================
   11. CAROUSEL (Owl)
================================================ */
.galeria-wrap {
  position: relative;
}

/* Altura fixa para as imagens do carousel */

@media (min-width: 768px) {
  .owl-carousel .item img {
    width: 100%;
    height: clamp(300px, 40vw, 650px);
    object-fit: cover;
    display: block;
  }
}

/* Dots */
.owl-theme .owl-dots {
  margin-top: 1rem;
}

.owl-theme .owl-dots .owl-dot span {
  width: 8px;
  height: 8px;
  background: var(--bege-claro);
  transition:
    background 0.3s,
    width 0.3s;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  background: var(--bege);
  width: 24px;
  border-radius: 4px;
}

/* Setas */
.owl-theme .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding-inline: 0.75rem;
  pointer-events: none;
}

.owl-theme .owl-nav [class*="owl-"] {
  pointer-events: all;
  background: rgba(250, 248, 244, 0.85) !important;
  color: var(--bege) !important;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(160, 125, 86, 0.3) !important;
  margin: 0 !important;
  transition:
    background 0.25s,
    border-color 0.25s;
}

.owl-theme .owl-nav [class*="owl-"]:hover {
  background: var(--bege) !important;
  border-color: var(--bege) !important;
  color: var(--branco) !important;
}

.owl-theme .owl-nav [class*="owl-"] svg {
  display: block;
}
.owl-carousel {
  margin: 0 auto;
  width: 500px;
}
/* ================================================
   12. RODAPÉ
================================================ */
.footer {
  background: var(--bege);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: clamp(0.85rem, 2.2vw, 1.1rem);
  color: var(--branco);
  letter-spacing: 0.04em;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.footer__link:hover {
  opacity: 1;
}

.footer__icon {
  flex-shrink: 0;
}

.footer__contato {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* "contato:" em Instrument Serif italic — conforme branding */
.footer__label {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: var(--branco);
  font-weight: 400;
}

.footer__email {
  font-family: var(--sans);
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  color: var(--branco);
  letter-spacing: 0.04em;
  padding-bottom: 2px;
  transition:
    border-color 0.3s ease,
    opacity 0.3s ease;
}

.footer__email:hover {
  border-color: var(--branco);
  opacity: 0.85;
}

/* ================================================
   13. RESPONSIVIDADE MOBILE
================================================ */
@media (max-width: 768px) {
  .apresentacao__grid,
  .sobre__grid,
  .produto__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Foto sempre acima do texto em mobile */
  .apresentacao__foto {
    order: -1;
  }

  .sobre__foto {
    order: -1;
  }

  .apresentacao__foto img,
  .sobre__foto img {
    height: clamp(280px, 70vw, 420px);
  }

  .full-foto {
    height: clamp(300px, 65vw, 460px);
  }

  .citacao::before {
    display: none;
  }
  .produto .produto__grid {
    display: block;
  }
  .owl-carousel {
    margin: 20px auto 0 auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .banner__title {
    font-size: clamp(3rem, 16vw, 5rem);
  }
}

/* ================================================
   UTILITÁRIOS — visibilidade xs (≤ 480px)
================================================ */
.hidden-xs {
  display: revert;
}

.visible-xs {
  display: none !important;
}

@media (max-width: 480px) {
  .hidden-xs {
    display: none !important;
  }

  .visible-xs {
    display: revert !important;
  }
}
