/* ============================================================
   Hi-Kov Nigiri House — site stylesheet
   ------------------------------------------------------------
   Conventions
   - BEM: block__element--modifier
   - State: .is-* (toggled by JS)
   - Hooks: .js-* (never styled)
   - Pages: index.html + privacidad.html (body.page-legal)

   Table of contents
   01. Design tokens
   02. Fonts
   03. Base & reset
   04. Utilities
   05. Skip link
   06. Site header & navigation
   07. Hero
   08. About / reservaciones
   09. Action cards
   10. Gallery
   11. Location
   12. Site footer
   13. Menu dialog (carta)
   14. Legal page
   15. Responsive
   16. Print
   ============================================================ */


/* ---------- 01. Design tokens ---------- */
:root {
  --base: oklch(0% 0 0);
  --surface: oklch(10% 0 0);
  --surface-light: oklch(100% 0 0);
  --line: oklch(42% 0 0);
  --line-soft: oklch(32% 0 0);
  --text-clear: oklch(100% 0 0);
  --text-mid: oklch(72% 0 0);
  --text-faint: oklch(60% 0 0);
  --text-dark: oklch(0% 0 0);
  --accent: oklch(52% 0.19 25);
  --font-sans: "Everett", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Zodiak", Georgia, "Times New Roman", serif;
  --font-label: "Monument Grotesk", "Everett", "Noto Sans JP", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", monospace;
  --radius: 7px;
  --pad-x: clamp(1.25rem, 3vw, 2.75rem);
  --maxw: 90rem;
  --nav-h: 66px;
  --shadow-soft: 0 0 0 1px var(--text-clear);
  --shadow-line: 0 0 0 0.5px var(--line);
}


/* ---------- 02. Fonts ---------- */
@font-face {
  font-family: "Everett";
  src: url("assets/fonts/TWKEverett-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monument Grotesk";
  src: url("assets/fonts/MonumentGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* ---------- 03. Base & reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--text-clear);
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: oklch(88% 0 0);
}

button {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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


/* ---------- 04. Utilities ---------- */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-kicker {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  line-height: 1.19;
  text-transform: uppercase;
}

.reveal {
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

body.anim-ready .reveal:not(.is-in-view) {
  opacity: 0;
  transform: translateY(26px);
}


/* ---------- 05. Skip link ---------- */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--surface-light);
  color: var(--text-dark);
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}


/* ---------- 06. Site header & navigation ---------- */
.site-header {
  display: block;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: color-mix(in oklch, var(--base) 72%, transparent);
  backdrop-filter: blur(22.6px);
  -webkit-backdrop-filter: blur(22.6px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  min-height: 44px;
}

.brand__logo-wrap {
  display: block;
  width: 33.8px;
  height: 29.6px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.brand__logo {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 241.603%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.brand__text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.03rem;
  line-height: 1.19;
  white-space: nowrap;
}

.brand__tagline {
  font-family: "Montserrat", var(--font-sans);
  font-weight: 300;
  font-size: 0.584rem;
  line-height: 1.19;
  white-space: nowrap;
}

.nav__actions {
  display: flex;
  align-items: center;
}

.nav__links {
  display: flex;
  align-items: center;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 116px;
  padding: 0.75rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.19;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 133px;
  height: 37px;
  margin-left: 1.5rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.875rem;
  line-height: 1.19;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__cta:hover,
.nav__cta:focus-visible {
  background: var(--text-clear);
  color: var(--text-dark);
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: 0.5rem;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-clear);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__burger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__burger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__burger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav__mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 49;
  display: none;
  flex-direction: column;
  padding: 0.75rem 1.25rem 1.75rem;
  background: color-mix(in oklch, var(--base) 95%, transparent);
  backdrop-filter: blur(22.6px);
  -webkit-backdrop-filter: blur(22.6px);
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  line-height: 1.19;
}

.nav__mobile-cta {
  margin-top: 0.875rem;
  min-height: 44px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}


/* ---------- 07. Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 617.1;
  overflow: hidden;
  background: var(--base);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55.4%;
}

.hero__content {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}

.hero__line-wrap {
  overflow: hidden;
}

.hero__title {
  font-weight: 400;
  font-size: clamp(1.6875rem, 3.47vw, 3.125rem);
  line-height: 1.19;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero__subtitle {
  font-size: 0.75rem;
  line-height: 1.19;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

body.anim-ready .hero__line {
  animation: line-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.anim-ready .hero__line--delay {
  animation-delay: 0.2s;
}

body.anim-ready .hero__subtitle.hero__line {
  animation-delay: 0.4s;
}

@keyframes line-up {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}


/* ---------- 08. About / reservaciones ---------- */
.section {
  padding: 3.75rem var(--pad-x) 5.9375rem;
}

.section--dark {
  background: var(--base);
  color: var(--text-clear);
}

.section--light {
  background: var(--surface-light);
  color: var(--text-dark);
  padding-top: 3.5rem;
  padding-bottom: 3.75rem;
}

.section--ubicacion {
  padding-top: 2.375rem;
  padding-bottom: 0;
}

.about {
  margin-bottom: 4rem;
}

.about .section-kicker {
  margin-bottom: 1.25rem;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) repeat(3, minmax(0, 1fr));
  gap: 2.625rem;
  align-items: start;
}

.about__heading {
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.19;
  text-transform: uppercase;
}

.about__text {
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: justify;
  text-wrap: pretty;
}


/* ---------- 09. Action cards ---------- */
.action-cards {
  display: flex;
  gap: 1.15625rem;
  aspect-ratio: 1357 / 260.23;
}

.action-card {
  position: relative;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  transition: flex-grow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-card:hover,
.action-card:focus-visible {
  flex-grow: 1.9;
}

.action-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.action-card__label {
  position: absolute;
  left: 2.1125rem;
  bottom: 1.4125rem;
  font-size: clamp(1.25rem, 2vw, 1.875rem);
  line-height: 1.19;
  letter-spacing: -0.02em;
  white-space: nowrap;
}


/* ---------- 10. Gallery ---------- */
.gallery__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.gallery__head .section-kicker {
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.875rem;
}

.gallery__title {
  font-weight: 400;
  font-size: clamp(1.375rem, 2.5vw, 2.25rem);
  line-height: 1.19;
}

.gallery__track-wrap {
  overflow: hidden;
  padding: 1.6875rem 0;
  margin-inline: calc(-1 * var(--pad-x));
}

.gallery__track {
  display: flex;
  gap: 1.15625rem;
  width: max-content;
}

.gallery__track img {
  flex: 0 0 auto;
  width: 277.25px;
  height: 344.17px;
  object-fit: cover;
}

.gallery__track img:nth-child(even) {
  margin-top: 1.6875rem;
}


/* ---------- 11. Location ---------- */
.location__grid {
  display: grid;
  grid-template-columns: minmax(0, 660fr) minmax(0, 649fr);
  gap: 3.75rem;
  align-items: end;
}

.location__content {
  display: flex;
  flex-direction: column;
  gap: 1.625rem;
  padding-bottom: 5rem;
}

.location__title {
  font-weight: 400;
  font-size: clamp(1.375rem, 2.5vw, 2.25rem);
  line-height: 1.19;
}

.location__text {
  max-width: 35.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: justify;
  text-wrap: pretty;
}

.location__map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  font-size: 0.875rem;
}

.location__image {
  width: 100%;
  height: 346.26px;
  object-fit: cover;
}

.site-footer {
  background: var(--base);
  color: var(--text-clear);
  border-top: 0.5px solid var(--line);
  padding: 3.75rem var(--pad-x) 3.5rem;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 3.5rem;
}

.site-footer__links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 0.8125rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-line);
}


/* ---------- 13. Menu dialog (carta) ---------- */
.menu-carta {
  background: var(--base);
  color: var(--text-clear);
  overflow-y: auto;
  overscroll-behavior: contain;
}

html.js-enhanced .menu-carta {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

html.js-enhanced .menu-carta.is-open {
  display: block;
}

.menu-carta__header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 1.25rem 0 var(--pad-x);
  background: color-mix(in oklch, var(--base) 72%, transparent);
  backdrop-filter: blur(22.6px);
  -webkit-backdrop-filter: blur(22.6px);
  border-bottom: 0.5px solid var(--line);
}

.menu-carta__label {
  font-size: 0.875rem;
  letter-spacing: 0.06em;
}

.menu-carta__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

html:not(.js-enhanced) .menu-carta__close {
  display: none;
}

.menu-carta__layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 3.75rem;
  padding: 2.75rem var(--pad-x) 5.625rem;
  align-items: start;
}

.menu-carta__nav {
  position: sticky;
  top: 110px;
}

.menu-carta__nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-carta__nav-link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  transition: color 0.3s ease;
}

.menu-carta__nav-link:hover,
.menu-carta__nav-link:focus-visible,
.menu-carta__nav-link.is-active {
  color: var(--accent);
}

.menu-carta__body {
  display: flex;
  flex-direction: column;
  gap: 4.375rem;
}

.menu-carta__category-title {
  font-weight: 400;
  font-size: clamp(1.375rem, 2.1vw, 1.875rem);
  line-height: 1.19;
  margin-bottom: 0.5rem;
}

.menu-carta__category-note {
  margin-bottom: 1.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.menu-carta__list {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}

.menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: baseline;
  padding-bottom: 1.375rem;
  border-bottom: 0.5px solid var(--line-soft);
}

.menu-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.menu-item__name {
  font-size: 1rem;
  line-height: 1.19;
}

.menu-item__measure {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-left: 0.5rem;
}

.menu-item__desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-faint);
  max-width: 62ch;
  text-wrap: pretty;
}

.menu-item__price {
  font-size: 0.875rem;
  line-height: 1.19;
  white-space: nowrap;
}


/* ---------- 14. Legal page ---------- */
.page-legal {
  background: var(--surface-light);
  color: var(--text-dark);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--pad-x);
  border-bottom: 1px solid color-mix(in oklch, var(--text-dark) 12%, transparent);
}

.legal-header__back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
}

.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem var(--pad-x) 5rem;
}

.legal__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.legal__meta {
  font-size: 0.875rem;
  color: var(--text-faint);
  margin-bottom: 2.5rem;
}

.legal section {
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.legal h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
}

.legal p,
.legal li {
  font-size: 0.9375rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.legal p + p,
.legal ul {
  margin-top: 0.75rem;
}

.legal ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.controller-card {
  border: 1px solid color-mix(in oklch, var(--text-dark) 12%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
}

.controller-card__row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid color-mix(in oklch, var(--text-dark) 8%, transparent);
}

.controller-card__row:last-child {
  border-bottom: 0;
}

.controller-card__key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.controller-card__value--muted {
  color: var(--text-faint);
}


/* ---------- 15. Responsive ---------- */
@media (max-width: 900px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .hero {
    aspect-ratio: auto;
    height: 78vw;
    min-height: 340px;
  }

  .hero__content {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.75rem;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .action-cards {
    flex-direction: column;
    aspect-ratio: auto;
  }

  .action-card {
    height: 220px;
    flex: none;
  }

  .action-card:hover,
  .action-card:focus-visible {
    flex-grow: 1;
  }

  .gallery__head {
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  .location__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .location__content {
    padding-bottom: 0;
  }

  .location__image {
    height: auto;
    aspect-ratio: 649 / 346;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__links {
    flex-wrap: wrap;
    gap: 1.125rem 1.75rem;
  }

  .menu-carta__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .menu-carta__nav {
    position: static;
  }

  .menu-carta__nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.375rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  body.anim-ready .reveal:not(.is-in-view),
  .hero__line,
  .action-card,
  .gallery__track img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ---------- 16. Print ---------- */
@media print {
  .skip-link,
  .nav,
  .nav__mobile,
  .nav__burger,
  .action-cards,
  .gallery__track-wrap,
  .site-footer__social,
  .menu-carta {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero__image {
    position: static;
    height: auto;
    max-height: 40vh;
  }

  .hero {
    aspect-ratio: auto;
    height: auto;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.75rem;
  }
}
