/* ------------------------------------------------------------------
   PALERMO BISTRÓ — Cala Millor
   Premium, modern, mobile-first
------------------------------------------------------------------- */

:root {
  --bg:           #f6f1ea;        /* warm cream */
  --bg-deep:      #efe7db;
  --paper:        #fffaf3;
  --ink:          #1a1614;         /* warm near-black */
  --ink-soft:     #4a3f37;
  --muted:        #7d6f64;
  --accent:       #8a2e2a;         /* deep argentine wine */
  --accent-dark:  #6c1f1c;
  --gold:         #b8893d;
  --line:         rgba(26,22,20,0.12);
  --shadow-sm:    0 4px 14px rgba(40,20,10,0.08);
  --shadow-md:    0 12px 40px rgba(40,20,10,0.14);
  --radius:       14px;
  --radius-sm:    8px;
  --container:    1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  line-height: 1.12;
  color: var(--ink);
}
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
p { margin: 0 0 1em; }

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

.kicker {
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .8em;
}

.section-head { margin-bottom: 3rem; }
.section-head-center { text-align: center; }
.section-head h2 { margin-bottom: 0; }

.muted { color: var(--muted); }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  font-size: .95rem;
  cursor: pointer;
  transition: all .25s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-link {
  background: transparent;
  color: var(--ink);
  padding: 13px 8px;
}
.btn-link:hover { color: var(--accent); }

/* ---------------- HEADER ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,241,234,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: 0;
}
.brand-name { font-size: 1.18rem; letter-spacing: .02em; }
.brand-italics { font-style: italic; color: var(--accent); }

.nav-main { display: flex; gap: 28px; }
.nav-main a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav-main a:hover { color: var(--ink); }
.nav-main a::after {
  content:'';
  position:absolute;
  left:0; right:0; bottom:-3px;
  height:1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-main a:hover::after { transform: scaleX(1); }

.header-right { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--paper);
}
.lang-btn {
  background: transparent;
  border: none;
  padding: 5px 11px;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  transition: all .2s;
}
.lang-btn.is-active {
  background: var(--ink);
  color: var(--paper);
}

.btn-reserve { padding: 10px 18px; font-size: .88rem; }

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display:block;
  width: 22px;
  height: 1.7px;
  background: var(--ink);
  transition: transform .3s, opacity .3s;
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1544025162-d76694265947?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,12,8,0.45) 0%, rgba(20,12,8,0.7) 100%);
}
.hero-inner { position: relative; padding: 100px 24px 80px; }
.hero .eyebrow {
  font-family:'Inter', sans-serif;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #f3d9a8;
  margin: 0 0 18px;
  font-weight: 600;
}
.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  color: #fff;
  max-width: 16ch;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  max-width: 38ch;
  color: rgba(255,255,255,.92);
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 60px;
}
.hero-cta .btn-link { color: #fff; }
.hero-cta .btn-link:hover { color: #f3d9a8; }
.hero-meta {
  display: flex; gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: .92rem;
  color: rgba(255,255,255,.85);
}
.hero-meta .dot { color: rgba(255,255,255,.4); }

/* ---------------- STORY ---------------- */
.story { padding: 100px 0; background: var(--bg); }
.story-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}
.story-text h2 { max-width: 14ch; }
.story-text p { font-size: 1.05rem; color: var(--ink-soft); max-width: 52ch; }
.story-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.story-stats li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.story-stats strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--accent);
}
.story-stats span { color: var(--muted); font-size: .95rem; }

/* ---------------- MENU ---------------- */
.menu { padding: 100px 0; background: var(--bg-deep); }

.menu-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }

.tab {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.menu-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
}
.menu-panel { display: contents; }
.menu-item {
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.menu-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 4px;
}
.menu-item-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .005em;
}
.menu-item-price {
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.menu-item-desc { font-size: .93rem; color: var(--muted); margin: 0; }

.menu-note {
  margin-top: 50px;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------------- GALLERY ---------------- */
.gallery { padding: 100px 0; background: var(--bg); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.g-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-deep);
  position: relative;
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.g-item:hover img { transform: scale(1.05); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ---------------- VISIT ---------------- */
.visit { padding: 100px 0; background: var(--paper); }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.visit-info h2 { max-width: 14ch; }
.info-block { margin-bottom: 28px; }
.info-block p { margin: 0 0 4px; }
.info-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px !important;
}
.info-block a { border-bottom: 1px solid var(--line); }
.info-block a:hover { color: var(--accent); border-color: var(--accent); }

.visit-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.visit-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  background: var(--bg-deep);
}
.visit-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------- FOOTER ---------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding: 70px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  padding-bottom: 50px;
}
.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 8px;
}
.footer-tag { font-style: italic; color: rgba(255,255,255,.55); margin: 0; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.footer-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 12px;
}
.footer-cols p { margin: 0 0 4px; font-size: .95rem; }
.footer-cols a:hover { color: #f3d9a8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 24px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  .nav-main { display: none; }
  .btn-reserve { display: none; }
  .nav-toggle { display: flex; }

  .story-grid,
  .visit-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .visit-map { aspect-ratio: 4/3; }

  .menu-panels { grid-template-columns: 1fr; gap: 0; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .hero { min-height: 80vh; }
  .hero-inner { padding: 80px 24px 60px; }

  .story, .menu, .gallery, .visit { padding: 70px 0; }

  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .lang-switch { padding: 2px; }
  .lang-btn { padding: 4px 8px; font-size: .72rem; }
  .brand-mark { width: 32px; height: 32px; font-size: 1rem; }
  .brand-name { font-size: 1rem; }
  .header-inner { gap: 12px; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .g-wide, .g-tall { grid-column: span 1; grid-row: span 1; }

  .footer-cols { grid-template-columns: 1fr; }
}

/* ---------------- MOBILE NAV ---------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 49;
  display: none;
  flex-direction: column;
  padding: 100px 32px 40px;
  gap: 8px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 20px; align-self: flex-start; }

.nav-toggle.is-open span:nth-child(1){ transform: translateY(6.7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-6.7px) rotate(-45deg); }
