/* ==========================================================================
   Abdul Restaurant: core stylesheet
   1. Tokens   2. Base   3. Layout   4. Header & nav   5. Buttons
   6. Forms    7. Sections & editorial blocks   8. Menu   9. Overlays
   10. Checkout   11. Gallery   12. Accordion   13. Footer   14. Motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Palette (brief) */
  --charcoal: #171A18;
  --ivory: #F5EFE3;
  --gold: #B58B50;
  --burgundy: #602D2D;
  --sage: #78806B;

  /* Derived tones */
  --charcoal-2: #212521;
  --charcoal-3: #2C302C;
  --ivory-2: #ECE4D4;
  --ivory-3: #E2D8C4;
  --ink: #171A18;
  --ink-soft: #4A4D46;
  --on-dark: #F5EFE3;
  --on-dark-soft: #C9C2B4;
  --gold-text: #CFA669;          /* gold for small text on charcoal, 7.4:1 */
  --burgundy-deep: #4C2323;
  --line-light: rgba(23, 26, 24, .16);
  --line-dark: rgba(245, 239, 227, .16);
  --error: #9B2C2C;
  --error-on-dark: #F0A3A3;
  --success: #3F5E3A;

  /* Type */
  --font-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --font-body: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-3xl: clamp(2.6rem, 1.6rem + 4.2vw, 5rem);
  --fs-hero: clamp(4.2rem, 1rem + 13vw, 13.5rem);

  /* Space */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem; --sp-9: 7rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1320px;

  /* Shape */
  --r-control: 4px;
  --r-panel: 6px;
  --shadow-panel: 0 24px 60px -20px rgba(10, 12, 10, .45);

  /* Motion tokens */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-micro: 160ms;
  --dur-ui: 260ms;
  --dur-page: 300ms;
  --dur-reveal: 700ms;

  /* Controls */
  --h-sm: 40px; --h-md: 48px; --h-lg: 56px;
  --header-h: 76px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
img[loading], .sig-figure img, .split-media img, .special-media img, .menu-item-thumb img, .cart-line-thumb img, .modal-media img, .mosaic img, .gallery-item img {
  background: linear-gradient(135deg, #3a2a20, #2a2320 60%, #3b3026);
}
img.is-broken { opacity: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
figure { margin: 0; }
p:last-child { margin-bottom: 0; }
ul, ol { padding: 0; margin: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--line-light); margin: var(--sp-6) 0; }
::selection { background: var(--gold); color: var(--charcoal); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.on-light :focus-visible, .section--ivory :focus-visible { outline-color: var(--burgundy); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: .7rem 1rem; background: var(--gold); color: var(--charcoal);
  border-radius: var(--r-control); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform var(--dur-micro) var(--ease-out);
}
.skip-link:focus { transform: none; }

.urdu { font-family: var(--font-urdu); direction: rtl; line-height: 2.2; font-weight: 400; }
.lede { font-size: var(--fs-lg); line-height: 1.55; max-width: 36em; }
.small { font-size: var(--fs-sm); }
.muted { color: var(--ink-soft); }
.section--dark .muted, .section--burgundy .muted, .site-header .muted { color: var(--on-dark-soft); }
.label {
  display: inline-block; font-size: var(--fs-sm); font-weight: 500; letter-spacing: .01em;
  color: var(--burgundy); margin-bottom: var(--sp-4);
}
.section--dark .label, .section--burgundy .label { color: var(--gold-text); }
.serif { font-family: var(--font-display); }
.italic { font-style: italic; }
.price { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--ivory { background: var(--ivory); color: var(--ink); }
.section--paper { background: var(--ivory-2); color: var(--ink); }
.section--dark { background: var(--charcoal); color: var(--on-dark); }
.section--burgundy { background: var(--burgundy); color: var(--on-dark); }
.section-head { display: grid; gap: var(--sp-4); margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 46rem; }
.section-head h2 { font-size: var(--fs-3xl); }
.section-head--split {
  max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: var(--sp-6);
}
.stack > * + * { margin-top: var(--sp-4); }
.rule-gold { width: 64px; height: 1px; background: var(--gold); border: 0; margin: var(--sp-5) 0; }

/* 4. Header & navigation --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: var(--charcoal); color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out);
}
.page-home .site-header { position: fixed; inset: 0 0 auto 0; background: transparent; border-color: transparent; }
.page-home .site-header.is-scrolled { background: rgba(23, 26, 24, .96); border-color: var(--line-dark); }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--sp-5); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--on-dark); flex-shrink: 0; }
.brand-logo { width: 46px; height: 45px; object-fit: contain; background: none; transition: transform var(--dur-ui) var(--ease-out); }
.brand:hover .brand-logo { transform: rotate(-4deg) scale(1.04); }
.brand-text { display: grid; line-height: 1; }
.brand-mark { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: .16em; line-height: 1; }
.brand-sub { font-size: .62rem; letter-spacing: .42em; color: var(--gold-text); margin-top: .3rem; padding-left: .1em; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: clamp(.8rem, 1.6vw, 1.6rem); }
.primary-nav a {
  display: inline-block; padding: .4rem 0; text-decoration: none; font-size: var(--fs-sm);
  color: var(--on-dark-soft); position: relative; transition: color var(--dur-micro) var(--ease-out);
}
.primary-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-ui) var(--ease-out);
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--on-dark); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: var(--sp-3); }
.cart-toggle {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: var(--h-sm); padding: 0 .9rem; border-radius: var(--r-control);
  border: 1px solid var(--line-dark); background: transparent; color: var(--on-dark); font-size: var(--fs-sm);
  transition: border-color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.cart-toggle:hover { border-color: var(--gold); }
.cart-toggle svg { width: 18px; height: 18px; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center;
  background: var(--gold); color: var(--charcoal); font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.cart-count[data-count="0"] { background: var(--charcoal-3); color: var(--on-dark-soft); }
.cart-count.is-bumped { animation: bump var(--dur-ui) var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.25); } }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: var(--r-control);
  background: transparent; color: var(--on-dark); align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative;
  transition: transform var(--dur-ui) var(--ease-out), opacity var(--dur-micro);
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 55; background: var(--charcoal); color: var(--on-dark);
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out), visibility 0s linear var(--dur-ui);
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-nav ul { display: grid; gap: .1rem; }
.mobile-nav a.mobile-link {
  display: block; padding: .35rem 0; font-family: var(--font-display); font-size: clamp(1.9rem, 8vw, 2.6rem);
  text-decoration: none; color: var(--on-dark);
}
.mobile-nav a.mobile-link[aria-current="page"] { color: var(--gold-text); }
.mobile-nav .mobile-foot { margin-top: auto; padding-top: var(--sp-6); display: grid; gap: var(--sp-3); }

/* 5. Buttons --------------------------------------------------------------- */
.btn {
  --btn-bg: var(--charcoal); --btn-fg: var(--ivory); --btn-bd: var(--charcoal);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  height: var(--h-md); padding: 0 1.5rem; min-width: 44px;
  border-radius: var(--r-control); border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: .01em; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out),
              border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.96); transition-duration: 90ms; }
.btn--sm { height: var(--h-sm); padding: 0 1rem; }
.btn--lg { height: var(--h-lg); padding: 0 2rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--charcoal); --btn-bd: var(--gold); }
.btn--gold:hover { --btn-bg: #C69B5E; --btn-bd: #C69B5E; }
.btn--dark:hover { --btn-bg: var(--charcoal-3); --btn-bd: var(--charcoal-3); }
.btn--burgundy { --btn-bg: var(--burgundy); --btn-fg: var(--ivory); --btn-bd: var(--burgundy); }
.btn--burgundy:hover { --btn-bg: var(--burgundy-deep); --btn-bd: var(--burgundy-deep); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--ivory); --btn-bd: rgba(245, 239, 227, .45); }
.btn--ghost-light:hover { --btn-bd: var(--ivory); --btn-bg: rgba(245, 239, 227, .08); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: rgba(23, 26, 24, .35); }
.btn--ghost:hover { --btn-bd: var(--ink); --btn-bg: rgba(23, 26, 24, .04); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--btn-fg); border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Add-to-order button: pill, icon morphs to a check when added */
.btn--add {
  --btn-bg: var(--charcoal); --btn-fg: var(--ivory); --btn-bd: var(--charcoal);
  border-radius: 999px; gap: .45rem; padding: 0 1.05rem 0 .85rem; position: relative; overflow: hidden; isolation: isolate;
  min-width: 104px;
}
.btn--add:hover:not(:disabled) { --btn-bg: var(--burgundy); --btn-bd: var(--burgundy); }
.btn--add.btn--burgundy:hover:not(:disabled) { --btn-bg: var(--burgundy-deep); --btn-bd: var(--burgundy-deep); }
.btn--add-lg { height: var(--h-md); padding: 0 1.4rem 0 1.1rem; }
.btn--add svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform var(--dur-ui) var(--ease-out), opacity var(--dur-micro) var(--ease-out); }
.btn--add .add-check { position: absolute; left: .85rem; opacity: 0; transform: scale(.4) rotate(-20deg); }
.btn--add-lg .add-check { left: 1.1rem; }
.btn--add .add-label, .btn--add .add-done { transition: opacity var(--dur-micro) var(--ease-out), transform var(--dur-ui) var(--ease-out); }
.btn--add .add-done { position: absolute; left: calc(.85rem + 14px + .45rem); opacity: 0; transform: translateY(8px); white-space: nowrap; }
.btn--add-lg .add-done { left: calc(1.1rem + 14px + .45rem); }
.btn--add:hover:not(:disabled) .add-icon { transform: rotate(90deg); }
.btn--add.is-added, .btn--add.is-added:hover:not(:disabled) { --btn-bg: var(--sage); --btn-bd: var(--sage); --btn-fg: #fff; animation: addPop 420ms var(--ease-out); }
.btn--add.is-added .add-icon { opacity: 0; transform: scale(.3) rotate(90deg); }
.btn--add.is-added .add-check { opacity: 1; transform: none; }
.btn--add.is-added .add-label { opacity: 0; transform: translateY(-8px); }
.btn--add.is-added .add-done { opacity: 1; transform: none; }
.btn--add.is-added .add-count { opacity: 0; }
@keyframes addPop { 0% { transform: scale(1); } 35% { transform: scale(.94); } 70% { transform: scale(1.04); } 100% { transform: scale(1); } }
.add-count {
  min-width: 20px; height: 20px; padding: 0 5px; margin-left: .15rem; margin-right: -.45rem; border-radius: 10px; display: inline-grid; place-items: center;
  background: var(--gold); color: var(--charcoal); font-size: .7rem; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: opacity var(--dur-micro);
}
.fly-dot {
  position: fixed; z-index: 150; width: 12px; height: 12px; border-radius: 50%; pointer-events: none;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(181, 139, 80, .3); will-change: transform;
}

.text-link {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; font-size: var(--fs-sm);
  text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .35em; text-decoration-thickness: 1px;
  transition: text-underline-offset var(--dur-micro) var(--ease-out);
}
.text-link:hover { text-underline-offset: .5em; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--r-control);
  border: 1px solid var(--line-light); background: transparent; color: inherit;
  transition: border-color var(--dur-micro) var(--ease-out), background-color var(--dur-micro);
}
.icon-btn:hover { border-color: currentColor; }
.icon-btn svg { width: 18px; height: 18px; }

/* 6. Forms ----------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-5); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-5); }
.form-grid .span-2 { grid-column: 1 / -1; }
.field { display: grid; gap: .45rem; align-content: start; }
.field > label, .field > .field-label, fieldset > legend {
  font-size: var(--fs-sm); font-weight: 500; color: inherit; padding: 0;
}
.field .optional { font-weight: 400; color: var(--ink-soft); }
.section--dark .field .optional { color: var(--on-dark-soft); }
.hint { font-size: var(--fs-xs); color: var(--ink-soft); }
.section--dark .hint, .drawer .hint { color: var(--on-dark-soft); }
.input, .select, .textarea {
  width: 100%; min-height: var(--h-md); padding: .7rem .9rem; border-radius: var(--r-control);
  border: 1px solid rgba(23, 26, 24, .28); background: #FBF8F1; color: var(--ink);
  transition: border-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
  font-size: 1rem;
}
.textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23171A18' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.input:hover, .select:hover, .textarea:hover { border-color: rgba(23, 26, 24, .5); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(96, 45, 45, .18); }
.section--dark .input, .section--dark .select, .section--dark .textarea {
  background-color: var(--charcoal-2); border-color: rgba(245, 239, 227, .25); color: var(--on-dark);
}
.section--dark .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F5EFE3' stroke-width='1.5'/%3E%3C/svg%3E");
}
.section--dark .input:focus, .section--dark .select:focus, .section--dark .textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(181, 139, 80, .25); }
.section--dark input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--error); }
.section--dark .field.is-invalid .input, .section--dark .field.is-invalid .select { border-color: var(--error-on-dark); }
.field-error {
  display: flex; gap: .4rem; align-items: start; font-size: var(--fs-xs); color: var(--error); font-weight: 500;
  min-height: 0; animation: errIn var(--dur-ui) var(--ease-out);
}
.field-error:empty { display: none; }
.section--dark .field-error { color: var(--error-on-dark); }
@keyframes errIn { from { opacity: 0; transform: translateY(-4px); } }
.field.shake .input, .field.shake .select, .field.shake .textarea, .field.shake .choice-group { animation: shake 320ms var(--ease-out); }
@keyframes shake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* Choice cards (radio) */
.choice-group { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-card {
  display: grid; gap: .2rem; padding: .9rem 1rem; min-height: var(--h-lg); border-radius: var(--r-control);
  border: 1px solid rgba(23, 26, 24, .25); background: #FBF8F1;
  transition: border-color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.choice-card strong { font-weight: 600; font-size: var(--fs-sm); }
.choice-card span { font-size: var(--fs-xs); color: var(--ink-soft); }
.choice input:hover + .choice-card { border-color: rgba(23, 26, 24, .55); }
.choice input:checked + .choice-card { border-color: var(--burgundy); background: #F6EDE4; box-shadow: inset 0 0 0 1px var(--burgundy); }
.choice input:focus-visible + .choice-card { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.choice input:disabled { cursor: not-allowed; }
.section--dark .choice-card { background: var(--charcoal-2); border-color: rgba(245, 239, 227, .25); }
.section--dark .choice-card span { color: var(--on-dark-soft); }
.section--dark .choice input:hover + .choice-card { border-color: rgba(245, 239, 227, .55); }
.section--dark .choice input:checked + .choice-card { border-color: var(--gold); background: rgba(181, 139, 80, .12); box-shadow: inset 0 0 0 1px var(--gold); }
.section--dark .choice input:focus-visible + .choice-card { outline-color: var(--gold); }
.choice input:disabled + .choice-card { opacity: .55; }

.form-note {
  font-size: var(--fs-xs); color: var(--ink-soft); display: flex; gap: .5rem; align-items: start;
  border-left: 2px solid var(--gold); padding-left: .75rem;
}
.section--dark .form-note { color: var(--on-dark-soft); }
.form-status { font-size: var(--fs-sm); }

/* Success panels */
.success-panel {
  border: 1px solid var(--line-light); border-radius: var(--r-panel); padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #FBF8F1; animation: panelIn var(--dur-ui) var(--ease-out);
}
.section--dark .success-panel { background: var(--charcoal-2); border-color: var(--line-dark); }
.success-panel h3 { font-size: var(--fs-2xl); margin-bottom: var(--sp-4); }
.success-check {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: var(--sp-5);
  background: var(--burgundy); color: var(--ivory);
}
.section--dark .success-check { background: var(--gold); color: var(--charcoal); }
.success-check svg { width: 24px; height: 24px; }
.success-check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 420ms 120ms var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.ref-code {
  display: inline-block; font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .04em;
  padding: .3rem .6rem; border-radius: var(--r-control); background: var(--ivory-3); color: var(--ink);
}
.section--dark .ref-code { background: var(--charcoal-3); color: var(--on-dark); }
.demo-flag {
  display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-xs); font-weight: 600;
  color: var(--burgundy); background: rgba(96, 45, 45, .08); padding: .3rem .6rem; border-radius: var(--r-control);
}
.section--dark .demo-flag, .drawer .demo-flag { color: var(--gold-text); background: rgba(181, 139, 80, .12); }

/* 7. Sections & editorial blocks ------------------------------------------ */
/* Home hero */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh; display: grid; align-items: end;
  color: var(--on-dark); background: var(--charcoal); overflow: hidden; isolation: isolate;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { color: transparent; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroImg 1600ms var(--ease-out) forwards; }
@keyframes heroImg { to { transform: scale(1); } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(23,26,24,.72) 0%, rgba(23,26,24,.15) 30%, rgba(23,26,24,.25) 55%, rgba(23,26,24,.92) 100%);
}
.hero-inner { padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); width: 100%; }
.hero-urdu {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 2rem);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: var(--gold-text); opacity: 0; animation: fadeIn 900ms 700ms var(--ease-out) forwards;
}
.hero-title {
  font-size: var(--fs-hero); line-height: .86; letter-spacing: -.035em; font-weight: 400;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .18em;
}
.hero-title .word { display: inline-block; overflow: hidden; padding-bottom: .06em; }
.hero-title .word > span { display: inline-block; transform: translateY(105%); animation: rise 900ms var(--ease-out) forwards; }
.hero-title .word:nth-child(2) > span { animation-delay: 110ms; }
.hero-title .restaurant { font-style: italic; font-size: .42em; letter-spacing: -.01em; color: var(--ivory-3); }
@keyframes rise { to { transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-6); align-items: end;
  margin-top: clamp(1.5rem, 3vw, 2.5rem); padding-top: var(--sp-5); border-top: 1px solid var(--line-dark);
  opacity: 0; animation: fadeUp 800ms 450ms var(--ease-out) forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-slogan { font-family: var(--font-display); font-size: var(--fs-xl); font-style: italic; margin-bottom: .4rem; color: var(--ivory); }
.hero-copy { color: var(--on-dark-soft); max-width: 34em; margin: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: flex-end; }

/* Inner page header */
.page-hero { background: var(--charcoal); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.page-hero .container { padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { font-size: var(--fs-3xl); max-width: 14em; }
.page-hero p { color: var(--on-dark-soft); max-width: 40em; margin-top: var(--sp-5); font-size: var(--fs-lg); }
.page-hero--image { min-height: clamp(380px, 58vh, 620px); display: grid; align-items: end; }
.page-hero--image .page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero--image .page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--image::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23,26,24,.35), rgba(23,26,24,.9)); }
.breadcrumb { font-size: var(--fs-xs); color: var(--on-dark-soft); margin-bottom: var(--sp-5); }
.breadcrumb a { color: var(--on-dark-soft); }
.breadcrumb a:hover { color: var(--on-dark); }

/* Intro split: big serif paragraph + facts */
.intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.intro-statement { font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.6rem); line-height: 1.22; letter-spacing: -.01em; }
.facts { display: grid; gap: var(--sp-5); border-top: 1px solid var(--line-light); padding-top: var(--sp-5); }
.facts dt { font-size: var(--fs-xs); color: var(--ink-soft); margin-bottom: .2rem; }
.facts dd { margin: 0; font-size: var(--fs-base); }

/* Signature feature: asymmetric */
.signature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.sig-main { grid-column: 1 / span 7; }
.sig-side { grid-column: 9 / span 4; display: grid; gap: clamp(2rem, 4vw, 3.5rem); padding-top: clamp(2rem, 8vw, 7rem); }
.sig-figure { position: relative; }
.sig-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sig-main .sig-figure img { aspect-ratio: 5 / 6; }
.sig-caption { display: flex; justify-content: space-between; gap: var(--sp-4); align-items: baseline; margin-top: var(--sp-4); }
.sig-caption h3 { font-size: var(--fs-xl); }
.sig-caption p { margin: .35rem 0 0; color: var(--ink-soft); font-size: var(--fs-sm); max-width: 30em; }
.section--dark .sig-caption p { color: var(--on-dark-soft); }
.sig-caption .price { font-size: var(--fs-sm); }

/* Category index with image peek */
.cat-index { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.cat-list { counter-reset: none; }
.cat-list li { border-top: 1px solid var(--line-dark); }
.cat-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.cat-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4);
  padding: .85rem 0; text-decoration: none; color: var(--on-dark-soft);
  transition: color var(--dur-micro) var(--ease-out), padding-left var(--dur-ui) var(--ease-out);
}
.cat-list a .serif { font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); line-height: 1.1; }
.cat-list a .small { color: var(--on-dark-soft); }
.cat-list a:hover, .cat-list a:focus-visible, .cat-list a.is-active { color: var(--on-dark); padding-left: .6rem; }
.cat-peek { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--charcoal-2); }
.cat-peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--dur-ui) var(--ease-out); }
.cat-peek img.is-active { opacity: 1; }
.cat-peek .peek-label {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2; font-size: var(--fs-xs); color: var(--on-dark);
  background: rgba(23,26,24,.7); padding: .3rem .6rem; border-radius: var(--r-control);
}

/* Media + text split */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.split-media { grid-column: 1 / span 6; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-body { grid-column: 8 / span 5; }
.split--reverse .split-media { grid-column: 7 / span 6; order: 2; }
.split--reverse .split-body { grid-column: 1 / span 5; order: 1; }
.split-body h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-5); }
.split-body .btn-row { margin-top: var(--sp-6); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.media-pair { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--sp-4); align-items: end; }
.media-pair img:last-child { aspect-ratio: 3 / 4; margin-bottom: 18%; }

/* Printed-menu excerpt (chef's selection) */
.menu-sheet { border: 1px solid var(--line-light); padding: clamp(1.5rem, 4vw, 3.5rem); background: #FBF8F1; }
.menu-sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.menu-sheet-head h2 { font-size: var(--fs-2xl); }
.sheet-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 5vw, 5rem); }
.sheet-item { padding: var(--sp-4) 0; border-top: 1px solid var(--line-light); }
.sheet-line { display: flex; align-items: baseline; gap: .6rem; }
.sheet-line .serif { font-size: 1.3rem; }
.sheet-line .leader { flex: 1; border-bottom: 1px dotted rgba(23,26,24,.35); transform: translateY(-.3em); min-width: 1rem; }
.sheet-item p { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: .3rem; max-width: 34em; }

/* Experience / values */
.values { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.value { grid-column: span 4; border-top: 1px solid currentColor; padding-top: var(--sp-5); }
.section--dark .value { border-color: var(--line-dark); }
.value h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.value p { color: var(--ink-soft); font-size: var(--fs-sm); }
.section--dark .value p { color: var(--on-dark-soft); }
.value--wide { grid-column: span 6; }

/* Quick reserve band */
.quick-reserve { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.quick-reserve h2 { font-size: var(--fs-3xl); }
.quick-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--sp-3); align-items: end; }

/* Gallery preview mosaic */
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 14vw, 210px); gap: clamp(.5rem, 1vw, 1rem); }
.mosaic a { display: block; overflow: hidden; position: relative; background: var(--charcoal-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic a:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.mosaic a:nth-child(2) { grid-column: span 2; }
.mosaic a:nth-child(3) { grid-column: span 1; grid-row: span 2; }
.mosaic a:nth-child(4) { grid-column: span 2; }

/* Private dining CTA */
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-6); align-items: end; }
.cta-band h2 { font-size: var(--fs-3xl); max-width: 12em; }
.cta-band p { color: var(--on-dark-soft); max-width: 34em; margin-top: var(--sp-4); }

/* Specials (editorial) */
.special { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line-light); }
.section--dark .special { border-color: var(--line-dark); }
.special:first-of-type { border-top: 0; }
.special-media { grid-column: 1 / span 6; }
.special-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.special-body { grid-column: 8 / span 5; }
.special:nth-of-type(even) .special-media { grid-column: 7 / span 6; order: 2; }
.special:nth-of-type(even) .special-body { grid-column: 1 / span 5; order: 1; }
.special-body h3 { font-size: var(--fs-2xl); margin-bottom: var(--sp-4); }
.special-meta { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); align-items: center; margin: var(--sp-5) 0; font-size: var(--fs-sm); }
.combo { border: 1px solid var(--line-light); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: var(--sp-4); background: #FBF8F1; }
.combo h3 { font-size: var(--fs-xl); }
.combo-list li { display: flex; justify-content: space-between; gap: var(--sp-4); padding: .55rem 0; border-top: 1px solid var(--line-light); font-size: var(--fs-sm); }
.combo-total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4); font-weight: 600; }
.combos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); }

/* Reservations: how it works + form with guidance aside */
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: step; }
.how-step { border-top: 1px solid var(--ink); padding-top: var(--sp-5); counter-increment: step; }
.how-step::before { content: counter(step); display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--burgundy); margin-bottom: var(--sp-4); }
.how-step h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.how-step p { color: var(--ink-soft); font-size: var(--fs-sm); }
.res-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.res-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: var(--sp-5); }
.res-card { border: 1px solid var(--line-dark); border-radius: var(--r-panel); padding: var(--sp-5); background: var(--charcoal-2); }
.res-card h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.res-card p { color: var(--on-dark-soft); font-size: var(--fs-sm); }
.res-card .btn-row { margin-top: var(--sp-4); }
.res-tips li { padding: .9rem 0; border-top: 1px solid var(--line-dark); font-size: var(--fs-sm); color: var(--on-dark-soft); }
.res-tips li strong { display: block; color: var(--on-dark); font-weight: 600; margin-bottom: .15rem; }
.res-tips a { color: var(--gold-text); }
.form-foot { font-size: var(--fs-xs); color: var(--ink-soft); }
.section--dark .form-foot { color: var(--on-dark-soft); }

/* Info list (contact, hours) */
.info-list { display: grid; gap: var(--sp-5); }
.info-list dt { font-size: var(--fs-xs); color: var(--ink-soft); }
.section--dark .info-list dt { color: var(--on-dark-soft); }
.info-list dd { margin: .2rem 0 0; }
.hours-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.hours-table th, .hours-table td { text-align: left; padding: .6rem 0; border-top: 1px solid var(--line-light); vertical-align: top; }
.hours-table th { font-weight: 500; padding-right: var(--sp-4); }
.section--dark .hours-table th, .section--dark .hours-table td { border-color: var(--line-dark); }
.map-placeholder {
  aspect-ratio: 16 / 10; border: 1px dashed rgba(23,26,24,.35); display: grid; place-items: center; text-align: center;
  padding: var(--sp-6); background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(23,26,24,.06) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(23,26,24,.06) 39px 40px), #FBF8F1;
}
.map-placeholder strong { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); display: block; margin-bottom: .3rem; }

/* 8. Menu ----------------------------------------------------------------- */
.menu-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.menu-layout--order { grid-template-columns: 200px minmax(0, 1fr) 340px; }
.cat-nav { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.cat-nav-title { font-size: var(--fs-xs); color: var(--ink-soft); margin-bottom: var(--sp-3); }
.cat-tabs { display: grid; gap: .1rem; position: relative; }
.tab-indicator {
  position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 0; border-radius: var(--r-control);
  background: var(--charcoal); pointer-events: none; opacity: 0;
  transition: transform 340ms var(--ease-out), width 340ms var(--ease-out), height 340ms var(--ease-out), opacity var(--dur-micro);
}
.cat-tabs.is-ready .tab-indicator { opacity: 1; }
.cat-tab { position: relative; z-index: 1; }
.cat-tabs.is-ready .cat-tab[aria-selected="true"] { background: transparent; }
.cat-tab {
  display: flex; justify-content: space-between; gap: .5rem; width: 100%; text-align: left; padding: .5rem .7rem; min-height: 40px;
  border: 0; border-radius: var(--r-control); background: transparent; font-size: var(--fs-sm); color: var(--ink-soft);
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.cat-tab .n { font-variant-numeric: tabular-nums; font-size: var(--fs-xs); opacity: .7; }
.cat-tab:hover { color: var(--ink); background: rgba(23,26,24,.05); }
.cat-tab:active { transform: scale(.98); }
.cat-tab { transition: background-color var(--dur-micro) var(--ease-out), color 240ms var(--ease-out), transform 90ms var(--ease-out); }
.cat-tab[aria-selected="true"] { color: var(--ivory); background: var(--charcoal); }

.menu-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: .9rem; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--ink-soft); pointer-events: none; }
.search-wrap .input { padding-left: 2.6rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; height: 36px; padding: 0 .85rem; border-radius: 18px;
  border: 1px solid rgba(23,26,24,.25); background: transparent; font-size: var(--fs-xs); font-weight: 500;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro), color var(--dur-micro);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); color: #fff; }
.chip[aria-pressed="true"]::before { content: '✓'; font-size: .7rem; }
.results-meta { font-size: var(--fs-xs); color: var(--ink-soft); margin-left: auto; }

.menu-group + .menu-group { margin-top: clamp(2.5rem, 5vw, 4rem); }
.menu-group-title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--ink); margin-bottom: var(--sp-2); }
.menu-group-title h2 { font-size: var(--fs-2xl); }
.menu-group-title .small { white-space: nowrap; }
.menu-list { display: grid; }
.menu-results { transition: opacity var(--dur-micro) var(--ease-out); }
.menu-results.is-updating { opacity: 0; }
.menu-results.is-entering .menu-item { animation: itemIn 340ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 32ms); }
.menu-results.is-updating { transform: translateY(4px); }
.menu-results { transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out); }
@keyframes itemIn { from { opacity: 0; transform: translateY(8px); } }

.menu-item {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--sp-5); align-items: start;
  padding: var(--sp-5) 0; border-bottom: 1px solid var(--line-light);
}
.menu-item-thumb { width: 96px; aspect-ratio: 1; overflow: hidden; display: block; padding: 0; border: 0; background: var(--charcoal-3); }
.menu-item-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.menu-item-thumb:hover img { transform: scale(1.06); }
.menu-item-name {
  font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; background: none; border: 0; padding: 0; text-align: left;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .2em; transition: text-decoration-color var(--dur-micro);
}
.menu-item-name:hover { text-decoration-color: var(--gold); }
.menu-item-desc { font-size: var(--fs-sm); color: var(--ink-soft); margin: .35rem 0 .6rem; max-width: 40em; }
.menu-item-meta { display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; }
.menu-item-side { display: grid; justify-items: end; gap: var(--sp-3); text-align: right; }
.menu-item-side .price { font-size: var(--fs-base); font-weight: 500; }
.menu-item.is-unavailable .menu-item-thumb, .menu-item.is-unavailable .menu-item-desc { opacity: .55; }

.tag {
  display: inline-flex; align-items: center; gap: .3rem; height: 24px; padding: 0 .5rem; border-radius: 12px;
  font-size: .72rem; font-weight: 500; background: var(--ivory-3); color: var(--ink);
}
.tag--veg { background: rgba(120,128,107,.22); color: #3E4536; }
.tag--signature { background: rgba(181,139,80,.2); color: #6B4E22; }
.tag--seasonal { background: rgba(120,128,107,.22); color: #3E4536; }
.tag--off { background: rgba(155,44,44,.12); color: var(--error); }
.spice { display: inline-flex; gap: 2px; align-items: center; font-size: .72rem; color: var(--ink-soft); }
.spice i { width: 6px; height: 12px; border-radius: 3px; background: var(--ivory-3); display: inline-block; }
.spice i.on { background: var(--burgundy); }

.empty-state { padding: clamp(2.5rem, 6vw, 4rem) 0; text-align: left; max-width: 34em; }
.empty-state h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }

/* Order summary sidebar */
.order-summary { position: sticky; top: calc(var(--header-h) + 1.5rem); border: 1px solid var(--line-light); background: #FBF8F1; padding: var(--sp-5); border-radius: var(--r-panel); }
.order-summary h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-4); }

/* Cart lines & quantity */
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(23,26,24,.28); border-radius: var(--r-control); height: var(--h-sm); }
.qty button { width: 40px; height: 100%; border: 0; background: transparent; font-size: 1.1rem; line-height: 1; display: grid; place-items: center; border-radius: var(--r-control); transition: background-color var(--dur-micro); }
.qty button:hover:not(:disabled) { background: rgba(23,26,24,.06); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output, .qty .qty-val { min-width: 32px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--fs-sm); }
.drawer .qty { border-color: rgba(245,239,227,.3); }
.drawer .qty button:hover:not(:disabled) { background: rgba(245,239,227,.08); }

.cart-lines { display: grid; }
.cart-line { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line-light); }
.drawer .cart-line { border-color: var(--line-dark); }
.cart-line-thumb { width: 56px; height: 56px; overflow: hidden; background: var(--charcoal-3); }
.cart-line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-top { display: flex; justify-content: space-between; gap: var(--sp-3); align-items: baseline; }
.cart-line-name { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.2; }
.cart-line-controls { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-top: var(--sp-3); }
.remove-btn { background: none; border: 0; padding: .4rem 0; font-size: var(--fs-xs); text-decoration: underline; text-underline-offset: .25em; color: inherit; opacity: .8; min-height: 32px; }
.remove-btn:hover { opacity: 1; }
.cart-line.is-removing { animation: lineOut var(--dur-ui) var(--ease-out) forwards; }
@keyframes lineOut { to { opacity: 0; transform: translateX(16px); } }
.totals { display: grid; gap: .5rem; padding-top: var(--sp-4); font-size: var(--fs-sm); }
.totals div { display: flex; justify-content: space-between; gap: var(--sp-4); }
.totals .grand { font-size: var(--fs-lg); font-weight: 600; padding-top: .6rem; border-top: 1px solid var(--line-light); margin-top: .3rem; }
.drawer .totals .grand { border-color: var(--line-dark); }
.totals .note { font-size: var(--fs-xs); color: var(--ink-soft); display: block; }
.drawer .totals .note { color: var(--on-dark-soft); }

/* 9. Overlays: drawer, modal, toast, lightbox ---------------------------- */
.scrim {
  position: fixed; inset: 0; z-index: 80; background: rgba(12, 14, 12, .62);
  opacity: 0; visibility: hidden; transition: opacity var(--dur-ui) var(--ease-out), visibility 0s linear var(--dur-ui);
}
.scrim.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(440px, 100%);
  background: var(--charcoal); color: var(--on-dark); display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform var(--dur-ui) var(--ease-out), visibility 0s linear var(--dur-ui);
  box-shadow: var(--shadow-panel);
}
.drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-5); border-bottom: 1px solid var(--line-dark); }
.drawer-head h2 { font-size: var(--fs-xl); }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 var(--sp-5); overscroll-behavior: contain; }
.drawer-foot { padding: var(--sp-5); border-top: 1px solid var(--line-dark); display: grid; gap: var(--sp-3); }
.drawer .icon-btn { border-color: var(--line-dark); }
.drawer-empty { padding: var(--sp-7) 0; }
.drawer-empty h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.drawer-empty p { color: var(--on-dark-soft); }

.modal {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: var(--sp-4);
  visibility: hidden; pointer-events: none;
}
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal-panel {
  position: relative; width: min(880px, 100%); max-height: calc(100vh - 2rem); overflow: auto; background: var(--ivory);
  border-radius: var(--r-panel); box-shadow: var(--shadow-panel);
  display: grid; grid-template-columns: 1fr 1fr;
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
}
.modal.is-open .modal-panel { opacity: 1; transform: none; }
.modal-media { background: var(--charcoal-3); min-height: 100%; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; min-height: 320px; }
.modal-body { padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: var(--sp-4); align-content: start; }
.modal-body h2 { font-size: var(--fs-2xl); padding-right: 2.5rem; }
.modal-close { position: absolute; top: .75rem; right: .75rem; background: var(--ivory); z-index: 2; }
.modal-facts { display: grid; gap: .4rem; font-size: var(--fs-sm); }
.modal-facts div { display: flex; gap: var(--sp-3); }
.modal-facts dt { color: var(--ink-soft); min-width: 7.5em; }
.modal-facts dd { margin: 0; }
.modal-actions { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; padding-top: var(--sp-3); border-top: 1px solid var(--line-light); }
.modal-actions .btn { flex: 1; min-width: 180px; }

.toast-region { position: fixed; z-index: 120; left: 50%; bottom: 1.25rem; translate: -50% 0; display: grid; gap: .5rem; width: min(440px, calc(100% - 2rem)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: var(--sp-4); align-items: center; justify-content: space-between;
  padding: .85rem 1rem; border-radius: var(--r-panel); background: var(--charcoal); color: var(--on-dark);
  box-shadow: var(--shadow-panel); font-size: var(--fs-sm); border-left: 3px solid var(--gold);
  animation: toastIn var(--dur-ui) var(--ease-out);
}
.toast.is-leaving { animation: toastOut var(--dur-micro) var(--ease-in-out) forwards; }
.toast button { background: none; border: 0; color: var(--gold-text); font-weight: 600; text-decoration: underline; text-underline-offset: .25em; padding: .3rem; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(12,14,12,.94); display: grid; grid-template-rows: auto 1fr auto; visibility: hidden; opacity: 0; transition: opacity var(--dur-ui) var(--ease-out), visibility 0s linear var(--dur-ui); color: var(--on-dark); }
.lightbox.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-4) var(--gutter); }
.lightbox-stage { display: grid; place-items: center; padding: 0 clamp(3.5rem, 8vw, 6rem); min-height: 0; position: relative; }
.lightbox-stage img { max-height: 76vh; max-width: 100%; width: auto; object-fit: contain; background: transparent; transition: opacity var(--dur-micro) var(--ease-out); }
.lightbox-stage img.is-swapping { opacity: 0; }
.lightbox-caption { padding: var(--sp-4) var(--gutter) var(--sp-5); text-align: center; color: var(--on-dark-soft); font-size: var(--fs-sm); }
.lightbox .icon-btn { border-color: var(--line-dark); color: var(--on-dark); background: rgba(23,26,24,.6); }
.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; }
.lb-prev { left: var(--gutter); } .lb-next { right: var(--gutter); }

/* 10. Checkout ----------------------------------------------------------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.steps { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-7); }
.steps li { flex: 1; }
.step-pill { display: grid; gap: .45rem; font-size: var(--fs-xs); color: var(--ink-soft); }
.step-pill::before { content: ''; height: 3px; border-radius: 2px; background: var(--ivory-3); transition: background-color var(--dur-ui) var(--ease-out); }
.step-pill[data-state="current"] { color: var(--ink); font-weight: 600; }
.step-pill[data-state="current"]::before, .step-pill[data-state="done"]::before { background: var(--burgundy); }
.step-panel[hidden] { display: none; }
.step-panel.is-entering { animation: stepIn var(--dur-ui) var(--ease-out); }
.step-panel.is-entering.from-left { animation-name: stepInLeft; }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } }
@keyframes stepInLeft { from { opacity: 0; transform: translateX(-18px); } }
.step-panel h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-5); }
.step-panel > * + * { margin-top: var(--sp-5); }
.step-panel > h2 + * { margin-top: 0; }
.step-actions { display: flex; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-6); flex-wrap: wrap; }
.pay-detail { margin-top: var(--sp-4); padding: var(--sp-5); border: 1px solid var(--line-light); border-radius: var(--r-panel); background: #FBF8F1; font-size: var(--fs-sm); animation: panelIn var(--dur-ui) var(--ease-out); }
.pay-detail dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: var(--sp-4) 0 0; }
.pay-detail dt { color: var(--ink-soft); }
.pay-detail dd { margin: 0; }
.review-block { padding: var(--sp-4) 0; border-top: 1px solid var(--line-light); display: flex; justify-content: space-between; gap: var(--sp-4); font-size: var(--fs-sm); }
.review-block dt { color: var(--ink-soft); font-size: var(--fs-xs); }
.review-block dd { margin: .2rem 0 0; }
.history { margin-top: var(--sp-6); }
.history-list li { display: flex; justify-content: space-between; gap: var(--sp-4); padding: .6rem 0; border-top: 1px solid var(--line-light); font-size: var(--fs-sm); flex-wrap: wrap; }
.section--dark .history-list li { border-color: var(--line-dark); }

/* 11. Gallery ------------------------------------------------------------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.gallery-grid { columns: 3 280px; column-gap: clamp(.75rem, 1.5vw, 1.25rem); }
.gallery-item { break-inside: avoid; margin-bottom: clamp(.75rem, 1.5vw, 1.25rem); }
.gallery-item[hidden] { display: none; }
.gallery-item button { display: block; width: 100%; padding: 0; border: 0; background: var(--charcoal-2); overflow: hidden; position: relative; }
.gallery-item img { width: 100%; transition: transform 700ms var(--ease-out), opacity var(--dur-ui); }
.gallery-item button:hover img { transform: scale(1.035); }
.gallery-item figcaption { font-size: var(--fs-xs); color: var(--ink-soft); padding-top: .5rem; }
.gallery-grid.is-filtering .gallery-item { animation: itemIn var(--dur-ui) var(--ease-out) both; }

/* 12. Accordion ------------------------------------------------------------ */
.faq-group + .faq-group { margin-top: var(--sp-7); }
.faq-group h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.accordion-item { border-top: 1px solid var(--line-light); }
.accordion-item:last-child { border-bottom: 1px solid var(--line-light); }
.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); text-align: left;
  padding: 1.15rem 0; background: none; border: 0; font-size: var(--fs-base); font-weight: 500; min-height: 56px;
}
.accordion-icon { width: 14px; height: 14px; position: relative; flex-shrink: 0; }
.accordion-icon::before, .accordion-icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform var(--dur-ui) var(--ease-out); }
.accordion-icon::after { transform: rotate(90deg); }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: rotate(0); }
.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-ui) var(--ease-out); }
.accordion-panel > div { overflow: hidden; }
.accordion-panel[data-open="true"] { grid-template-rows: 1fr; }
.accordion-panel p { padding-bottom: 1.2rem; color: var(--ink-soft); max-width: 46em; font-size: var(--fs-sm); }

/* 13. Footer -------------------------------------------------------------- */
.site-footer { background: var(--charcoal); color: var(--on-dark-soft); padding-top: clamp(4rem, 8vw, 6rem); font-size: var(--fs-sm); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--sp-6); padding-bottom: var(--sp-7); }
.footer-logo { width: clamp(200px, 22vw, 260px); height: auto; background: none; margin-left: -6px; }
.site-footer h2 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; color: var(--on-dark); margin-bottom: var(--sp-4); letter-spacing: .02em; }
.footer-links { display: grid; gap: .45rem; }
.footer-links a { text-decoration: none; color: var(--on-dark-soft); transition: color var(--dur-micro); }
.footer-links a:hover { color: var(--on-dark); }
.hero-emblem { width: clamp(64px, 7vw, 92px); height: auto; margin-bottom: 1.2rem; background: none; opacity: 0; animation: fadeIn 900ms 200ms var(--ease-out) forwards; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: var(--sp-5); display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--fs-xs); }
.demo-note { max-width: 60em; }
.social-links:empty { display: none; }

/* 14. Motion: page transitions, reveals ------------------------------------ */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut var(--dur-page) var(--ease-in-out) both; }
::view-transition-new(root) { animation: vtIn var(--dur-page) var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(8px); } }

/* Fallback transition (browsers without cross-document view transitions) */
html.js-fallback-vt main { animation: pageIn var(--dur-page) var(--ease-out) both; }
html.js-fallback-vt.is-leaving main, html.js-fallback-vt.is-leaving .site-footer { opacity: 0; transform: translateY(-6px); transition: opacity 220ms var(--ease-in-out), transform 220ms var(--ease-in-out); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }

/* Image reveal: only images marked .reveal, once. Opacity + transform only. */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0) scale(1.015); transition: opacity var(--dur-reveal) var(--ease-out), transform 900ms var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .hero-title .word > span, .hero-foot, .hero-urdu { transform: none !important; opacity: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
