/* ======================================================================
   Gretta — Restaurant Berga
   Warm earthy Catalan palette. Italic serif wordmark.
   ====================================================================== */

:root {
  /* Palette */
  --cream: #f4ecd8;
  --cream-2: #ede2c7;
  --paper: #f8f2e1;
  --ink: #221a12;
  --ink-soft: #3d2e1f;
  --terracotta: #b84a2f;
  --terracotta-deep: #8a3319;
  --ochre: #d4a84b;
  --ochre-deep: #a87e2c;
  --forest: #2b3a2e;
  --forest-deep: #1d2a21;
  --cobalt: #1e3a7a; /* tile accent */
  --accent: var(--terracotta);

  /* Type */
  --serif: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --display: "Playfair Display", "EB Garamond", Georgia, serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Inter Tight", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga", "kern";
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta-deep); }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 720px) {
  .wrap { padding: 0 24px; }
  html, body { font-size: 16px; }
}

/* Paper grain texture overlay on body */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.07 0 0 0 0 0.04 0 0 0 0.25 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.35;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(34,26,18,.12);
  backdrop-filter: blur(6px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  max-width: 1280px; margin: 0 auto;
}
.brand { display: flex; flex-direction: column; gap: 1px; color: var(--ink); text-decoration: none; }
/* The real wordmark, ink extracted from assets/logo.png onto transparency */
.brand-logo { height: 40px; width: auto; }
.brand-sub { font-family: var(--sans); font-size: 8px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-soft); opacity: .65; padding-left: 3px; }
body.bold .brand-logo { height: 46px; }
.nav-links {
  display: flex; gap: 34px;
  font-family: var(--sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: .2s;
}
.nav-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav-cta {
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: var(--ink);
  color: var(--cream);
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: .2s;
}
.nav-cta:hover { background: var(--accent); color: var(--cream); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 2px; }
.lang button {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.12em;
  color: var(--ink-soft); opacity: 0.5; padding: 4px 5px;
}
.lang button.active { opacity: 1; color: var(--accent); border-bottom: 1px solid var(--accent); }
@media (max-width: 700px) { .lang { display: none; } }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { padding: 14px 24px; }
  .brand-logo { height: 44px; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  align-items: start;
  gap: 40px;
  padding: 56px 48px 80px;
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
}
.hero-copy { max-width: 620px; }

/* The fountain sits to the right of the headline, drawn small enough to read
   as a whole fountain and filling the panel edge to edge. The panel carries
   the drawing's own 720:900 ratio so `contain` leaves no dead space, and
   `margin-top` drops it past the eyebrow so its top lines up with
   "Cuina catalana". */
.hero-art {
  position: relative;
  align-self: start;
  margin-top: 40px;
  height: clamp(380px, 46vw, 660px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-art img {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 26px 34px rgba(34,26,18,.14));
}
.hero-h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(44px, 5.6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 30px;
}
.hero-h1 .alt { font-style: normal; font-weight: 400; }
/* Sits below the drawing rather than over it */
.hero-caption {
  flex: 0 0 auto;
  font-family: var(--display); font-style: italic; font-size: 14px;
  color: var(--ink-soft); opacity: .65;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.hero-eyebrow::before {
  content: ""; width: 40px; height: 1px; background: var(--accent);
}
.hero h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(56px, 8.5vw, 128px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero h1 .alt {
  font-style: normal;
  font-weight: 400;
  font-family: var(--display);
}
.hero h1 .amp {
  color: var(--accent);
  font-style: italic;
}
.hero-base { display: none; }
.hero-lead {
  font-size: 19px;
  line-height: 1.55;
  max-width: 46ch;
  color: var(--ink-soft);
  margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 0; }
.btn-solid, .btn-ghost {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; padding: 15px 28px; border-radius: 999px;
  text-decoration: none; transition: .2s;
}
.btn-solid { background: var(--accent); color: var(--cream); }
.btn-solid:hover { background: var(--ink); color: var(--cream); }
.btn-ghost { border: 1px solid rgba(34,26,18,.35); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.hero-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid rgba(34,26,18,.15);
}
.hero-meta .label { color: var(--accent); display: block; margin-bottom: 4px; font-size: 10px; }

/* decorative corner marks */
.hero-corner {
  position: absolute;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  opacity: 0.55;
  text-transform: uppercase;
  z-index: 4;
}
.hero-corner.tl { top: 26px; left: 48px; }
.hero-corner.tr { top: 26px; right: 48px; text-align: right; }
.hero-corner.bl { display: none; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px 60px; }
  .hero-copy { max-width: none; }
  .hero-art {
    height: min(84vw, 400px);
    margin: 0 auto;
    align-self: auto;
  }
  .hero-art img { width: 100%; object-position: center bottom; }
  .hero-caption { position: static; margin-top: 12px; text-align: center; }
  .hero-corner { display: none; }
}

/* ---------- SECTION BASE ---------- */
section { position: relative; z-index: 2; }
.section {
  padding: 110px 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(34,26,18,.15);
}
.section-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 20ch;
}
.section-num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 720px) {
  .section { padding: 70px 24px; }
  .section-head { flex-direction: column; gap: 12px; margin-bottom: 40px; }
}

/* ---------- TILE STRIP DIVIDER ---------- */
.tile-strip {
  height: 48px;
  background:
    linear-gradient(var(--ink), var(--ink)) top/100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom/100% 2px no-repeat,
    var(--paper);
  position: relative;
  overflow: hidden;
}
.tile-strip svg { width: 100%; height: 100%; }

/* ---------- MENU DEL DIA ---------- */
.menu-dia {
  background: var(--ink);
  color: var(--cream);
}
.menu-dia-band {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 64px;
  align-items: center;
}
.menu-dia-note p { max-width: 34ch; color: rgba(244,236,216,.75); font-size: 17px; margin-bottom: 20px; }
.btn-ochre {
  display: inline-block; font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; padding: 13px 24px;
  border: 1px solid var(--ochre); color: var(--ochre); border-radius: 999px;
  text-decoration: none; transition: .2s;
}
.btn-ochre:hover { background: var(--ochre); color: var(--ink); }
@media (max-width: 1000px) {
  .menu-dia-band { grid-template-columns: 1fr; gap: 32px; padding: 56px 24px; }
}
.menu-dia .section-title { color: var(--cream); }
.menu-dia .section-num { color: var(--ochre); }
.menu-dia-date {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 16px;
}
.menu-dia-price {
  font-family: var(--display);
  font-style: italic;
  font-size: 84px;
  line-height: 1;
  white-space: nowrap;
  color: var(--ochre);
  letter-spacing: -0.02em;
  margin-top: 28px;
}
.menu-dia-price small { font-size: 20px; font-style: normal; font-family: var(--sans); letter-spacing: 0.18em; color: var(--cream); opacity: 0.7; display: block; margin-top: 4px; }

/* Seasonal pause notice — no menú del dia until September */
.menu-dia-pause {
  border: 1px solid var(--ochre);
  border-radius: 3px;
  padding: 20px 24px;
  max-width: 34ch;
}
.menu-dia-pause strong {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 10px;
  font-weight: 500;
}
.menu-dia-pause p {
  font-family: var(--display);
  font-style: italic;
  font-size: 21px;
  line-height: 1.3;
  color: var(--cream);
  margin: 0;
  max-width: none;
}
/* Line-through is scoped to the <s> around the figure — setting it on the
   parent would propagate across the <small> and can't be cancelled there. */
.menu-dia-price.paused { color: rgba(212,168,75,.5); }
.menu-dia-price.paused s { text-decoration-thickness: 2px; }
.menu-dia-price.paused small { color: var(--cream); opacity: 0.45; }

.courses h4 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 32px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(244,236,216,.2);
}
.courses h4:first-child { margin-top: 0; }
.course {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dotted rgba(244,236,216,.2);
  gap: 24px;
}
.course:last-child { border-bottom: none; }
.course .name {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
}
.course .desc {
  font-family: var(--serif);
  font-size: 15px;
  color: rgba(244,236,216,.65);
  margin-top: 3px;
  font-style: normal;
}
.course-tag {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre);
  flex-shrink: 0;
}

@media (max-width: 880px) { .menu-dia-price { font-size: 60px; } }

/* ---------- MENU TABS ---------- */
.menu-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.tab-major {
  font-family: var(--display); font-style: italic; font-size: 26px;
  background: none; border: none; cursor: pointer; color: var(--ink);
  opacity: 0.4; padding: 4px 0; margin-right: 22px; transition: .2s;
  border-bottom: 2px solid transparent;
}
.tab-major:hover { opacity: 0.75; }
.tab-major.active { opacity: 1; color: var(--accent); border-bottom-color: var(--accent); }
.menu-subtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 44px; }
.tab-minor {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(34,26,18,.22); background: none; color: var(--ink-soft);
  cursor: pointer; transition: .2s;
}
.tab-minor:hover { border-color: var(--ink); }
.tab-minor.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.menu-foot {
  margin-top: 40px; font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); opacity: 0.6;
  display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline;
}
.menu-carta-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.menu-carta-link:hover { color: var(--ink); }
.values { display: flex; gap: 36px; margin-top: 36px; flex-wrap: wrap; }
.values div {
  font-family: var(--display); font-style: italic; font-size: 24px; color: var(--ink);
}
.values span {
  display: block; font-family: var(--sans); font-style: normal; font-size: 10px;
  letter-spacing: 0.24em; color: var(--accent); margin-bottom: 4px;
}

/* ---------- À LA CARTE ---------- */
.carta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 80px;
}
.carta-section h3 {
  font-family: var(--display);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  margin: 40px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(34,26,18,.2);
  display: flex; align-items: baseline; justify-content: space-between;
}
.carta-section h3 span {
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.carta-section h3:first-child { margin-top: 0; }
.dish {
  padding: 16px 0;
  border-bottom: 1px dashed rgba(34,26,18,.15);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 20px;
  align-items: baseline;
}
.dish .name { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink); }
.dish .price { font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; color: var(--ink-soft); }
.dish .desc {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
  max-width: 56ch;
}
.dish-tags {
  grid-column: 1 / -1;
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 4px;
}
.dish-tags span {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 8px;
  border-radius: 999px;
}

@media (max-width: 880px) {
  .carta-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- STORY ---------- */
.story {
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.story-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 44px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 48px 64px;
  align-items: start;
}
.story-text p {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 50ch;
}
.story-text p:first-of-type::first-letter {
  font-family: var(--display);
  font-style: italic;
  font-size: 72px;
  line-height: 0.8;
  color: var(--accent);
  float: left;
  margin: 8px 10px 0 0;
}
.story-pull {
  font-family: var(--display);
  font-style: italic;
  font-size: 32px;
  color: var(--ink);
  line-height: 1.2;
  padding: 24px 0;
  border-top: 1px solid rgba(34,26,18,.2);
  border-bottom: 1px solid rgba(34,26,18,.2);
  margin: 32px 0;
}
/* Closing paragraph, promoted to its own right-hand column */
.story-aside {
  position: relative;
  padding-left: 32px;
  padding-top: 12px;          /* optically level with the title's first line */
  border-left: 1px solid rgba(34,26,18,.22);
}
.story-aside p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.5;
  color: var(--ink);
  max-width: 40ch;
  margin: 0 0 18px;
}
.story-aside p:last-child { margin-bottom: 0; }

/* The pull quote closes the intro, then the values run as one ruled row. */
.story-values .story-pull {
  font-size: clamp(23px, 2.5vw, 36px);
  line-height: 1.28;
  max-width: 52ch;
  margin: 0 0 52px;
  padding: 0;
  border: none;
}

/* Values, set large across the full width below */
.story-values {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px 110px;
}
/* One row, hairlines between the cells, rules top and bottom. Cell 1 sits flush
   with the section's left edge so the row reads off the same margin as the title. */
.story-values .values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(34,26,18,.3);
  border-bottom: 1px solid rgba(34,26,18,.3);
}
.story-values .values div {
  padding: 30px 24px 32px 34px;
  border-left: 1px solid rgba(34,26,18,.18);
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.story-values .values div:first-child {
  padding-left: 0;
  border-left: none;
}
.story-values .values span {
  font-size: 10px;
  letter-spacing: 0.3em;
  margin-bottom: 13px;
}

@media (max-width: 880px) {
  .story-inner { grid-template-columns: 1fr; gap: 36px; padding: 60px 24px 36px; }
  .story-aside { padding-left: 22px; padding-top: 0; }
  .story-values { padding: 0 24px 60px; }
  .story-values .story-pull { margin-bottom: 36px; }
  .story-values .values { grid-template-columns: 1fr; }
  .story-values .values div {
    padding: 22px 0;
    border-left: none;
    border-top: 1px solid rgba(34,26,18,.18);
  }
  .story-values .values div:first-child { border-top: none; }
}

/* ---------- REVIEWS ---------- */
/* No section background: `.reviews` is also `.section` (max-width 1280, auto
   margins), so a background here paints a centred band with the page colour
   showing at both edges. The cards alone carry the lift. */
.reviews {
  position: relative;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.review-card {
  background: var(--paper);
  border: 1px solid rgba(34,26,18,.14);
  border-radius: 3px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.review-card::before {
  content: "\201C";
  position: absolute;
  top: 6px; right: 18px;
  font-family: var(--display);
  font-style: italic;
  font-size: 74px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.16;
}
.review-head { display: flex; align-items: center; gap: 14px; }
.review-avatar {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
}
.review-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
  line-height: 1.2;
}
.review-stars {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ochre-deep);
  margin-top: 3px;
}
.review-text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.review-src {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.55;
  margin-top: auto;
  padding-top: 4px;
}
.reviews-cta {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(34,26,18,.15);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.reviews-cta h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  color: var(--ink);
  max-width: 24ch;
}
.reviews-cta p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-top: 10px;
  max-width: 42ch;
}

@media (max-width: 1000px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-cta { flex-direction: column; align-items: start; }
}

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  aspect-ratio: 3/4;
  background: var(--cream-2);
  border: 1px solid rgba(34,26,18,.08);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: .3s;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(34,26,18,.15); }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 3/2; }
.gallery-item.tall { grid-row: span 2; aspect-ratio: 3/5; }
.gallery-item svg, .gallery-item img, .gallery-item .placeholder {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery-item img { transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px;
  background: linear-gradient(transparent, rgba(34,26,18,.85));
  color: var(--cream);
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  opacity: 0;
  transition: .3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(34,26,18,.92);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox-inner {
  max-width: 1000px; width: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  width: auto; height: auto;
  object-fit: contain;
  border: 1px solid rgba(244,236,216,.2);
}
.lightbox-cap {
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  color: var(--cream);
  opacity: 0.85;
}
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  color: var(--cream); font-size: 28px;
  background: none; border: none; cursor: pointer;
}

@media (max-width: 880px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- INSTAGRAM ---------- */
.insta {
  background: var(--paper);
}
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.insta-item {
  aspect-ratio: 1;
  background: var(--cream-2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.insta-item svg, .insta-item img { width: 100%; height: 100%; object-fit: cover; }
.insta-item .overlay {
  position: absolute; inset: 0;
  background: rgba(34,26,18,.7);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0; transition: .2s;
}
.insta-item:hover .overlay { opacity: 1; }

@media (max-width: 720px) {
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--forest);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 200'><path d='M0 180 L 80 120 L 140 150 L 200 80 L 260 110 L 340 40 L 420 90 L 500 30 L 580 80 L 660 20 L 740 70 L 820 50 L 900 90 L 1000 60 L 1000 200 L 0 200 Z' fill='%231d2a21'/></svg>");
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: 100% auto;
  opacity: 0.6;
}
.contact-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 48px 60px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
}
.contact .section-title { color: var(--cream); }
.contact h4 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 16px;
}
.contact p, .contact a { color: rgba(244,236,216,.85); text-decoration: none; }
.contact a:hover { color: var(--ochre); }
.contact-addr {
  font-family: var(--display);
  font-style: italic;
  font-size: 24px;
  color: var(--cream);
  margin: 20px 0;
  line-height: 1.3;
}
.hours-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dotted rgba(244,236,216,.25);
  font-family: var(--sans);
  font-size: 13px;
}
.hours-row.open { color: var(--ochre); }
.hours-row:last-child { border-bottom: none; }
.live-clock {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ochre);
  margin-top: 20px;
  padding: 12px;
  border: 1px solid rgba(212,168,75,.3);
  border-radius: 2px;
  display: flex; align-items: center; gap: 10px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7aab4a;
  box-shadow: 0 0 8px #7aab4a;
  animation: pulse 2s infinite;
}
.live-dot.closed { background: #c44a2a; box-shadow: 0 0 8px #c44a2a; }
@keyframes pulse { 50% { opacity: 0.5; } }

.footer {
  position: relative;
  border-top: 1px solid rgba(244,236,216,.15);
  padding: 30px 48px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,236,216,.6);
}

@media (max-width: 880px) {
  .contact-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px 40px; }
  .footer { flex-direction: column; gap: 16px; padding: 24px; text-align: center; }
}

/* ---------- BOLD VARIATION OVERRIDES ---------- */
body.bold {
  --cream: #ede2c7;
  --paper: #f4e6c2;
}
body.bold .hero-h1 {
  font-size: clamp(46px, 6vw, 104px);
  letter-spacing: -0.035em;
}
body.bold .section-title {
  font-size: clamp(48px, 7vw, 96px);
}

body.bold .menu-dia { background: var(--terracotta-deep); }
body.bold .menu-dia-price { font-size: 96px; }
body.bold .story { background: var(--ochre); color: var(--ink); }
body.bold .tile-strip { background: var(--terracotta-deep); }

/* ---------- TWEAKS PANEL ---------- */
.tweaks-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 300px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
  z-index: 200;
  font-family: var(--sans);
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-header {
  padding: 14px 18px;
  background: var(--ink); color: var(--cream);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks-header button { background: none; border: none; color: var(--cream); cursor: pointer; font-size: 16px; }
.tweaks-body { padding: 20px; }
.tweaks-body h5 {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 10px; margin-top: 16px;
}
.tweaks-body h5:first-child { margin-top: 0; }
.tweak-opts { display: flex; gap: 8px; }
.tweak-opts button {
  flex: 1;
  padding: 10px;
  background: var(--cream);
  border: 1px solid rgba(34,26,18,.25);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}
.tweak-opts button.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.tweak-swatches { display: flex; gap: 8px; }
.tweak-swatches button {
  flex: 1; aspect-ratio: 1;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: 50%;
}
.tweak-swatches button.active { border-color: var(--ink); }
