/* Website Factory · look: Cellar Reserve ~ generated stylesheet
   Omakase-counter editorial look: experience-forward, few courses, roomy dark
   canvas. Brand tokens applied only through the custom properties below. */

:root {
  --accent: #C89B4B;        /* brass */
  --accent-2: #9A3B4E;      /* deep wine */
  --accent-rgb: 200, 155, 75;
  --accent-2-rgb: 154, 59, 78;
  --btn-text: #140B0D;

  --font-body: 'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Cormorant Garamond', ui-serif, Georgia, 'Times New Roman', serif;

  --r-card: 6px;
  --r-button: 4px;
  --r-field: 6px;
}

/* Cellar Reserve canvas = deep moody cellar (dark). */
:root {
  color-scheme: dark;
  --bg: #140B0D;
  --bg-rgb: 20, 11, 13;
  --panel: #1E1214;
  --panel-rgb: 30, 18, 20;
  --panel-2: #180D0F;
  --line: rgba(240, 231, 228, 0.11);
  --text: #F3ECEA;
  --text-strong: #FCF8F7;
  --text-secondary: rgba(243, 236, 234, 0.72);
  --text-muted: rgba(243, 236, 234, 0.48);
  --ink-rgb: 243, 236, 234;
  --ok: #37A76A;
  --ok-rgb: 55, 167, 106;
  --warn: #E0A93C;
  --danger: #D2483C;
  --w-heading: 600;
  --section-pad: 116px;
  --maxw: 1120px;
  --menuw: 760px;
  --nav-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(var(--accent-rgb), 0.28); color: var(--text-strong); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 1.15em; height: 1.15em; flex: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--panel-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--w-heading); line-height: 1.1; letter-spacing: 0.005em; }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 14px 0 14px; }
.section-head p { color: var(--text-secondary); font-size: 1.08rem; }
.lead { color: var(--text-secondary); font-size: 1.1rem; }

/* eyebrow ~ spaced brass small-caps, no side rules (more editorial than the warm demos) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--accent); font-family: var(--font-body);
}
.eyebrow i { display: inline-block; width: 30px; height: 1px; background: rgba(var(--accent-rgb), 0.5); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: var(--r-button); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap; font-family: var(--font-body);
}
.btn:focus-visible { outline: 3px solid rgba(var(--accent-rgb), 0.6); outline-offset: 2px; }
.btn-primary { color: var(--btn-text); background: var(--accent); box-shadow: 0 12px 30px -14px rgba(var(--accent-rgb), 0.85); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -14px rgba(var(--accent-rgb), 0.95); }
.btn-outline { color: var(--text-strong); border-color: rgba(var(--ink-rgb),0.28); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---- nav ---- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--r-field);
  background: var(--accent); color: var(--btn-text); font-weight: 700; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(var(--bg-rgb), 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topnav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-mark { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.18rem; font-family: var(--font-heading); letter-spacing: 0.03em; }
.brand-logo { width: 34px; height: 34px; flex: none; object-fit: contain; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { position: relative; color: var(--text-secondary); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; transition: color .2s ease; }
.nav-link:hover { color: var(--accent); }
.nav-link::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width .25s ease; }
.nav-link:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text-strong); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  flex-direction: column; gap: 4px; padding: 16px 26px 24px;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 13px 0; color: var(--text-secondary); border-bottom: 1px solid var(--line); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.9rem; }
.mobile-menu .btn { margin-top: 16px; }

/* ---- hero ~ full-bleed dark editorial photograph ---- */
.hero { padding: calc(var(--nav-h) + 108px) 0 0; text-align: center; position: relative; overflow: hidden; min-height: 82vh; display: flex; flex-direction: column; justify-content: flex-end; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(20,11,13,0.62) 0%, rgba(20,11,13,0.40) 38%, rgba(20,11,13,0.94) 100%),
    url('assets/hero.jpg');
  background-size: cover; background-position: center 42%; background-repeat: no-repeat;
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(3rem, 8.5vw, 6.2rem); max-width: 15ch; font-weight: 500; letter-spacing: 0.01em; text-shadow: 0 2px 40px rgba(0,0,0,0.6); }
.hero .lead { max-width: 46ch; font-size: 1.16rem; color: rgba(243, 236, 234, 0.9); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin-top: 12px; }

.info-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); position: relative; z-index: 1; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-cell {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 22px 12px; text-align: left;
}
.strip-cell + .strip-cell { border-left: 1px solid var(--line); }
.strip-cell svg { width: 20px; height: 20px; color: var(--accent); }
.strip-cell .lbl { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-muted); }
.strip-cell .val { display: block; font-weight: 600; font-size: 0.96rem; }
a.strip-cell:hover .val { color: var(--accent); }

/* ---- The Counter ~ the experience block (content-light, feeling-heavy) ---- */
.counter-wrap { max-width: 900px; text-align: center; }
.counter-lede { font-family: var(--font-heading); font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 400; line-height: 1.35; color: var(--text-strong); max-width: 22ch; margin: 22px auto 0; letter-spacing: 0.01em; }
.counter-note { color: var(--text-secondary); font-size: 1.06rem; max-width: 52ch; margin: 26px auto 0; }
.counter-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 60px; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.counter-fact { padding: 34px 20px; text-align: center; }
.counter-fact + .counter-fact { border-left: 1px solid var(--line); }
.counter-fact .n { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 500; color: var(--accent); line-height: 1; }
.counter-fact .l { color: var(--text-muted); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 12px; }

/* ---- The Omakase ~ few courses, list not grid (experience over catalogue) ---- */
.omakase-wrap { max-width: var(--menuw); }
.course-list { list-style: none; margin-top: 8px; }
.course {
  display: flex; align-items: baseline; gap: 18px; padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.course:last-child { border-bottom: 0; }
.course .cn { font-family: var(--font-heading); font-size: 1.3rem; color: var(--accent); font-weight: 500; min-width: 2.4ch; font-variant-numeric: tabular-nums; }
.course .cbody { flex: 1; }
.course .cbody h4 { font-size: 1.28rem; color: var(--text-strong); font-weight: 500; }
.course .cbody p { color: var(--text-secondary); font-size: 0.98rem; margin-top: 6px; max-width: 52ch; }
.omakase-foot { text-align: center; color: var(--text-muted); font-size: 0.95rem; margin-top: 48px; font-style: italic; }
.omakase-price { text-align: center; margin-top: 36px; }
.omakase-price .p { font-family: var(--font-heading); font-size: 2.2rem; color: var(--text-strong); font-weight: 500; }
.omakase-price .s { color: var(--text-muted); font-size: 0.86rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 6px; }

/* ---- gallery band ---- */
.gallery-band { padding: 0; }
.g-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.g-photo { aspect-ratio: 1 / 1; overflow: hidden; position: relative; background: var(--panel-2); display: grid; place-items: center; }
.g-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; filter: saturate(1.02); }
.g-photo:hover img { transform: scale(1.05); }

/* ---- The Room (about) ---- */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.about-copy h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 14px 0 20px; }
.about-copy p + p { margin-top: 16px; }
.about-photo {
  aspect-ratio: 3 / 4; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line);
  background: var(--panel-2); display: grid; place-items: center;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.stat { padding: 18px 22px; text-align: center; min-width: 116px; flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); }
.stat .n { font-size: 1.7rem; font-weight: 500; color: var(--accent); font-family: var(--font-heading); }
.stat .l { color: var(--text-muted); font-size: 0.78rem; margin-top: 3px; letter-spacing: 0.06em; }

/* ---- reviews ---- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.review { padding: 30px; display: flex; flex-direction: column; gap: 15px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); }
.review .stars { color: var(--accent); letter-spacing: 3px; }
.review p { color: var(--text-secondary); font-size: 1rem; font-style: italic; font-family: var(--font-heading); font-size: 1.16rem; line-height: 1.5; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--btn-text); background: var(--accent); font-size: 0.9rem; }
.who .nm { font-weight: 600; font-size: 0.95rem; letter-spacing: 0.03em; }
.who .mt { color: var(--text-muted); font-size: 0.8rem; }

/* ---- visit ---- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-card { padding: 34px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); }
.info-card h3 { font-size: 1.35rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.info-card h3 svg { width: 1.2em; height: 1.2em; color: var(--accent); }
.hours-list { list-style: none; }
.hours-list li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dotted rgba(var(--ink-rgb),0.16); font-size: 0.96rem; }
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { color: var(--text-secondary); }
.hours-list .time { font-weight: 500; }
.hours-list li.today .day, .hours-list li.today .time { color: var(--accent); font-weight: 600; }
.addr { color: var(--text-secondary); font-style: normal; line-height: 1.9; margin-bottom: 20px; }
.info-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map-note { margin-top: 16px; color: var(--text-muted); font-size: 0.82rem; }

/* ---- reserve ---- */
.reserve-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: start; }
.reserve-copy h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 14px 0 24px; }
.reserve-ctas { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 16px; }
.reserve-note { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 22px; }
.form-card { padding: 34px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.76rem; color: var(--text-secondary); margin-bottom: 8px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--r-field); font: inherit; color: var(--text);
  background: rgba(var(--ink-rgb),0.04); border: 1px solid rgba(var(--ink-rgb),0.16); transition: border-color .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(var(--ink-rgb),0.06);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(var(--ink-rgb),0.36); }
.form-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 14px; text-align: center; }
.form-success { display: none; padding: 24px; text-align: center; margin-top: 4px; border: 1px solid rgba(var(--accent-rgb), 0.4); border-radius: var(--r-card); background: rgba(var(--accent-rgb), 0.06); }
.form-success.show { display: block; }
.form-success strong { color: var(--accent); }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding: 34px 0; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--text-muted); font-size: 0.85rem; }
.by-anchor { display: inline-flex; align-items: center; gap: 7px; }
.by-anchor b { color: var(--text-secondary); }

/* ---- chat stub ---- */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 120; display: flex; align-items: center; gap: 10px;
  padding: 14px 22px 14px 16px; border-radius: var(--r-button); cursor: pointer; border: 0; color: var(--btn-text); font-weight: 600; font-size: 0.94rem; letter-spacing: 0.03em;
  background: var(--accent);
  box-shadow: 0 16px 38px -12px rgba(var(--accent-rgb), 0.75);
  transition: transform .2s ease, box-shadow .2s ease;
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab svg { width: 22px; height: 22px; }
.chat-fab .ping { position: absolute; top: 10px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(var(--ok-rgb),0.6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(var(--ok-rgb),0.6);} 70% { box-shadow: 0 0 0 10px rgba(var(--ok-rgb),0);} 100% { box-shadow: 0 0 0 0 rgba(var(--ok-rgb),0);} }

.chat-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 121; width: min(370px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 40px));
  border-radius: var(--r-card); display: none; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
}
.chat-panel.open { display: flex; }
.chat-head { padding: 16px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.chat-head .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--btn-text); font-weight: 700; background: var(--accent); font-family: var(--font-heading); }
.chat-head .nm { font-weight: 600; font-size: 1rem; font-family: var(--font-heading); letter-spacing: 0.02em; }
.chat-head .st { font-size: 0.76rem; color: var(--ok); display: flex; align-items: center; gap: 6px; }
.chat-head .st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.chat-head .x { margin-left: auto; background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 1.4rem; line-height: 1; padding: 4px; }
.chat-body { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.bubble { padding: 11px 14px; border-radius: var(--r-field); font-size: 0.9rem; max-width: 85%; line-height: 1.5; }
.bubble.bot { background: rgba(var(--ink-rgb),0.05); border: 1px solid var(--line); align-self: flex-start; }
.bubble.me { background: var(--accent); color: var(--btn-text); align-self: flex-end; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; }
.qr { padding: 8px 13px; border-radius: var(--r-button); font-size: 0.82rem; cursor: pointer; color: var(--text);
  background: rgba(var(--accent-rgb), 0.1); border: 1px solid rgba(var(--accent-rgb), 0.32); transition: background .2s ease; }
.qr:hover { background: rgba(var(--accent-rgb), 0.2); }
.chat-foot { padding: 12px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.chat-foot input { flex: 1; padding: 11px 14px; border-radius: var(--r-button); font: inherit; color: var(--text);
  background: rgba(var(--ink-rgb),0.04); border: 1px solid rgba(var(--ink-rgb),0.16); }
.chat-foot input:focus { outline: none; border-color: var(--accent); }
.chat-foot button { border: 0; border-radius: 50%; width: 42px; height: 42px; flex: none; cursor: pointer; color: var(--btn-text);
  background: var(--accent); display: grid; place-items: center; }
.chat-foot button svg { width: 18px; height: 18px; }
.stub-tag { font-size: 0.72rem; color: var(--text-muted); text-align: center; padding: 6px 0 2px; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .g-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .reserve-grid, .visit-grid { grid-template-columns: 1fr; gap: 30px; }
  .counter-facts { grid-template-columns: 1fr; }
  .counter-fact + .counter-fact { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding-top: calc(var(--nav-h) + 64px); min-height: 74vh; }
  .hero-inner { padding-bottom: 48px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-outline { display: none; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-cell { justify-content: flex-start; padding: 16px 4px; }
  .strip-cell + .strip-cell { border-left: 0; border-top: 1px solid var(--line); }
  .form-row { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .chat-fab .label { display: none; }
  .chat-fab { padding: 15px; }
  .topnav .container { gap: 10px; }
  .brand-mark span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .course { flex-direction: row; }
}

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

/* ===== style-pack look layer: "Cellar Reserve" (cellar-reserve) ===== */
/* imagery: TYPE-FORWARD ~ oversized Cormorant headlines carry the page */
body[data-look-imagery="type-forward"] .hero h1 { font-size: clamp(3.2rem, 9vw, 6.6rem); letter-spacing: 0.005em; line-height: 0.98; }
body[data-look-imagery="type-forward"] .section-head h2 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }

/* section-order hint (cellar-reserve omakase counter) */
main { display: flex; flex-direction: column; }
#top { order: 0; }
#counter { order: 1; }
#omakase { order: 2; }
#gallery { order: 3; }
#room { order: 4; }
#reviews { order: 5; }
#visit { order: 6; }
#reserve { order: 7; }
#asv2pp { order: 8; }
