/* ==========================================================================
   Arabic Guide: British Museum — marketing landing page (V1 candidate)
   Shared stylesheet for the Arabic (/) and English (/en/) pages.

   Deliberately uses CSS logical properties (inline-start / inline-end /
   text-align: start) so one stylesheet renders correctly in both RTL and LTR.

   No third-party requests, no fonts loaded from a CDN, no analytics.
   ========================================================================== */

:root {
  /* Palette — kept in the same family as the App Store release-info site */
  --bg:          #f7f6f2;
  --surface:     #ffffff;
  --ink:         #191919;
  --muted:       #5c5751;
  --line:        #d9d6cd;
  --accent:      #5b4619;
  --accent-soft: #f1ede3;
  --cta-bg:      #111111;
  --cta-ink:     #ffffff;

  /* The nine gallery-area colours used inside the app */
  --g-africa:    #d20b5b;
  --g-americas:  #bc1aa6;
  --g-egypt:     #f1ad00;
  --g-greece:    #007d78;
  --g-asia:      #f27821;
  --g-europe:    #6d8e22;
  --g-mideast:   #5c278c;
  --g-themed:    #075b9c;
  --g-buildings: #936f61;

  --wrap: 68rem;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Noto Naskh Arabic", "Geeza Pro", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  text-align: start;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.25; text-wrap: balance; margin: 0; }

p { margin: 0; }

.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-block-end: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
}

.brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  margin-inline-end: auto;
  white-space: nowrap;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.lang-switch a,
.lang-switch span {
  display: block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
}

.lang-switch [aria-current="page"] {
  background: var(--cta-bg);
  color: var(--cta-ink);
}

/* ---------- Gallery colour band ---------- */

.gallery-band {
  display: flex;
  height: 5px;
}

.gallery-band i { flex: 1; }

/* ---------- Sections ---------- */

section { padding-block: 52px; }

section + section { border-block-start: 1px solid var(--line); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-block-end: 10px;
}

h2 { font-size: clamp(1.4rem, 4.4vw, 1.9rem); }

.lede {
  margin-block-start: 14px;
  color: var(--muted);
  max-width: 46ch;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: 44px 52px;
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, var(--bg) 62%);
}

.hero h1 {
  font-size: clamp(1.85rem, 7vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero .lede {
  font-size: 1.06rem;
  max-width: 42ch;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 22px;
  padding: 0;
  list-style: none;
}

.chips li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- CTA ---------- */

.cta-row { margin-block-start: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cta-bg);
  color: var(--cta-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid var(--cta-bg);
}

.btn:hover { opacity: 0.88; }

.btn[aria-disabled="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--line);
  cursor: default;
}

.cta-note {
  margin-block-start: 12px;
  font-size: 0.87rem;
  color: var(--muted);
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  gap: 16px;
  margin-block-start: 28px;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 { font-size: 1.06rem; margin-block-end: 8px; }

.card p { color: var(--muted); font-size: 0.95rem; }

.card .mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.95rem;
  margin-block-end: 12px;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  margin-block-start: 28px;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--accent);
}

.stat span {
  display: block;
  margin-block-start: 6px;
  font-size: 0.84rem;
  color: var(--muted);
}

/* ---------- Galleries strip ---------- */

.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 22px;
  padding: 0;
  list-style: none;
}

.areas li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
  font-size: 0.86rem;
  font-weight: 600;
}

.areas i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

/* ---------- Tours table ---------- */

.tours {
  margin-block-start: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.tours li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  border-block-start: 1px solid var(--line);
  list-style: none;
}

.tours li:first-child { border-block-start: 0; }

.tours .name { font-weight: 700; }

.tours .meta {
  margin-inline-start: auto;
  font-size: 0.84rem;
  color: var(--muted);
  white-space: nowrap;
}

.tours ul { margin: 0; padding: 0; }

/* ---------- Screenshots ---------- */

.shots {
  display: flex;
  gap: 14px;
  margin-block-start: 28px;
  padding: 4px 0 14px;
  overflow-x: auto;
  scroll-snap-type: inline mandatory;
  -webkit-overflow-scrolling: touch;
  list-style: none;
}

.shots li {
  flex: 0 0 auto;
  width: 236px;
  scroll-snap-align: start;
}

.shots img {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  width: 236px;
  height: auto;
}

.shots figcaption {
  margin-block-start: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 52rem) {
  .shots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }
  .shots li, .shots img { width: 100%; }
}

/* ---------- Disclosure / disclaimer ---------- */

.disclosure {
  margin-block-start: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.88rem;
  color: var(--muted);
}

.disclaimer {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-block-start: 26px;
}

.disclaimer p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- FAQ ---------- */

.faq { margin-block-start: 26px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 18px;
  margin-block-end: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding-block: 14px;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: inline-end;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

.faq details[open] summary::after { content: "\2212"; }

.faq .answer {
  padding-block-end: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 40px 56px;
  border-block-start: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-block: 14px 0;
  padding: 0;
  list-style: none;
}

.site-footer .fine {
  margin-block-start: 18px;
  font-size: 0.82rem;
  line-height: 1.65;
}

/* ---------- Motion / print ---------- */

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: opacity 0.15s ease; }
}

@media print {
  .site-header, .cta-row { display: none; }
}
