/* ==========================================================================
   Mani Al Injaz: design system + homepage styles
   Structure:
   1. Tokens          5. Hero              9. Why us        13. Visit
   2. Base            6. Intro             10. Experience   14. Footer
   3. Shared parts    7. Signature dishes  11. Gallery      15. Lightbox
   4. Header          8. Menu categories   12. Reserve       16. Motion prefs
   Future pages reuse sections 1-4 and 14 unchanged.
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --ivory: #f6f0e3;
  --cream: #ede4d0;
  --charcoal: #1c1a18;
  --charcoal-soft: #2a2724;
  --olive: #3d4527;
  --olive-deep: #2b301c;
  --gold: #b8955a;
  --gold-dark: #7d5f2b;     /* gold for text on ivory (passes contrast) */
  --gold-soft: #d9bd8c;     /* gold for text on dark */
  --ink-muted: #5b554c;

  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --section-y: clamp(4.5rem, 10vw, 9rem);
  --header-h: 84px;
}

/* 2. BASE ------------------------------------------------------------------ */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 10px); }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; }
p { max-width: 62ch; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }

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

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 2000;
  background: var(--gold); color: var(--charcoal);
  padding: .6rem 1rem; text-decoration: none; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* 3. SHARED PARTS ---------------------------------------------------------- */
.section { padding-block: var(--section-y); position: relative; }
.section--cream { background: var(--cream); }
.section--olive { background: var(--olive); color: var(--ivory); }
.section--charcoal { background: var(--charcoal); color: var(--ivory); }

.display-title {
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -.012em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.display-title--light { color: var(--ivory); }

.label {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .95rem; font-weight: 500; color: var(--gold-dark);
  margin-bottom: 1.1rem;
}
.label::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; }

.lead-text { font-size: 1.25rem; line-height: 1.65; color: var(--charcoal); }
.on-dark { color: rgba(246, 240, 227, .78); }

.text-link {
  display: inline-block; font-weight: 600; text-decoration: none;
  padding-bottom: .2rem; margin-top: .75rem;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .35s var(--ease), color .2s;
}
.text-link:hover { background-size: 40% 1px; color: var(--gold-dark); }
.text-link--light:hover { color: var(--gold-soft); }

.inline-link { color: var(--gold-soft); text-underline-offset: 3px; }
.inline-link:hover { color: var(--ivory); }

/* Buttons */
.btn { --bs-btn-border-radius: 0; font-weight: 600; letter-spacing: .01em; padding: .8rem 1.75rem; transition: all .25s var(--ease); }
.btn-lg { padding: 1rem 2.1rem; font-size: 1rem; }
.btn-gold { background: var(--gold); border: 1px solid var(--gold); color: var(--charcoal); }
.btn-gold:hover, .btn-gold:focus-visible { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--charcoal); }
.btn-ghost { background: transparent; border: 1px solid rgba(246, 240, 227, .6); color: var(--ivory); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
.btn-outline-dark-custom { background: transparent; border: 1px solid var(--charcoal); color: var(--charcoal); }
.btn-outline-dark-custom:hover, .btn-outline-dark-custom:focus-visible { background: var(--charcoal); color: var(--ivory); }

.icon-btn {
  width: 3.25rem; height: 3.25rem; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--charcoal); color: var(--charcoal);
  border-radius: 50%; font-size: 1.1rem; transition: all .25s var(--ease);
}
.icon-btn:hover:not(:disabled) { background: var(--charcoal); color: var(--ivory); }
.icon-btn:disabled { opacity: .35; cursor: default; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.section-head--stack { align-items: flex-end; }
.section-head__note { color: var(--ink-muted); max-width: 34ch; margin: 0 0 1.5rem; font-size: .95rem; }
.carousel-controls { display: flex; gap: .75rem; }

/* Image slots. Add an <img> inside any .media to replace its placeholder. */
.media { position: relative; overflow: hidden; background: var(--charcoal-soft); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.ph {
  --ph-fg: rgba(246, 240, 227, .85);
  background-color: var(--charcoal-soft);
}
.ph::before {            /* soft film grain */
  content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.ph::after {             /* placeholder caption */
  content: attr(data-ph);
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  font-size: .78rem; line-height: 1.4; color: var(--ph-fg);
  padding-top: .6rem; border-top: 1px solid currentColor; opacity: .85;
}
.ph:has(img)::after, .ph:has(img)::before { display: none; }

.ph--hero  { background: radial-gradient(70% 90% at 72% 35%, #6b4a28 0%, transparent 60%), radial-gradient(60% 80% at 15% 90%, #3d4527 0%, transparent 65%), linear-gradient(160deg, #26211b, #14120f); }
.ph--olive { background: radial-gradient(90% 70% at 30% 20%, #6a7541 0%, transparent 70%), linear-gradient(170deg, #4a5430, #262b17); }
.ph--ember { background: radial-gradient(80% 70% at 65% 25%, #a8672f 0%, transparent 70%), linear-gradient(165deg, #5b3318, #2a160a); }
.ph--char  { background: radial-gradient(80% 60% at 40% 30%, #4a443d 0%, transparent 70%), linear-gradient(165deg, #2f2b27, #131110); }
.ph--sand  { --ph-fg: rgba(28, 26, 24, .8); background: radial-gradient(80% 70% at 30% 25%, #f1e6cb 0%, transparent 70%), linear-gradient(165deg, #d8c7a2, #bba57a); }

/* The arch is the brand shape: it echoes the logo mark. */
.arch { border-radius: 999px 999px 0 0; }

/* 4. HEADER ---------------------------------------------------------------- */
.site-header {
  --nav-fg: var(--ivory);
  position: fixed; inset: 0 0 auto 0; z-index: 1030;
  height: var(--header-h);
  display: flex; align-items: center;
  color: var(--nav-fg);
  transition: background-color .35s, box-shadow .35s, height .35s, color .35s;
}
.site-header .navbar { width: 100%; padding: 0; }
.site-header.is-scrolled {
  --nav-fg: var(--charcoal);
  --header-h: 72px;
  background: rgba(246, 240, 227, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(28, 26, 24, .1);
}

.brand { display: inline-flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; }
.logo-mark { width: 30px; height: 36px; color: var(--gold); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: .01em; }
.brand__sub { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; margin-top: .35rem; opacity: .75; }

.site-header .nav-link {
  color: var(--nav-fg); font-weight: 500; font-size: .98rem; padding: .4rem 0;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat;
  transition: background-size .35s var(--ease), color .2s;
}
.site-header .nav-link:hover, .site-header .nav-link.active { background-size: 100% 1px; color: var(--nav-fg); }

.nav-toggle {
  width: 46px; height: 46px; background: transparent; border: 0; color: inherit;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 7px; padding: 0;
}
.nav-toggle span { display: block; height: 1.5px; background: currentColor; }
.nav-toggle span:first-child { width: 28px; }
.nav-toggle span:last-child { width: 18px; transition: width .25s var(--ease); }
.nav-toggle:hover span:last-child { width: 28px; }

/* mobile drawer */
.site-header .offcanvas { background: var(--charcoal); color: var(--ivory); --bs-offcanvas-width: min(86vw, 380px); }
.site-header .offcanvas-body { padding: 2rem 1.75rem; }
.site-header .offcanvas .navbar-nav { gap: .5rem; }
.site-header .offcanvas .nav-link { color: var(--ivory); font-family: var(--font-display); font-size: 1.9rem; }

@media (min-width: 992px) {
  .site-header .offcanvas { background: transparent; color: inherit; }
  .site-header .offcanvas-body { padding: 0; display: flex; }
  .site-header .offcanvas .nav-link { font-family: var(--font-body); font-size: .98rem; color: var(--nav-fg); }
}

/* 5. HERO ------------------------------------------------------------------ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--ivory); overflow: hidden; background: var(--charcoal);
}
.hero__media { position: absolute; inset: 0; animation: heroZoom 18s ease-out both; }
.hero__media::after { display: none; }   /* keep hero caption out of the headline area */
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(20, 18, 15, .88) 0%, rgba(20, 18, 15, .25) 55%, rgba(20, 18, 15, .55) 100%);
}
.hero__inner { position: relative; padding-block: calc(var(--header-h) + 3rem) clamp(4.5rem, 9vw, 7rem); }
.hero__copy { max-width: 62rem; }
.hero__kicker { font-size: 1.05rem; color: var(--gold-soft); margin-bottom: 1rem; }
.hero__title {
  font-size: clamp(3.8rem, 13vw, 10.5rem); line-height: .92; letter-spacing: -.025em;
  margin-bottom: 2rem;
}
.hero__line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__line > span { display: block; }
.hero__lead { font-size: 1.2rem; color: rgba(246, 240, 227, .85); max-width: 40ch; margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll {
  position: absolute; right: clamp(1rem, 4vw, 3rem); bottom: 2.5rem; z-index: 1;
  display: none; flex-direction: column; align-items: center; gap: .75rem;
  color: var(--ivory); text-decoration: none; font-size: .8rem; writing-mode: vertical-rl;
}
.hero__scroll-line { width: 1px; height: 64px; background: linear-gradient(var(--gold), transparent); }
@media (min-width: 992px) { .hero__scroll { display: flex; } }

/* The one orchestrated entrance on the page */
.js .hero__line > span { transform: translateY(108%); animation: rise 1.1s var(--ease) forwards; }
.js .hero__line:nth-child(2) > span { animation-delay: .14s; }
.js .hero__kicker, .js .hero__lead, .js .hero__actions { opacity: 0; animation: fadeIn .9s ease forwards; }
.js .hero__kicker { animation-delay: .1s; }
.js .hero__lead { animation-delay: .55s; }
.js .hero__actions { animation-delay: .75s; }
@keyframes rise { to { transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* 6. INTRO ----------------------------------------------------------------- */
.intro__images { position: relative; padding-bottom: 14%; padding-right: 8%; }
.intro__main { width: 82%; aspect-ratio: 3 / 4; margin-left: auto; }
.intro__small {
  position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 1 / 1.15;
  border: 8px solid var(--ivory); border-bottom: 0;
}

/* Arch images open upward as they enter view */
.js .arch-reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); }
.js .arch-reveal.is-visible { clip-path: inset(0 0 0 0); }

/* 7. SIGNATURE DISHES ------------------------------------------------------ */
.signature { --gutter: max(1rem, calc((100vw - 1320px) / 2 + 1rem)); overflow: hidden; }
@media (min-width: 992px) { .signature { --gutter: max(3rem, calc((100vw - 1320px) / 2 + 3rem)); } }
.dish-track {
  display: flex; gap: clamp(1rem, 2.5vw, 2rem);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  padding-bottom: 1.5rem; scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.dish { flex: 0 0 clamp(250px, 27vw, 350px); scroll-snap-align: start; }
.dish__img { aspect-ratio: 4 / 5; margin-bottom: 1.25rem; }
.dish__img::before, .dish__img::after { transition: transform .8s var(--ease); }
.dish:hover .dish__img img, .dish:hover .dish__img::before { transform: scale(1.04); }
.dish__name { font-size: 1.55rem; margin-bottom: .35rem; }
.dish__desc { color: var(--ink-muted); font-size: .98rem; margin: 0; }

/* 8. MENU CATEGORIES ------------------------------------------------------- */
.cat-list { border-top: 1px solid rgba(28, 26, 24, .2); margin: 0; }
.cat {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .25rem 2rem;
  padding: clamp(1.5rem, 3vw, 2.4rem) 0; text-decoration: none;
  border-bottom: 1px solid rgba(28, 26, 24, .2);
  transition: padding-left .4s var(--ease), color .25s;
}
.cat__name { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; }
.cat__desc { grid-column: 1; color: var(--ink-muted); font-size: .98rem; }
.cat__icon { grid-column: 2; grid-row: 1 / span 2; font-size: 1.6rem; color: var(--gold-dark); transition: transform .4s var(--ease); }
.cat:hover { padding-left: 1.25rem; color: var(--olive); }
.cat:hover .cat__icon { transform: translate(4px, -4px); }
@media (min-width: 768px) {
  .cat { grid-template-columns: minmax(260px, 1.1fr) 1.4fr auto; }
  .cat__desc { grid-column: 2; }
  .cat__icon { grid-column: 3; grid-row: 1; }
}

/* 9. WHY US ---------------------------------------------------------------- */
.reason { border-top: 1px solid rgba(217, 189, 140, .5); padding-top: 1.5rem; height: 100%; }
.reason i { font-size: 1.7rem; color: var(--gold-soft); }
.reason h3 { font-size: 1.6rem; margin: 1rem 0 .5rem; }
.reason p { color: rgba(246, 240, 227, .75); font-size: 1rem; margin: 0; }

/* 10. EXPERIENCE ----------------------------------------------------------- */
.exp__tall { aspect-ratio: 3 / 4.2; height: 100%; min-height: 100%; width: 100%; }
.exp__wide { aspect-ratio: 16 / 9; width: 100%; margin-bottom: 1.5rem; }
.exp__small { aspect-ratio: 4 / 3; }
@media (max-width: 767.98px) { .exp__tall { aspect-ratio: 3 / 4; height: auto; } }

/* 11. GALLERY -------------------------------------------------------------- */
.gallery-grid {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: clamp(150px, 38vw, 240px);
}
.g { padding: 0; border: 0; background: none; display: block; overflow: hidden; cursor: zoom-in; position: relative; }
.g .media { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.g:hover .media { transform: scale(1.05); }
.g--a { grid-column: span 2; grid-row: span 2; }

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(170px, 18vw, 250px); gap: 1rem; }
  .g--a { grid-column: 1 / 6;  grid-row: 1 / 3; }
  .g--b { grid-column: 6 / 10; grid-row: 1 / 2; }
  .g--c { grid-column: 10 / 13; grid-row: 1 / 3; }
  .g--d { grid-column: 6 / 10; grid-row: 2 / 3; }
  .g--e { grid-column: 1 / 5;  grid-row: 3 / 4; }
  .g--f { grid-column: 5 / 13; grid-row: 3 / 4; }
}

/* 12. RESERVE -------------------------------------------------------------- */
.reserve { background: var(--ivory); padding-block: clamp(3rem, 7vw, 6rem); }
.reserve__panel {
  background: var(--olive-deep); color: var(--ivory);
  padding: clamp(2rem, 6vw, 5rem);
  border-top: 3px solid var(--gold);
}
.reserve__form .form-label { font-size: .9rem; font-weight: 500; color: var(--gold-soft); margin-bottom: .4rem; }
.reserve__form .optional { color: rgba(246, 240, 227, .55); font-weight: 400; }
.reserve__form .form-control, .reserve__form .form-select {
  background-color: rgba(246, 240, 227, .06); border: 1px solid rgba(246, 240, 227, .25);
  color: var(--ivory); border-radius: 0; padding: .8rem 1rem; color-scheme: dark;
}
.reserve__form .form-select { --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f6f0e3' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.reserve__form option { color: var(--charcoal); background: var(--ivory); }
.reserve__form .form-control:focus, .reserve__form .form-select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(184, 149, 90, .3); background-color: rgba(246, 240, 227, .1);
}
.reserve__form .invalid-feedback { color: #ffb4a8; }
.reserve__form.was-validated .form-control:invalid, .reserve__form.was-validated .form-select:invalid { border-color: #ff8f7e; }
.form-status { font-size: .98rem; color: var(--gold-soft); }
.form-status.is-error { color: #ffb4a8; }

/* 13. VISIT ---------------------------------------------------------------- */
.info-block { margin-bottom: 2rem; }
.info-block h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.info-block i { color: var(--gold-dark); margin-right: .4rem; }
.info-block a { text-decoration-color: rgba(28, 26, 24, .3); text-underline-offset: 3px; }
.info-block a:hover { color: var(--olive); }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgba(28, 26, 24, .15); max-width: 26rem; }
.hours li span:last-child { color: var(--ink-muted); }
.map { min-height: 420px; height: 100%; border: 0; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 14. FOOTER --------------------------------------------------------------- */
.site-footer { background: var(--charcoal); color: var(--ivory); padding-top: clamp(3.5rem, 7vw, 6rem); }
.brand--footer .brand__name { font-size: 1.9rem; }
.footer__blurb { max-width: 36ch; }
.footer__title { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--gold-soft); margin-bottom: 1.1rem; }
.footer__links li { margin-bottom: .6rem; }
.footer__links a { text-decoration: none; color: rgba(246, 240, 227, .8); transition: color .2s; }
.footer__links a:hover { color: var(--gold-soft); }
.footer__links i { margin-right: .4rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem); padding-block: 1.75rem;
  border-top: 1px solid rgba(246, 240, 227, .15); font-size: .9rem; color: rgba(246, 240, 227, .6);
}
.to-top { text-decoration: none; color: var(--ivory); }
.to-top:hover { color: var(--gold-soft); }

/* 15. LIGHTBOX ------------------------------------------------------------- */
#lightbox .modal-content { background: transparent; border: 0; }
#lightbox .modal-body > * { max-height: 85vh; width: 100%; }
#lightbox .modal-body .media { aspect-ratio: 3 / 2; }
#lightbox .modal-body img { position: static; height: auto; max-height: 85vh; object-fit: contain; }
.lightbox__close { position: absolute; right: .5rem; top: -2.75rem; z-index: 2; }
.modal-backdrop.show { --bs-backdrop-opacity: .9; }

/* 16. MOTION PREFERENCES --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .js .hero__line > span, .js .hero__kicker, .js .hero__lead, .js .hero__actions { opacity: 1; transform: none; }
  .js .arch-reveal { clip-path: none; }
}
