/* ==========================================================================
   Galeri — Hamburguesería & Alitas, Barcelona
   Design system inspired by the Rosa (Pixelgrade) editorial layout:
   generous whitespace, large serif display type, image-led split sections,
   restrained color, subtle fade-up motion — reinterpreted in a dark,
   moody burger-bar palette drawn from Galeri's own signage.
   ========================================================================== */

:root {
  --ink: #1a1310;
  --cream: #f7f2ea;
  --paper: #fffaf3;
  --rust: #a8351f;
  --rust-dark: #7d2716;
  --mustard: #d9a441;
  --olive: #4b4630;
  --line: #e7ddcc;
  --muted: #6b6055;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-script: 'Playball', 'Brush Script MT', cursive;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--olive); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--olive);
  max-width: 46ch;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--rust); color: var(--paper); }
.btn-primary:hover { background: var(--rust-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-white { background: var(--paper); color: var(--ink); }
.btn-white:hover { transform: translateY(-2px); }
.btn-lg { padding: 1em 2.1em; font-size: 1.02rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,250,243,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 36px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; row-gap: 6px; }
.main-nav a {
  font-size: 0.76rem; font-weight: 600; color: var(--ink);
  letter-spacing: 0.08em; text-transform: uppercase;
  position: relative; padding: 4px 0; white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--rust);
  transition: width 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--rust); }
.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-cta .btn-outline { white-space: nowrap; font-size: 0.85rem; padding: 0.7em 1.3em; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

@media (max-width: 860px) {
  .main-nav { position: fixed; inset: 0 0 0 30%; background: var(--paper); flex-direction: column;
    justify-content: center; align-items: flex-start; padding: 40px; gap: 22px;
    transform: translateX(100%); transition: transform 0.3s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.2rem; }
  .nav-toggle { display: block; }
  .header-cta .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
/* Full-bleed centered hero with widely-tracked uppercase title, echoing
   Rosa's "THE ROSA" opening panel. */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background-size: cover; background-position: center;
  color: var(--paper);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,19,16,0.35) 0%, rgba(26,19,16,0.55) 100%);
}
.hero .container { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow { color: var(--mustard); }
.hero h1 {
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
}
.hero .lede { color: #f0e6d8; text-align: center; margin-left: auto; margin-right: auto; }
.hero-ornament { color: var(--mustard); font-size: 1.4rem; margin: 18px 0; }
.hero-badges { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; justify-content: center; font-size: 0.9rem; color: #f0e6d8; }
.hero-badges span { display: flex; align-items: center; gap: 6px; }

.page-hero {
  min-height: 42vh;
  background-size: cover; background-position: center;
  position: relative; display: flex; align-items: flex-end;
  color: var(--paper);
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(26,19,16,0.62); }
.page-hero .container { position: relative; padding: 60px 24px 44px; }
.page-hero h1 { color: var(--paper); margin-bottom: 0.2em; }
.breadcrumbs { font-size: 0.85rem; color: #e6d9c4; margin-bottom: 14px; }
.breadcrumbs a { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink h2, .section-ink h3 { color: var(--paper); }
.section-ink p { color: #d8cdbb; }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }

/* Rosa's recurring motif: a script accent word sitting directly over a
   bold letter-spaced uppercase headline, with a small ornament divider
   before the body copy. */
.script-accent {
  display: block;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--mustard);
  line-height: 1;
  margin-bottom: -0.1em;
}
.section-head h2, .split h2 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}
.ornament { color: var(--mustard); font-size: 1.3rem; margin: 4px 0 20px; }
.text-link {
  display: inline-block;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mustard); border-bottom: 1px solid var(--mustard); padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.text-link:hover { color: var(--rust); border-color: var(--rust); }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.split.reverse > *:first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse > *:first-child { order: 0; } }
.split img { border-radius: 6px; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.dish-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dish-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(26,19,16,0.14); }
.dish-card .img-wrap { aspect-ratio: 1/1; overflow: hidden; }
.dish-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.dish-card .body { padding: 20px 22px 24px; }
.dish-card h3 { display: flex; justify-content: space-between; gap: 12px; font-size: 1.15rem; }
.dish-card .price { color: var(--rust); font-weight: 700; white-space: nowrap; }
.dish-card p { font-size: 0.93rem; margin-bottom: 0.5em; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tag {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--cream); color: var(--olive); padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line);
}

.ingredient-card { text-align: center; }
.ingredient-card .img-wrap { border-radius: 999px; overflow: hidden; aspect-ratio: 1/1; margin: 0 auto 14px; max-width: 140px; }
.ingredient-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ingredient-card h3 { font-size: 1rem; }

.stat-row { display: flex; gap: 48px; margin-top: 32px; flex-wrap: wrap; }
.stat-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--rust); display: block; }
.stat-label { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid a { border-radius: 8px; overflow: hidden; aspect-ratio: 4/5; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Hours table ---------- */
.hours-table { width: 100%; border-collapse: collapse; max-width: 420px; }
.hours-table td { padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.hours-table td:first-child { font-weight: 600; }
.hours-table td:last-child { text-align: right; color: var(--olive); }
.hours-table tr.closed td:last-child { color: var(--rust); }

/* ---------- Map / contact ---------- */
.map-frame { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 22px; flex-shrink: 0; color: var(--rust); }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--rust); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .answer { padding-top: 12px; color: var(--olive); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--rust);
  color: var(--paper);
  text-align: center;
  padding: 72px 0;
}
.cta-banner h2 { color: var(--paper); }
.cta-banner p { color: #f8e6dd; max-width: 50ch; margin: 0 auto 28px; }
.cta-banner .btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d8cdbb; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--paper); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--mustard); }
.footer-brand img { height: 44px; margin-bottom: 14px; }
.footer-brand p { color: #b3a793; max-width: 34ch; }
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem; color: #8a7f6d;
}

/* ---------- Motion ---------- */
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.price-note { font-size: 0.85rem; color: var(--muted); margin-top: 24px; }
