/* ===== Brasa Viva — Design Tokens ===== */
:root {
  --charcoal: #1c1410;
  --charcoal-2: #241a14;
  --ember: #e0521c;
  --ember-2: #ff7a3d;
  --gold: #d4a24c;
  --cream: #faf5ec;
  --cream-2: #f0e6d6;
  --ink: #2a2018;
  --ink-soft: #5c4f42;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(28, 20, 16, 0.12);
  --radius: 14px;
  --ff-heading: 'Playfair Display', Georgia, serif;
  --ff-body: 'Poppins', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--ff-heading); margin: 0; color: var(--charcoal); }
p { line-height: 1.7; margin: 0 0 1em; color: var(--ink-soft); }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--ember-2), var(--ember));
  color: #fff;
  box-shadow: 0 8px 20px rgba(224, 82, 28, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(224, 82, 28, 0.45); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

/* ===== Top bar ===== */
.topbar {
  background: var(--charcoal);
  color: var(--cream-2);
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 20px;
  flex-wrap: wrap;
}
.topbar-inner a { opacity: 0.9; transition: opacity .2s; }
.topbar-inner a:hover { opacity: 1; color: var(--gold); }
.topbar-hours { margin-left: auto; opacity: 0.85; }
.topbar i { color: var(--gold); margin-right: 4px; }
.topbar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background .2s, color .2s;
}
.topbar-social:hover { background: var(--ember); color: #fff; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 236, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28,20,16,0.06);
  transition: box-shadow .2s ease;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(28,20,16,0.08); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-heading);
  font-size: 1.4rem;
  color: var(--charcoal);
}
.logo-img {
  height: 68px;
  width: auto;
}
.logo-flame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--cream-2);
  color: #fff;
  font-size: 1rem;
}
.logo-flame-img {
  width: 22px;
  height: 22px;
}
.logo-text strong { color: var(--ember); }

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--ember);
  transition: width .25s ease;
}
.nav a:hover::after { width: 100%; }
.nav a:hover { color: var(--ember); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(224,82,28,0.35), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(212,162,76,0.2), transparent 55%),
    linear-gradient(160deg, rgba(28,20,16,0.6), rgba(21,14,10,0.65) 60%, rgba(21,14,10,0.7)),
    url('../assets/hero-grelha.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 150px 0 130px;
  text-align: center;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; text-shadow: 0 2px 16px rgba(0,0,0,0.45); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
}
.hero h1 span { color: #fff; }
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 14px;
}
.hero-slogan {
  font-family: var(--ff-heading);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
  animation: bob 2s infinite ease-in-out;
}
@keyframes bob {
  0%,100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--cream-2); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-tag {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ember);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.section-desc { margin-top: 14px; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.about-text p { font-size: 1.02rem; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-card i { font-size: 1.6rem; color: var(--ember); margin-bottom: 10px; }
.stat-num {
  display: block;
  font-family: var(--ff-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--charcoal);
}
.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(28,20,16,0.16); }
.service-card i {
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--ember-2), var(--ember));
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; margin: 0; }

.services-cta {
  margin-top: 50px;
  text-align: center;
  background: var(--charcoal);
  border-radius: var(--radius);
  padding: 40px;
}
.services-cta p {
  color: var(--cream-2);
  font-size: 1.15rem;
  font-family: var(--ff-heading);
  margin-bottom: 20px;
}

/* ===== Menu Tabs ===== */
.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--cream-2);
  background: var(--white);
  color: var(--ink-soft);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all .2s ease;
}
.tab-btn:hover { border-color: var(--ember); color: var(--ember); }
.tab-btn.active {
  background: linear-gradient(135deg, var(--ember-2), var(--ember));
  border-color: transparent;
  color: #fff;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }

.menu-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 40px;
  max-width: 900px;
  margin: 0 auto;
}
.menu-list li {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  border-bottom: 1px dashed var(--cream-2);
}
.menu-list li span {
  font-family: var(--ff-heading);
  font-size: 1.05rem;
  color: var(--charcoal);
}
.menu-list li em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--ember);
  margin-top: 4px;
}

/* ===== Drinks ===== */
.drinks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.drink-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.drink-card h3 {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ember);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cream-2);
}
.drink-card li {
  padding: 6px 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.contact-info {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item i {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--cream-2);
  color: var(--ember);
  display: flex; align-items: center; justify-content: center;
}
.contact-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-item p { margin: 0; font-size: 0.92rem; }
.contact-item a:hover { color: var(--ember); }
.contact-call { margin-top: 8px; justify-content: center; }
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 340px;
}

/* ===== Legal pages ===== */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h3 {
  font-size: 1.15rem;
  margin: 34px 0 10px;
}
.legal-content p { font-size: 0.98rem; }
.legal-content a { color: var(--ember); font-weight: 600; }
.legal-content a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.footer {
  background: var(--charcoal);
  color: var(--cream-2);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-legal { font-size: 0.82rem; color: #fff; margin: 0; }
.footer-links { display: flex; gap: 10px; font-size: 0.82rem; color: #fff; }
.footer-links a { color: #fff; }
.footer-links a:hover { color: var(--gold); }
.footer-credit { margin-left: auto; opacity: 0.85; transition: opacity .2s; }
.footer-credit:hover { opacity: 1; }
.footer-credit img { height: 15px; width: auto; display: block; }

/* ===== To top ===== */
.to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--ember-2), var(--ember));
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(224,82,28,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
  z-index: 90;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .drinks-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 300px; }
}

@media (max-width: 760px) {
  .logo-img { height: 50px; }
  .topbar-hours { display: none; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--cream-2); font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .hero { padding: 120px 0 100px; }
  .services-grid { grid-template-columns: 1fr; }
  .drinks-grid { grid-template-columns: 1fr; }
  .menu-list { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 70px 0; }
}
