/* Family Grand Tour: the app's Rome palette (App/Views/Theme.swift) and fonts (SIL OFL, /fonts) */
@font-face { font-family: "Frank Ruhl Libre"; src: url(/fonts/FrankRuhlLibre-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Frank Ruhl Libre"; src: url(/fonts/FrankRuhlLibre-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Assistant"; src: url(/fonts/Assistant-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Assistant"; src: url(/fonts/Assistant-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Assistant"; src: url(/fonts/Assistant-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto Naskh Arabic"; src: url(/fonts/NotoNaskhArabic-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto Sans Arabic"; src: url(/fonts/NotoSansArabic-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans Arabic"; src: url(/fonts/NotoSansArabic-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --deep: #20372D; --cover: #44745F; --on-cover: #FFF6E6; --bg: #F5F0E5; --card: #FFFEFA;
  --stone: #E8E8D9; --line: #D9D6C7; --dim: #5B6556; --accent: #B24D36; --gold: #A9822F;
  --gold-light: #F4EAD2; --olive: #4F6F3A;
  --serif: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --sans: "Assistant", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --deep: #F1EADB; --bg: #16201B; --card: #1F2B25; --stone: #26332C; --line: #33443B; --dim: #B8C0B0;
          --gold-light: #2E2A1E; --cover: #2F5444; --accent: #E08355; --olive: #A9C58E; }
}
/* a language name in its own script (the language menu) */
[lang="ar"] { font-family: "Noto Sans Arabic", "Geeza Pro", sans-serif; }
[lang="ru"] { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.lang-ar { --serif: "Noto Naskh Arabic", "Geeza Pro", serif; --sans: "Noto Sans Arabic", "Geeza Pro", sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--deep); font: 18px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 14px max(16px, 4vw);
       background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--deep);
         font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
.brand img { border-radius: 9px; }
.pages, .langs { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pages { margin-inline-start: auto; }
.pages a, .langs a { color: var(--deep); text-decoration: none; font-weight: 600; padding: 10px 2px; min-height: 44px; display: inline-flex; align-items: center; }
.pages a[aria-current], .langs a[aria-current] { color: var(--accent); border-bottom: 2px solid var(--accent); }
.langs { width: 100%; justify-content: flex-end; font-size: .9rem; gap: 2px 14px; }
.langs a { font-weight: 500; color: var(--dim); }

.hero { position: relative; min-height: 70vh; display: grid; align-items: end; color: var(--on-cover); overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,40,32,.88), rgba(20,40,32,.25) 60%, rgba(20,40,32,.05)); }
.hero-text { position: relative; z-index: 1; padding: 48px max(16px, 6vw); max-width: 820px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); color: var(--on-cover); }
.kicker { text-transform: uppercase; letter-spacing: .2em; font-weight: 700; font-size: .85rem; margin: 0 0 .6em; opacity: .9; }
.lang-he .kicker, .lang-ar .kicker { letter-spacing: 0; }
.lead { font-size: 1.25rem; }
.store { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 20px; min-height: 48px;
         border-radius: 14px; background: #000; color: #fff; font-weight: 600; border: 1px solid rgba(255,255,255,.35); }
.store svg { width: 22px; height: 22px; fill: #fff; }

.wrap { max-width: 980px; margin: 0 auto; padding: 24px max(16px, 4vw); }
.intro p { font-size: 1.2rem; max-width: 760px; }
.features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.features li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.features li p { margin: 0; color: var(--dim); }
.cities { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.cities a { display: block; position: relative; border-radius: 16px; overflow: hidden; text-decoration: none; aspect-ratio: 3 / 4; }
.cities img { width: 100%; height: 100%; object-fit: cover; }
.cities span { position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px; color: #FFF6E6; font-family: var(--serif);
               font-weight: 700; font-size: 1.3rem; background: linear-gradient(to top, rgba(20,40,32,.85), transparent); }
.note { background: var(--gold-light); border-radius: 14px; padding: 14px 18px; }

.city { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; align-items: center; margin: 32px 0;
        background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.city img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.city > div { padding: 20px 24px 20px 0; }
[dir="rtl"] .city > div { padding: 20px 0 20px 24px; }
.city h2 { margin-top: 0; }
.free { color: var(--olive); }
@media (max-width: 640px) {
  .city { grid-template-columns: 1fr; }
  .city > div, [dir="rtl"] .city > div { padding: 0 20px 20px; }
  .pages { margin-inline-start: 0; width: 100%; }
  .langs { justify-content: flex-start; }
}

.doc { max-width: 760px; }
.doc section { border-top: 1px solid var(--line); padding-top: 4px; }
.updated { color: var(--dim); }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; min-height: 44px; }
.contact-box { background: var(--gold-light); border-radius: 16px; padding: 4px 20px 12px; margin-top: 28px; }
.mail { font-weight: 700; font-size: 1.15rem; direction: ltr; unicode-bidi: isolate; }
.contact a, .foot a[href^="mailto"] { direction: ltr; unicode-bidi: isolate; }

.foot { margin-top: 48px; padding: 28px max(16px, 4vw); background: var(--card); border-top: 1px solid var(--line); color: var(--dim); font-size: .95rem; }
.foot p { margin: .3em 0; }
.foot a { color: var(--deep); }
