/* Refúgio Bar & Cozinha — Cardápio Digital */

:root {
  --bg-primary: #111111;
  --bg-secondary: #1B1B1B;
  --gold: #C9A227;
  --gold-light: #D4AF37;
  --gold-soft: #D9B650;
  --text: #FFFFFF;
  --text-muted: #E5E5E5;
  --font-display: "Great Vibes", cursive;
  --font-body: "Montserrat", sans-serif;
  --header-height: 56px;
  --nav-height: 48px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  padding-bottom: calc(72px + var(--safe-bottom));
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 16px;
  min-height: var(--header-height);
}

.logo-link {
  flex-shrink: 0;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(201, 162, 39, 0.2);
}

.header-title {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.header-title h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-title span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: var(--bg-secondary);
  color: var(--gold-light);
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.icon-btn:active {
  transform: scale(0.94);
  background: rgba(201, 162, 39, 0.15);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ── Hero ── */

.hero {
  text-align: center;
  padding: 28px 20px 20px;
  max-width: 640px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

.hero-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(201, 162, 39, 0.25);
}

.hero h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold-light);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 4px;
}

.hero p {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 0.85rem;
  color: rgba(229, 229, 229, 0.75);
  font-weight: 300;
  letter-spacing: 0.02em;
  max-width: 280px;
  margin: 0 auto;
}

/* ── Category Nav ── */

.category-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  background: rgba(27, 27, 27, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.category-nav-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 12px;
}

.category-nav-inner::-webkit-scrollbar {
  display: none;
}

.category-nav a {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.category-nav a.active,
.category-nav a:active {
  color: var(--bg-primary);
  background: var(--gold);
  border-color: var(--gold);
}

/* ── Menu Sections ── */

.menu {
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 16px 32px;
}

.menu-section {
  padding: 24px 0 8px;
  scroll-margin-top: calc(var(--header-height) + var(--nav-height) + 8px);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 4px;
  line-height: 1.2;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-divider span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.section-note {
  text-align: center;
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(229, 229, 229, 0.6);
  margin: -8px 0 16px;
  padding: 0 8px;
}

/* ── Menu Items ── */

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.menu-item-name {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text);
  max-width: 75%;
}

.menu-item-dots {
  flex: 1;
  min-width: 12px;
  border-bottom: 1px dotted rgba(201, 162, 39, 0.5);
  transform: translateY(-3px);
}

.menu-item-price {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-soft);
  white-space: nowrap;
}

/* ── Fixed Bottom Bar ── */

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 110;
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(17, 17, 17, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(201, 162, 39, 0.3);
  padding: 10px 16px calc(10px + var(--safe-bottom));
}

.bottom-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 120px;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.bottom-bar a:active {
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.1);
}

.bottom-bar svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.bottom-bar .whatsapp svg {
  color: #25D366;
}

.bottom-bar .instagram svg {
  color: #E1306C;
}

.bottom-bar .maps svg {
  color: #4285F4;
}

/* ── Footer ── */

.site-footer {
  text-align: center;
  padding: 24px 20px 16px;
  max-width: 640px;
  margin: 0 auto;
  border-top: 1px solid rgba(201, 162, 39, 0.15);
}

.site-footer p {
  font-size: 0.7rem;
  color: rgba(229, 229, 229, 0.45);
  letter-spacing: 0.05em;
}

/* ── Tablet / Desktop ── */

@media (min-width: 480px) {
  .hero h2 {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 2.4rem;
  }

  .menu-item-name,
  .menu-item-price {
    font-size: 0.95rem;
  }

  .header-title h1 {
    font-size: 1.75rem;
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .bottom-bar {
    position: static;
    max-width: 640px;
    margin: 0 auto 24px;
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 16px;
    background: var(--bg-secondary);
  }

  .hero-logo {
    width: 120px;
    height: 120px;
  }
}

.logo, .hero-logo { object-fit: contain; }

[hidden] { display: none !important; }

