/* ==========================================================================
   Restaurante Silva Aguiar — paleta baseada na logo (vermelho / preto / creme)
   ========================================================================== */

:root {
  --red-700: #7a1017;
  --red-600: #9c1a24;
  --red-500: #b91e29;
  --red-400: #d33d47;
  --ink-900: #221e1c;
  --ink-700: #3a332f;
  --ink-500: #6b625b;
  --cream-100: #fdf8f0;
  --cream-200: #f6ecdd;
  --cream-300: #efe1cb;
  --white: #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 4px 14px rgba(34, 30, 28, 0.08);
  --shadow-md: 0 12px 30px rgba(34, 30, 28, 0.14);
  --shadow-red: 0 10px 24px rgba(122, 16, 23, 0.28);

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--cream-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink-900); margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-500);
  font-weight: 600;
  margin-bottom: .6em;
}

.section { padding: 96px 0; }
@media (max-width: 720px) {
  .section { padding: 64px 0; }
}

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.section-sub { color: var(--ink-500); font-size: 1.02rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn .icon { width: 20px; height: 20px; fill: currentColor; }
.btn-primary {
  background: var(--red-500);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { background: var(--red-600); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.7);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-nav-cta {
  background: var(--cream-100);
  color: var(--red-500);
  border-color: var(--red-500);
  padding: 10px 22px;
  font-size: 1.14rem;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.btn-nav-cta:hover {
  background: var(--red-500);
  color: var(--cream-100);
}
.icon-talheres {
  height: 20px;
  width: auto;
  transition: filter .18s ease;
}
.btn-nav-cta:hover .icon-talheres { filter: brightness(0) invert(1); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-300);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  width: 100%;
  padding: 0 50px;
}
.brand { display: flex; align-items: center; }
.brand-logo-wide { height: 44px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a:not(.btn) {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-700);
  position: relative;
  padding: 4px 0;
}
.main-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--red-500);
  transition: width .2s ease;
}
.main-nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }

@media (max-width: 640px) {
  .header-inner { padding: 0 24px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 74px; left: 0; right: 0;
    background: var(--cream-100);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a:not(.btn) { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--cream-300); }
  .btn-nav-cta { margin-top: 14px; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34,20,18,.55) 0%, rgba(34,20,18,.72) 55%, rgba(20,12,10,.9) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding-top: 40px;
  padding-bottom: 40px;
}
.hero-logo {
  width: 192px; height: 192px;
  margin: 0 auto 24px;
  border-radius: 50%;
  box-shadow: 0 10px 34px rgba(0,0,0,.4);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(3.3rem, 8.25vw, 5.7rem);
  margin-bottom: .2em;
}
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  color: var(--cream-200);
  margin-bottom: .7em;
}
.hero-sub {
  max-width: 840px;
  margin: 0 auto 2em;
  color: rgba(255,255,255,.88);
  font-size: 1.575rem;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-actions .btn {
  padding: 21px 42px;
  font-size: 1.425rem;
}
.hero-actions .btn .icon {
  width: 30px;
  height: 30px;
}

@media (max-width: 600px) {
  .hero-content { padding-top: 24px; padding-bottom: 24px; }
  .hero-logo { width: 120px; height: 120px; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(2.1rem, 8vw, 2.6rem); }
  .hero-tagline { font-size: 1.15rem; margin-bottom: .5em; }
  .hero-sub { font-size: 1rem; margin-bottom: 1.4em; }
  .hero-actions .btn { padding: 15px 28px; font-size: 1rem; }
  .hero-actions .btn .icon { width: 22px; height: 22px; }
}

/* ==========================================================================
   SOBRE
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}
.about-text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.about-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.badge {
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
  min-width: 140px;
}
.badge strong { display: block; color: var(--red-500); font-size: 1rem; }
.badge span { color: var(--ink-500); font-size: .85rem; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-img img { aspect-ratio: 16/10; }
}

/* ==========================================================================
   CARDÁPIO
   ========================================================================== */
.menu-section { background: var(--cream-200); }

.specials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.special-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--ink-900);
}
.special-card h3 { font-size: 1.4rem; margin-bottom: .3em; }
.special-card p { color: var(--ink-500); margin-bottom: 0; font-size: .95rem; }
.special-day {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-500);
  margin-bottom: .6em;
}
.special-featured {
  border-top-color: var(--red-500);
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 224px;
  display: flex;
  flex-direction: column;
}
.special-featured::before,
.special-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}
.special-featured::before {
  background-size: cover;
  background-position: center;
}
.special-featured::after {
  background: linear-gradient(180deg, rgba(20, 10, 8, .2) 0%, rgba(20, 10, 8, .55) 55%, rgba(15, 8, 6, .92) 100%);
}
.special-feijoada::before { background-image: url('../img/feijoada.jpg'); }
.special-tropeiro::before { background-image: url('../img/tropeiro.jpg'); }
.special-featured h3,
.special-featured p,
.special-featured .special-day {
  position: relative;
  z-index: 1;
}
.special-featured h3 { color: var(--white); }
.special-featured p { color: rgba(255,255,255,.85); }
.special-featured .special-day { color: var(--cream-200); margin-bottom: auto; }

@media (max-width: 860px) {
  .specials-grid { grid-template-columns: 1fr; }
}

.menu-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.menu-gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.menu-gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.menu-gallery-side img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
@media (max-width: 720px) {
  .menu-gallery { grid-template-columns: 1fr; }
  .menu-gallery-main img { aspect-ratio: 16/10; }
  .menu-gallery-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .menu-gallery-side img { aspect-ratio: 1/1; }
}

/* ==========================================================================
   GALERIA / AMBIENTE
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-grid img:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-md); }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   LOCALIZAÇÃO
   ========================================================================== */
.location-section { background: var(--ink-900); color: var(--cream-200); }
.location-section .eyebrow { color: var(--red-400); font-size: 1.092rem; }
.location-section h2 { color: var(--white); font-size: 2.1rem; }
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.info-block { margin-bottom: 34px; }
.info-block h3 { color: var(--white); font-size: 1.1rem; margin-bottom: .4em; }
.hours-title { font-size: 1.54rem; }
.info-block p { color: rgba(255,255,255,.78); margin-bottom: .4em; }
.info-block a { color: var(--cream-200); text-decoration: underline; text-underline-offset: 3px; }
.hours-table { border-collapse: collapse; width: 100%; max-width: 440px; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.85); font-size: 1.4rem; }
.hours-table tr td:last-child { text-align: right; font-weight: 600; color: var(--white); }
.link-arrow { display: inline-block; color: var(--red-400) !important; font-weight: 600; }

.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  box-shadow: var(--shadow-md);
}
.location-map iframe { width: 100%; height: 100%; }

@media (max-width: 860px) {
  .location-grid { grid-template-columns: 1fr; gap: 32px; }
  .location-map { height: 300px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #17130f; color: rgba(255,255,255,.75); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  padding: 64px 24px 40px;
}
.footer-brand { display: flex; align-items: center; gap: 28px; }
.footer-logo { width: 104px; height: 104px; border-radius: 50%; }
.footer-brand p { margin: 0; color: var(--white); font-family: var(--font-display); font-size: 2.1rem; }
.footer-brand span { display: block; font-family: var(--font-body); font-size: 1.6rem; color: rgba(255,255,255,.55); font-style: italic; }

.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact h4 { color: var(--white); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }
.footer-contact a { color: rgba(255,255,255,.7); font-size: .92rem; }
.footer-contact a:hover { color: var(--red-400); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom p { margin: 0; font-size: .82rem; text-align: center; color: rgba(255,255,255,.5); }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 360px) {
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ==========================================================================
   WHATSAPP FLUTUANTE
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px; height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
  z-index: 600;
  animation: pulse-wa 2.6s infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }
.whatsapp-float:hover { transform: scale(1.06); }
@keyframes pulse-wa {
  0% { box-shadow: 0 8px 22px rgba(0,0,0,.28), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 8px 22px rgba(0,0,0,.28), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 22px rgba(0,0,0,.28), 0 0 0 0 rgba(37,211,102,0); }
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 10, 8, .94);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 900px); max-height: 72vh; border-radius: var(--radius-md); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.lightbox-caption { color: var(--cream-200); margin-top: 18px; font-size: .95rem; text-align: center; }
.lightbox-close {
  position: absolute; top: 22px; right: 28px;
  background: none; border: none; color: var(--white);
  font-size: 2.2rem; line-height: 1; cursor: pointer;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: none; color: var(--white);
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,.22); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 600px) {
  .lightbox-nav { width: 40px; height: 40px; }
}

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
