/* ═══════════════════════════════════════════════════════════
   BISTRÔ DO CHEF · CAPA RETRÔ
   Arquivo: assets/css/capa.css
   ───────────────────────────────────────────────────────────
   ESTRUTURA DO ARQUIVO:
     1. BASE      → variáveis, reset, html/body
     2. DESKTOP   → regras padrão (aplicam em telas > 900px)
     3. MOBILE    → sobrescreve em telas ≤ 900px
   ═══════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════
   PARTE 1 · BASE (variáveis, reset, html/body)
   ═══════════════════════════════════════════════════════════ */

:root {
  --amarelo: #f2c500;
  --amarelo-claro: #f7d94c;
  --amarelo-palido: #fdf6d3;
  --vermelho: #b41d1d;
  --vermelho-escuro: #8a1414;
  --madeira: #6b4a2e;
  --madeira-escura: #3d2817;
  --dourado: #d4a017;
  --dourado-claro: #f0c75e;
  --preto: #1a1410;
  --tinta: #2a1f15;
  --papel: #fff8e7;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Cormorant Garamond', serif;
  color: var(--tinta);
  overflow-x: hidden;
}


/* ═══════════════════════════════════════════════════════════
   PARTE 2 · DESKTOP
   ═══════════════════════════════════════════════════════════ */

/* ---------- FUNDO GERAL DA CAPA ---------- */
.capa {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amarelo);
  overflow: hidden;
  padding: 0;                            /* ← NOVO: era 8px → agora 0 */
}

/* ---------- FOTO DO BISTRÔ (FUNDO DESFOCADO) ---------- */
.fundo-bistro {
  position: fixed;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(8px) saturate(1.15) brightness(.9);
  opacity: .35;
  z-index: 0;
  transform: scale(1.08);
  animation: respirar 20s ease-in-out infinite alternate;
}

@keyframes respirar {
  from { transform: scale(1.08) translate(0, 0); }
  to   { transform: scale(1.14) translate(-10px, -8px); }
}

/* ---------- OVERLAY AMARELO ---------- */
.overlay-amarelo {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 40%,
      rgba(255, 220, 120, .55) 0%,
      rgba(242, 197, 0, .75) 45%,
      rgba(200, 140, 0, .9) 100%);
  mix-blend-mode: multiply;
}

/* ---------- VINHETA (CANTOS ESCUROS) ---------- */
.vinheta {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 35%,
    rgba(60, 30, 0, .35) 75%,
    rgba(30, 10, 0, .75) 100%);
}

/* ---------- TEXTURA DE PAPEL ---------- */
.textura-papel {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .25;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- CONTEÚDO PRINCIPAL ---------- */
.capa-conteudo {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 6vw, 90px);
  padding: 0 clamp(30px, 5vw, 80px);     /* ← NOVO: era clamp(10px, 1.5vh, 24px) → agora 0 */
  max-width: 1400px;
  width: 100%;
  max-height: 100vh;
  animation: aparecer 1.4s ease both;
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════
   MOLDURA DA FOTO
   ═══════════════════════════════════════════════ */
.moldura-chefe {
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(145deg, #fbf1d5 0%, #e6d3a3 100%);
  padding: clamp(14px, 1.8vh, 20px) clamp(14px, 1.8vh, 20px) clamp(42px, 5.5vh, 62px);
  border-radius: 3px;
  box-shadow:
    0 0 0 8px var(--dourado),
    0 0 0 12px var(--madeira-escura),
    0 40px 80px rgba(40, 20, 0, .65),
    inset 0 0 40px rgba(139, 105, 20, .15);
  transform: rotate(-3.5deg);
  transition: transform .6s cubic-bezier(.2,.8,.3,1);
  max-width: min(520px, 44vw);          /* ← NOVO: era 500px / 42vw */
  max-height: 98vh;                      /* ← NOVO: era 94vh → agora 98vh */
  animation: entrar-moldura 1.6s .2s cubic-bezier(.2,.8,.3,1) both;
}

@keyframes entrar-moldura {
  from { opacity: 0; transform: translateX(-60px) rotate(-10deg); }
  to   { opacity: 1; transform: translateX(0)     rotate(-3.5deg); }
}

.moldura-chefe:hover {
  transform: rotate(-1deg) scale(1.03);
}

.moldura-chefe img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: calc(98vh - 90px);        /* ← NOVO: era calc(94vh - 100px) */
  object-fit: cover;
  object-position: center 20%;
  border-radius: 2px;
  filter: contrast(1.05) saturate(1.08);
  box-shadow: inset 0 0 30px rgba(0,0,0,.35);
}

/* ---------- FITAS DECORATIVAS ---------- */
.fita-topo {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 140px;
  height: 36px;
  background: rgba(245, 230, 190, .88);
  box-shadow: 0 3px 8px rgba(0,0,0,.35);
  border-left: 1px dashed rgba(0,0,0,.15);
  border-right: 1px dashed rgba(0,0,0,.15);
  z-index: 2;
}

.fita-canto {
  position: absolute;
  top: 10px;
  right: -24px;
  width: 96px;
  height: 30px;
  background: rgba(245, 230, 190, .85);
  transform: rotate(38deg);
  box-shadow: 0 2px 6px rgba(0,0,0,.28);
  z-index: 2;
}

.moldura-chefe figcaption {
  position: absolute;
  bottom: clamp(10px, 2vh, 20px);        /* ← NOVO: era clamp(14px, 2.5vh, 24px) */
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.4rem, 2.6vh, 2rem); /* ← NOVO: era clamp(1.5rem, 2.8vh, 2.2rem) */
  color: var(--tinta);
  letter-spacing: 1px;
}

/* ---------- BLOCO DE TEXTO ---------- */
.boas-vindas {
  flex: 1;
  max-width: 620px;
  text-align: left;
  text-shadow: 0 1px 2px rgba(255, 240, 180, .5);
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ornamento {
  display: inline-block;
  color: var(--vermelho);
  letter-spacing: 14px;
  font-size: clamp(1rem, 1.8vh, 1.3rem);
  margin-bottom: clamp(8px, 1.2vh, 16px);  /* ← NOVO: era clamp(10px, 1.5vh, 18px) */
  opacity: .9;
}

/* ---------- TÍTULO PRINCIPAL ---------- */
.boas-vindas h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  margin: 0;
  line-height: 1;
  color: var(--vermelho);
  letter-spacing: 1px;
}

.boas-vindas h1 .bistro {
  display: block;
  font-size: clamp(2.4rem, 5.5vh, 4.2rem);
  font-style: italic;
}

.boas-vindas h1 .do {
  font-family: 'Caveat', cursive;
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.4rem, 3vh, 2.4rem);
  color: var(--tinta);
  vertical-align: middle;
  margin: 0 10px;
  display: inline-block;
  transform: translateY(-8px);
}

.boas-vindas h1 .chef {
  display: inline-block;
  font-size: clamp(3.2rem, 7vh, 6rem);
  color: var(--vermelho);
}

/* ---------- LINHA VERMELHA DECORATIVA ---------- */
.linha-vermelha {
  width: 110px;
  height: 5px;
  background: var(--vermelho);
  border-radius: 2px;
  margin: clamp(12px, 1.8vh, 20px) 0 clamp(14px, 2.2vh, 24px);  /* ← NOVO: margens menores */
  box-shadow: 0 2px 0 rgba(0,0,0,.15);
}

/* ---------- SUBTÍTULO ---------- */
.subtitulo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vh, 1.6rem);
  color: var(--tinta);
  margin: 0 0 4px;
  letter-spacing: .5px;
  opacity: .85;
}

.boas-vindas h2 {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(2.6rem, 5.5vh, 4.2rem);
  color: var(--tinta);
  margin: 0 0 clamp(12px, 1.8vh, 20px);    /* ← NOVO: era clamp(14px, 2vh, 24px) */
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}

.descricao {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 2vh, 1.4rem);
  line-height: 1.5;
  color: var(--tinta);
  margin: 0 0 clamp(18px, 2.5vh, 28px);    /* ← NOVO: era clamp(22px, 3vh, 34px) */
  font-style: italic;
  opacity: .85;
}

/* ---------- BOTÃO ENTRAR ---------- */
.btn-entrar {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: clamp(14px, 2vh, 20px) clamp(30px, 3.6vw, 46px);  /* ← NOVO: um pouco menor */
  background: linear-gradient(145deg, var(--vermelho), var(--vermelho-escuro));
  color: var(--papel);
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.9vh, 1.3rem);                   /* ← NOVO: era max 1.4rem */
  letter-spacing: 4px;
  text-transform: uppercase;
  border-radius: 3px;
  border: 2px solid var(--dourado);
  box-shadow:
    0 0 0 1px var(--vermelho-escuro),
    0 12px 28px rgba(60, 10, 0, .55),
    inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .3s, box-shadow .3s, background .3s;
  align-self: flex-start;
}

.btn-entrar:hover {
  transform: translateY(-4px);
  background: linear-gradient(145deg, #d42525, var(--vermelho));
  box-shadow:
    0 0 0 1px var(--vermelho-escuro),
    0 20px 40px rgba(60, 10, 0, .65),
    0 0 50px rgba(212, 160, 23, .5),
    inset 0 1px 0 rgba(255,255,255,.3);
}

.btn-entrar .seta {
  transition: transform .3s;
  font-size: 1.5rem;
}
.btn-entrar:hover .seta { transform: translateX(10px); }

/* ---------- ESTATÍSTICAS ---------- */
.estatisticas {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 28px);
  margin-top: clamp(20px, 3vh, 32px);       /* ← NOVO: era clamp(26px, 4vh, 44px) */
  padding-top: clamp(14px, 2.4vh, 24px);    /* ← NOVO: era clamp(18px, 3vh, 30px) */
  border-top: 1px dashed rgba(60, 30, 0, .3);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat strong {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.2vh, 2.4rem);
  font-weight: 900;
  color: var(--vermelho);
  line-height: 1;
}

.stat span {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(.85rem, 1.5vh, 1rem);
  color: var(--tinta);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 5px;
  opacity: .75;
}

.estatisticas .divisor {
  width: 1px;
  height: 40px;
  background: rgba(60, 30, 0, .25);
}

/* ---------- RODAPÉ ---------- */
.rodape-capa {
  position: absolute;
  bottom: clamp(6px, 1.2vh, 14px);           /* ← NOVO: era clamp(10px, 1.8vh, 24px) */
  left: 0;
  right: 0;
  text-align: center;
  z-index: 6;
  color: var(--tinta);
  font-family: 'Caveat', cursive;
  font-size: clamp(1rem, 1.7vh, 1.3rem);
  letter-spacing: 2px;
  opacity: .75;
}

.rodape-capa .ponto { color: var(--vermelho); }
.rodape-capa span { color: var(--vermelho); }


/* ═══════════════════════════════════════════════════════════
   PARTE 3 · MOBILE (telas ≤ 900px)
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  html, body { overflow: auto; }

  .capa {
    height: auto;
    min-height: 100vh;
    padding: 24px 16px;
    align-items: flex-start;
  }

  .capa-conteudo {
    flex-direction: column;
    gap: 28px;
    text-align: center;
    padding: 24px 16px 90px;
    max-height: none;
  }

  .moldura-chefe {
    max-width: min(320px, 75vw);
    max-height: none;
  }

  .moldura-chefe img {
    max-height: none;
    height: auto;
    aspect-ratio: 3 / 4;
    object-position: center;
  }

  .boas-vindas {
    text-align: center;
    max-height: none;
  }

  .linha-vermelha {
    margin-left: auto;
    margin-right: auto;
  }

  .btn-entrar {
    align-self: center;
  }

  .estatisticas {
    justify-content: center;
  }
}