/* Cafe Grillz — Model Town, Karnal */

:root {
  --ink: #0b0908;
  --ink-2: #141010;
  --surface: #1c1613;
  --surface-2: #241c18;
  --line: rgba(232, 176, 106, 0.16);
  --cream: #f6ede1;
  --muted: #a4968a;
  --gold: #e8b06a;
  --gold-soft: #f3d3a5;
  --ember: #c7602f;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --max: 1180px;
}

* { box-sizing: border-box; }

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

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

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

.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: .01em; margin: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.section-title { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 58ch; }

section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  border: 0;
  margin: 0;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  transition: background .35s ease, backdrop-filter .35s ease, padding .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(11, 9, 8, .86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-block: .75rem;
}
.nav__logo { height: 30px; width: auto; opacity: .95; transition: height .35s ease; }
.nav.solid .nav__logo { height: 26px; }
.nav__links { display: flex; gap: 1.6rem; align-items: center; }
.nav__links a {
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .78;
  transition: opacity .2s, color .2s;
}
.nav__links a:hover { opacity: 1; color: var(--gold); }
.nav__cta {
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: .55rem 1.2rem !important;
  opacity: 1 !important;
  color: var(--gold) !important;
}
.nav__cta:hover { background: var(--gold); color: var(--ink) !important; }
@media (max-width: 860px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 7rem var(--pad) 4rem;
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  /* framed on the lit doorway, not the signboard — the sign is the logo above */
  background: url("assets/hero.jpg") center 68% / cover no-repeat;
  transform: scale(1.06);
  filter: saturate(1.02) brightness(1.18);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(118% 76% at 50% 42%, rgba(11, 9, 8, .28) 0%, rgba(11, 9, 8, .68) 55%, rgba(11, 9, 8, .96) 100%),
    linear-gradient(to bottom, rgba(11, 9, 8, .78), rgba(11, 9, 8, .3) 32%, rgba(11, 9, 8, .94));
}
/* narrow viewports crop to height, which would put the real signboard behind the
   logo lockup — swap in a doorway-only crop instead */
@media (max-width: 900px) {
  .hero__bg { background-image: url("assets/hero-mobile.jpg"); background-position: center 60%; }
}
.hero__inner { position: relative; z-index: 2; max-width: 780px; }
.hero__logo {
  width: min(78vw, 520px);
  margin: 0 auto 1.1rem;
  filter: drop-shadow(0 0 42px rgba(232, 176, 106, .35));
}
.hero__tag {
  font-size: .78rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 2rem;
}
.hero__line {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.4vw, 2.1rem);
  line-height: 1.35;
  color: var(--cream);
  margin: 0 auto 2.4rem;
  max-width: 24ch;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: center;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.4rem;
}
.hero__meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero__meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

.btns { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .92rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: background .22s, color .22s, transform .22s;
}
.btn:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.btn--solid { background: var(--gold); color: var(--ink); }
.btn--solid:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn--ghost { border-color: rgba(246, 237, 225, .3); color: var(--cream); }
.btn--ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.scroll-cue {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  font-size: .64rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  display: grid;
  justify-items: center;
  gap: .6rem;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- facts strip ---------- */

.facts { background: var(--ink-2); border-block: 1px solid var(--line); padding: 0; }
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.facts__grid > div { padding: 2.2rem 1rem; border-left: 1px solid var(--line); }
.facts__grid > div:first-child { border-left: 0; }
.facts b { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--gold-soft); font-weight: 500; }
.facts small { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.facts .star { font-family: var(--sans); font-style: normal; font-size: .55em; margin-left: .22em; color: var(--gold); vertical-align: .18em; }
@media (max-width: 720px) {
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .facts__grid > div:nth-child(3) { border-left: 0; }
  .facts__grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- about ---------- */

.about__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about__copy p { color: var(--muted); }
.about__copy p.first::first-letter {
  font-family: var(--serif);
  font-size: 3.6rem;
  line-height: .8;
  float: left;
  padding: .12em .14em 0 0;
  color: var(--gold);
}
.about__media { position: relative; }
.about__media img { border-radius: 4px; }
.about__media .stack-a { box-shadow: 0 30px 70px rgba(0, 0, 0, .6); }
.about__media .stack-b {
  position: absolute;
  width: 44%;
  right: -5%;
  bottom: -4%;
  border: 6px solid var(--ink);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .7);
}
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  /* stack them properly rather than overlapping in a narrow column */
  .about__media { display: grid; gap: .7rem; }
  .about__media .stack-b { position: static; width: 100%; border: 0; box-shadow: none; }
}

/* ---------- signatures ---------- */

.sig { background: var(--ink-2); }
.sig__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.sig__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3 / 4;
  background: var(--surface);
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .6s;
  filter: brightness(.86);
}
.card:hover img { transform: scale(1.06); filter: brightness(1); }
.card__body {
  position: absolute;
  inset: auto 0 0;
  padding: 1.4rem;
  background: linear-gradient(transparent, rgba(11, 9, 8, .92) 62%);
}
.card__body h3 { font-size: 1.32rem; }
.card__body p { margin: .3rem 0 0; font-size: .82rem; color: var(--muted); }

/* ---------- menu ---------- */

.menu__head { text-align: center; margin-bottom: 2.6rem; }
.menu__head .lede { margin-inline: auto; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: .52rem 1.1rem;
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .22s;
}
.tab:hover { color: var(--cream); border-color: rgba(232, 176, 106, .45); }
.tab[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.panel { display: none; }
.panel[data-active] { display: block; animation: fade .45s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.panel__group + .panel__group { margin-top: 2.6rem; }
.panel__group h4 {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
}
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .2rem 2.4rem; }
.item { display: flex; align-items: baseline; gap: .7rem; padding: .62rem 0; border-bottom: 1px dashed rgba(246, 237, 225, .07); }
.item__name { font-size: .97rem; }
.dot { flex: none; width: 11px; height: 11px; border: 1.5px solid #4c9a55; border-radius: 2px; position: relative; translate: 0 1px; }
.dot::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: #4c9a55; }
.dot--nv { border-color: #b4452f; }
.dot--nv::after { background: #b4452f; }

.menu__note { text-align: center; margin-top: 3rem; color: var(--muted); font-size: .85rem; }

/* ---------- gallery ---------- */

.space { background: var(--ink-2); }
/* uniform tiles: no masonry holes, no ragged bottom edge */
.gal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .7rem;
  margin-top: 3rem;
}
.gal figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface);
}
.gal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.88);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .5s;
}
.gal figure:hover img { transform: scale(1.06); filter: brightness(1.05); }
@media (max-width: 1000px) { .gal { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .gal { grid-template-columns: repeat(2, 1fr); } }

/* ---------- ratings ---------- */

.rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-top: 3rem; }
.rate {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.7rem 1.4rem;
  text-align: center;
}
.rate b { display: block; font-family: var(--serif); font-size: 2.5rem; color: var(--gold-soft); font-weight: 500; line-height: 1; }
.rate .stars { color: var(--gold); letter-spacing: .12em; font-size: .85rem; margin: .5rem 0 .7rem; }
.rate span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- visit ---------- */

.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.info { display: grid; gap: 1.8rem; margin: 2.4rem 0; }
.info__row { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: start; }
.info__row dt { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); padding-top: .3rem; }
.info__row dd { margin: 0; color: var(--cream); }
.info__row dd small { display: block; color: var(--muted); font-size: .84rem; }
.info a { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--line); }
.info a:hover { color: var(--gold); border-color: var(--gold); }
.map { border-radius: 4px; overflow: hidden; border: 1px solid var(--line); min-height: 460px; }
/* invert + hue-rotate turns the light OSM tiles into a dark-mode map */
.map iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
  filter: invert(.92) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.7);
}
@media (max-width: 860px) { .visit__grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */

footer { background: var(--ink-2); border-top: 1px solid var(--line); padding: 4rem 0 2.4rem; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.foot__logo { width: 190px; opacity: .8; }
.foot__social { display: flex; gap: 1.4rem; }
.foot__social a { color: var(--muted); text-decoration: none; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.foot__social a:hover { color: var(--gold); }
.foot__legal {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: .74rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card img, .gal img { transition: none; }
  .scroll-cue::after { animation: none; }
}
