/* ============================================================
   Kogetsu at The Boiler House. Modern-classic, information-dense
   ============================================================ */

:root {
  /* Palette: warm paper, ink, lacquer red, brass, deep charcoal */
  --paper:      #f4efe4;
  --paper-2:    #efe8d8;
  --card:       #fbf8f1;
  --ink:        #211d18;
  --ink-2:      #4a4339;
  --muted:      #8a7f6d;
  --line:       #ddd2bd;
  --line-soft:  #e7ddcb;
  --red:        #9a2c22;
  --red-deep:   #7c211a;
  --gold:       #b0894e;
  --gold-soft:  #c9ac72;
  --dark:       #1a1613;
  --dark-2:     #241f19;
  --green:      #4f6b3e;
  --green-bg:   #e7ecdd;

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Georgia", serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(33,29,24,.06), 0 8px 24px rgba(33,29,24,.06);
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 54px); }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5ch; font-family: var(--sans); font-weight: 600; font-size: .95rem;
  letter-spacing: .01em; text-decoration: none; cursor: pointer;
  padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fdf5ea; }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fdf5ea; border-color: rgba(253,245,234,.5); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--dark); color: #e9ddc7; font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar a { color: #e9ddc7; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-links .sep { opacity: .4; margin: 0 8px; }
.topbar-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.topbar-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.topbar-status.is-open .dot { background: #7fb069; }
.topbar-status.is-closed .dot { background: #d1685e; }
@media (max-width: 620px) { .topbar-links a:last-child { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; letter-spacing: .01em; }
.brand-sub { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .96rem; position: relative; padding: 6px 0; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav .nav-cta { background: var(--ink); color: var(--paper); padding: 9px 18px; border-radius: var(--radius); font-weight: 600; }
.nav .nav-cta:hover { background: var(--red); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; margin: -10px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px; box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav .nav-cta { text-align: center; margin-top: 14px; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(78vh, 660px);
  display: flex; align-items: flex-end; overflow: hidden;
  --mx: .5; --my: .5;            /* pointer position, updated by JS */
}
.hero-defs { position: absolute; width: 0; height: 0; }
.hero-media {
  position: absolute; inset: -2%;
  background: #2a231c url("assets/img/hero-falls.jpg") center 42% / cover no-repeat;
  transform: scale(1.05) translate3d(calc((var(--mx) - .5) * -14px), calc((var(--my) - .5) * -10px), 0);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
/* Rippling, blurred copy of the image behind the text, reads as water */
.hero-water {
  position: absolute; inset: -4%;
  background: url("assets/img/hero-falls.jpg") center 42% / cover no-repeat;
  filter: url(#waterRipple) blur(3px) brightness(.62) saturate(1.1);
  -webkit-mask-image: linear-gradient(to bottom, transparent 26%, #000 58%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 26%, #000 58%, #000 100%);
  transform: scale(1.08) translate3d(calc((var(--mx) - .5) * 22px), calc((var(--my) - .5) * 14px), 0);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.hero.no-motion .hero-water { filter: blur(4px) brightness(.6) saturate(1.05); }
.hero.no-motion .hero-media, .hero.no-motion .hero-water { transform: scale(1.04); transition: none; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 22% 82%, rgba(20,16,12,.55) 0%, rgba(20,16,12,0) 60%),
    linear-gradient(180deg, rgba(20,16,12,.28) 0%, rgba(20,16,12,.04) 30%, rgba(20,16,12,.42) 74%, rgba(20,16,12,.72) 100%);
}
.hero-content {
  position: relative; z-index: 2; color: #fbf3e6; padding-top: 80px; padding-bottom: 58px; max-width: 760px;
  text-shadow: 0 1px 24px rgba(16,10,6,.45), 0 1px 3px rgba(16,10,6,.35);
}
.hero-mark { height: 66px; width: auto; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 20px; }
.hero-kicker { font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 12px; font-weight: 600; }
.hero-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.9rem, 8vw, 5rem); line-height: .98; margin: 0; letter-spacing: .005em; }
.hero-title-sub { display: block; font-size: clamp(1.1rem, 3vw, 1.7rem); font-weight: 400; font-style: italic; color: #efe1cb; margin-top: 18px; letter-spacing: .02em; }
.hero-tagline { font-size: clamp(1rem, 2.2vw, 1.18rem); color: #f0e6d5; max-width: 60ch; margin: 22px 0 28px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Facts strip ---------- */
.facts { background: var(--dark-2); color: #efe4d0; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.fact { padding: 26px 26px; border-left: 1px solid rgba(255,255,255,.08); }
.fact:first-child { border-left: 0; padding-left: 0; }
.facts .wrap { padding-left: 24px; padding-right: 24px; }
.fact-label { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 8px; font-weight: 600; }
.fact-value { display: block; font-family: var(--serif); font-size: 1.12rem; color: #f6ecd9; text-decoration: none; line-height: 1.35; }
a.fact-value:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.fact-value-sm { font-size: .95rem; color: #cdbfa6; margin-top: 2px; }
.muted-inline { color: #b6a88d; font-size: .9em; }
@media (max-width: 820px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact { border-left: 1px solid rgba(255,255,255,.08); padding: 20px 18px; }
  .fact:first-child, .fact:nth-child(3) { border-left: 0; padding-left: 18px; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 460px) { .facts-grid { grid-template-columns: 1fr; } .fact, .fact:first-child, .fact:nth-child(3) { border-left: 0; padding-left: 4px; } .fact:nth-child(n+2){ border-top: 1px solid rgba(255,255,255,.08);} }

/* ---------- Section headings ---------- */
.section-head { text-align: center; max-width: 680px; margin: 0 auto; }
.section-kicker { font-size: .76rem; letter-spacing: .26em; text-transform: uppercase; color: var(--red); font-weight: 700; margin: 0 0 10px; }
.section-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.05; margin: 0; }
.section-lede { color: var(--ink-2); font-size: 1.05rem; margin: 16px auto 0; }

/* ---------- Menu ---------- */
.menu-section { padding: 72px 0 84px; }
.menu-toolbar {
  position: sticky; top: var(--header-h); z-index: 40;
  margin: 34px 0 0; padding: 16px 0 14px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line-soft);
}
.search { position: relative; flex: 1 1 340px; min-width: 260px; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
#menuSearch {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 13px 42px 13px 44px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow); outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
#menuSearch:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,137,78,.18); }
#menuSearch::placeholder { color: #a99e89; }
.search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: var(--paper-2); color: var(--ink-2); border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.search-clear:hover { background: var(--line); }

.legend { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { font-size: .72rem; font-weight: 600; letter-spacing: .01em; padding: 4px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.badge-vg { color: var(--green); background: var(--green-bg); border-color: #d3ddc2; }
.badge-gf { color: #7a5a1c; background: #f3e9d2; border-color: #e6d5ac; }
.badge-spice { color: var(--red); background: #f6e2dd; border-color: #ecc9c1; }
.badge-raw { color: var(--ink-2); background: #eae0cd; border-color: #ddceb0; }

/* Category rail */
.cat-bar {
  position: sticky; top: calc(var(--header-h) + 60px); z-index: 39;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  margin: 0 0 8px; border-bottom: 1px solid var(--line-soft);
}
.cat-scroll { display: flex; gap: 6px; overflow-x: auto; padding: 12px 2px; scrollbar-width: thin; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.cat-scroll::-webkit-scrollbar { height: 6px; }
.cat-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.cat-chip {
  flex: 0 0 auto; scroll-snap-align: start;
  font-family: var(--sans); font-size: .88rem; font-weight: 500; color: var(--ink-2);
  padding: 8px 15px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease; white-space: nowrap;
}
.cat-chip:hover { border-color: var(--gold); }
.cat-chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cat-chip .cat-count { opacity: .6; font-size: .82em; margin-left: 5px; }

.result-note { text-align: center; color: var(--ink-2); font-size: .95rem; margin: 18px 0 0; }
.result-note b { color: var(--ink); }

.menu-body { margin-top: 26px; }
.menu-loading { text-align: center; color: var(--muted); padding: 60px 0; }

.menu-cat { margin: 0 0 44px; scroll-margin-top: calc(var(--header-h) + 120px); }
.cat-header { display: flex; align-items: baseline; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 6px; }
.cat-name { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 600; margin: 0; }
.cat-header .cat-n { color: var(--muted); font-size: .95rem; font-family: var(--sans); font-weight: 500; }
.cat-note { color: var(--ink-2); font-size: .95rem; font-style: italic; margin: 8px 0 4px; max-width: 78ch; }

.availability {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  border: 1px solid transparent; border-left: 3px solid transparent;
  padding: 11px 15px; border-radius: var(--radius); font-size: .92rem; font-weight: 500;
  margin: 12px 0 6px;
  /* default (and no-JS fallback) = out-of-hours caution */
  background: #f6e2dd; border-color: #e7c3ba; border-left-color: var(--red); color: #6f261e;
}
.availability svg { flex: 0 0 auto; width: 18px; height: 18px; }
.availability.is-open  { background: var(--green-bg); border-color: #c9d7b3; border-left-color: var(--green); color: #3d5330; }
.availability.is-closed { background: #f6e2dd; border-color: #e7c3ba; border-left-color: var(--red); color: #6f261e; }
.avail-flag { margin-left: auto; font-weight: 700; white-space: nowrap; padding-left: 10px; }
.availability.is-open  .avail-flag { color: var(--green); }
.availability.is-closed .avail-flag { color: var(--red-deep); }

.items { columns: 2; column-gap: 52px; margin-top: 18px; }
@media (max-width: 720px) { .items { columns: 1; } }

.item {
  break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid;
  padding: 11px 0; border-bottom: 1px dotted var(--line);
}
.item-top { display: flex; align-items: baseline; gap: 8px; }
.item-name { font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.item-name .raw-mark { color: var(--red); font-weight: 700; margin-left: 2px; cursor: help; }
.leader { flex: 1 1 auto; border-bottom: 1px dotted var(--line); transform: translateY(-4px); min-width: 14px; }
.item-price { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; color: var(--red-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-desc { color: var(--ink-2); font-size: .9rem; margin: 3px 0 0; max-width: 62ch; }
.item-tags { display: inline-flex; gap: 5px; margin-left: 2px; vertical-align: middle; }
.tag { font-size: .66rem; font-weight: 700; letter-spacing: .03em; padding: 1px 6px; border-radius: 4px; line-height: 1.5; }
.tag-vg { color: var(--green); background: var(--green-bg); }
.tag-gf { color: #7a5a1c; background: #f3e9d2; }
.tag-spice { color: var(--red); background: #f6e2dd; letter-spacing: 0; }

mark { background: #f7e39a; color: inherit; border-radius: 2px; padding: 0 1px; }

.no-results { text-align: center; padding: 56px 0; color: var(--ink-2); }
.no-results strong { display: block; font-family: var(--serif); font-size: 1.4rem; color: var(--ink); margin-bottom: 6px; }

.advisory { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line-soft); margin-top: 30px; padding-top: 18px; line-height: 1.6; }

/* ---------- About ---------- */
.about { background: var(--paper-2); padding: 78px 0 66px; border-top: 1px solid var(--line-soft); }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-copy .section-kicker { text-align: left; }
.about-copy .section-title { text-align: left; margin-bottom: 18px; }
.about-copy p { color: var(--ink-2); font-size: 1.05rem; margin: 0 0 16px; }
.about-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.about-figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-figure img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1/1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 30px; } .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Visit ---------- */
.visit { padding: 78px 0; }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.visit-card .section-kicker { text-align: left; }
.visit-card .section-title { text-align: left; margin-bottom: 22px; }
.visit-row { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.visit-row:first-of-type { border-top: 0; }
.visit-k { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding-top: 3px; }
.visit-v { font-size: 1rem; color: var(--ink); }
.visit-v a { color: var(--red-deep); text-decoration: none; }
.visit-v a:hover { text-decoration: underline; text-underline-offset: 3px; }
.visit-link { display: inline-block; margin-top: 6px; font-weight: 600; font-size: .92rem; }
.hours-table { border-collapse: collapse; width: 100%; max-width: 320px; }
.hours-table td { padding: 4px 0; font-size: .96rem; }
.hours-table td:first-child { color: var(--ink-2); }
.hours-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours-table tr.today td { font-weight: 700; color: var(--red-deep); }
.hours-table tr.today td:first-child::after { content: " · Today"; font-weight: 500; color: var(--muted); font-size: .82em; }
.hours-table td.closed { color: var(--muted); font-style: italic; }
.visit-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.visit-figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); min-height: 320px; }
.visit-figure img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.visit-figure figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 20px 16px; color: #f6ecd9; font-family: var(--serif); font-style: italic; font-size: 1.05rem; background: linear-gradient(transparent, rgba(20,16,12,.78)); }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; gap: 28px; } .visit-figure { min-height: 260px; } }
@media (max-width: 460px) { .visit-row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #d9cbb2; padding: 52px 0 26px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 16px; max-width: 420px; }
.footer-mark { height: 52px; filter: brightness(0) invert(1); opacity: .9; }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: #e4d6bd; margin: 0; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: #d9cbb2; text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: #a2937a; }
@media (max-width: 620px) { .footer-inner { flex-direction: column; align-items: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
