/* ==========================================================================
   Gracinha de Olinda — stylesheet
   Paleta e tipografia extraídas do manual de marca (Marca/GRACINHA_BASE.pdf)
   Mobile-first: regras base = mobile, breakpoints sobem para tablet/desktop
   ========================================================================== */

:root {
  --azul-caiado: #9CCFE5;
  --amarelo-manteiga: #EFDF9A;
  --rosa-antigo: #E0C1DA;
  --vermelho-vivo: #AA3333;
  --marrom-cafe: #442717;

  --bg: #FFFDF7;
  --bg-warm: #FBF3E3;
  --text: var(--marrom-cafe);
  --text-soft: #6b4a37;

  --font-title: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-accent: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: Arial, Helvetica, sans-serif;

  --container-max: 1200px;
  --radius: 4px;
  --shadow: 0 8px 24px rgba(68, 39, 23, 0.12);
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: normal;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  line-height: 1.05;
  color: var(--marrom-cafe);
}
h1 { font-size: clamp(2.6rem, 9vw, 4.5rem); }
h2 { font-size: clamp(2rem, 6vw, 3rem); }
h3 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.eyebrow {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--vermelho-vivo);
  display: block;
  margin-bottom: 0.35em;
}
.lede {
  font-family: var(--font-accent);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  color: var(--text-soft);
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--marrom-cafe);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-title);
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  padding: 0.85em 1.8em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn-primary {
  background: var(--vermelho-vivo);
  color: #fff;
}
.btn-primary:hover { background: #8f2929; }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--marrom-cafe);
}
.btn-outline:hover { background: var(--marrom-cafe); color: #fff; }
.btn-whatsapp {
  background: #2f8f5b;
  color: #fff;
}
.btn-whatsapp:hover { background: #256e46; }
.btn-lg { font-size: 1.4rem; padding: 1.05em 2.4em; }

/* ==========================================================================
   Header / navegação
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid rgba(68,39,23,0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  max-width: var(--container-max);
  margin: 0 auto;
}
.brand-logo { display: block; }
.brand-logo img { height: 42px; width: auto; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 26px;
  margin: 0 auto;
  background: var(--marrom-cafe);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899.98px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    height: 100vh;
    background: var(--marrom-cafe);
    padding: 5.5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
}
.main-nav ul { display: flex; flex-direction: column; gap: 1.6rem; }
.main-nav a {
  font-family: var(--font-title);
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  color: #fdf6ea;
}
.main-nav a[aria-current="page"] { color: var(--amarelo-manteiga); }

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.lang-item a {
  display: block;
  line-height: 1;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0.5;
  filter: grayscale(30%);
  transition: opacity 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}
.lang-item a svg { display: block; width: 24px; height: 17px; }
.lang-item a:hover { opacity: 0.85; transform: translateY(-1px); }
.lang-item a[aria-current="true"] {
  opacity: 1;
  filter: none;
  box-shadow: 0 0 0 2px var(--amarelo-manteiga);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20,10,5,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 90;
}
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-backdrop { display: none; }
  .main-nav ul { flex-direction: row; align-items: center; gap: 2rem; }
  .main-nav a { font-size: 1.05rem; color: var(--marrom-cafe); }
  .main-nav a[aria-current="page"] { color: var(--vermelho-vivo); }
  .lang-item { gap: 0.5rem; margin-left: -0.6rem; }
  .lang-item a svg { width: 21px; height: 15px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,10,5,0.35) 0%, rgba(20,10,5,0.25) 40%, rgba(20,10,5,0.85) 100%);
  z-index: -1;
}
.hero-content { padding: 3rem 0 3.5rem; }
.hero-logo { width: 220px; max-width: 60vw; margin-bottom: 1.25rem; }
.hero h1 { color: #fff; }
.hero .lede { color: #f6e9d8; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }

.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,10,5,0.3) 0%, rgba(20,10,5,0.8) 100%);
  z-index: -1;
}
.page-hero-content { padding: 2.5rem 0; }
.page-hero h1 { color: #fff; }
.page-hero .lede { color: #f6e9d8; max-width: 55ch; }

/* Retrato do chef: no mobile a foto (vertical) já enquadra o rosto bem com
   "center". No desktop o hero fica bem mais baixo e largo, e "center"
   corta o rosto — sobe o ponto focal só nessa faixa de largura. */
@media (min-width: 900px) {
  .page-hero--chef { background-position: center 25%; }
  .page-hero--fornecedores { background-position: center 8%; }
}

/* ==========================================================================
   Cachaçaria — seção split (foto em destaque + texto)
   ========================================================================== */
.split-feature {
  display: grid;
  background: #2a170f;
  padding: 0;
}
.split-feature .split-media {
  position: relative;
  min-height: 42vh;
  overflow: hidden;
}
.split-feature .split-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.split-feature .split-body {
  padding: 3rem 1.25rem 3.5rem;
  color: #d8c3b0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-feature .split-eyebrow {
  display: block;
  color: var(--amarelo-manteiga);
  font-family: var(--font-body);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.split-feature h2 {
  font-family: var(--font-accent);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: #fff;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.25;
  max-width: 18ch;
  margin-bottom: 0;
}
.split-feature p {
  max-width: 46ch;
  margin-top: 1rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 900px) {
  .split-feature {
    grid-template-columns: 1fr 1fr;
    min-height: 620px;
  }
  .split-feature .split-media { min-height: 100%; }
  .split-feature .split-body { padding: 4rem 4.5rem; }
}

/* ==========================================================================
   Seções gerais
   ========================================================================== */
section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-warm); }
.section-azul { background: #eaf5fa; }
.section-rosa { background: #faf1f8; }
.section-header { max-width: 62ch; margin-bottom: 2rem; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

.illustration-accent {
  width: 64px;
  opacity: 0.85;
  margin-bottom: 1rem;
}

/* Sobre / grid com imagem */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Galeria */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  transition: transform 0.4s ease;
}
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid [hidden] { display: none; }

/* Cards (chef teaser, cardapio teaser) */
.teaser-grid {
  display: grid;
  gap: 1.5rem;
}
.teaser-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
  isolation: isolate;
}
.teaser-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,10,5,0.05) 30%, rgba(20,10,5,0.85) 100%);
  z-index: -1;
}
.teaser-card .teaser-body { padding: 1.75rem; }
.teaser-card h3 { color: #fff; margin-bottom: 0.3em; }
.teaser-card p { color: #f0e3d3; margin-bottom: 1em; }

/* Info / localização */
.info-grid {
  display: grid;
  gap: 2rem;
}
.info-block h3 { display: flex; align-items: center; gap: 0.5em; font-size: 1.3rem; }
.info-block address { font-style: normal; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}
.map-embed iframe { width: 100%; height: 320px; border: 0; }

.hours-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.hours-table td { padding: 0.35em 0; border-bottom: 1px dashed rgba(68,39,23,0.2); }
.hours-table td:last-child { text-align: right; font-weight: bold; }

/* Redes sociais / avaliações */
.social-block { margin-top: 1.75rem; }
.social-block h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.7rem;
}
.social-links { display: flex; gap: 1rem; margin-top: 0; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--marrom-cafe);
  color: #fff;
  transition: transform 0.15s ease;
}
.social-links a:hover { transform: translateY(-2px); }
.social-links svg { width: 22px; height: 22px; }

.review-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.review-link {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.6em 1.2em;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(68,39,23,0.18);
  color: var(--marrom-cafe);
  font-family: var(--font-body);
  font-weight: bold;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.review-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.review-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.review-link--soon { opacity: 0.65; cursor: default; border-style: dashed; }
.review-link--soon:hover { transform: none; box-shadow: none; }
.review-link--soon small { font-weight: normal; color: var(--text-soft); }

/* Depoimentos — widget de terceiros entra dentro de .testimonials-widget;
   o placeholder abaixo só aparece enquanto o widget não está configurado. */
.testimonials-widget { min-height: 1px; }
.testimonials-placeholder {
  border: 1px dashed rgba(68,39,23,0.25);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-soft);
  background: #fff;
  max-width: 60ch;
  margin: 0 auto;
}
.testimonials-cta { text-align: center; margin-top: 2.5rem; }
.testimonials-cta .review-links { justify-content: center; margin-top: 1rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--marrom-cafe);
  color: #f3e6d7;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer .brand-logo img { height: 40px; margin-bottom: 0.75rem; }
.site-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.site-footer a:hover { color: var(--amarelo-manteiga); }
.site-footer address { font-style: normal; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #c9b39f;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
.footer-bottom a { color: #c9b39f; }

/* ==========================================================================
   Página Cardápio
   ========================================================================== */
.menu-cta {
  text-align: center;
  padding: 4.5rem 0;
}
.menu-cta .illustration-accent { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Página Contato
   ========================================================================== */
.contact-grid { display: grid; gap: 1.75rem; }
.contact-card {
  background: #fff;
  border: 1px solid rgba(68,39,23,0.12);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.contact-card h3 { margin-bottom: 0.3em; }

/* ==========================================================================
   Página O Chef
   ========================================================================== */
.chef-signature-list { display: grid; gap: 0.75rem; margin-top: 1rem; }
.chef-signature-list li {
  padding-left: 1.4em;
  position: relative;
}
.chef-signature-list li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--vermelho-vivo);
}
.restaurant-card {
  display: grid;
  gap: 1rem;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.restaurant-card .body { padding: 1.5rem; }
.restaurant-card .card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.restaurant-card .card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pillar-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.pillar { border-left: 3px solid var(--vermelho-vivo); padding-left: 1rem; }

/* Fornecedores — cards verticais (fotos de retrato), proporção uniforme */
.supplier-grid { display: grid; gap: 1.5rem; }
.supplier-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.supplier-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.supplier-card .body { padding: 1.5rem; }
.supplier-featured .card-media img { object-position: center 8%; }
.supplier-featured { margin-bottom: 1.5rem; }
.supplier-card .body .eyebrow { margin-bottom: 0.6em; }

/* ==========================================================================
   Breakpoints — tablet (>=768px) e desktop (>=1024/1440px)
   ========================================================================== */
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .supplier-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .teaser-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1.1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .restaurant-card { grid-template-columns: 40% 1fr; }
  .restaurant-card .card-media { aspect-ratio: auto; height: 100%; }
  .supplier-featured { min-height: 420px; }
  .supplier-featured .body { display: flex; flex-direction: column; justify-content: center; }
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
  section { padding: 5rem 0; }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .teaser-grid { grid-template-columns: repeat(3, 1fr); }
  .supplier-grid { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: clamp(3.2rem, 6vw, 5.2rem); }
}
