/* Pergola Restaurant, Botoșani
   Palette taken from the room itself: the plant canopy over the bar, the brass
   taps, and the mismatched velvet chairs. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --verde: #14332a;        /* the canopy, in shade */
  --verde-mid: #1e4a3a;
  --foglia: #9dbd63;       /* eucalyptus leaf, the one bright note */
  --ottone: #c08b3e;       /* the beer taps */
  --piatra: #f3efe6;       /* the marble counter */
  --piatra-warm: #e7dfd0;
  --inchis: #101d18;
  --text-light: rgba(243, 239, 230, 0.78);

  /* the velvet chairs, one per menu category */
  --v-rosu: #b23a2f;
  --v-magenta: #a8215b;
  --v-mustar: #c9a227;
  --v-oliva: #7e8b34;
  --v-teal: #2e6e70;
  --v-crem: #c2a878;
  --v-prun: #6e1f35;
  --v-albastru: #22456b;

  --measure: 34rem;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--verde);
  color: var(--piatra);
  font: 400 clamp(1rem, 0.96rem + 0.2vw, 1.0625rem)/1.65 "Karla", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 20, "WONK" 1;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}

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

:focus-visible {
  outline: 2px solid var(--foglia);
  outline-offset: 3px;
}

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ── eyebrow ────────────────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--foglia);
  margin: 0 0 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  background: currentColor;
  flex: none;
}

/* ── header ─────────────────────────────────────────────────── */
.site-head {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad);
}
.site-head--solid {
  position: sticky;
  top: 0;
  background: var(--inchis);
  border-bottom: 1px solid rgba(243, 239, 230, 0.12);
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 20, "WONK" 1;
  font-size: 1.15rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.75rem);
  font-size: 0.875rem;
}
.nav a { text-decoration: none; opacity: 0.85; }
.nav a:hover { opacity: 1; color: var(--foglia); }
.nav .btn { opacity: 1; }
@media (max-width: 34rem) {
  .nav .hide-xs { display: none; }
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--ottone);
  color: var(--piatra);
  background: transparent;
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--ottone); color: var(--inchis); }
.btn--fill { background: var(--ottone); color: var(--inchis); font-weight: 600; }
.btn--fill:hover { background: var(--piatra); border-color: var(--piatra); }

/* ── hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(94svh, 46rem);
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero picture, .hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 29, 24, 0.62) 0%, rgba(16, 29, 24, 0.25) 38%, rgba(20, 51, 42, 0.92) 88%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 8rem var(--pad) clamp(2.5rem, 6vw, 4.5rem);
  max-width: 72rem;
  margin-inline: auto;
  width: 100%;
}
.hero__title {
  font-size: clamp(3.4rem, 15vw, 9.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 300;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 144;
}
.hero__lede {
  max-width: 30rem;
  margin: 1.25rem 0 2rem;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem);
  color: var(--text-light);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* live open/closed pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--piatra);
}
.status__dot {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--foglia);
  box-shadow: 0 0 0 0 rgba(157, 189, 99, 0.6);
  animation: pulse 2.4s infinite;
}
.status[data-open="false"] .status__dot { background: var(--ottone); animation: none; }
@keyframes pulse {
  70% { box-shadow: 0 0 0 0.6rem rgba(157, 189, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(157, 189, 99, 0); }
}

/* ── facts strip ────────────────────────────────────────────── */
.facts {
  background: var(--inchis);
  border-block: 1px solid rgba(243, 239, 230, 0.1);
}
.facts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  background: rgba(243, 239, 230, 0.1);
}
@media (min-width: 48rem) { .facts ul { grid-template-columns: repeat(4, 1fr); } }
.facts li {
  background: var(--inchis);
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
}
.facts b {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 20, "WONK" 1;
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.facts span { font-size: 0.8125rem; color: var(--text-light); letter-spacing: 0.04em; }

/* ── sections ───────────────────────────────────────────────── */
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--light { background: var(--piatra); color: var(--inchis); }
.section--light .eyebrow { color: var(--verde-mid); }
.section--light .btn { border-color: var(--verde-mid); color: var(--verde-mid); }
.section--light .btn:hover { background: var(--verde-mid); color: var(--piatra); }
.section--light .btn--fill { background: var(--verde-mid); color: var(--piatra); }
.section--light .btn--fill:hover { background: var(--inchis); border-color: var(--inchis); }

.section__title {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem);
  max-width: 18ch;
  margin-bottom: 1.5rem;
}
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.1rem; }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 56rem) { .split { grid-template-columns: 1.1fr 1fr; } }

/* portrait photos crop to the subject, which sits low in these frames */
.shot {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 78%;
  width: 100%;
}

.quote {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-size: clamp(1.35rem, 1.1rem + 1.4vw, 2rem);
  line-height: 1.25;
  border-left: 3px solid var(--ottone);
  padding-left: 1.25rem;
  margin: 2rem 0 0;
}
.quote cite { display: block; font: 400 0.8125rem/1.6 "Karla", sans-serif; font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; margin-top: 0.9rem; }

/* ── category chips: one velvet chair each ──────────────────── */
.chairs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
}
.chair {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem 0.45rem 0.6rem;
  border: 1px solid currentColor;
  font-size: 0.8125rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.15s, color 0.15s;
}
.chair::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  background: var(--chair, var(--ottone));
  flex: none;
}
.chair:hover { background: var(--chair); border-color: var(--chair); color: var(--piatra); }
.chair:hover::before { background: var(--piatra); }

/* ── signature dishes ───────────────────────────────────────── */
.dishes { list-style: none; margin: 0; padding: 0; }
.dish {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(16, 29, 24, 0.15);
}
.dish:last-child { border-bottom: 1px solid rgba(16, 29, 24, 0.15); }
.dish p { margin: 0; }
.dish__name { font-weight: 600; }
.dish__price {
  font-variant-numeric: tabular-nums;
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 20, "WONK" 0;
  font-size: 1.15rem;
  white-space: nowrap;
}
.dish__desc { grid-column: 1 / -1; font-size: 0.875rem; opacity: 0.7; }

/* ── gallery ────────────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 23rem);
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.5rem;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.gallery figcaption {
  font-size: 0.8125rem;
  color: var(--text-light);
  padding-top: 0.6rem;
  letter-spacing: 0.03em;
}

/* ── wine ───────────────────────────────────────────────────── */
.wine { background: var(--v-prun); }
.wine .eyebrow { color: var(--piatra-warm); }
.counts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
.counts b {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-weight: 300;
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  line-height: 0.9;
}
.counts span { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }

/* ── visit ──────────────────────────────────────────────────── */
.info { list-style: none; margin: 0; padding: 0; }
.info li { padding: 0.9rem 0; border-top: 1px solid rgba(243, 239, 230, 0.14); }
.info dt, .info-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.25rem;
}
.info a { color: var(--foglia); }
.hours { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.hours th { text-align: left; font-weight: 400; opacity: 0.7; padding: 0.35rem 0; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; padding: 0.35rem 0; }
.hours tr[data-today] th, .hours tr[data-today] td { color: var(--foglia); font-weight: 600; opacity: 1; }

.map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

/* ── footer ─────────────────────────────────────────────────── */
.site-foot {
  background: var(--inchis);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  font-size: 0.875rem;
}
.site-foot .wrap { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .site-foot .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.site-foot a { color: var(--foglia); }
.site-foot .fine { color: var(--text-light); font-size: 0.8125rem; }

/* ── menu page ──────────────────────────────────────────────── */
.menu-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; }
.menu-layout { display: grid; gap: 2rem; align-items: start; }
/* grid items default to min-width:auto, which lets the scrolling rail push the page wide */
.menu-layout > * { min-width: 0; }
@media (min-width: 56rem) { .menu-layout { grid-template-columns: 14rem 1fr; gap: 3rem; } }

.rail { position: sticky; top: 4.5rem; }
@media (max-width: 55.99rem) {
  .rail {
    top: 3.6rem;
    z-index: 10;
    background: var(--verde);
    margin-inline: calc(var(--pad) * -1);
    padding: 0.75rem var(--pad);
    border-bottom: 1px solid rgba(243, 239, 230, 0.12);
  }
  .rail ol { display: flex; overflow-x: auto; gap: 0.4rem; scrollbar-width: none; }
  .rail ol::-webkit-scrollbar { display: none; }
  .rail li { flex: none; }
}
.rail ol { list-style: none; margin: 0; padding: 0; }
.rail a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0;
  font-size: 0.8125rem;
  text-decoration: none;
  color: var(--text-light);
  white-space: nowrap;
}
.rail a::before {
  content: "";
  width: 0.6rem; height: 0.6rem; flex: none;
  background: var(--chair, var(--ottone));
}
.rail a:hover, .rail a[aria-current="true"] { color: var(--piatra); }
@media (max-width: 55.99rem) {
  .rail a { border: 1px solid rgba(243, 239, 230, 0.2); padding: 0.35rem 0.6rem; }
}

.search {
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 2rem;
  background: transparent;
  border: 1px solid rgba(243, 239, 230, 0.25);
  color: var(--piatra);
  font: inherit;
}
.search::placeholder { color: rgba(243, 239, 230, 0.45); }
.search:focus { border-color: var(--foglia); outline: none; }

.course { margin-bottom: 3rem; scroll-margin-top: 8rem; }
.course h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(243, 239, 230, 0.2);
  margin-bottom: 0.5rem;
}
.course h2::before {
  content: "";
  width: 0.9rem; height: 0.9rem; flex: none;
  background: var(--chair, var(--ottone));
}
.course .dish { border-top-color: rgba(243, 239, 230, 0.12); }
.course .dish:last-child { border-bottom: 0; }
.course .dish__desc { opacity: 0.62; }

.empty { padding: 3rem 0; color: var(--text-light); }
[hidden] { display: none !important; }
