:root {
  --olive: #5B6B2F;
  --olive-dark: #46531F;
  --terre: #B5532F;
  --terre-dark: #9A4424;
  --creme: #F6EFE0;
  --creme-2: #EFE5CF;
  --ink: #2B2A22;
  --muted: #5E5A4C;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--creme);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); color: var(--olive-dark); line-height: 1.25; margin: 0 0 .6em; overflow-wrap: anywhere; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: "Amiri", "Noto Naskh Arabic", "Traditional Arabic", var(--serif); }
p { margin: 0 0 1em; overflow-wrap: break-word; }
a { color: var(--terre-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--terre); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }
html[dir="rtl"] .skip:focus { left: auto; right: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 239, 224, .97);
  border-bottom: 1px solid var(--creme-2);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem; padding-top: .6rem; padding-bottom: .4rem;
}
.brand {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
  color: var(--olive-dark); text-decoration: none; max-width: 100%;
}
.lang { display: flex; flex-wrap: wrap; gap: .25rem; }
.lang button {
  font: inherit; font-size: .8rem; cursor: pointer;
  padding: .3rem .55rem; border-radius: 999px;
  border: 1px solid var(--olive); background: transparent; color: var(--olive-dark);
}
.lang button[aria-pressed="true"] { background: var(--olive); color: #fff; }

.nav ul {
  list-style: none; margin: 0; padding: .25rem 0 .55rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem .4rem;
}
.nav a {
  display: inline-block; padding: .3rem .55rem; font-size: .85rem;
  color: var(--ink); text-decoration: none; border-radius: 6px; white-space: nowrap;
}
.nav a:hover { background: var(--creme-2); }
.nav a.nav-cta { background: var(--terre); color: #fff; }
.nav a.nav-cta:hover { background: var(--terre-dark); }

/* Hero */
.hero { text-align: center; padding: 3.5rem 0 3rem; background:
  radial-gradient(circle at 50% 0, rgba(181, 83, 47, .08), transparent 60%), var(--creme); }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; color: var(--terre-dark); margin-bottom: .5rem; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.hero h1 { font-size: clamp(1.9rem, 7vw, 3.2rem); }
.slogan { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); }
html[lang="ar"] .slogan { font-style: normal; }
.ornament { display: flex; align-items: center; justify-content: center; gap: .6rem; color: var(--terre); margin: 1.2rem auto 1.6rem; max-width: 220px; }
.ornament span { flex: 1; height: 1px; background: var(--terre); opacity: .5; }
.btn {
  display: inline-block; background: var(--olive); color: #fff; text-decoration: none;
  padding: .75rem 1.6rem; border-radius: 999px; font-weight: 600;
}
.btn:hover { background: var(--olive-dark); }

/* Sections */
.section { padding: 3rem 0; }
.section.alt { background: var(--creme-2); }
.section h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); text-align: center; }
.section h2::after { content: ""; display: block; width: 48px; height: 2px; background: var(--terre); margin: .6rem auto 0; }
.section > .wrap > p { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.cards { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1rem; }
.card {
  background: #FFFBF3; border: 1px solid #E6DAC0; border-radius: 12px; padding: 1.25rem; min-width: 0;
}
.card h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.card p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); font-style: italic; }
.break { overflow-wrap: anywhere; word-break: break-word; }

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .nav a { font-size: .95rem; }
}

/* Footer */
.site-footer { text-align: center; padding: 1.5rem 1rem; border-top: 1px solid var(--creme-2); }
.powered { font-size: .8rem; color: var(--muted); margin: 0; }
.powered a { color: var(--olive-dark); }
