/* ===================================================================
   Brazil Imperial — Mercado & Cafetaria
   Paleta: verde-bandeira, dourado imperial, azul-noite, creme
   =================================================================== */

:root {
  --green:      #0a3d2e;   /* verde imperial escuro */
  --green-mid:  #0f7a4f;   /* verde-bandeira */
  --green-soft: #e7f3ec;
  --gold:       #c9a227;   /* dourado imperial */
  --gold-light: #e8c766;
  --blue:       #06203b;   /* azul-noite */
  --cream:      #fbf7ef;
  --ink:        #1d241f;
  --muted:      #5d6b62;
  --white:      #ffffff;

  --shadow-sm: 0 4px 14px rgba(10, 61, 46, .08);
  --shadow-md: 0 14px 40px rgba(10, 61, 46, .14);
  --radius:    18px;
  --radius-sm: 12px;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "Poppins", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ===================== TIPOGRAFIA ===================== */
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
  color: var(--green);
  margin-bottom: .6rem;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: .5rem;
}
.kicker--light { color: var(--gold-light); }

.lead { font-size: 1.08rem; color: var(--muted); margin-bottom: 1rem; }
.lead strong { color: var(--ink); }

/* ===================== BOTÕES ===================== */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: .55rem 1.1rem; font-size: .85rem; }

.btn--gold  { background: var(--gold); color: var(--blue); box-shadow: var(--shadow-sm); }
.btn--gold:hover  { background: var(--gold-light); box-shadow: var(--shadow-md); }

.btn--green { background: var(--green-mid); color: #fff; box-shadow: var(--shadow-sm); }
.btn--green:hover { background: var(--green); }

.btn--ghost { background: transparent; border-color: currentColor; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

.link-arrow { color: var(--gold); font-weight: 600; display: inline-block; margin-top: .4rem; }
.link-arrow:hover { color: var(--green-mid); }

/* ===================== HEADER / NAV ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 239, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10,61,46,.08);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: .65rem; color: var(--green); }
.brand__crown { color: var(--gold); display: flex; }
.brand__logo {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm);
  flex: 0 0 auto; overflow: hidden;
}
.brand__logo img { width: 40px; height: 40px; object-fit: contain; }
.brand--light .brand__logo { box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-family: var(--font-display); font-size: 1.25rem; }
.brand__text small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brand--light { color: #fff; }
.brand--light .brand__text small { color: rgba(255,255,255,.6); }

.nav__links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav__links a { font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--gold); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2.5px; background: var(--green); border-radius: 2px; transition: .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: clamp(4rem, 12vh, 8rem) 0 8rem;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(150deg, var(--green) 0%, #072a20 55%, var(--blue) 100%);
}
.hero__video {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(circle at 50% 35%, rgba(201,162,39,.18), transparent 60%),
    linear-gradient(180deg, rgba(7,42,32,.72) 0%, rgba(7,42,32,.80) 45%, rgba(6,32,59,.90) 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
}

.hero__logo {
  display: inline-grid; place-items: center; overflow: hidden;
  width: 116px; height: 116px; border-radius: 50%;
  background: #fff; margin-bottom: 1.4rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.25), 0 0 0 6px rgba(255,255,255,.12);
}
.hero__logo img { width: 104px; height: 104px; object-fit: contain; }

.hero__eyebrow {
  display: inline-block;
  font-weight: 500;
  letter-spacing: .06em;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: .4rem 1.1rem; border-radius: 100px;
  margin-bottom: 1.4rem;
  font-size: .9rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1;
  letter-spacing: -.01em;
}
.hero__title span {
  display: block;
  color: var(--gold-light);
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  max-width: 640px; margin: 1.4rem auto 2rem;
  font-size: 1.15rem; color: rgba(255,255,255,.85); font-weight: 300;
}

.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__badges {
  list-style: none; display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2.6rem; font-size: .95rem; color: rgba(255,255,255,.9);
}

.hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: -1; }
.hero__wave svg { width: 100%; height: 90px; }
.hero__wave path { fill: var(--cream); }

/* ===================== SECTIONS ===================== */
.section { padding: clamp(3.5rem, 9vh, 6rem) 0; }
.section--alt { background: var(--green-soft); }
.section--dark { background: linear-gradient(160deg, var(--green) 0%, #07291f 100%); color: #fff; }
.section--dark .section__title { color: #fff; }
.section--dark .lead { color: rgba(255,255,255,.78); }

.section__head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section__intro { color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

/* ===================== SOBRE ===================== */
.stats { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-display); font-size: 2rem; color: var(--gold); line-height: 1; }
.stat span { font-size: .85rem; color: var(--muted); }

.about__card {
  background: linear-gradient(160deg, #fff, var(--cream));
  border: 1px solid rgba(201,162,39,.25);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--shadow-md);
  position: relative;
}
.about__emoji { font-size: 3rem; margin-bottom: .6rem; }
.about__card h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--green); margin-bottom: .5rem; }

/* Secção Sobre — texto centrado + par de molduras à altura do texto */
#sobre .grid-2 { align-items: stretch; }
.about__text { display: flex; flex-direction: column; justify-content: center; }

.about__media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  min-height: 360px;
}
.about__frame {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius);
  border: 5px solid #fff;
  box-shadow: var(--shadow-md);
}
.about__frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.about__frame:hover img { transform: scale(1.05); }

@media (max-width: 860px) {
  #sobre .grid-2 { align-items: start; }
  .about__media { min-height: 0; }
  .about__frame { aspect-ratio: 4/3; }
}

/* ===================== CARDÁPIO ===================== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.menu-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10,61,46,.06);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.menu-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--green-mid), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.menu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.menu-card:hover::before { transform: scaleX(1); }
.menu-card__icon { font-size: 2.4rem; margin-bottom: .8rem; }

/* Imagem do prato */
.menu-card { padding: 0; display: flex; flex-direction: column; }
.menu-card__media { overflow: hidden; }
.menu-card__media img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform .4s ease;
}
.menu-card:hover .menu-card__media img { transform: scale(1.06); }
.menu-card__body { padding: 1.4rem 1.6rem 1.8rem; flex: 1; display: flex; flex-direction: column; }
.menu-card h3 { font-family: var(--font-display); font-size: 1.35rem; color: var(--green); margin-bottom: .4rem; }
.menu-card p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; flex: 1; }
.menu-card__tag {
  display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--green-mid);
  background: var(--green-soft); padding: .3rem .8rem; border-radius: 100px;
}
.menu-note { text-align: center; margin-top: 2.5rem; color: var(--muted); font-style: italic; }

/* ===================== MERCADO ===================== */
.grid-2--reverse .market__visual { order: -1; }
.check-list { list-style: none; margin: 1.2rem 0 1.8rem; }
.check-list li { padding: .5rem 0 .5rem 2rem; position: relative; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: .45rem;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-mid); color: #fff; font-size: .75rem; font-weight: 700;
  display: grid; place-items: center;
}

.market__visual {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  background: radial-gradient(circle at 70% 0%, var(--gold-light), transparent 60%), var(--green-soft);
  border-radius: var(--radius); padding: 2rem;
  border: 1px solid rgba(201,162,39,.2);
}
.market__chip {
  background: #fff; border-radius: var(--radius-sm); padding: 1rem;
  font-weight: 600; color: var(--green); box-shadow: var(--shadow-sm);
  text-align: center; transition: transform .2s ease;
}
.market__chip:hover { transform: scale(1.05) rotate(-1.5deg); }

/* ===================== VISITAR ===================== */
.info-block { margin-bottom: 1.8rem; }
.info-block h3 { font-size: 1.1rem; margin-bottom: .4rem; color: var(--gold-light); }
.info-block p { color: rgba(255,255,255,.85); }

.hours { width: 100%; max-width: 380px; border-collapse: collapse; margin-top: .4rem; }
.hours td { padding: .55rem 0; border-bottom: 1px dashed rgba(255,255,255,.18); color: rgba(255,255,255,.85); }
.hours td:last-child { text-align: right; font-weight: 600; color: #fff; }

.map-card {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); border: 4px solid rgba(255,255,255,.1);
  height: 100%; min-height: 340px;
}
.map-card iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ===================== CTA / CONTACTO ===================== */
.cta__inner {
  text-align: center; max-width: 720px; margin-inline: auto;
  background: linear-gradient(150deg, #fff, var(--green-soft));
  border: 1px solid rgba(201,162,39,.25);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4rem);
  box-shadow: var(--shadow-md);
}
.cta__actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

/* ===================== FOOTER ===================== */
.footer { background: var(--blue); color: rgba(255,255,255,.78); padding-top: 3.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__tag { margin-top: 1rem; font-size: .95rem; max-width: 280px; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer__col p { font-size: .92rem; margin-bottom: .6rem; }
.footer__col a:hover { color: var(--gold-light); }
.footer__social { display: flex; gap: 1rem; margin-top: .6rem; }
.footer__social a { color: var(--gold-light); font-weight: 600; font-size: .9rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.3rem 0; text-align: center; font-size: .82rem; color: rgba(255,255,255,.5);
}

/* ===================== TO-TOP ===================== */
.to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold); color: var(--blue);
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 700;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ===================== REVEAL ANIMATION ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2--reverse .market__visual { order: 0; }
  .footer__grid { grid-template-columns: 1fr; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--cream);
    padding: 1rem 6%;
    box-shadow: var(--shadow-md);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .35s ease;
    align-items: stretch;
  }
  .nav__links.open { clip-path: inset(0 0 0 0); }
  .nav__links li { width: 100%; border-bottom: 1px solid rgba(10,61,46,.08); }
  .nav__links li:last-child { border: 0; padding-top: .8rem; }
  .nav__links a:not(.btn) { display: block; padding: .9rem 0; }
  .nav__links .btn { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__video { display: none; }   /* mantém o gradiente em vez do vídeo */
}
