/* shared.css — Síbaris Restaurant & Gastrobar */

/* ─── VARIABLES & RESET ─── */
:root {
  --bg:         #050505;
  --bg2:        #0e0d0a;
  --bg3:        #141210;
  --gold:       #C8A46B;
  --gold-dim:   #9a7845;
  --gold-light: #e0c898;
  --teal:       #4a9e8a;
  --cream:      #F5F5F5;
  --muted:      #B0B0B0;
  --border:     rgba(200, 164, 107, 0.14);
  --nav-h:      72px;
  --ff-head:    'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Jost', sans-serif;
  --glass-bg:   rgba(255, 255, 255, 0.026);
  --glass-border: rgba(200, 164, 107, 0.18);
  --card-r:     20px;
  --shadow-gold: 0 0 60px rgba(200, 164, 107, 0.04);
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
picture { display: contents; }
html {
  scroll-behavior: smooth;
  overflow-x: clip; /* prevents horizontal scroll without breaking position:sticky */
}
html, body { width: 100%; max-width: 100%; }
/* global media guard — specific !important rules below override when needed */
img, video, canvas, iframe { max-width: 100%; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% -5%, rgba(200,164,107,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(74,158,138,0.03) 0%, transparent 40%);
  color: var(--cream);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Film grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.25;
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 4rem;
  height: var(--nav-h);
  background: rgba(5,5,5,0.4);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid transparent;
  transition: background 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
nav.scrolled {
  background: rgba(5,5,5,0.92);
  border-bottom-color: rgba(200,164,107,0.16);
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

.nav-logo {
  text-decoration: none;
  justify-self: start;
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 46px !important;
  width: auto !important;
  display: block;
  transition: opacity 0.2s;
}
.nav-logo:hover img { opacity: 0.8; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  justify-self: center;
}
.nav-links a {
  color: rgba(245,245,245,0.72);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.25s;
  padding: 0.25rem 0;
  display: inline-block;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 1px;
  background: var(--gold);
  transition: left 0.3s var(--ease), right 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { left: 0; right: 0; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--gold); }

.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-cta {
  background: transparent;
  border: 1px solid rgba(200,164,107,0.45);
  color: var(--gold);
  font-family: var(--ff-body);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 22px rgba(200,164,107,0.22);
}

/* ─── LANG SWITCHER (nav) ─── */
.nav-lang {
  display: flex;
  border: 0.5px solid rgba(200,164,107,0.22);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-lang-btn {
  background: none;
  border: none;
  border-left: 0.5px solid rgba(200,164,107,0.22);
  color: rgba(176,176,176,0.45);
  font-family: var(--ff-body);
  font-size: 0.56rem;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}
.nav-lang-btn:first-child { border-left: none; }
.nav-lang-btn.active { background: rgba(200,164,107,0.1); color: var(--gold); }
.nav-lang-btn:hover:not(.active) { color: var(--cream); }

/* Lang switcher inside mobile overlay */
.overlay-lang {
  display: flex;
  gap: 0;
  border: 0.5px solid rgba(200,164,107,0.28);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.overlay-lang-btn {
  background: none;
  border: none;
  border-left: 0.5px solid rgba(200,164,107,0.28);
  color: rgba(176,176,176,0.5);
  font-family: var(--ff-body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.overlay-lang-btn:first-child { border-left: none; }
.overlay-lang-btn.active { background: rgba(200,164,107,0.12); color: var(--gold); }
.overlay-lang-btn:hover:not(.active) { color: var(--cream); }

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--cream);
  transition: transform 0.38s var(--ease), opacity 0.3s, background 0.2s;
  transform-origin: center;
}
.hamburger:hover span { background: var(--gold); }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── MOBILE NAV OVERLAY ─── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(5,5,5,0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s var(--ease);
}
.nav-overlay.open { opacity: 1; pointer-events: all; }

.overlay-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s, transform 0.35s var(--ease);
  line-height: 1;
}
.overlay-close:hover { color: var(--gold); transform: rotate(90deg); }

.overlay-teal-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  flex-shrink: 0;
}

.nav-overlay ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.nav-overlay ul a {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 300;
  color: rgba(245,245,245,0.82);
  text-decoration: none;
  letter-spacing: 0.07em;
  transition: color 0.25s, letter-spacing 0.35s var(--ease);
  display: block;
}
.nav-overlay ul a:hover,
.nav-overlay ul a[aria-current="page"] { color: var(--gold); letter-spacing: 0.12em; }

.overlay-cta-btn {
  background: transparent;
  border: 1px solid rgba(200,164,107,0.4);
  color: var(--gold);
  font-family: var(--ff-body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2.5rem;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.overlay-cta-btn:hover {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 28px rgba(200,164,107,0.25);
}

/* ─── UTILITIES ─── */
.section-label {
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--ff-head);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--gold); }

.gold-rule {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin-bottom: 2rem;
}

/* Reveal animations */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.fade-in.visible { opacity: 1; transform: none; }

/* Staggered children */
.fade-in.visible > *:nth-child(1) { transition-delay: 0s; }
.fade-in.visible > *:nth-child(2) { transition-delay: 0.08s; }
.fade-in.visible > *:nth-child(3) { transition-delay: 0.16s; }

/* Glass card utility */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-r);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), var(--shadow-gold);
}

/* Gold section divider line */
.section-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,164,107,0.3), transparent);
  margin: 0;
}

/* ─── PAGE HERO (menu/plats) ─── */
.page-hero {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 4rem;
  padding-left: 4rem;
  padding-right: 4rem;
  background:
    linear-gradient(180deg, rgba(14,11,6,0.85) 0%, transparent 100%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(8,7,5,0.96);
  border: 1px solid rgba(200,164,107,0.38);
  color: var(--cream);
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  transform: translateY(120px);
  opacity: 0;
  transition: 0.42s var(--ease);
  z-index: 9999;
  max-width: 320px;
  backdrop-filter: blur(20px);
  border-radius: 14px;
  box-shadow: 0 8px 36px rgba(0,0,0,0.5);
}
.toast.show { transform: none; opacity: 1; }

/* ─── FOOTER ─── */
footer {
  background: #030303;
  padding: 5rem 4rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-brand .footer-logo { display: block; margin-bottom: 1rem; }
.footer-brand .footer-logo img {
  height: 72px !important;
  width: auto !important;
}
.footer-tagline {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  font-family: var(--ff-head);
  opacity: 0.7;
}
.footer-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
}
.footer-divider::before {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}
.footer-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(270deg, var(--gold-dim), transparent);
}
.footer-col h4 {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  opacity: 0.65;
}
.footer-col p, .footer-col a {
  font-size: 0.82rem;
  color: rgba(176,176,176,0.70);
  display: block;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  background: #030303;
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(200,164,107,0.06);
}
.footer-bottom p { font-size: 0.68rem; color: rgba(176,176,176,0.35); }
.social-links { display: flex; gap: 1.5rem; }
.social-links a {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(176,176,176,0.70);
  text-decoration: none;
  transition: color 0.2s;
}
.social-links a:hover { color: var(--gold); }

/* ─── PALITOS DIVIDER ─── */
.palitos-divider {
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  height: 80px;
}
.palitos-divider img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  filter: invert(1) hue-rotate(180deg) brightness(1.05) sepia(0.2);
  opacity: 0.45;
  display: block;
}

/* ─── SHARED RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-lang { display: none; }
  .hamburger { display: flex; }
  footer { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; padding: 1.5rem 1.5rem; text-align: center; }
  .page-hero { padding: calc(var(--nav-h) + 3rem) 1.5rem 3rem; }
}
@media (max-width: 600px) {
  nav { padding: 0 1.25rem; }
  .nav-logo img { height: 36px !important; }
  .palitos-divider { height: 56px; }
}
@media (max-width: 430px) {
  .toast { right: 1rem; left: 1rem; max-width: calc(100% - 2rem); }
}

/* ─── WHATSAPP FLOATING BUTTON ─── */
.wa-btn {
  position: fixed !important;
  bottom: 24px !important;
  right: 20px !important;
  z-index: 9999 !important;
  width: 54px !important;
  height: 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50%;
  background: rgba(5,5,5,0.88) !important;
  border: 1px solid rgba(200,164,107,0.38) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  text-decoration: none;
  overflow: hidden;
  animation: waPulseGold 3.5s ease-in-out infinite;
  transition: transform 0.28s var(--ease), background 0.28s, border-color 0.28s;
}
.wa-btn:hover {
  transform: scale(1.1) translateY(-3px);
  background: rgba(200,164,107,0.1) !important;
  border-color: rgba(200,164,107,0.65) !important;
  animation: none;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55), 0 0 18px rgba(200,164,107,0.14) !important;
}
.wa-btn svg {
  width: 25px !important;
  height: 25px !important;
  fill: #f0f0f0;
  display: block;
  flex-shrink: 0;
}
@keyframes waPulseGold {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 0 0 rgba(200,164,107,0.22); }
  55%       { box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 0 11px rgba(200,164,107,0); }
}

/* ─── FOCUS VISIBLE ─── */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
