/* ============================================================
   Nori House Fusion Sushi — shared site styles
   Warm wood neighborhood sushi · editorial layout
   ============================================================ */

:root {
  --bg-warm: #FAF4EA;
  --bg-warm-2: #F3E9D7;   /* slightly deeper cream for alt bands */
  --bg-band: #1F1A16;
  --bg-band-2: #17120F;
  --ink: #1F1A16;
  --ink-soft: #5C5147;
  --ink-inverse: #F5F0E5;
  --ink-inverse-soft: #C7B79E;
  --wood: #7A5424;
  --wood-light: #C99A5C;
  --wood-dark: #3D2818;
  --accent-red: #722F37;
  --accent-red-hi: #8C3A43;
  --accent-teal: #2D4F4A;
  --line: #E8DDC8;
  --line-dark: #392F26;

  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Caveat", "Cormorant Garamond", cursive;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --nav-h: 74px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  background: var(--bg-warm);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

::selection { background: var(--accent-red); color: var(--ink-inverse); }

/* ---------- Typography primitives ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wood);
  margin: 0;
}
.eyebrow--dark { color: var(--wood); }

.script {
  font-family: var(--script);
  font-weight: 600;
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}

.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.mono-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 132px); }

.band-dark {
  background: var(--bg-band);
  color: var(--ink-inverse);
}
.band-dark .eyebrow { color: var(--wood-light); }
.band-dark .lead { color: var(--ink-inverse-soft); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent-red);
  --btn-fg: var(--ink-inverse);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  min-height: 48px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bg);
  border-radius: 2px;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn .arw { transition: transform .25s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(31,26,22,.5); }
.btn:hover .arw { transform: translateX(4px); }

.btn--teal { --btn-bg: var(--accent-teal); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--ink-inverse); }

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--ink-inverse);
  border-color: rgba(245,240,229,.55);
}
.btn--ghost-light:hover { background: var(--ink-inverse); color: var(--ink); border-color: var(--ink-inverse); }

.btn--lg { padding: 19px 34px; font-size: 13.5px; min-height: 56px; }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-red);
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color .2s ease, gap .2s ease;
}
.band-dark .tlink { color: var(--wood-light); }
.tlink:hover { border-color: currentColor; gap: 0.7em; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.brand__name {
  font-family: var(--script);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
  transition: color .35s ease;
}
.brand__sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .35s ease;
}
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: color .35s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -7px;
  height: 1.5px; background: var(--wood);
  transition: right .25s ease;
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { right: 0; }
.nav__cta { display: flex; align-items: center; gap: 18px; }

/* Transparent-over-hero state */
.nav--over {
  background: transparent;
}
.nav--over .brand__name,
.nav--over .brand__sub,
.nav--over .nav__link { color: var(--ink-inverse); }
.nav--over .nav__link::after { background: var(--ink-inverse); }
.nav--over .btn--ghost {
  --btn-fg: var(--ink-inverse);
  border-color: rgba(245,240,229,.6);
}
.nav--over .btn--ghost:hover { background: var(--ink-inverse); color: var(--ink); }

/* Scrolled / solid state */
.nav--solid {
  background: rgba(250,244,234,.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(31,26,22,.03);
}

/* ---------- Photo placeholders (swap target) ----------
   data-placeholder="true" — replace the element with <img> on real build */
.ph {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg,
      rgba(166,116,58,.10) 0 2px,
      transparent 2px 11px),
    linear-gradient(150deg, #EADBC2 0%, #DFCBAB 45%, #CBB089 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wood-dark);
}
.ph::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(61,40,24,.22);
  pointer-events: none;
}
.ph__tag {
  position: relative;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(61,40,24,.72);
  text-align: center;
  max-width: 78%;
  line-height: 1.7;
}
.ph__tag span { display: block; font-size: 22px; margin-bottom: 8px; opacity: .6; }
/* dark-plate variant for food shots */
.ph--dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(0,0,0,.12) 0 2px,
      transparent 2px 11px),
    linear-gradient(155deg, #4A3A2C 0%, #2C211A 60%, #1C1511 100%);
  color: var(--ink-inverse-soft);
}
.ph--dark::before { border-color: rgba(245,240,229,.18); }
.ph--dark .ph__tag { color: rgba(199,183,158,.85); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-band);
  color: var(--ink-inverse);
  padding-block: clamp(56px, 7vw, 84px) 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer__brand .brand__name { color: var(--ink-inverse); font-size: 38px; }
.footer__brand .brand__sub { color: var(--ink-inverse-soft); }
.footer__brand p { color: var(--ink-inverse-soft); max-width: 30ch; margin: 18px 0 0; font-size: 15px; }
.footer h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wood-light);
  margin: 4px 0 20px;
  font-weight: 500;
}
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.footer__links a {
  text-decoration: none;
  color: var(--ink-inverse-soft);
  font-size: 15px;
  transition: color .2s ease;
}
.footer__links a:hover { color: var(--ink-inverse); }
.social { display: flex; gap: 12px; }
.social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--ink-inverse-soft);
  text-decoration: none;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.social a:hover { background: var(--wood); color: var(--bg-band); border-color: var(--wood); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
.footer__base {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-inverse-soft);
}

/* ---------- Scroll reveal ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--rd, 0ms);
}
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Decorative divider ---------- */
.rule {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--wood);
}
.rule::before, .rule::after { content: ""; height: 1px; width: 46px; background: var(--wood); opacity: .6; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .footer__base { flex-direction: column; }
}

/* ---------- Photo placeholder swap-in (Picsum) ----------
   Real photos slot in by replacing the <div class="ph" data-pic="..."> with <img>.
   Until then, Picsum gives visual weight + seeded determinism. */
.ph[data-pic] {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.ph[data-pic]::before { display: none; }
.ph[data-pic] .ph__tag { display: none; }

/* Unsplash photo URLs — royalty-free under Unsplash License.
   Each ID hand-picked to fit the slot (restaurant interior / sushi / ramen).
   Swap to uncle's real photos by replacing the URL or the entire .ph<div> with <img>. */
.ph[data-pic="hero"] {
  background-image:
    linear-gradient(180deg, rgba(15,11,8,.25) 0%, rgba(15,11,8,.65) 100%),
    url("https://images.unsplash.com/photo-1582450871972-ab5ca641643d?w=1920&q=80&auto=format&fit=crop") !important;
}
.ph[data-pic="story"] {
  background-image: url("https://images.unsplash.com/photo-1562158147-f8d6fbcd76f8?w=900&q=80&auto=format&fit=crop") !important;
}
.ph[data-pic="dish-1"] {
  background-image: url("https://images.unsplash.com/photo-1713453018516-b08018818c0c?w=800&q=80&auto=format&fit=crop") !important;
}
.ph[data-pic="dish-2"] {
  background-image: url("https://images.unsplash.com/photo-1648146299257-080ffe5968f8?w=800&q=80&auto=format&fit=crop") !important;
}
.ph[data-pic="dish-3"] {
  background-image: url("https://images.unsplash.com/photo-1501200040150-4d65c94e8f21?w=800&q=80&auto=format&fit=crop") !important;
}
.ph[data-pic="visit"] {
  background-image: url("https://images.unsplash.com/photo-1695606393084-9c4490ccf667?w=1000&q=80&auto=format&fit=crop") !important;
}
.ph[data-pic="visit-hero"] {
  background-image:
    linear-gradient(180deg, rgba(15,11,8,.05) 0%, rgba(15,11,8,.30) 100%),
    url("https://images.unsplash.com/photo-1756706815775-0a66d4301a20?w=1600&q=80&auto=format&fit=crop") !important;
}
