/* ==========================================================================
   Jerusalem Sweets — حلويات القدس
   Single stylesheet for all pages. Tokens first, then base, shared
   components (header, olive margins, footer), then page sections.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0a09;
  --bg-footer-home: #141210;
  --ink: #f5efe4;
  --white: #ffffff;
  --red: #f7281e;
  --olive: #a3aa62;
  --olive-line: rgba(128, 138, 70, .55);
  --olive-line-soft: rgba(128, 138, 70, .4);
  --olive-line-faint: rgba(128, 138, 70, .35);
  --ink-80: rgba(245, 239, 228, .8);
  --ink-75: rgba(245, 239, 228, .75);
  --ink-70: rgba(245, 239, 228, .7);
  --ink-65: rgba(245, 239, 228, .65);
  --ink-60: rgba(245, 239, 228, .6);
  --ink-55: rgba(245, 239, 228, .55);
  --ink-50: rgba(245, 239, 228, .5);
  --ink-30: rgba(245, 239, 228, .3);
  --rule: rgba(245, 239, 228, .12);
  --rule-soft: rgba(245, 239, 228, .08);
  --rule-soft-2: rgba(245, 239, 228, .09);
  --scrim: rgba(11, 10, 9, .7);

  --font-display: 'DM Serif Display', serif;
  --font-body: 'EB Garamond', Georgia, serif;
  --font-ar: Amiri, serif;

  --container: 1240px;
  --container-menu: 1100px;
  --gutter: 28px;
  --radius: 16px;
  --ease: .15s ease;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}
a:hover { color: var(--red); }
p { text-wrap: pretty; }
img { display: block; }
ul { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }

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

.page { min-height: 100vh; overflow-x: clip; }

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 10;
  padding: 10px 18px;
  background: var(--red);
  color: var(--bg);
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--bg); }

/* Arabic — always Amiri 700, never letter-spaced or case-transformed */
.ar {
  font-family: var(--font-ar);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}

/* Photo frames: 16px radius, image fills with cover */
.frame {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.frame--4x3 { aspect-ratio: 4 / 3; }
.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--21x9 { aspect-ratio: 21 / 9; }
.frame picture,
.hero__media picture { display: contents; }
.frame img,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--olive);
}
.eyebrow--ruled {
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow--ruled::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--olive);
}

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--white);
}

/* ---------- Buttons ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn--lg { padding: 15px 34px; }
.btn--primary {
  background: var(--red);
  color: var(--bg);
  font-weight: 600;
}
.btn--primary:hover { background: var(--white); color: var(--bg); }
.btn--secondary {
  border: 1px solid var(--ink-50);
  color: var(--ink);
}
.btn--secondary:hover { border-color: var(--red); color: var(--red); }
.btn--glass { background: rgba(11, 10, 9, .35); }

.text-cta {
  align-self: flex-start;
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px solid var(--red);
  padding-bottom: 4px;
}

/* ==========================================================================
   Shared: header
   ========================================================================== */
.tatreez {
  height: 36px;
  margin-bottom: 8px;
  background: var(--bg) url(../assets/tatreez-border.svg) center / 48px 36px repeat-x;
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.nav__logo { display: flex; align-items: center; gap: 14px; }
.nav__logo img { height: 64px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 17px;
  letter-spacing: .04em;
}
.nav__links a {
  display: block;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { border-bottom-color: var(--red); }
.nav__links a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Mobile menu: below 640px the links collapse behind a toggle button.
   Without JS the toggle stays hidden and the links remain in one spread row. */
.nav__toggle { display: none; }
@media (max-width: 640px) {
  .nav__links {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .js .nav__toggle {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--ink-30);
    background: var(--scrim);
    color: var(--ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color var(--ease), color var(--ease);
  }
  .js .nav__toggle:hover,
  .js .nav__toggle[aria-expanded="true"] { border-color: var(--red); }

  .js .nav__links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--rule-soft);
    font-size: 20px;
  }
  .js .nav.is-open .nav__links { display: flex; }
  .js .nav__links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule-soft);
  }
  .js .nav__links a:hover,
  .js .nav__links a[aria-current="page"] { border-bottom-color: var(--rule-soft); }
}

/* Hamburger bars → X when open */
.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--ease), background-color var(--ease);
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before,
.nav__toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -7px; }
.nav__toggle-bars::after { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.stitch {
  height: 5px;
  margin-top: 24px;
  background: url(../assets/stitch-line.svg) center / 13px 5px repeat-x;
}

/* ==========================================================================
   Shared: olive-branch margins
   ========================================================================== */
.olive-wrap {
  position: relative;
  z-index: 0;
  isolation: isolate;
}
.olive {
  --olive-offset: max(-116px, min(0px, calc((100vw - 1240px) / 2 + 28px - 180px)));
  position: absolute;
  top: 0;
  bottom: 0;
  width: 180px;
  z-index: -1;
  pointer-events: none;
  opacity: .42;
  background: url(../assets/olive-branch.svg) 0 0 / 180px 640px repeat-y;
  -webkit-mask-image: linear-gradient(transparent, #000 120px, #000 calc(100% - 120px), transparent);
          mask-image: linear-gradient(transparent, #000 120px, #000 calc(100% - 120px), transparent);
}
.olive--left { left: var(--olive-offset); }
.olive--right {
  right: var(--olive-offset);
  transform: scaleX(-1);
  background-position: 0 320px;
}

/* ==========================================================================
   Shared: footer
   ========================================================================== */
.site-footer {
  position: relative;
  border-top: 1px solid var(--rule);
  padding: 44px var(--gutter) 60px;
}
.site-footer--home {
  margin-top: 56px;
  background: var(--bg-footer-home);
  border-top-color: var(--olive-line-faint);
  padding: 52px var(--gutter) 64px;
}
.site-footer--gap { margin-top: 40px; }

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 32px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.footer-brand__logo { display: block; }
.footer-brand img { height: 84px; width: auto; }
.footer-brand p {
  width: 100%;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-60);
}
.footer-head {
  margin: 0;
  font-weight: 400;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--olive-line);
}
.footer-text {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.5;
}
.footer-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px solid var(--red);
  position: relative;
}
/* Larger tap area without changing the look */
.footer-link::after { content: ''; position: absolute; inset: -8px -6px; }
.hours {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.35;
}
.hours dd { margin: 0; color: var(--ink-70); }
.footer-phone {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--white);
}
.footer-bottom {
  max-width: var(--container);
  margin: 32px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.footer-bottom p { margin: 0; }
.footer-bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom a:hover { color: var(--red); }
.site-footer .tatreez--bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  margin: 0;
  background-color: transparent;
}

/* ==========================================================================
   Home
   ========================================================================== */
.hero {
  position: relative;
  margin-top: 18px;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 10, 9, .85) 0%, rgba(11, 10, 9, .55) 45%, transparent 75%),
    linear-gradient(180deg, rgba(11, 10, 9, .55) 0%, rgba(11, 10, 9, .15) 35%, rgba(11, 10, 9, .4) 65%, rgba(11, 10, 9, .92) 100%);
}
.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px var(--gutter) 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-size: 13px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.hero__eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--olive);
}
.hero__title {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.1;
  max-width: 14ch;
  letter-spacing: .01em;
  text-wrap: balance;
}
.hero .btn-row { margin-top: 10px; }

.features {
  max-width: var(--container);
  margin: 72px auto 40px;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 0;
  align-items: stretch;
  color: var(--ink);
}
.feature:hover { color: var(--ink); }
.feature .frame { min-height: 420px; }
/* Single-column: the row takes the photo's natural height. Pin the source
   ratio so the resized WebPs don't round it differently. */
.feature .frame img { aspect-ratio: 2500 / 1667; }
.feature--flip .frame { order: 2; }
.feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 56px clamp(28px, 5vw, 72px);
}
.feature__title {
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.1;
  text-wrap: balance;
}
.feature__text {
  margin: 0;
  max-width: 44ch;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-75);
}

/* ==========================================================================
   Menu
   ========================================================================== */
.menu {
  max-width: var(--container-menu);
  margin: 0 auto;
  padding: 80px var(--gutter) 40px;
  scroll-margin-top: 24px;
}
.intro-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.menu__title {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.05;
  max-width: 16ch;
  text-wrap: balance;
}
.menu__lede {
  margin: 0;
  max-width: 42ch;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-65);
}
.menu__banner { margin-top: 64px; }

.filters {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  scroll-margin-top: 24px;
}
/* Filters only work with JS — with JS off every category is shown and the
   dead buttons are hidden. */
html:not(.js) .filters { display: none; }
.filter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  font: inherit;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--ink-30);
  background: var(--scrim);
  color: var(--ink);
  transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}
.filter:hover { border-color: var(--red); }
.filter[aria-pressed="true"] {
  border-color: var(--red);
  background: var(--red);
  color: var(--bg);
}
.filter .ar { font-size: 19px; line-height: 1; }

.categories {
  display: flex;
  flex-direction: column;
  margin-top: 32px;
}
.cat {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 40px 72px;
  padding: 72px 0;
  border-top: 1px solid var(--rule);
}
.cat--flip { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.cat__aside {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-self: start;
  position: sticky;
  top: 32px;
}
.cat--flip .cat__aside { order: 2; }
.cat__title {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0;
  font-weight: 400;
}
.cat__title .en {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
  color: var(--white);
}
.cat__title .ar {
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1;
  color: var(--white);
}

.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 28px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.item__name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.item__name .en { font-size: 19px; }
.item__name .ar { font-size: 22px; line-height: 1; }
.price {
  font-size: 16px;
  color: var(--olive);
  white-space: nowrap;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

/* Kunafa (Menu) */
.kunafa {
  max-width: var(--container-menu);
  margin: 40px auto 0;
  padding: 90px var(--gutter);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 24px;
}
.kunafa__row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 56px;
  align-items: center;
}
.kunafa__row--b {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  margin-top: 72px;
}
.kunafa__row > * { min-width: 0; }
.kunafa__title {
  display: flex;
  align-items: baseline;
  gap: 22px;
  flex-wrap: wrap;
  margin: 12px 0 0;
  font-weight: 400;
}
.kunafa__title .en {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1;
  color: var(--white);
}
.kunafa__title .ar {
  font-size: clamp(48px, 6.4vw, 86px);
  line-height: 1;
  color: var(--white);
}
.kunafa__lede {
  margin: 20px 0 0;
  max-width: 520px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-80);
}

/* Tray / by-the-pound price tables (Menu + Catering) */
.tray-head,
.tray-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0 18px;
}
.tray-head {
  margin-top: 30px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--olive-line-soft);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.tray-head--strong { margin-top: 28px; border-bottom-color: var(--olive-line); }
.tray-head--single { display: flex; margin-top: 0; }
.tray-row {
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft-2);
}
.tray-row--single { grid-template-columns: minmax(0, 1fr) auto; }
.tray-row__name {
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
}
.tray-row__name .en { font-size: 19px; }
.tray-row__name .ar { font-size: 22px; }
.tray-row__price {
  color: var(--olive);
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
}

/* ==========================================================================
   Catering + About shared split layout
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 56px;
  align-items: center;
}
.split > * { min-width: 0; }

.bi-title {
  display: flex;
  align-items: baseline;
  gap: 22px;
  flex-wrap: wrap;
  margin: 0;
  font-weight: 400;
}
.bi-title--center { justify-content: center; }
.bi-title .en {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  color: var(--white);
}
.bi-title .ar {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.2;
  color: var(--white);
}

.lede {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-75);
}

/* ---------- Catering ---------- */
.cater-intro { padding: 64px var(--gutter) 56px; }
.cater-intro__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.cater-intro__title {
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.05;
  text-wrap: balance;
}
.cater-intro__ar {
  margin: 0;
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.25;
  color: var(--white);
}
.cater-intro__lede {
  margin: 8px 0 0;
  max-width: 540px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-80);
}
.cater-intro .btn-row { margin-top: 14px; }

.occasions {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.occasions__band {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.occasions__band p { margin: 0; color: var(--white); text-wrap: balance; }
.occasions__en {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.35;
}
.occasions__band .ar {
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.5;
}

.trays {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px var(--gutter) 40px;
  scroll-margin-top: 24px;
}
.trays .bi-title { margin-top: 12px; }
.trays__lede {
  margin: 16px 0 0;
  max-width: 520px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-80);
}

.pound {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
}
.pound .intro-center { gap: 12px; }
.pound .lede { max-width: 46ch; }
.pound__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 72px 88px;
}
.plist {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--olive);
  padding-top: 22px;
}
.plist__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  font-weight: 400;
}
.plist__head .en {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--white);
}
.plist__head .ar { font-size: 28px; line-height: 1; color: var(--white); }
.prow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 6px 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.prow__name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
}
.prow__name .en { font-size: 18px; }
.prow__name .ar { font-size: 21px; line-height: 1.2; }
.prow .price { letter-spacing: normal; text-align: right; }

.cta {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 0 var(--gutter) 80px;
}
.cta__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 56px clamp(24px, 5vw, 64px);
  border: 1px solid var(--olive-line);
}
.cta .lede { max-width: 44ch; }
.cta__phone {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  color: var(--red);
}
.cta__phone:hover { color: var(--white); }

/* ---------- About ---------- */
.story {
  padding: 64px var(--gutter) 40px;
  scroll-margin-top: 24px;
}
.story__title {
  margin-top: 12px;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.05;
  color: var(--ink);
  text-wrap: pretty;
}
.story__ar {
  margin: 10px 0 0;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.25;
  text-align: left;
}
.story__p {
  margin: 16px 0 0;
  max-width: 540px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-80);
}
.story__ar + .story__p { margin-top: 24px; }
.story__p-ar {
  margin: 24px 0 0;
  max-width: 540px;
  font-size: 22px;
  line-height: 1.8;
}
.story .btn-row { margin-top: 28px; }
.story__photos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.story__photos .frame:first-child { margin-left: 56px; }
.story__photos .frame:last-child { margin-right: 56px; }

/* ---------- Gallery ---------- */
.gallery {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px var(--gutter) 80px;
}
.gallery__title .en { font-size: clamp(40px, 5vw, 68px); line-height: 1.05; }
.gallery__title .ar { font-size: clamp(40px, 5vw, 68px); line-height: 1.2; }
.gallery__credit {
  margin: 0;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.gallery__grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 48px 32px;
}
.frame--3x2 { aspect-ratio: 3 / 2; }
.g-item__link {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--ink);
}
.g-item__link:hover { color: var(--ink); }
.g-item__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-soft);
}
.g-item__title .en {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  color: var(--white);
  transition: color var(--ease);
}
.g-item__title .ar { font-size: 22px; line-height: 1.2; }
.g-item__link:hover .en { color: var(--red); }

/* Lightbox (gallery) */
html.lightbox-open { overflow: hidden; }
.lightbox {
  --lb-w: min(1100px, calc(100vw - 176px), max(360px, calc((100vh - 260px) * 1.5)));
  --lb-w: min(1100px, calc(100vw - 176px), max(360px, calc((100dvh - 260px) * 1.5)));
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
  background: var(--bg);
  color: var(--ink);
}
.lightbox::backdrop { background: rgba(11, 10, 9, .6); }
/* auto margins (not align-items) so a tall figure scrolls instead of clipping */
.lightbox[open] { display: flex; }
.lightbox__figure {
  width: var(--lb-w);
  margin: auto;
  padding: 72px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.lightbox__frame { position: relative; }
.lightbox__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-footer-home);
}
.lightbox__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.lightbox__count { font-variant-numeric: tabular-nums; }
.lightbox__title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px 18px;
  flex-wrap: wrap;
  margin: 0;
  font-weight: 400;
}
.lightbox__title .en {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1;
  color: var(--white);
}
.lightbox__title .ar {
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.2;
  color: var(--white);
}
.lightbox__caption {
  margin: 0;
  max-width: 60ch;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-75);
}
.lb-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--ink-30);
  background: var(--scrim);
  color: var(--ink);
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease);
}
.lb-btn:hover { border-color: var(--red); color: var(--red); }
.lb-btn svg { width: 22px; height: 22px; }
.lightbox__close { position: fixed; top: 20px; right: 20px; z-index: 1; }
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__prev { left: -76px; }
.lightbox__next { right: -76px; }

.lightbox__error {
  margin: 0;
  font-size: 17px;
  color: var(--red);
}

/* ---------- 404 ---------- */
.notfound {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px var(--gutter) 120px;
}
.notfound .intro-center { gap: 16px; }
.notfound__title .en { font-size: clamp(40px, 5vw, 68px); line-height: 1.05; }
.notfound__title .ar { font-size: clamp(40px, 5vw, 68px); line-height: 1.2; }
.notfound .btn-row { justify-content: center; margin-top: 14px; }

/* ==========================================================================
   Responsive — fixed 2-col grids collapse below 720px
   ========================================================================== */
@media (max-width: 720px) {
  .cat,
  .cat--flip,
  .kunafa__row,
  .kunafa__row--b { grid-template-columns: minmax(0, 1fr); }
  .cat--flip .cat__aside { order: 0; }
  .cat__aside { position: static; }
  .story__photos .frame:first-child { margin-left: 0; }
  .story__photos .frame:last-child { margin-right: 0; }

  .lightbox {
    --lb-w: min(calc(100vw - 32px), max(280px, calc((100vh - 300px) * 1.5)));
    --lb-w: min(calc(100vw - 32px), max(280px, calc((100dvh - 300px) * 1.5)));
  }
  .lightbox__figure { padding-top: 76px; }
  .lightbox__close { top: 12px; right: 12px; }
  .lb-btn { width: 44px; height: 44px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__caption { font-size: 17px; }
}

/* Very narrow phones (≤400px): keep the 4-column tray price tables inside the screen */
@media (max-width: 400px) {
  .tray-head,
  .tray-row { column-gap: 12px; }
  .tray-head { font-size: 12px; letter-spacing: .12em; }
}
