@import url("https://fonts.googleapis.com/css2?family=Allura&family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Inter:wght@100..900&display=swap");

:root {
  /* Cores */
  --color-vermelho-principal: #c60212;
  --color-vermelho-claro: #e43441;
  --color-bege-claro: #ecc498;
  --color-bege-escuro: #d89772;
  --color-verde-escuro: #2e6944;
  --color-amarelo-dourado: #f6ce51;
  --color-marrom: #733527;
  --color-branco: #f8f4ef;

  /* Fontes */
  --font-titles: "Cormorant Garamond", serif;
  --font-titles-highlights: "Allura", cursive;
  --font-paragraphs: "Inter", sans-serif;
}

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

html,
body {
  height: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

.secao-scroll {
  width: 45%;
  height: 100%;
  background-color: white;
  overflow-y: auto;
}

/* ============================
   Linktree
   ============================ */

.linktree {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px 32px 32px;
  min-height: 100%;
  max-width: 550px;
  margin: 0 auto;
  font-family: var(--font-paragraphs);
}

.linktree__logo {
  width: 200px;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.linktree__titulo {
  font-family: var(--font-titles);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #733527;
}

.linktree__titulo span {
  font-family: var(--font-titles-highlights);
  color: #c60212;
  font-style: italic;
}

.linktree__subtitulo {
  font-family: var(--font-paragraphs);
  font-size: 0.92rem;
  color: #733527;
  line-height: 1.6;
  /* max-width: 38ch; */
}

.linktree__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.linktree__card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: rgba(255, 255, 255, 0.55);
  border: 2px solid var(--color-vermelho-principal);
  border-radius: 14px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.linktree__card:hover {
  background-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(115, 53, 39, 0.12);
}

.linktree__card-icone {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.linktree__card-texto {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.linktree__card-texto strong {
  font-family: var(--font-paragraphs);
  font-size: 0.95rem;
  font-weight: 700;
  color: #733527;
}

.linktree__card-texto span {
  font-family: var(--font-paragraphs);
  font-size: 0.78rem;
  color: #2e6944;
  line-height: 1.4;
}

.linktree__card-seta {
  font-size: 1.1rem;
  color: #c60212;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.linktree__card:hover .linktree__card-seta {
  transform: translateX(3px);
}

.linktree__rodape {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px dashed rgba(115, 53, 39, 0.25);
}

.linktree__rodape p {
  font-family: var(--font-paragraphs);
  font-size: 0.78rem;
  color: #733527;
}

.linktree__rodape strong {
  font-weight: 700;
}

/* ============================
   Card Destaque (Cardápio Digital)
   ============================ */

.linktree__card--destaque {
  position: relative;
  overflow: visible;
  padding: 20px 22px 20px 90px;
  min-height: 80px;
}

.linktree__card-icone-destaque {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 70px;
  /* height: 90px; */
  object-fit: cover;
  /* border-radius: 16px; */
  transform: translateY(-50%) rotate(-20deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(2px 4px 8px rgba(115, 53, 39, 0.25));
  flex-shrink: 0;
}

.linktree__card--destaque:hover .linktree__card-icone-destaque {
  transform: translateY(-50%) rotate(-14deg) scale(1.12);
}

.linktree__card--destaque .linktree__card-texto strong {
  font-size: 1.1rem;
}

.linktree__card--destaque .linktree__card-texto span {
  font-size: 0.85rem;
}

/* ============================
   Seção Escura
   ============================ */

.secao-escura {
  flex: 1;
  background-color: #121212;
  overflow-y: auto;
  display: flex;
  align-items: start;
  padding: 30px;
  justify-content: center;
}

/* ============================
   Galeria
   ============================ */

.galeria {
  width: 950px;
  max-width: 80%;
  /* padding: 48px 32px; */
  margin: 0 auto;
}

.galeria__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 15px;
  /* aspect-ratio: 6 / 5; */
}

/* Mantém o comportamento do grid no desktop */
.galeria__slider {
  display: contents;
}

/* Esconde indicadores no desktop */
.galeria__indicators {
  display: none;
}

.galeria__item {
  overflow: hidden;
  border-radius: 14px;
  position: relative;
  background-color: #1a1a1a;
  cursor: pointer;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
}

.galeria__item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(198, 2, 18, 0.2);
  z-index: 2;
}

.galeria__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.galeria__item:hover img {
  transform: scale(1.08);
}

/* Vídeo: ocupa coluna 3, linhas 2 e 3 */
.galeria__item--video {
  /* grid-column: 3; */
  /* grid-row: 2 / 4; */
  aspect-ratio: 9 / 16;
  cursor: pointer;
  border: 2px solid var(--color-vermelho-principal);
}

.galeria__item--video:hover {
  transform: none;
  box-shadow: none;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(198, 2, 18, 0.85);
  border: none;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.galeria__item--video:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--color-vermelho-principal);
}

.video-play-btn svg {
  margin-left: 4px;
}

.galeria__video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #000;
  outline: none;
  display: block;
}

/* Título */
.galeria__titulo {
  font-family: var(--font-titles);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  color: var(--color-branco);
  text-align: center;
  margin-top: 30px;

  text-transform: capitalize;
  align-items: center;
  gap: 20px;
}

/* ============================
   Responsividade
   ============================ */

@media (max-width: 900px) {
  body {
    flex-direction: column;
    height: auto;
  }

  .secao-scroll {
    width: 100%;
    height: auto;
    overflow-y: visible;
  }

  .secao-escura {
    width: 100%;
    height: auto;
    padding-bottom: 32px;
  }

  .galeria {
    padding: 24px 24px 0 24px;
  }

  .galeria__grid {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    gap: 0;
  }

  /* Slider Mobile */
  .galeria__slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 8px;
    scrollbar-width: none;
    /* Firefox */
  }

  .galeria__slider::-webkit-scrollbar {
    display: none;
    /* Chrome e Safari */
  }

  .galeria__item {
    flex: 0 0 100%;
    max-width: 400px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    margin: 0 auto;
  }

  /* Centralizar o item no slider se houver espaço (telas entre 400 e 900px) */
  .galeria__slider {
    padding-left: calc(50% - min(50%, 200px));
    padding-right: calc(50% - min(50%, 200px));
  }

  .galeria__item:hover {
    transform: none;
    /* Remove efeito hover em dispositivos móveis */
    box-shadow: none;
  }

  /* Indicadores do Slider */
  .galeria__indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 32px;
  }

  .galeria__indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition:
      background-color 0.3s ease,
      transform 0.3s ease;
  }

  .galeria__indicator.active {
    background-color: var(--color-vermelho-principal);
    transform: scale(1.2);
  }

  /* Vídeo abaixo do slider */
  .galeria__item--video {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 9/16;
    margin: 0 auto;
  }
}
