/* ============================================================
   Onyx & Aurum — shared site components
   ============================================================
   Loaded on every page after the kit chassis and weights.css.
   Everything here is authored against the token contract; a
   literal colour outside :root fails `npm run lint`.

   The register is boutique hotel / members club: matte black,
   thin gold hairlines, wide clean sans, space, few words. The
   chassis gives structure; this file gives the hairlines.
   ============================================================ */

/* ---- Brand lockup: tracked small caps in the header and footer ---- */
.brand-name { text-transform: uppercase; letter-spacing: 0.16em; font-size: var(--fs-500); }
.brand-name .amp, .amp { letter-spacing: 0; }
.brand-sub { letter-spacing: 0.2em; }
.footer-name { letter-spacing: 0.04em; }

/* ---- Kickers: the gold hairline label used above every heading ---- */
.kicker {
  font-family: var(--body);
  font-weight: 500;
  font-size: var(--fs-100);
  letter-spacing: 0.26em;
  color: var(--accent);
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 0.7rem;
}

/* ---- Buttons: square-shouldered, tracked, the ghost carries a gold hairline ---- */
.btn {
  font-family: var(--body);
  font-weight: 500;
  font-size: var(--fs-200);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 1.6rem;
}
.btn-ghost, .btn-ghost-light { border: 1px solid var(--accent); color: var(--accent); }
.btn-ghost:hover, .btn-ghost-light:hover { background: var(--accent); color: var(--accent-ink); }

/* ---- Header: pre-open mode ----
   site.json leaves phone/email EMPTY until the receptionist is re-prompted and the mailbox exists.
   The kit header/footer still emit their tel:/mailto: anchors, now empty — hide them rather than fork
   the partials (which are synced from the kit and clobbered on every build) — and .eleventy.js strips the
   empty anchors out of the built HTML entirely, so these rules are belt-and-braces. The last nav item is
   the signup anchor; in pre-open it wears the button (once phone is filled the kit's tel: button returns
   as the true last child and this rule stands down by itself). */
.nav-cta a[href="tel:"],
.site-footer a[href="tel:"],
.site-footer a[href="mailto:"] { display: none; }
.site-footer p:has(> a[href="tel:"]),
.site-footer p:has(> a[href="mailto:"]) { display: none; }
.preopen .nav-list li:last-child a:not(.btn) {
  border: 1px solid var(--accent);
  border-radius: var(--radius-btn);
  color: var(--accent);
  padding: 0.55rem 1rem;
  font-size: var(--fs-100);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.preopen .nav-list li:last-child a:not(.btn):hover,
.preopen .nav-list li:last-child a[aria-current="page"]:not(.btn) {
  background: var(--accent);
  color: var(--accent-ink);
  border-bottom-color: var(--accent);
}

/* ---- Staging banner (renders only while site.staging is true) ---- */
.staging-banner {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--fs-200);
  padding: 0.65rem 0;
}
.staging-banner strong { color: var(--accent-ink); }
.staging-banner code {
  font-size: 0.95em;
  background: var(--surface-dark);
  color: var(--on-dark);
  padding: 0.1em 0.4em;
  border-radius: 2px;
}
.staging-banner .tbc { color: var(--accent-ink); border-color: var(--accent-ink); background: transparent; }

/* ---- "to be confirmed" pill — an unverified fact, marked as one ---- */
.tbc {
  display: inline-block;
  font-family: var(--body);
  font-size: var(--fs-100);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px dashed var(--line);
  border-radius: 2px;
  padding: 0.15em 0.55em;
  white-space: nowrap;
  vertical-align: middle;
}

/* ---- Pre-open band (renders only while site.preopen is true) ---- */
.preopen-band {
  background: var(--surface-alt);
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
  font-size: var(--fs-200);
  color: var(--ink-soft);
}
.preopen-band-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.4rem 1.5rem; padding-top: 0.6rem; padding-bottom: 0.6rem;
}
.preopen-band-text { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.preopen-band-kick { color: var(--accent); letter-spacing: 0.2em; text-transform: uppercase; font-size: var(--fs-100); font-weight: 500; }
.preopen-band-sep { color: var(--ink-muted); }
.preopen-band-link { color: var(--accent); text-decoration: none; letter-spacing: 0.04em; white-space: nowrap; }
.preopen-band-link:hover { color: var(--ink); }

/* ---- Section headers ---- */
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .lede { margin-bottom: 0; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }
.section-tight { padding-top: 0; }
.section-hair { border-top: 1px solid var(--line); }
.page-head { padding-bottom: clamp(2rem, 4vw, 3rem); }
.page-head h1 { margin-bottom: 1rem; }
.page-head .lede { margin-bottom: 0; }

/* ---- Grids ---- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
}
.split--text-first > :first-child { order: 0; }

/* ---- Cards: hairline panels, not filled blocks ---- */
.card {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 2rem);
}
.card h2, .card h3 { font-size: var(--fs-600); margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.card p { color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.card-num {
  font-family: var(--display); color: var(--accent); font-size: var(--fs-200);
  letter-spacing: 0.2em; margin-bottom: 1rem; display: block;
}

/* ---- Prose ---- */
.prose { max-width: 42rem; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-top: 2.4rem; }
.prose h3 { font-size: var(--fs-700); margin-top: 1.8rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.2rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.legal-meta { font-size: var(--fs-200); color: var(--ink-muted); margin-bottom: 1.6rem; line-height: 1.7; }
.muted { color: var(--ink-muted); }
.meta { font-size: var(--fs-200); color: var(--ink-muted); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }

/* ---- The menu: a ruled list, price right, description under ---- */
.menu { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.menu-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.5rem; row-gap: 0.25rem; align-items: baseline;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line);
}
.menu-name { font-family: var(--display); font-size: var(--fs-700); color: var(--ink); letter-spacing: 0.02em; margin: 0; }
.menu-price { font-family: var(--display); font-size: var(--fs-700); color: var(--accent); margin: 0; white-space: nowrap; }
.menu-time { grid-column: 1 / -1; font-size: var(--fs-100); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); margin: 0; }
.menu-desc { grid-column: 1 / -1; color: var(--ink-soft); margin: 0.35rem 0 0; max-width: 46rem; }
.menu-note {
  margin-top: 1.5rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-left: 2px solid var(--accent);
  color: var(--ink-soft); font-size: var(--fs-300);
}
.menu-note p { margin: 0; }
.menu-note p + p { margin-top: 0.35rem; color: var(--ink-muted); font-size: var(--fs-200); }

/* ---- The finish: three hairline columns ---- */
.finish { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.finish li { padding: 1.6rem 1.5rem 1.6rem 0; border-right: 1px solid var(--line); }
.finish li + li { padding-left: 1.5rem; }
.finish li:last-child { border-right: 0; }
.finish h3 { font-size: var(--fs-500); margin-bottom: 0.4rem; letter-spacing: 0.02em; }
.finish p { color: var(--ink-muted); margin: 0; font-size: var(--fs-300); }

/* ---- Gallery ---- */
.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 4; background: var(--surface-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery--tall { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

/* ---- Empty state (honest, not a stock photo) ---- */
.empty-state {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center; color: var(--ink-muted); max-width: 34rem; margin: 0 auto;
}
.empty-state p { margin: 0; }

/* ---- Portrait / feature image ---- */
.feature-img { border-radius: var(--radius); overflow: hidden; background: var(--surface-alt); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-img--portrait { aspect-ratio: 3 / 4; }

/* ---- Checklist ---- */
.checklist { list-style: none; margin: 0 0 1em; padding: 0; }
.checklist li { position: relative; padding-left: 1.6rem; margin-bottom: 0.6rem; color: var(--ink-soft); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.7rem; height: 1px; background: var(--accent); }

/* ---- Facts list (Visit) ---- */
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.facts dt, .facts .k { font-size: var(--fs-100); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); padding-top: 0.25rem; }
.facts .v { color: var(--ink-soft); }
.facts .v a { color: var(--accent); text-decoration: none; }
.facts .v a:hover { color: var(--ink); }

/* ---- Access form (Netlify Forms) ---- */
.access { border-top: 1px solid var(--line); }
.access-split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.access-form { max-width: 30rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 500; font-size: var(--fs-200); letter-spacing: 0.06em; color: var(--ink); margin-bottom: 0.4rem; }
.field .optional { font-weight: 400; color: var(--ink-muted); text-transform: lowercase; letter-spacing: 0; }
.field input[type="text"],
.field input[type="email"] {
  width: 100%; font-family: var(--body); font-size: var(--fs-400); color: var(--ink);
  background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-btn);
  padding: 0.8rem 0.9rem; transition: border-color 0.15s var(--ease);
}
.field input:hover { border-color: var(--ink-muted); }
.field input:focus { border-color: var(--accent); outline: none; }
.field ::placeholder { color: var(--ink-muted); opacity: 1; }
.btn-submit { border: 0; cursor: pointer; margin-top: 0.3rem; }
.form-foot { margin-top: 1rem; max-width: 30rem; }
/* Honeypot — hidden from people, visible to bots. Not display:none, which some bots skip. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- CTA rows ---- */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 1.6rem; }

/* ---- Mobile ---- */
@media (max-width: 860px) {
  .split, .access-split { grid-template-columns: minmax(0, 1fr); }
  .finish li { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
  .finish li:last-child { border-bottom: 0; }
  .facts li { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .preopen .nav-list li:last-child a:not(.btn) { display: inline-block; margin-top: 0.4rem; }
}
