/* ==========================================================================
   TWINS CAFE — site.css · page layer on top of css/menu.css (tokens, header,
   footer, cards, offers). Everything uses logical properties, so Arabic (RTL)
   and English (LTR) both lay out correctly.
   Sections: 0 Base · 1 Language · 2 Page heads · 3 Layout · 4 Home · 5 Story
             6 Offers · 7 Events · 8 Products · 9 Contact · 10 FAQ · 11 Prose
             12 Gallery · 13 Motion
   ========================================================================== */

/* 0 · BASE */
body:not(.has-dock) { padding-bottom: 0; }
.nav-inline { gap: 2px; }
.nav-inline a { padding: 8px 9px; font-size: .9rem; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--champagne); outline-offset: 3px; border-radius: 6px;
}
.section { padding: 60px 0 14px; }
.section.tint { background: var(--beige-soft); margin-top: 46px; padding-bottom: 60px; }
.section.tint + .section { padding-top: 60px; }

/* 1 · LANGUAGE — page copy is written once per language */
html[lang="ar"] .t-en, html[lang="en"] .t-ar { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.num { font-family: var(--font-display-en); font-weight: 700; direction: ltr; unicode-bidi: isolate; }

/* 2 · PAGE HEADS */
.page-hero { padding: 46px 0 8px; }
.page-hero h1 { margin: 8px 0 0; font-size: clamp(2.1rem, 7vw, 3.4rem); color: var(--burgundy); line-height: 1.15; }
.lead { max-width: 60ch; margin: 14px auto 0; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.page-hero .twin-rule { margin: 14px auto 0; display: block; color: var(--champagne); }

/* 3 · LAYOUT HELPERS */
.split { display: grid; gap: 30px; align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.flip > :first-child { order: 2; }
}
.arch-img { margin: 0; border-radius: 999px 999px 20px 20px; overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 5; background: var(--beige-soft); }
.arch-img img, .round-img img { width: 100%; height: 100%; object-fit: cover; }
.round-img { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-md); background: var(--beige-soft); }
.copy h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--burgundy); margin: 6px 0 14px; line-height: 1.2; }
.copy p { color: var(--ink); line-height: 1.9; margin: 0 0 14px; font-size: 1.04rem; }
.copy .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.info-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.info {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s;
}
.info:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.info h3 { margin: 0 0 6px; font-size: 1.15rem; color: var(--burgundy); }
.info p { margin: 0; color: var(--muted); line-height: 1.7; }
.ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 12px;
  background: var(--beige-soft); color: var(--burgundy);
}
.ico svg { width: 24px; height: 24px; }
.btn-light { background: var(--white); color: var(--burgundy); border-color: var(--white); }
.btn-wa { background: #fff; color: var(--burgundy); }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { background: var(--burgundy-deep); border-color: var(--burgundy-deep); }
.btn-ghost:hover { background: var(--burgundy); color: var(--white); }
.center-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* 4 · HOME */
.h-hero {
  position: relative; overflow: hidden; padding: 34px 0 54px;
  background: radial-gradient(900px 420px at 85% -10%, var(--beige-soft), transparent 70%), var(--cream);
}
.h-hero .wrap { display: grid; gap: 34px; align-items: center; }
.h-copy { text-align: center; }
.h-logo {
  display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.h-logo img { width: 74px; height: 74px; object-fit: contain; }
.h-title { margin: 12px 0 0; display: grid; gap: 2px; line-height: 1.05; }
.h-title .en { font-family: var(--font-display-en); font-size: clamp(3.4rem, 15vw, 6.2rem); font-weight: 700; letter-spacing: .12em; color: var(--burgundy); padding-inline-start: .12em; }
.h-title .ar { font-family: var(--font-display-ar); font-size: clamp(1.8rem, 7vw, 2.8rem); color: var(--burgundy-soft); }
.h-welcome { margin: 18px auto 0; max-width: 34ch; font-size: clamp(1.15rem, 4vw, 1.5rem); line-height: 1.7; color: var(--ink); }
.h-sub { margin: 8px 0 0; color: var(--muted); }
.h-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.h-stage { position: relative; width: min(430px, 100%); aspect-ratio: 4 / 5; margin-inline: auto; }
.h-stage::before, .h-stage::after { content: ""; position: absolute; border-radius: 999px 999px 24px 24px; pointer-events: none; }
.h-stage::before { inset: -12px; border: 1px solid rgba(201, 169, 110, .7); }
.h-stage::after { inset: -22px; border: 1px solid rgba(106, 30, 45, .14); }
.h-slides { position: absolute; inset: 0; border-radius: 999px 999px 20px 20px; overflow: hidden; box-shadow: var(--shadow-md); background: var(--beige-soft); }
.h-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: slide 18s infinite; }
.h-slides img:nth-child(1) { opacity: 1; animation-delay: 0s; }
.h-slides img:nth-child(2) { animation-delay: 6s; }
.h-slides img:nth-child(3) { animation-delay: 12s; }
@keyframes slide {
  0% { opacity: 0; transform: scale(1.04); } 6% { opacity: 1; } 33% { opacity: 1; }
  40% { opacity: 0; transform: scale(1.12); } 100% { opacity: 0; transform: scale(1.12); }
}
.h-slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(79, 21, 33, .35)); pointer-events: none; }
.h-note {
  position: absolute; inset-inline: 16px; bottom: 16px; z-index: 2; padding: 10px 16px; text-align: center;
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 16px; color: var(--burgundy-deep); font-weight: 700; font-size: .92rem;
}
@media (min-width: 900px) {
  .h-hero { padding: 70px 0 96px; }
  .h-hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 64px; }
  .h-copy { text-align: start; }
  .h-logo, .h-welcome { margin-inline: 0; }
  .h-actions { justify-content: flex-start; }
}
.feature-strip { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: -26px; position: relative; z-index: 3; }
.feature-strip .info { text-align: center; padding: 18px 12px; }
.feature-strip .ico { margin-inline: auto; }
.feature-strip b { display: block; color: var(--burgundy); font-size: 1rem; }
.feature-strip span { color: var(--muted); font-size: .86rem; }
@media (min-width: 760px) { .feature-strip { grid-template-columns: repeat(4, 1fr); } }
.offers-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.offers-grid .offer { flex: none; width: auto; }
.mini-gal { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.mini-gal a { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-sm); background: var(--beige-soft); }
.mini-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mini-gal a:hover img { transform: scale(1.06); }
@media (min-width: 760px) { .mini-gal { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.visit { display: grid; gap: 22px; }
@media (min-width: 860px) { .visit { grid-template-columns: .9fr 1.1fr; align-items: stretch; } }

/* 5 · STORY / ABOUT */
.quote {
  margin: 0; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); text-align: center; font-family: var(--font-display-en); font-size: 1.5rem; color: var(--burgundy); line-height: 1.5;
}
html[lang="ar"] .quote { font-family: var(--font-display-ar); font-size: 1.7rem; }
.timeline { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; counter-reset: s; }
.timeline li {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px 18px 20px; padding-inline-start: 70px; box-shadow: var(--shadow-sm); line-height: 1.7;
}
.timeline li::before {
  counter-increment: s; content: counter(s); position: absolute; inset-inline-start: 18px; top: 16px;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--burgundy); color: var(--cream); font-family: var(--font-display-en); font-weight: 700; font-size: 1.15rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.tag { padding: 8px 16px; border-radius: 999px; background: var(--beige-soft); color: var(--burgundy); font-weight: 700; border: 1px solid var(--line); }

/* 6 · OFFERS PAGE */
.offer-note { text-align: center; color: var(--muted); margin-top: 22px; font-size: .95rem; }
.offer.big { transition: transform .3s var(--ease), box-shadow .3s; }

/* 7 · EVENTS / HALL / SERVICES */
.price-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile {
  position: relative; text-align: center; padding: 26px 18px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.tile.hl { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); box-shadow: 0 14px 34px rgba(106, 30, 45, .3); }
.tile small { display: block; font-weight: 700; letter-spacing: .04em; color: var(--burgundy-soft); margin-bottom: 6px; }
.tile.hl small { color: var(--beige); }
.tile .amt { font-family: var(--font-display-en); font-size: 3rem; line-height: 1; font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.tile .amt i { font-style: normal; font-family: var(--font-body); font-size: .85rem; letter-spacing: .08em; margin-inline-start: 6px; }
.tile p { margin: 10px 0 0; font-size: .95rem; opacity: .85; line-height: 1.6; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.checks li {
  display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 14px;
}
.checks li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--burgundy); color: var(--cream); font-size: .8rem; font-weight: 700; }
.games { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.game { text-align: center; padding: 20px 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.game .em { font-size: 2.1rem; line-height: 1; }
.game b { display: block; margin-top: 8px; color: var(--burgundy); }
.game span { color: var(--muted); font-size: .9rem; }
.cta-band {
  text-align: center; padding: 40px 22px; border-radius: 26px; color: var(--cream);
  background: radial-gradient(600px 260px at 90% 0, rgba(201, 169, 110, .28), transparent 70%), var(--burgundy);
  box-shadow: 0 18px 44px rgba(106, 30, 45, .3);
}
.cta-band h2 { margin: 0 0 8px; color: var(--cream); font-size: clamp(1.6rem, 5vw, 2.2rem); }
.cta-band p { margin: 0 auto 22px; max-width: 46ch; opacity: .9; line-height: 1.7; }
.poster { max-width: 440px; margin-inline: auto; }

/* 8 · SUDANESE PRODUCTS */
.prod-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.prod {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s;
}
.prod:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.prod figure { position: relative; margin: 0; aspect-ratio: 4 / 3; background: var(--beige-soft); overflow: hidden; }
.prod figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.prod:hover figure img { transform: scale(1.05); }
.prod .badge { position: absolute; top: 12px; inset-inline-start: 12px; }
.prod-body { padding: 18px 20px 22px; display: grid; gap: 6px; flex: 1; }
.prod-body h3 { margin: 0; font-size: 1.35rem; color: var(--burgundy); }
.prod-body .sub { margin: 0; color: var(--burgundy-soft); font-family: var(--font-display-en); font-size: 1.05rem; }
.prod-body p { margin: 0; color: var(--muted); line-height: 1.65; }
.prod-price { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 8px; color: var(--burgundy); }
.prod-price b { font-family: var(--font-display-en); font-size: 2rem; line-height: 1; }
.prod-price small { font-weight: 700; letter-spacing: .06em; }
.prod-price span { margin-inline-start: auto; color: var(--muted); font-size: .9rem; }

/* 9 · CONTACT */
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: end; font-weight: 700; color: var(--burgundy); direction: ltr; unicode-bidi: isolate; }
.hours tr:last-child td { border-bottom: 0; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-height: 320px; background: var(--beige-soft); height: 100%; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
.contact-list { display: grid; gap: 12px; }
.contact-list a.row, .contact-list div.row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s;
}
.contact-list a.row:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.contact-list .ico { margin: 0; flex: none; }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; }
.contact-list b { color: var(--burgundy); font-size: 1.08rem; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 700; color: var(--burgundy-deep); font-size: .95rem; }
.form input, .form textarea {
  width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--burgundy); box-shadow: 0 0 0 4px rgba(106, 30, 45, .1); }
.form textarea { min-height: 140px; resize: vertical; }
.form .row2 { display: grid; gap: 14px; }
@media (min-width: 700px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.form-msg { padding: 14px 16px; border-radius: 14px; background: var(--safe-bg); color: var(--safe); font-weight: 700; }
.form-msg.err { background: var(--warn-bg); color: var(--warn); }
.hp { position: absolute; inset-inline-start: -9999px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.panel h2, .panel h3 { margin: 0 0 12px; color: var(--burgundy); }

/* 10 · FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-md); border-color: rgba(106, 30, 45, .3); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 20px; font-weight: 700; color: var(--burgundy-deep); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--beige-soft); color: var(--burgundy); font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { content: "–"; transform: rotate(180deg); }
.faq .ans { padding: 0 20px 20px; color: var(--ink); line-height: 1.85; }
.faq .ans a { color: var(--burgundy); font-weight: 700; }

/* 11 · PROSE (privacy policy) */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: 1.5rem; color: var(--burgundy); margin: 34px 0 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.prose h2:first-of-type { border-top: 0; margin-top: 0; }
.prose p, .prose li { line-height: 1.85; color: var(--ink); }
.prose ul { padding-inline-start: 22px; }
.prose a { color: var(--burgundy); font-weight: 700; }
.prose .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.prose .toc a { display: block; padding: 7px 14px; border-radius: 999px; background: var(--beige-soft); text-decoration: none; font-size: .9rem; }
.back-top { display: inline-block; margin-top: 8px; font-size: .9rem; }

/* 12 · GALLERY */
.gal button { cursor: zoom-in; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--burgundy); display: grid; place-items: center; box-shadow: var(--shadow-md); }
.lb-nav svg { width: 22px; height: 22px; }
.lb-prev { inset-inline-start: 8px; } .lb-next { inset-inline-end: 8px; }
html[dir="rtl"] .lb-nav svg { transform: scaleX(-1); }
.lb-count { position: absolute; bottom: -34px; inset-inline: 0; text-align: center; color: #fff; font-weight: 700; letter-spacing: .1em; }
dialog.lightbox { position: fixed; }
dialog.lightbox .lb-wrap { position: relative; }

/* 13 · MOTION */
@media (prefers-reduced-motion: reduce) {
  .h-slides img { animation: none; }
  .h-slides img:nth-child(n+2) { display: none; }
  .info, .prod, .mini-gal img, .prod figure img { transition: none; }
}

/* 14 · HOME — category tiles, signature links */
a.sig { text-decoration: none; color: inherit; }
.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cat-tile {
  display: grid; justify-items: center; gap: 2px; padding: 18px 10px; text-align: center; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(106, 30, 45, .3); }
.cat-tile .ci { font-size: 1.9rem; line-height: 1.2; }
.cat-tile b { color: var(--burgundy); font-size: 1.02rem; }
.cat-tile small { color: var(--muted); font-size: .8rem; }
.offers-grid .offer img { transition: transform .6s var(--ease); }
.offers-grid .offer:hover img { transform: scale(1.04); }

/* 15 · FIXES from visual QA */
.h-stage { width: min(430px, calc(100% - 44px)); }
.tile p { color: var(--muted); opacity: 1; }
.tile.hl p { color: var(--beige); }
.cta-band p { color: var(--beige); opacity: 1; }
.cta-band .btn-ghost:hover { background: var(--cream); color: var(--burgundy); }
.foot-brand .tag, .h-note, .tag.ltr { unicode-bidi: plaintext; text-align: center; }
