/* =========================================================
   N.P. Fast Food — Stylesheet
   Design language: deep maroon + gold, warm cream, printed-menu
   inspired typography with dotted price leaders.
   ========================================================= */

:root {
  /* Colour tokens — drawn from the restaurant's red/yellow identity */
  --maroon: #7C1B1B;
  --maroon-dark: #591111;
  --maroon-deep: #440d0d;
  --gold: #E0A526;
  --gold-dark: #B9820E;
  --cream: #FBF3E4;
  --cream-warm: #F3E6CC;
  --ink: #2A1B12;
  --ink-soft: #5A4636;
  --green: #3E7A3E;
  --egg: #C9821F;
  --nonveg: #8E2323;
  --white: #FFFDF9;

  --font-display: 'Rozha One', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-card: 0 1px 2px rgba(42, 27, 18, 0.06), 0 4px 14px rgba(42, 27, 18, 0.08);
  --shadow-card-hover: 0 2px 4px rgba(42, 27, 18, 0.1), 0 10px 24px rgba(42, 27, 18, 0.14);

  --header-h: 68px;
  --mobile-nav-h: 62px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  color: var(--maroon-deep);
}

p { margin: 0; }

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--maroon);
  color: var(--white);
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

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

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold);
  color: var(--maroon-deep);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover {
  background: var(--gold-dark);
  box-shadow: var(--shadow-card-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: rgba(251, 243, 228, 0.55);
}
.btn-secondary:hover {
  border-color: var(--cream);
  background: rgba(251, 243, 228, 0.08);
}

.btn-large {
  padding: 16px 34px;
  font-size: 1.05rem;
}

.icon-phone, .icon-pin, .icon-search {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  background: var(--maroon);
  border-bottom: 3px solid var(--gold);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--maroon-deep);
  font-family: var(--font-display);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--cream);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.header-call {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--maroon-deep);
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  transition: background 0.15s ease;
}
.header-call:hover { background: var(--gold-dark); }

@media (max-width: 860px) {
  .main-nav { display: none; }
}

@media (max-width: 500px) {
  .brand-sub { display: none; }
  .header-call span { display: none; }
  .header-call { padding: 9px; border-radius: 50%; width: 38px; height: 38px; }
  .header-call .icon-phone { width: 17px; height: 17px; }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--maroon-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(36, 24, 16, 0.35) 0%, rgba(36, 24, 16, 0.55) 45%, rgba(20, 13, 9, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 56px;
  width: 100%;
}

.hero-eyebrow {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-title {
  color: var(--cream);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin-bottom: 10px;
}

.hero-tagline {
  color: var(--cream-warm);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-style: italic;
  margin-bottom: 28px;
  max-width: 32em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-address {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cream-warm);
  font-size: 0.92rem;
}
.hero-address .icon-pin { color: var(--gold); }

@media (max-width: 640px) {
  .hero { min-height: 86vh; align-items: flex-end; }
  .hero-content { padding: 32px 20px 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* Real photo slots for the hero and about section. The <img> stays hidden
   until script.js confirms the file actually loaded; if it 404s, the
   placeholder underneath keeps showing instead of a broken-image icon. */
.site-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.site-photo.is-loaded {
  display: block;
}

/* Food placeholder tiles — used everywhere a real photo isn't dropped in yet.
   Kept deliberately quiet and neutral (no red/gradient pattern) so it
   never reads as an error state — just a flat, on-brand "photo pending"
   tile with a faint icon and a small corner tag. */
.hero-placeholder,
.about-placeholder,
.food-card-image .placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  background: #4A3D33;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.placeholder-emblem {
  width: 30%;
  max-width: 80px;
  min-width: 36px;
  height: auto;
  color: rgba(251, 243, 228, 0.14);
  fill: currentColor;
}

.placeholder-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 13, 9, 0.55);
  border: 1px solid rgba(251, 243, 228, 0.2);
  color: rgba(251, 243, 228, 0.8);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
  max-width: calc(100% - 28px);
}

.placeholder-tag svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  flex: none;
  opacity: 0.9;
}

.placeholder-tag span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The hero's real copy (title, tagline, address) sits bottom-left, so keep
   the placeholder tag up in the top-right corner there instead. */
.hero-placeholder .placeholder-tag {
  left: auto;
  right: 14px;
  bottom: auto;
  top: 14px;
}

/* Inside a food card the box is smaller — scale the tag down and keep the
   emblem modest so it never overwhelms the card. */
.food-card-image .placeholder .placeholder-emblem {
  width: 26%;
}
.food-card-image .placeholder .placeholder-tag {
  font-size: 0.62rem;
  left: 10px;
  bottom: 10px;
  padding: 4px 9px 4px 7px;
}

/* =========================================================
   MENU SECTION
   ========================================================= */

.menu-section {
  padding: 68px 0 76px;
}

.menu-heading {
  text-align: center;
  margin-bottom: 34px;
}

.menu-heading h2 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin-bottom: 8px;
}

.menu-sub {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.menu-controls {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: var(--cream);
  padding: 14px 0 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(122, 27, 27, 0.12);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid rgba(122, 27, 27, 0.18);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  max-width: 440px;
  margin: 0 auto 16px;
}

.search-field:focus-within {
  border-color: var(--maroon);
}

.icon-search { color: var(--maroon); }

.search-field input {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  width: 100%;
  color: var(--ink);
}

.category-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.category-bar::-webkit-scrollbar { height: 5px; }
.category-bar::-webkit-scrollbar-thumb { background: rgba(122,27,27,0.25); border-radius: 4px; }

.cat-btn {
  flex: none;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(122, 27, 27, 0.25);
  background: var(--white);
  color: var(--maroon-deep);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cat-btn:hover {
  border-color: var(--maroon);
}

.cat-btn[aria-selected="true"] {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--cream);
}

.legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 14px 0 8px;
  flex-wrap: wrap;
}

.legend span { display: inline-flex; align-items: center; gap: 6px; }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  border: 1.5px solid currentColor;
}
.dot-veg { background: var(--white); border-color: var(--green); position: relative; }
.dot-veg::after { content:""; position:absolute; inset:2px; background: var(--green); border-radius: 1px; }
.dot-egg { background: var(--white); border-color: var(--egg); position: relative; }
.dot-egg::after { content:""; position:absolute; inset:2px; background: var(--egg); border-radius: 1px; }
.dot-nonveg { background: var(--white); border-color: var(--nonveg); position: relative; }
.dot-nonveg::after { content:""; position:absolute; inset:2px; background: var(--nonveg); border-radius: 1px; }

.menu-empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 40px 0;
  font-size: 1.02rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
  margin-top: 18px;
}

/* Category groups (rendered when "All" is active) */
.category-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
}
@supports not (grid-template-columns: subgrid) {
  .category-group {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
  }
}

.category-group-title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 1.4rem;
  margin: 26px 0 4px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}
.category-group:first-child .category-group-title { margin-top: 4px; }

/* =========================================================
   FOOD CARD
   ========================================================= */

.food-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.food-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.food-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-warm);
  position: relative;
}

.food-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.food-card:hover .food-card-image img {
  transform: scale(1.05);
}

.food-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.food-card-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.food-card-top .dot {
  margin-top: 6px;
  flex: none;
}

.food-card-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.03rem;
  color: var(--ink);
  line-height: 1.3;
}

/* Dotted price leader — signature detail echoing a printed menu card */
.food-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}

.food-card-leader {
  flex: 1;
  border-bottom: 2px dotted rgba(122, 27, 27, 0.35);
  height: 0;
  margin-bottom: 5px;
  min-width: 12px;
}

.food-card-price {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--maroon);
  font-size: 1.05rem;
  white-space: nowrap;
}

/* =========================================================
   ABOUT
   ========================================================= */

.about-section {
  background: var(--white);
  padding: 70px 0;
  border-top: 1px solid rgba(122, 27, 27, 0.1);
  border-bottom: 1px solid rgba(122, 27, 27, 0.1);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.about-media {
  aspect-ratio: 4/3.4;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.about-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.4rem);
  margin-bottom: 18px;
}

.about-copy p {
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

@media (max-width: 780px) {
  .about-inner { grid-template-columns: 1fr; gap: 26px; }
  .about-media { max-width: 420px; margin: 0 auto; width: 100%; }
}

/* =========================================================
   CONTACT / FINAL CTA
   ========================================================= */

.contact-section {
  background: var(--maroon-deep);
  padding: 76px 0 96px;
  text-align: center;
  position: relative;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}

.contact-inner h2 {
  color: var(--cream);
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  margin-bottom: 10px;
}

.contact-lead {
  color: var(--cream-warm);
  font-size: 1.08rem;
  margin-bottom: 22px;
  display: block;
}

.contact-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.contact-phone:hover { border-color: var(--gold); }

.contact-address {
  color: var(--cream-warm);
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 1rem;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: var(--maroon);
  padding: 26px 0 calc(26px + var(--mobile-nav-h));
  color: var(--cream-warm);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.15rem;
  display: block;
  margin-bottom: 4px;
}

.footer-phone {
  color: var(--gold);
  font-weight: 600;
  border: 1.5px solid var(--gold);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}
.footer-phone:hover { background: var(--gold); color: var(--maroon-deep); }

@media (min-width: 641px) {
  .site-footer { padding-bottom: 26px; }
}

/* =========================================================
   MOBILE BOTTOM NAV
   ========================================================= */

.mobile-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  height: var(--mobile-nav-h);
  background: var(--white);
  border-top: 1px solid rgba(122, 27, 27, 0.15);
  display: none;
  align-items: stretch;
  justify-content: space-around;
  box-shadow: 0 -2px 10px rgba(42, 27, 18, 0.08);
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 600;
}

.mobile-nav-item svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.mobile-nav-call {
  color: var(--maroon-deep);
  position: relative;
}

.mobile-nav-call { padding-top: 2px; }

@media (max-width: 640px) {
  .mobile-nav { display: flex; }
  body { padding-bottom: var(--mobile-nav-h); }
  .site-footer { padding-bottom: calc(20px + var(--mobile-nav-h)); }
}

/* =========================================================
   REVEAL ANIMATION (restrained)
   ========================================================= */

.food-card {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 0.45s ease forwards;
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .food-card { opacity: 1; transform: none; animation: none; }
}

/* =========================================================
   RESPONSIVE FINE-TUNING
   ========================================================= */

@media (max-width: 400px) {
  .menu-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.4rem; }
}

@media (min-width: 1440px) {
  .section-inner { max-width: 1280px; }
}