/* =========================================================
   VOVÔ GIL — Design System
   Paleta extraída do logotipo oficial:
     - Verde-carvão quase preto (fundo da marca)
     - Vermelho vivo (aro do selo / "Casa de Família e Amigos")
   Dourado adicionado como acento de tradição/latão.
   Tipografia: Rye (assinatura/display), Fraunces (títulos),
   Work Sans (texto e interface).
   ========================================================= */

:root {
  /* Cores */
  --cor-fundo-escuro: #10160f;
  --cor-fundo-escuro-2: #182018;
  --cor-fundo-preto: #0a0d0a;
  --cor-creme: #f7f1e4;
  --cor-creme-suave: #fbf8f0;
  --cor-vermelho: #c81e1e;
  --cor-vermelho-escuro: #931414;
  --cor-dourado: #c69749;
  --cor-dourado-claro: #e0c07f;
  --cor-marrom-texto: #2e2114;
  --cor-branco: #ffffff;

  /* Texto sobre fundo escuro */
  --cor-texto-claro: #f3ede0;
  --cor-texto-claro-suave: #cfc8b8;

  /* Tipografia */
  /* --fonte-display: 'Rye', serif; */
  --fonte-titulo: 'Fraunces', serif;
  --fonte-corpo: 'Work Sans', sans-serif;

  /* Espaçamento */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7.5rem;

  /* Layout */
  --largura-maxima: 1180px;
  --raio: 10px;
  --raio-grande: 22px;

  /* Sombra e transição */
  --sombra-suave: 0 12px 30px rgba(10, 13, 10, 0.18);
  --sombra-forte: 0 20px 50px rgba(10, 13, 10, 0.35);
  --transicao: 260ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Slot para imagem de fundo do hero — substitua quando a foto chegar */
  --hero-image: none;
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fonte-corpo);
  color: var(--cor-marrom-texto);
  background: var(--cor-creme);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

:focus-visible {
  outline: 3px solid var(--cor-dourado);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--largura-maxima);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =========================================================
   TIPOGRAFIA UTILITÁRIA
   ========================================================= */
.eyebrow {
  display: inline-block;
  font-family: var(--fonte-corpo);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cor-vermelho);
  margin-bottom: var(--space-xs);
}
.eyebrow--light { color: var(--cor-dourado-claro); }

.section-title {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: var(--cor-marrom-texto);
  margin-bottom: var(--space-sm);
}
.section-title--light { color: var(--cor-creme); }

.section-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #4a3c2b;
  max-width: 54em;
}
.section-subtitle--light { color: var(--cor-texto-claro-suave); }

.section-header { margin-bottom: var(--space-lg); }
.section-header--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header--center .section-subtitle { margin-left: auto; margin-right: auto; }

/* =========================================================
   BOTÕES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--fonte-corpo);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform var(--transicao), box-shadow var(--transicao), background var(--transicao), color var(--transicao), border-color var(--transicao);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--cor-vermelho);
  color: var(--cor-branco);
  box-shadow: var(--sombra-suave);
}
.btn--primary:hover { background: var(--cor-vermelho-escuro); box-shadow: var(--sombra-forte); }

.btn--outline {
  border-color: rgba(247, 241, 228, 0.5);
  color: var(--cor-texto-claro);
}
.btn--outline:hover { border-color: var(--cor-creme); background: rgba(247, 241, 228, 0.08); }

.btn--outline-light {
  border-color: var(--cor-dourado);
  color: var(--cor-dourado-claro);
}
.btn--outline-light:hover { background: rgba(198, 151, 73, 0.12); }

.btn--large { padding: 1.1rem 2.2rem; font-size: 1rem; }
.btn--small { padding: 0.65rem 1.25rem; font-size: 0.85rem; }

.btn__icon { width: 18px; height: 18px; }
.btn__icon--white { filter: brightness(0) invert(1); }

/* =========================================================
   SELO DE FAMÍLIA — elemento de assinatura
   Inspirado no emblema circular do logotipo do Vovô Gil.
   ========================================================= */
.selo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
}
.selo__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.selo__ring-dashed {
  fill: none;
  stroke: var(--cor-dourado);
  stroke-width: 1.4;
  stroke-dasharray: 3 5;
  opacity: 0.85;
}
.selo__ring-solid {
  fill: none;
  stroke: var(--cor-dourado);
  stroke-width: 1.2;
  opacity: 0.6;
}
.selo__text-top, .selo__text-bottom {
  font-family: var(--fonte-corpo);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 2px;
  fill: var(--cor-dourado-claro);
}
.selo--hero {
  margin-bottom: var(--space-md);
}
.selo__logo {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 2px solid var(--cor-vermelho);
  border-radius: 50%;
  animation: selo-girar 18s linear infinite;
}
.selo--small { width: 84px; height: 84px; }
.selo__label {
  position: relative;
  z-index: 1;
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: 0.68rem;
  line-height: 1.25;
  text-align: center;
  color: var(--cor-dourado);
}
.selo__icon {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  filter: sepia(1) saturate(3) hue-rotate(0deg) brightness(0.75);
}
.selo--overlap {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--cor-creme);
  border-radius: 50%;
  box-shadow: var(--sombra-suave);
}

@keyframes selo-girar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(198, 151, 73, 0.18);
}
/* O blur fica num pseudo-elemento (e não no .header em si) para que o
   .header não vire "containing block" dos filhos position:fixed — isso
   quebraria o menu mobile em tela cheia em navegadores baseados em Chromium. */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(16, 22, 15, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--transicao);
}
.header.is-scrolled::before {
  background: rgba(16, 22, 15, 0.94);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.7rem;
}
.header__brand { display: inline-flex; }
.header__logo {
  width: 110px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  transition: transform var(--transicao);
}
.header__brand:hover .header__logo { transform: scale(1.05); }

.nav__list {
  display: flex;
  gap: var(--space-md);
}
.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--cor-texto-claro);
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--transicao);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--cor-vermelho);
  transition: width var(--transicao);
}
.nav__link:hover { color: var(--cor-creme); }
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: var(--space-sm); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cor-creme);
  margin-inline: auto;
  transition: transform var(--transicao), opacity var(--transicao);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 90% at 50% 0%, #1c261a 0%, var(--cor-fundo-escuro) 55%, var(--cor-fundo-preto) 100%);
  overflow: hidden;
  padding-top: 5rem;
}
.hero__bg-slot {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.hero__texture {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(198,151,73,0.05) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(-45deg, rgba(198,151,73,0.05) 0 2px, transparent 2px 26px);
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: var(--space-xl);
}
.hero__title {
  font-family: var(--fonte-titulo);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1.08;
  color: var(--cor-creme);
  text-shadow: 0 6px 30px rgba(0,0,0,0.35);
  margin-bottom: var(--space-sm);
}
.hero__subtitle {
  max-width: 60em;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--cor-texto-claro-suave);
  margin-bottom: var(--space-lg);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid rgba(247,241,228,0.4);
  border-radius: 999px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--cor-dourado-claro);
  border-radius: 999px;
  transform: translateX(-50%);
  animation: scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { top: 8px; opacity: 1; }
  50% { top: 20px; opacity: 0.3; }
}

/* =========================================================
   PLACEHOLDER DE IMAGEM
   ========================================================= */
.img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--raio);
  border: 1px solid rgba(46, 33, 20, 0.28);
  object-fit: cover;
}
.img-placeholder__icon { width: 34px; height: 34px; fill: #a89676; }
.img-placeholder span {
  font-size: 0.85rem;
  font-weight: 500;
  max-width: 16em;
}
.img-placeholder--portrait { aspect-ratio: 4 / 5; }
.img-placeholder--rectangular { aspect-ratio: 3 / 2; }
.img-placeholder--dark {
  background:
    repeating-linear-gradient(135deg, rgba(198,151,73,0.06) 0 10px, transparent 10px 20px),
    #1a2118;
  border-color: rgba(198,151,73,0.3);
  color: var(--cor-dourado-claro);
}
.img-placeholder--dark .img-placeholder__icon { fill: var(--cor-dourado); }

/* =========================================================
   SOBRE
   ========================================================= */
.about { padding-block: var(--space-2xl); background: var(--cor-creme); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.about__media { position: relative; max-width: 420px; margin-inline: auto; width: 100%; }
.about__lead { font-size: 1.15rem; line-height: 1.6; margin-bottom: var(--space-sm); color: var(--cor-marrom-texto); }
.about__text p { line-height: 1.75; color: #4a3c2b; margin-bottom: var(--space-sm); }
.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-md);
}
.about__tags li {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(200, 30, 30, 0.08);
  color: var(--cor-vermelho-escuro);
  border: 1px solid rgba(200, 30, 30, 0.18);
}

/* =========================================================
   REVEAL (fade-in ao rolar)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms ease, transform 800ms ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   DESTAQUES DO CARDÁPIO
   ========================================================= */
.menu { padding-block: var(--space-2xl); background: var(--cor-creme-suave); }
.menu__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.dish-card {
  background: var(--cor-branco);
  border-radius: var(--raio-grande);
  padding: var(--space-sm);
  box-shadow: var(--sombra-suave);
  transition: transform var(--transicao), box-shadow var(--transicao);
}
.dish-card:hover { transform: translateY(-6px); box-shadow: var(--sombra-forte); }
.dish-card__media { position: relative; margin-bottom: var(--space-sm); }
.dish-card__media .img-placeholder { border-radius: calc(var(--raio-grande) - 6px); }
.dish-card__badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--cor-vermelho);
  color: var(--cor-branco);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.dish-card__title {
  font-family: var(--fonte-titulo);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--cor-marrom-texto);
}
.dish-card__desc { font-size: 0.92rem; line-height: 1.55; color: #6b5c45; }

.menu__cta { text-align: center; margin-top: var(--space-lg); }

/* =========================================================
   AMBIENTE
   ========================================================= */
.ambiente { padding-block: var(--space-2xl); background: var(--cor-fundo-escuro); }
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}
.gallery__item {
  border-radius: var(--raio);
  overflow: hidden;
}
.gallery__item .img-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--raio);
  border-color: rgba(198,151,73,0.3);
}
.gallery__item--tall .img-placeholder {
  aspect-ratio: 4/5;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item--wide .img-placeholder {
  aspect-ratio: 1.6/1;
}
.gallery__item:hover .img-placeholder { filter: brightness(1.12); }

/* =========================================================
   DELIVERY
   ========================================================= */
.delivery { padding-block: var(--space-2xl); background: var(--cor-creme); }
.delivery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.delivery__lead { font-size: 1.1rem; line-height: 1.65; color: #4a3c2b; margin-bottom: var(--space-md); max-width: 32em; }
.delivery__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.delivery__media { max-width: 380px; margin-inline: auto; width: 100%; }

/* =========================================================
   QR CODE
   ========================================================= */
.qrcode { padding-block: var(--space-2xl); background: var(--cor-fundo-escuro-2); }
.qrcode__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  text-align: center;
}
.qrcode__frame {
  background: var(--cor-creme);
  padding: var(--space-md);
  border-radius: var(--raio-grande);
  box-shadow: var(--sombra-forte);
  max-width: 280px;
  margin-inline: auto;
  border: 3px solid var(--cor-dourado);
}
.qrcode__image { border-radius: 8px; }
.qrcode__text { max-width: 34em; margin-inline: auto; }
.qrcode__desc { color: var(--cor-texto-claro-suave); line-height: 1.65; margin-bottom: var(--space-md); }
.qrcode .section-title { color: var(--cor-creme); }

/* =========================================================
   LOCALIZAÇÃO
   ========================================================= */
.location { padding-block: var(--space-2xl); background: var(--cor-fundo-escuro); }
.location__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: stretch;
}
.location__item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}
.location__icon { width: 22px; height: 22px; flex-shrink: 0; fill: var(--cor-dourado); color: var(--cor-dourado); margin-top: 2px; }
.location__item p { color: var(--cor-texto-claro); line-height: 1.6; }
.location__hours p { font-size: 0.92rem; color: var(--cor-texto-claro-suave); margin-bottom: 0.2rem; }
.location__note {
  margin-top: var(--space-md);
  font-size: 0.78rem;
  color: rgba(207, 200, 184, 0.6);
  max-width: 30em;
}
.location__map {
  min-height: 320px;
  border-radius: var(--raio-grande);
  overflow: hidden;
  border: 3px solid rgba(198, 151, 73, 0.25);
  box-shadow: var(--sombra-forte);
}
.location__map iframe { width: 100%; height: 100%; min-height: 320px; filter: saturate(0.9); }

/* =========================================================
   REDES SOCIAIS
   ========================================================= */
.social { padding-block: var(--space-2xl); background: var(--cor-creme); text-align: center; }
.social__inner { display: flex; flex-direction: column; align-items: center; }
.social .selo { margin-bottom: var(--space-md); }
.social__desc { max-width: 30em; color: #4a3c2b; margin-bottom: var(--space-md); line-height: 1.6; }
.social .section-title { margin-bottom: var(--space-xs); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--cor-fundo-preto); padding-top: var(--space-xl); }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(198, 151, 73, 0.15);
}
.footer__logo {
  display: block;
  width: 118px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: var(--space-sm);
}
.footer__tagline { color: var(--cor-dourado-claro); font-family: var(--fonte-titulo); font-style: italic; }
.footer__heading {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cor-dourado);
  margin-bottom: var(--space-sm);
}
.footer__links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__links li { color: var(--cor-texto-claro-suave); font-size: 0.9rem; }
.footer__links a { transition: color var(--transicao); }
.footer__links a:hover { color: var(--cor-creme); }
.footer__social { display: flex; gap: 0.75rem; }
.footer__icon-link {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(198, 151, 73, 0.12);
  border: 1px solid rgba(198, 151, 73, 0.3);
  transition: background var(--transicao), transform var(--transicao);
}
.footer__icon-link:hover { background: var(--cor-vermelho); transform: translateY(-3px); }
.footer__social-icon { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.footer__bottom {
  padding-block: var(--space-md);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(207, 200, 184, 0.55);
}

/* =========================================================
   WHATSAPP FLUTUANTE
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.3);
  z-index: 90;
  transition: transform var(--transicao);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float__icon { width: 28px; height: 28px; filter: brightness(0) invert(1); }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (min-width: 700px) {
  .about__grid,
  .delivery__grid { grid-template-columns: 1fr 1fr; }
  .qrcode__inner { grid-template-columns: auto 1fr; text-align: left; }
  .qrcode__frame { margin-inline: 0; }
  .location__grid { grid-template-columns: 1fr 1.1fr; }
  .menu__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
}

@media (min-width: 980px) {
  .menu__grid { grid-template-columns: repeat(4, 1fr); }
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(150px, auto);
  }
  .gallery__item--tall {
    grid-column: span 1;
    grid-row: 1;
  }
  .gallery__item--wide {
    grid-column: span 2;
    grid-row: 2;
  }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .hamburger { display: flex; }

  .nav.is-open {
    display: block;
    position: fixed;
    z-index: 99;
    top: 74px;
    left: 0; right: 0;
    bottom: 0;
    background: var(--cor-fundo-escuro);
    padding: var(--space-lg) 1.25rem;
  }
  .nav.is-open .nav__list {
    flex-direction: column;
    gap: var(--space-md);
  }
  .nav.is-open .nav__link { font-size: 1.3rem; }
  .header__actions .btn--small { display: none; }
}
