/* ==========================================================================
   SUSHI KANDO — design tokens & base
   Editorial identity built on real photography: serif display + mono
   labels, sharp panels, gold for explore/menu actions, blue (from the
   real dining room's velvet seating) for reservation actions.
   ========================================================================== */

:root {
  --ink: #14110d;
  --ink-2: #1c1811;
  --cream: #f8f2e3;
  --cream-2: #efe6d0;
  --paper: #fffdf8;
  --gold: #c9a15a;
  --gold-deep: #a3793a;
  --gold-ink: #8a6327; /* AA-compliant (4.8:1) gold for small text on light backgrounds */
  --gold-pale: #e4cfa0;
  --blue: #1c4fa4;
  --blue-deep: #163f85;
  --navy: #0f2f66;
  --text-on-dark: #f5efe0;
  --muted-on-dark: #b6a98d;
  --text-on-light: #221b12;
  --muted-on-light: #6d6250;
  --line-on-dark: rgba(201, 161, 90, 0.22);
  --line-on-light: rgba(34, 27, 18, 0.14);
  --line-on-navy: rgba(227, 201, 141, 0.25);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.55);
  --radius: 0px;
  --pill: 999px;
  --ease: cubic-bezier(.16, .8, .3, 1);
  --header-h: 84px;
  --mobile-bar-h: 56px;
  --serif: 'Playfair Display', Georgia, serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --sans: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text-on-light);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---- numbered section index ---- */
.section-label {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--mono);
  margin-bottom: 18px;
}
.section-label .index { font-size: 13px; color: var(--gold-ink); letter-spacing: .02em; }
.section-label .text { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-on-light); }
.dark-section .section-label .index, .hero .section-label .index, footer .section-label .index, .stats-block .section-label .index { color: var(--gold); }
.dark-section .section-label .text, .hero .section-label .text, .stats-block .section-label .text { color: var(--muted-on-dark); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 14px;
}
.dark-section .eyebrow, .hero .eyebrow, footer .eyebrow { color: var(--gold); }
.section-title { font-size: clamp(28px, 4vw, 42px); }

/* ---- buttons: solid pill (gold = explore, blue = reserve), arrow text-link ---- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  min-height: 44px;
  border: 1px solid var(--gold);
  color: var(--ink);
  background: var(--gold);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--pill);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.button:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--paper); transform: translateY(-2px); }
.button.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.button.blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.button.ghost-light { background: transparent; border-color: rgba(245,239,224,.4); color: var(--text-on-dark); }
.button.ghost-light:hover { background: var(--text-on-dark); border-color: var(--text-on-dark); color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: inherit;
  border-bottom: 1px solid var(--line-on-dark);
  padding-bottom: 2px;
}
.content .link-arrow, .stats-block .link-arrow { border-bottom-color: var(--line-on-light); }
.link-arrow svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { color: var(--gold-ink); border-bottom-color: currentColor; }
.dark-section .link-arrow:hover, .hero .link-arrow:hover { color: var(--gold); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(20, 17, 13, 0.82);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line-on-dark);
}
header nav {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 30px; height: 30px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .06em;
  color: var(--text-on-dark);
}
.brand-tagline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.button) {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  position: relative;
  padding: 8px 0;
  transition: color .2s var(--ease);
}
.nav-links a:not(.button):hover { color: var(--gold); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--text-on-dark);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-on-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 26px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a:not(.button) { padding: 14px 0; border-bottom: 1px solid var(--line-on-dark); min-height: 44px; }
  .nav-links .button { margin-top: 16px; justify-content: center; }
  .nav-toggle { display: inline-flex; }
}

/* ==========================================================================
   HERO — the real dining room, full-bleed
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  color: var(--text-on-dark);
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--ink) center 62% / cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,8,6,.96) 0%, rgba(10,8,6,.78) 46%, rgba(10,8,6,.32) 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 660px; padding: 64px 0 72px; }
.hero .badge-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.rating-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-on-dark);
  background: rgba(255,255,255,.04);
  padding: 8px 14px;
  border-radius: var(--pill);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .01em;
}
.rating-badge svg { width: 15px; height: 15px; }
.rating-badge strong { color: var(--gold-pale); }
.hero h1 { font-size: clamp(40px, 7vw, 78px); color: var(--paper); line-height: .96; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lead { font-size: 17.5px; color: var(--muted-on-dark); max-width: 46ch; }
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin: 30px 0 40px; }
.hero-details {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line-on-dark);
  font-size: 14px;
}
.hero-details strong { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; font-weight: 500; }
.hero-details a:hover { color: var(--gold); }
@media (max-width: 720px) {
  .hero-details { grid-template-columns: 1fr; gap: 18px; }
}

/* ---- real-photo panel (philosophy section) ---- */
.photo-panel { position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--line-on-light); overflow: hidden; }
.photo-panel img { width: 100%; height: 100%; object-fit: cover; }
.photo-panel .panel-caption {
  position: absolute; left: 0; bottom: 0;
  background: rgba(10,8,6,.86); color: var(--gold-pale);
  padding: 9px 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
section { position: relative; padding: 96px 0; }
.dark-section { background: var(--ink); color: var(--text-on-dark); }
.dark-section .muted { color: var(--muted-on-dark); }
.content { background: var(--cream); }
.muted { color: var(--muted-on-light); }

.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) {
  .section-grid { grid-template-columns: 1fr; }
}

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 46px; flex-wrap: wrap; }

/* philosophy / kando meaning block */
.kando-word {
  display: inline-flex; align-items: baseline; gap: 14px;
  font-family: var(--serif);
  margin: 18px 0 22px;
}
.kando-word .jp { font-size: 40px; color: var(--gold-deep); }
.kando-word .roman { font-size: 22px; font-style: italic; color: var(--muted-on-light); }

/* ---- "dal menu" editorial index list ---- */
.dish-index { border-top: 1px solid var(--line-on-dark); margin-top: 46px; }
.dish-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-on-dark);
  transition: padding-left .3s var(--ease);
}
.dish-row:hover { padding-left: 10px; }
.dish-row .num { font-family: var(--mono); font-size: 13px; color: var(--gold); }
.dish-row h3 { font-size: 22px; color: var(--paper); margin: 0 0 6px; }
.dish-row p { color: var(--muted-on-dark); font-size: 14.5px; margin: 0; max-width: 52ch; }
.dish-row .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-on-dark); align-self: start; padding-top: 4px; }
@media (max-width: 640px) {
  .dish-row { grid-template-columns: 40px 1fr; }
  .dish-row .tag { grid-column: 2; padding-top: 0; }
}

/* ---- service cards ---- */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-on-light); border: 1px solid var(--line-on-light); margin-top: 46px; }
@media (max-width: 780px) { .service-grid { grid-template-columns: 1fr; } }
.service-card { background: var(--paper); padding: 44px 40px; }
.service-card .num { font-family: var(--mono); font-size: 13px; color: var(--gold-ink); display: block; margin-bottom: 22px; }
.service-card h3 { font-size: 24px; }
.service-card ul { margin: 18px 0 0; }
.service-card li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--muted-on-light); font-size: 15px; }
.service-card li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: var(--gold-deep); }

/* ==========================================================================
   STATS BLOCK — navy, echoing the dining room's blue velvet
   ========================================================================== */
.stats-block { background: var(--navy); color: var(--text-on-dark); }
.stats-block h2, .stats-block .section-title { color: var(--paper); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: left; }
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { border-left: 1px solid var(--line-on-navy); padding-left: 20px; }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); color: var(--gold); }
.stat span { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted-on-dark); letter-spacing: .06em; text-transform: uppercase; margin-top: 8px; }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { margin: 22px 0 34px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; }
.contact-list svg { width: 20px; height: 20px; color: var(--gold-deep); flex-shrink: 0; margin-top: 2px; }
.contact-list a:hover { color: var(--gold-deep); }
table.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
table.hours td { padding: 10px 0; border-bottom: 1px solid var(--line-on-light); }
table.hours td:first-child { color: var(--muted-on-light); font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
table.hours td:last-child { text-align: right; font-weight: 600; }

.map-frame {
  width: 100%; height: 420px;
  border: 1px solid var(--line-on-light);
  filter: grayscale(.25) contrast(1.05);
}
.map-consent {
  width: 100%; height: 420px;
  border: 1px dashed var(--line-on-light);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 30px;
  background: var(--cream-2);
  color: var(--muted-on-light);
  font-size: 14.5px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer { background: var(--ink); color: var(--muted-on-dark); padding: 56px 0 34px; border-top: 1px solid var(--line-on-dark); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-on-dark); }
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand svg { width: 28px; height: 28px; }
.footer-brand span { font-family: var(--serif); font-size: 19px; color: var(--text-on-dark); }
.footer-col h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 500; }
.footer-col a, .footer-col p { display: block; font-size: 14.5px; margin-bottom: 10px; color: var(--muted-on-dark); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-family: var(--mono); font-size: 12px; }
.footer-bottom a:hover { color: var(--gold); }

/* ==========================================================================
   MOBILE ACTION BAR — Chiama / Indicazioni / Menu, thumb's reach on phones
   ========================================================================== */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--navy);
  border-top: 1px solid var(--line-on-navy);
}
.mobile-bar a {
  padding: 14px 6px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-on-dark);
  border-right: 1px solid var(--line-on-navy);
}
.mobile-bar a:last-child { border-right: none; color: var(--gold); }
@media (max-width: 640px) {
  .mobile-bar { display: grid; }
  body { padding-bottom: var(--mobile-bar-h); }
}

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px;
  max-width: 620px; margin: 0 auto;
  background: var(--ink-2);
  border: 1px solid var(--line-on-dark);
  color: var(--text-on-dark);
  padding: 24px 26px;
  box-shadow: var(--shadow);
  z-index: 200;
  display: none;
  gap: 16px;
  flex-direction: column;
}
.cookie-banner.visible { display: flex; }
@media (max-width: 640px) { .cookie-banner { bottom: calc(var(--mobile-bar-h) + 12px); } }
.cookie-banner p { font-size: 14px; color: var(--muted-on-dark); margin: 0; }
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions .button { padding: 12px 24px; font-size: 12px; }

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-content { max-width: 780px; margin: 0 auto; padding-top: 60px; }
.legal-content h2 { margin-top: 40px; font-size: 22px; }
.legal-content p, .legal-content li { color: var(--muted-on-light); font-size: 15.5px; }
.legal-content ul { margin: 12px 0; }
.legal-content li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.legal-content li::before { content: ''; position: absolute; left: 0; top: 10px; width: 7px; height: 1px; background: var(--gold-deep); }
.legal-updated { display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--gold-ink); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }

/* ---- menu page ---- */
.menu-page-hero { background: var(--ink); color: var(--text-on-dark); padding: calc(var(--header-h) + 64px) 0 64px; text-align: center; }
.chef-picks { border: 1px solid var(--line-on-light); background: var(--paper); padding: 32px 30px; margin-bottom: 20px; }
.chef-picks .eyebrow { margin-bottom: 20px; }
.chef-picks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; }
.chef-picks-grid h3 { font-size: 20px; margin-bottom: 6px; }
.chef-picks-grid p { font-size: 13.5px; color: var(--muted-on-light); margin-bottom: 8px; }
.chef-picks-grid .price { font-family: var(--mono); font-size: 14px; color: var(--gold-ink); }
.menu-category { margin-bottom: 64px; }
.menu-category h2 { display: flex; align-items: center; gap: 16px; font-size: 26px; }
.menu-category h2::after { content: ''; flex: 1; height: 1px; background: var(--line-on-light); }
.menu-items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; margin-top: 24px; }
@media (max-width: 700px) { .menu-items { grid-template-columns: 1fr; } }
.menu-item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-on-light); }
.menu-item .name { font-weight: 600; }
.menu-item .desc { display: block; font-size: 13.5px; color: var(--muted-on-light); margin-top: 3px; font-weight: 400; }
.menu-item .price { font-family: var(--mono); color: var(--gold-ink); white-space: nowrap; font-size: 14.5px; }
.menu-note { text-align: center; color: var(--muted-on-light); font-size: 14px; margin-top: 40px; }

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .38s var(--ease), transform .38s var(--ease); transition-delay: var(--reveal-delay, 0s); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* no-JS fallback: never leave content permanently invisible */
.no-js .reveal { opacity: 1; transform: none; }

/* ---- skip link ---- */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--gold); color: var(--ink);
  padding: 10px 16px; z-index: 300; font-family: var(--mono); font-size: 13px; font-weight: 500;
  border-radius: var(--pill);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }
