/* Casa Vanilla — Restaurante & Confeitaria (Montijo) */

:root {
  --burgundy: #5c2a35;
  --burgundy-dark: #3f1b23;
  --burgundy-light: #8a4b58;
  --blush: #f6e7e4;
  --cream: #fbf5f0;
  --gold: #c79a5f;
  --ink: #2c1a1d;
  --muted: #7a6a6a;
  --border: #e7d9d2;
  --shadow: 0 18px 40px -20px rgba(60, 20, 30, 0.35);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  margin: 0 0 .4em;
  color: var(--burgundy-dark);
  line-height: 1.15;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: .6em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary {
  background: var(--burgundy);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--burgundy-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--burgundy);
  color: var(--burgundy);
}
.btn-outline:hover { background: var(--burgundy); color: #fff; }

/* Placeholder banner */
.placeholder-banner {
  background: #fff4da;
  border-bottom: 1px solid #ecd8a3;
  color: #7a5a12;
  font-size: .85rem;
  text-align: center;
  padding: .6em 1em;
}
.placeholder-banner strong { font-weight: 700; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 245, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6em;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: .6em; }
.brand img { height: 42px; width: auto; border-radius: 8px; }
.brand span {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--burgundy-dark);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 2em;
  align-items: center;
}
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
}
.nav-links a:hover { color: var(--burgundy); }

.header-actions { display: flex; align-items: center; gap: .8em; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--burgundy-dark);
  display: block;
}

/* Hero */
.hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(circle at 15% 20%, rgba(199,154,95,.15), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(92,42,53,.12), transparent 45%),
    var(--blush);
  text-align: center;
}
.hero-flower {
  width: 110px;
  margin: 0 auto 1.2em;
  opacity: .85;
}
.hero h1 {
  font-size: clamp(1.9rem, 6vw, 3.6rem);
  margin-bottom: .3em;
  overflow-wrap: break-word;
}
.hero h1 em {
  font-style: italic;
  color: var(--burgundy);
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto 1.6em;
  color: var(--muted);
  font-size: 1.08rem;
}
.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6em;
  margin-bottom: 1.8em;
}
.hero-badge {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .5em 1.1em;
  font-size: .85rem;
  color: var(--burgundy-dark);
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;
}

/* Sections */
section { padding: 80px 0; }
.section-alt { background: var(--blush); }
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3em;
}
.section-head p { color: var(--muted); }

/* Sobre */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5em;
  align-items: center;
}
.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-stats {
  display: flex;
  gap: 2em;
  margin-top: 1.6em;
}
.about-stats strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--burgundy);
}
.about-stats span { font-size: .82rem; color: var(--muted); }

/* Destaques */
.specials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6em;
}
.special-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.special-media {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--blush);
}
.special-media img { width: 100%; height: 100%; object-fit: cover; }
.special-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--burgundy);
  color: #fff;
  font-size: .72rem;
  padding: .3em .8em;
  border-radius: 999px;
  letter-spacing: .05em;
}
.special-body { padding: 1.2em 1.3em 1.4em; }
.special-body .price {
  font-weight: 700;
  color: var(--gold);
  font-size: .9rem;
}
.special-body h3 { margin: .2em 0 .3em; font-size: 1.15rem; }
.special-body p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Cardápio */
.menu-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6em;
  margin-bottom: 2.4em;
}
.menu-tab {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .6em 1.4em;
  font-family: 'Jost', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
}
.menu-tab.is-active,
.menu-tab:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: #fff;
}
.menu-panel { display: none; }
.menu-panel.is-active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.dish-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em 2em;
}
.dish {
  display: flex;
  gap: 1em;
  padding: 1em 0;
  border-bottom: 1px dashed var(--border);
}
.dish-thumb {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
}
.dish-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dish-info { flex: 1; }
.dish-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .8em;
}
.dish-top h4 { margin: 0; font-size: 1.02rem; }
.dish-tags { display: inline-flex; gap: .4em; margin-left: .5em; }
.dish-tags span {
  font-size: .65rem;
  background: var(--blush);
  color: var(--burgundy);
  padding: .15em .5em;
  border-radius: 999px;
  vertical-align: middle;
}
.dish .price { font-weight: 700; color: var(--gold); white-space: nowrap; }
.dish-info p { margin: .2em 0 0; font-size: .85rem; color: var(--muted); }
.dish-badge {
  display: inline-block;
  font-size: .65rem;
  background: var(--burgundy);
  color: #fff;
  padding: .15em .6em;
  border-radius: 999px;
  margin-left: .5em;
  vertical-align: middle;
}

/* Galeria */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1em;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(30,10,15,.75), transparent);
  color: #fff;
  font-size: .78rem;
  padding: 1.6em .8em .6em;
}

/* Como pedir */
.order-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2em;
}
.order-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6em 1.2em;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.order-card:hover { transform: translateY(-4px); }
.order-card .ico { font-size: 1.8rem; margin-bottom: .4em; }
.order-card strong { display: block; margin-bottom: .3em; }
.order-card p { font-size: .82rem; color: var(--muted); margin: 0 0 1em; }

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
}
.contact-block { margin-bottom: 1.6em; }
.contact-block strong {
  display: block;
  font-family: 'Playfair Display', serif;
  color: var(--burgundy-dark);
  margin-bottom: .3em;
}
.hours-table { border-collapse: collapse; }
.hours-table td { padding: .25em 0; font-size: .92rem; }
.hours-table td:first-child { padding-right: 1.5em; color: var(--muted); }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

.temp-note {
  display: inline-block;
  font-size: .72rem;
  color: #a1780f;
  background: #fff4da;
  border: 1px solid #ecd8a3;
  padding: .15em .6em;
  border-radius: 6px;
  margin-left: .5em;
  vertical-align: middle;
}

/* Footer */
.site-footer {
  background: var(--burgundy-dark);
  color: #f2e6e3;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3em;
  margin-bottom: 2.5em;
}
.footer-brand .logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #fff;
}
.footer-brand p { color: #d8c3bf; max-width: 340px; margin-top: .8em; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2em; }
.footer-links strong { display: block; color: #fff; margin-bottom: .8em; font-size: .9rem; }
.footer-links a, .footer-links span {
  display: block;
  color: #d8c3bf;
  font-size: .88rem;
  margin-bottom: .5em;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.4em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5em;
  font-size: .78rem;
  color: #b99f9a;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -8px rgba(0,0,0,.4);
  z-index: 60;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 8, 10, .92);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 24px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .9em 0; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .specials-grid { grid-template-columns: 1fr; }
  .dish-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .order-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 70px 0 50px; }
  section { padding: 56px 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
