/* Kathmandu Steak House — site styles
   Palette: smoke (page), hearth (raised surfaces), flame (actions), cream (text), ash (secondary text).
   Type: Rozha One for headlines, Mukta for everything else. */

:root {
  --smoke: #1c1613;
  --hearth: #2a211c;
  --hearth-line: #3d322b;
  --flame: #f0912e;
  --flame-deep: #c96d14;
  --cream: #f3e7d3;
  --ash: #a99a85;
  --logo-red: #d5232a;

  --flag-blue: #2f5fae;
  --flag-white: #f3e7d3;
  --flag-red: #c8282e;
  --flag-green: #2f8a4c;
  --flag-yellow: #e8b923;

  --display: "Rozha One", Georgia, "Times New Roman", serif;
  --body: "Mukta", "Segoe UI", system-ui, -apple-system, sans-serif;

  --measure: 34rem;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 6px;
  --bar-h: 0px; /* height of the mobile action bar, set below */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Space for the sticky bars when jumping to a section. site.js measures the real height into --sticky-offset. */
  scroll-padding-top: var(--sticky-offset, 5rem);
}

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

body {
  margin: 0;
  background: var(--smoke);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  padding-bottom: var(--bar-h);
}

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

a {
  color: var(--flame);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cream);
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--flame);
  color: var(--smoke);
  padding: 0.5rem 1rem;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Prayer-flag stripe: the one Himalayan accent, used at the top of the page and the footer. */
.flags {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--flag-blue) 0 20%,
    var(--flag-white) 20% 40%,
    var(--flag-red) 40% 60%,
    var(--flag-green) 60% 80%,
    var(--flag-yellow) 80% 100%
  );
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font: 600 1.05rem/1.2 var(--body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.btn-primary {
  background: var(--flame);
  color: var(--smoke);
}

.btn-primary:hover {
  background: var(--cream);
  color: var(--smoke);
}

.btn-ghost {
  border-color: var(--cream);
  color: var(--cream);
}

.btn-ghost:hover {
  background: var(--cream);
  color: var(--smoke);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 22, 19, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hearth-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: block;
  flex: none;
}

.brand img {
  width: 84px;
  height: auto;
}

.nav {
  margin-left: auto;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--flame);
}

.nav-toggle {
  display: none;
}

.header-book {
  min-height: 2.6rem;
  padding: 0.4rem 1.1rem;
}

@media (max-width: 760px) {
  .header-book {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1px solid var(--hearth-line);
    color: var(--cream);
    font: 500 1rem var(--body);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius);
    cursor: pointer;
  }

  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--smoke);
    border-bottom: 1px solid var(--hearth-line);
    display: none;
  }

  .nav.is-open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
  }

  .nav a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--hearth-line);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 46rem);
  display: flex;
  align-items: flex-end;
  padding-block: 7rem 3.5rem;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 60%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, var(--smoke) 0%, rgba(28, 22, 19, 0.75) 35%, rgba(28, 22, 19, 0.15) 75%),
    linear-gradient(90deg, rgba(28, 22, 19, 0.7) 0%, rgba(28, 22, 19, 0) 70%);
}

.hero h1 {
  font-size: clamp(2.9rem, 9vw, 6.25rem);
  line-height: 0.98;
  max-width: 11ch;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-lede {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  max-width: 30rem;
  margin-bottom: 2rem;
}

.hero-rating {
  margin: 1.75rem 0 0;
  color: var(--ash);
  font-size: 1rem;
}

.hero-rating a {
  color: var(--cream);
}

/* ---------- Location strip under the hero ---------- */

.locator {
  background: var(--hearth);
  border-block: 1px solid var(--hearth-line);
}

.locator-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-block: 1.25rem;
}

.locator-icon {
  width: 2rem;
  height: 2rem;
  color: var(--flame);
  flex: none;
}

.locator-text {
  margin: 0;
  flex: 1 1 18rem;
  max-width: none;
}

.locator-text strong {
  display: block;
  font-weight: 600;
}

.locator-text span {
  color: var(--ash);
}

@media (max-width: 760px) {
  .locator-icon {
    display: none;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(4rem, 10vw, 7rem);
}

.section-alt {
  background: var(--hearth);
}

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

.section-intro p {
  color: var(--ash);
  font-size: 1.2rem;
}

/* ---------- Ostrich ---------- */

.ostrich-top {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

@media (min-width: 900px) {
  .ostrich-top {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
  }
}

.ostrich-text p {
  font-size: 1.2rem;
}

/* A nutrition panel, in the style of a food label, with figures from the restaurant's own menu. */
.nutrition {
  border: 2px solid var(--cream);
  padding: 1rem 1.25rem 0.9rem;
  max-width: 22rem;
  font-size: 1rem;
}

.nutrition h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0;
  line-height: 1.2;
}

.nutrition .per {
  margin: 0 0 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 8px solid var(--cream);
  color: var(--ash);
}

.nutrition dl {
  margin: 0;
}

.nutrition .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--hearth-line);
}

.nutrition .row:last-child {
  border-bottom: 0;
}

.nutrition dt {
  font-weight: 600;
}

.nutrition dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.nutrition .source {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: var(--ash);
}

/* Signature list: set like the printed menu, with dotted leaders between dish and price. */
.signature {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .signature {
    grid-template-columns: 1fr 1.35fr;
    gap: 4rem;
    align-items: start;
  }
}

.signature-photo {
  margin: 0;
}

@media (min-width: 900px) {
  .signature-photo {
    position: sticky;
    top: 6.5rem;
  }
}

.signature-photo img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.signature-photo figcaption {
  margin-top: 0.6rem;
  color: var(--ash);
  font-size: 0.95rem;
}

.dish-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dish {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hearth-line);
}

.dish:first-child {
  padding-top: 0;
}

.dish-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.dish-name {
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0;
}


.leader {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 2px dotted var(--ash);
  transform: translateY(-0.3em);
  opacity: 0.6;
}

.price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--flame);
}

.dish-desc {
  margin: 0.3rem 0 0;
  color: var(--ash);
  font-size: 1.02rem;
}

.signature-note {
  margin-top: 1.75rem;
  color: var(--ash);
}

/* ---------- Room ---------- */

.room {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .room {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

.room-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.room-photos img {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-photos .wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.room-photos .small {
  aspect-ratio: 4 / 3;
}

/* ---------- Kitchen strip ---------- */

.kitchen-strip {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter) 1rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(14rem, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  max-width: var(--wrap);
  margin-inline: auto;
}

.kitchen-strip li {
  scroll-snap-align: start;
}

.kitchen-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.kitchen-strip p {
  margin: 0.5rem 0 0;
  font-weight: 600;
}

@media (min-width: 1100px) {
  .kitchen-strip {
    grid-auto-flow: row;
    grid-template-columns: repeat(6, 1fr);
    overflow: visible;
  }
}

.kitchen-more {
  margin-top: 2rem;
}

/* ---------- Reviews ---------- */

.ratings {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .ratings {
    grid-template-columns: 1fr 1fr;
  }
}

.rating {
  border: 1px solid var(--hearth-line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rating-source {
  margin: 0;
  font-weight: 600;
  font-size: 1.15rem;
}

.rating-score {
  margin: 0;
  font-family: var(--display);
  font-size: 4rem;
  line-height: 1;
  color: var(--flame);
}

.rating-score span {
  font-family: var(--body);
  font-size: 1.25rem;
  color: var(--ash);
}

.rating-detail {
  margin: 0 0 1.25rem;
  color: var(--ash);
}

.rating .btn {
  margin-top: auto;
  align-self: flex-start;
}

.review-ask {
  margin-top: 2rem;
  color: var(--ash);
}

/* ---------- Find us ---------- */

.find {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .find {
    grid-template-columns: 1fr 1.4fr;
    gap: 3.5rem;
    align-items: stretch;
  }
}

.find > * {
  min-width: 0;
}

.facts a,
.site-footer a {
  overflow-wrap: anywhere;
}

.find-details address {
  font-style: normal;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.find-details address strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.6rem;
}

.facts {
  margin: 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}

.facts div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
}

.facts dt {
  color: var(--ash);
}

.facts dd {
  margin: 0;
}

.map-frame {
  position: relative;
  min-height: 22rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hearth-line);
  background: var(--hearth);
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 900px) {
  .map-frame {
    min-height: 30rem;
  }
}

/* Name and link over the map. The embed points at coordinates, not the Google place,
   because the place card fails to load in browsers that block third-party cookies. */
.map-label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  max-width: calc(100% - 1.5rem);
  background: rgba(28, 22, 19, 0.94);
  border: 1px solid var(--hearth-line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.map-label p {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--ash);
}

.map-label strong {
  display: block;
  color: var(--cream);
  font-size: 1.05rem;
}

.map-label .btn {
  min-height: 2.5rem;
  padding: 0.35rem 1rem;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #15100e;
  color: var(--ash);
  font-size: 1rem;
}

.site-footer .wrap {
  display: grid;
  gap: 2rem;
  padding-block: 3rem;
}

@media (min-width: 760px) {
  .site-footer .wrap {
    grid-template-columns: auto 1fr 1fr 1fr;
    gap: 3rem;
  }
}

.site-footer h2 {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.35rem;
}

.site-footer a {
  color: var(--cream);
}

.copyright {
  padding-bottom: 1.5rem;
  font-size: 0.9rem;
}

.copyright p {
  margin: 0;
  max-width: none;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hearth-line);
}

/* ---------- Mobile action bar ---------- */

.action-bar {
  display: none;
}

@media (max-width: 760px) {
  :root {
    --bar-h: 4.25rem;
  }

  .action-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--hearth);
    border-top: 1px solid var(--hearth-line);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .action-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: var(--bar-h);
    color: var(--cream);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
  }

  .action-bar a + a {
    border-left: 1px solid var(--hearth-line);
  }

  .action-bar svg {
    width: 1.4rem;
    height: 1.4rem;
    color: var(--flame);
  }
}

/* ---------- Menu page ---------- */

.menu-hero {
  padding-block: 3.5rem 2rem;
}

.menu-hero h1 {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  margin-bottom: 0.75rem;
}

.menu-hero p {
  color: var(--ash);
}

.menu-nav {
  position: sticky;
  top: var(--header-h, 4.25rem);
  z-index: 40;
  background: var(--smoke);
  border-block: 1px solid var(--hearth-line);
}

.menu-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0.6rem var(--gutter);
  max-width: var(--wrap);
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu-nav ul::-webkit-scrollbar {
  display: none;
}

.menu-nav a {
  display: block;
  white-space: nowrap;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--hearth-line);
  border-radius: 999px;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.98rem;
}

.menu-nav a:hover,
.menu-nav a.is-active {
  background: var(--flame);
  border-color: var(--flame);
  color: var(--smoke);
}

.menu-body {
  padding-block: 2.5rem 5rem;
}

.menu-section {
  padding-top: 2.5rem;
  max-width: 46rem;
}

.menu-section h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.5rem);
  margin-bottom: 0.25rem;
}

.menu-section > p {
  color: var(--ash);
  margin-bottom: 1.25rem;
}

.menu-section.featured {
  max-width: none;
  background: var(--hearth);
  border-radius: var(--radius);
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
  margin-top: 1rem;
}

.menu-section.featured .dish-list {
  max-width: 46rem;
}

.menu-section .dish-name {
  font-size: 1.3rem;
}

.veg {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.2rem 0.35rem;
  border: 1.5px solid var(--flag-green);
  color: #7fcf97;
  border-radius: 3px;
  vertical-align: 0.3em;
  margin-left: 0.35rem;
}

.menu-footnote {
  margin-top: 3rem;
  color: var(--ash);
}

/* Print the menu on white paper without the page chrome. */
@media print {
  body {
    background: #fff;
    color: #000;
    padding: 0;
  }
  .site-header,
  .site-footer,
  .action-bar,
  .menu-nav,
  .flags,
  .skip-link {
    display: none !important;
  }
  .menu-section.featured {
    background: none;
    padding: 0;
  }
  .price,
  .dish-desc,
  .menu-section > p,
  .menu-hero p {
    color: #000;
  }
  .menu-section {
    break-inside: avoid;
  }
}
