/* ============================================
   MENU — SPLIT SHOWCASE LAYOUT
   Each category: items on the LEFT, hero image on the RIGHT.
   ============================================ */

.menu-section {
  padding: clamp(2rem, 5vw, 3.5rem) 0 var(--section-pad);
}

/* Category dropdown navigation */
.menu-catnav {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 30;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
}

/* ── Category sections ── */
.menu-category-dropdown {
  position: relative;
  width: min(100%, 290px);
}

.cat-dropdown-toggle {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #e8734e, var(--accent-dark));
  border: 0;
  border-radius: 10px;
  padding: 0.75rem 1.35rem;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(232, 93, 38, 0.25);
  transition: transform var(--transition), box-shadow var(--transition),
              filter var(--transition);
}

.cat-dropdown-toggle:hover,
.cat-dropdown-toggle:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(232, 93, 38, 0.32);
  outline: none;
}

.cat-dropdown-arrow {
  display: inline-block;
  font-size: 0.82rem;
  transition: transform 0.3s var(--ease);
}

.menu-category-dropdown.is-open .cat-dropdown-arrow {
  transform: rotate(180deg);
}

.cat-dropdown-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  background: #fffaf3;
  border: 1px solid rgba(232, 93, 38, 0.16);
  border-radius: 12px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scaleY(0.98);
  transform-origin: top;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              visibility 0.3s var(--ease);
}

.menu-category-dropdown.is-open .cat-dropdown-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scaleY(1);
}

.cat-dropdown-link {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem 0.75rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: #281711;
  border-bottom: 1px solid rgba(40, 23, 17, 0.08);
  transition: background var(--transition), color var(--transition);
}

.cat-dropdown-link:last-child {
  border-bottom: 0;
}

.cat-dropdown-link::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  flex: 0 0 auto;
  transition: background var(--transition), box-shadow var(--transition);
}

.cat-dropdown-link:hover,
.cat-dropdown-link:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #e8734e, var(--accent-dark));
  outline: none;
}

.cat-dropdown-link.is-active {
  color: #e8734e;
}

.cat-dropdown-link.is-active::before {
  background: #e8734e;
  box-shadow: 0 0 0 4px rgba(232, 93, 38, 0.12);
}

.cat-dropdown-link:hover::before,
.cat-dropdown-link:focus-visible::before {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.cat-dropdown-count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(40, 23, 17, 0.55);
  white-space: nowrap;
  transition: color var(--transition);
}

.cat-dropdown-link:hover .cat-dropdown-count,
.cat-dropdown-link:focus-visible .cat-dropdown-count {
  color: rgba(255, 255, 255, 0.78);
}

.cat-section {
  scroll-margin-top: 140px;
  padding: clamp(2rem, 6vw, 4rem) 0;
  position: relative;
}

.cat-row {
  display: grid;
  grid-template-columns: 62fr 38fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.cat-text { order: 1; }
.cat-visual { order: 2; }

/* ── Left column: text + items ── */
.cat-text {
  min-width: 0;
}

.cat-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(212, 168, 83, 0.25);
}

.cat-eyebrow::before {
  content: '';
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 2px;
}

.cat-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.1) 0%, rgba(232, 93, 38, 0.06) 100%);
  border: 1px solid rgba(212, 168, 83, 0.22);
  border-left: 3px solid var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.cat-title-text {
  background: linear-gradient(120deg, var(--text-primary) 0%, var(--gold-light) 110%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cat-desc {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(0.98rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
  max-width: 46ch;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────
   CLASSIC MENU LIST — dashes + dotted leaders + premium spacing
   ───────────────────────────────────────────────────────────── */
.cat-items {
  list-style: none;
  padding: 0.25rem 0 0 0.75rem;
  margin: 0;
}

/* Each row is a flex container; the leader expands between name + portion */
.menu-row {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem 0.95rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
              background 0.25s var(--ease);
  border-radius: 4px;
}

.menu-row:last-child { border-bottom: 0; }

.cat-section.is-visible .menu-row {
  opacity: 1;
  transform: translateY(0);
}

/* Hover — subtle dark/warm overlay + warm text shift */
.menu-row:hover {
  background: linear-gradient(90deg, rgba(232, 93, 38, 0.07), rgba(232, 93, 38, 0.02) 70%, transparent);
}

.menu-row:hover .menu-row-name {
  color: var(--gold-light);
}

.menu-row:hover .menu-row-mark {
  color: var(--accent-hover);
  transform: translateX(3px);
}

.menu-row:hover .menu-row-leader {
  border-bottom-color: rgba(212, 168, 83, 0.45);
}

/* ── Leading dash / number ── */
.menu-row-mark {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
  letter-spacing: 0.5px;
  min-width: 1.25rem;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

/* ── Item name ── */
.menu-row-name {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s var(--ease);
}

/* ── Dotted leader (fills space between name and portion) ── */
.menu-row-leader {
  flex: 1 1 auto;
  align-self: flex-end;
  margin: 0 0.35rem 0.32rem;
  height: 0;
  min-width: 1.5rem;
  border-bottom: 1px dotted rgba(212, 168, 83, 0.32);
  transition: border-color 0.3s var(--ease);
}

/* ── Portion / size info on the right ── */
.menu-row-portion {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

/* Inline indicators inside the name */
.menu-row-name .row-spice {
  margin-left: 0.45rem;
  font-size: 0.78em;
  vertical-align: 0.05em;
  filter: saturate(1.15);
}

.menu-row-name .row-sig {
  margin-left: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(232, 93, 38, 0.1);
  border: 1px solid rgba(232, 93, 38, 0.32);
  padding: 0.16rem 0.5rem;
  border-radius: 50px;
  vertical-align: 0.18em;
  white-space: nowrap;
}

/* ── Item count badge (next to category title) ── */
.cat-count {
  display: inline-block;
  margin-left: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.25);
  padding: 0.22rem 0.6rem;
  border-radius: 50px;
  vertical-align: 0.32em;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  -webkit-text-fill-color: var(--gold);
}

/* ── Responsive: drop the dotted leader, wrap portion under the name ── */
@media (max-width: 640px) {
  .cat-items { padding-left: 0; }

  .menu-row {
    flex-wrap: wrap;
    gap: 0.3rem 0.5rem;
    padding: 0.55rem 0.5rem 0.85rem 0.5rem;
  }

  .menu-row-name {
    white-space: normal;
    flex: 1 1 auto;
  }

  .menu-row-leader { display: none; }

  .menu-row-portion {
    flex-basis: 100%;
    margin-left: 1.85rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
  }
}

/* ── Right column: hero image ── */
.cat-visual {
  position: relative;
  min-width: 0;
}

.cat-img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: clamp(16px, 2vw, 24px);
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.65),
    0 18px 36px -18px rgba(232, 93, 38, 0.25);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
  will-change: transform;
}

.cat-section.is-visible .cat-img-wrap {
  opacity: 1;
  transform: scale(1);
}

.cat-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
}

.cat-img-wrap img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease);
  will-change: transform;
}

.cat-section.is-visible .cat-img-wrap:hover img {
  transform: scale(1.04);
}

.cat-img-tag {
  display: none;
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(13, 9, 7, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
}

/* Decorative gold flourish between categories */
.cat-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto;
  max-width: 220px;
  opacity: 0.6;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.cat-divider::before,
.cat-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

.cat-divider span {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.3em;
}

/* ── Menu intro / disclaimer ── */
.menu-intro {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.menu-intro p {
  display: inline-block;
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.05rem;
  padding: 0.6rem 1.4rem;
  border: 1px dashed rgba(212, 168, 83, 0.35);
  border-radius: 50px;
  background: rgba(212, 168, 83, 0.04);
}

/* ── Mobile responsiveness ── */
@media (max-width: 900px) {
  .cat-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .cat-text { order: 1; }
  .cat-visual { order: 2; }

  .cat-img-wrap { aspect-ratio: 16 / 11; }

  .cat-section { scroll-margin-top: 120px; }
}

@media (max-width: 540px) {
  .cat-img-wrap { aspect-ratio: 4 / 3; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .menu-row,
  .cat-img-wrap {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================
   DELIVERY PARTNER BADGES
   ============================================ */
.delivery-partners {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.delivery-partners-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-right: 0.25rem;
}

.delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  transition: transform var(--transition), border-color var(--transition),
              background var(--transition);
}

.delivery-badge:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  background: rgba(232, 93, 38, 0.08);
}

.delivery-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.delivery-badge.rafeeq .dot { background: #ff5a3c; }
.delivery-badge.snoonu .dot { background: #ff2d55; }
.delivery-badge.talabat .dot { background: #ff5a00; }

/* ============================================
   TWO-BRANCH CONTACT GRID
   ============================================ */
.branches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .branches-grid { grid-template-columns: 1fr; }
}

.branch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.branch-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.branch-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.branch-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 0 0 4px rgba(232, 93, 38, 0.12);
  flex-shrink: 0;
}

.branch-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.branch-area {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.branch-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.branch-row .icon {
  color: var(--accent);
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.branch-row a {
  color: var(--text-primary);
  font-weight: 600;
}

.branch-row a:hover { color: var(--accent); }

.branch-map {
  margin-top: 0.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.branch-map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

.branch-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(232, 93, 38, 0.1);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  align-self: flex-start;
  transition: background var(--transition), color var(--transition),
              transform var(--transition);
}

.branch-cta:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
