:root {
  --navy: #172033;
  --navy-2: #243049;
  --ink: #1a1612;
  --cream: #f3eee6;
  --paper: #faf7f2;
  --muted: #5e584f;
  --terra: #b46332;
  --line: rgba(23, 32, 51, 0.12);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --shadow: 0 24px 60px rgba(16, 22, 34, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 1rem; }

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 6vw;
  color: #f7f2ea;
  mix-blend-mode: normal;
}
.nav.solid {
  background: rgba(23, 32, 51, 0.94);
  backdrop-filter: blur(10px);
}
.brand {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-call {
  border: 1px solid rgba(247, 242, 234, 0.45);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}
.menu-toggle { display: none; }

.hero {
  min-height: 100svh;
  display: grid;
  place-items: end start;
  color: #f7f2ea;
  background:
    linear-gradient(180deg, rgba(16, 22, 34, 0.25) 0%, rgba(16, 22, 34, 0.2) 40%, rgba(16, 22, 34, 0.78) 100%),
    url("media/fasada.jpg") center 40% / cover no-repeat;
  padding: 18vh 6vw 8vh;
}
.kicker {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0 0 0.6rem;
}
.kicker-terra { color: var(--terra); }
.section-tight { padding-top: 0; }
.note-gap { margin-top: 1.2rem; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(4.5rem, 12vw, 9rem);
  line-height: 0.85;
  margin: 0;
}
.hero h1 span { font-size: 0.55em; }
.lede {
  max-width: 36rem;
  font-size: 1.15rem;
  margin: 1.2rem 0 1.6rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
}
.btn-solid { background: var(--terra); color: #fff; }
.btn-ghost { border-color: rgba(247, 242, 234, 0.5); color: #f7f2ea; }
.btn-ink { background: var(--navy); color: #f7f2ea; }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }

.section { padding: 5.5rem 6vw; }
.section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  margin: 0.2rem 0 1rem;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.arch {
  border-radius: 180px 180px 12px 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.arch img { width: 100%; height: 68vh; object-fit: cover; object-position: center 42%; }
.about p { color: var(--muted); font-size: 1.05rem; }
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.facts div {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}
.facts strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
.facts span { color: var(--muted); font-size: 0.88rem; }

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: 240px;
  gap: 0.7rem;
}
.gallery figure { margin: 0; position: relative; overflow: hidden; background: var(--navy); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figure:first-child { grid-row: span 2; }
.gallery figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.7rem;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

.menu-head { display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.note { color: var(--muted); max-width: 34rem; margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.6rem 0 1.2rem; }
.tabs button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--navy); color: #f7f2ea; border-color: var(--navy); }
.panel { display: none; }
.panel.active { display: block; }
.cards, .drink-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 2rem;
}
.row, .drink {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}
.row small, .drink small { display: block; color: var(--muted); }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line); }
th { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
td:not(:first-child), th:not(:first-child) { text-align: right; }
.pages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.pages-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  margin: 2.4rem 0 0.3rem;
}
.pages button {
  padding: 0 0 0.7rem;
  border: 0;
  background: var(--paper);
  cursor: zoom-in;
  text-align: left;
  color: var(--ink);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(16, 22, 34, 0.08);
}
.pages img { width: 100%; height: 260px; object-fit: cover; object-position: center; }
.pages span {
  display: block;
  padding: 0.65rem 0.8rem 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visit {
  background: var(--navy);
  color: #f7f2ea;
}
.visit .note { color: rgba(247, 242, 234, 0.72); }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.phone {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  text-decoration: none;
  display: inline-block;
  line-height: 1;
}
.map {
  border: 0;
  width: 100%;
  height: 360px;
  border-radius: 12px;
  filter: grayscale(0.35) contrast(1.05);
}

footer {
  padding: 1.4rem 6vw 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  background: var(--navy);
  color: rgba(247, 242, 234, 0.6);
}

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(920px, 94vw);
}
dialog::backdrop { background: rgba(10, 12, 18, 0.82); }
dialog img { width: 100%; height: auto; border-radius: 8px; }
dialog form { display: flex; justify-content: flex-end; margin-bottom: 0.4rem; }
dialog button {
  background: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    background: transparent;
    color: #f7f2ea;
    border: 1px solid rgba(247,242,234,.4);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 6vw 1.2rem;
  }
  .nav-links.open { display: flex; }
  .split, .visit-grid, .menu-head, .cards, .drink-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery figure:first-child { grid-row: span 1; grid-column: span 2; height: 240px; }
  .pages { grid-template-columns: 1fr 1fr; }
  .arch img { height: 46vh; }
  footer { flex-direction: column; }
}
