:root {
  --olive: #5B6B3A;
  --olive-dark: #3F4A28;
  --cream: #F5EBDD;
  --cream-dark: #EADBC4;
  --copper: #C8873A;
  --ink: #2B2A22;
  --white: #FFFDF9;
  --serif: Georgia, "Times New Roman", "Noto Naskh Arabic", "Geeza Pro", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "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.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  overflow-wrap: break-word;
}

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;
}

h1 { font-size: clamp(1.8rem, 7vw, 3rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); }
h3 { font-size: 1.2rem; }

a { color: var(--olive-dark); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0; top: 0;
  transform: translateY(-120%);
  background: var(--olive-dark);
  color: var(--white);
  padding: .5rem 1rem;
  z-index: 100;
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--olive);
  color: var(--white);
  border-bottom: 3px solid var(--copper);
  max-width: 100%;
}

.header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .6rem 1rem .3rem;
  max-width: 960px;
  margin: 0 auto;
}

.brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
  min-width: 0;
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}
.lang-switch button {
  font: inherit;
  font-size: .8rem;
  padding: .3rem .6rem;
  min-height: 32px;
  border: 1px solid var(--cream);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--cream);
  color: var(--olive-dark);
  font-weight: bold;
}

.main-nav { max-width: 960px; margin: 0 auto; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: .2rem .5rem .5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .1rem .3rem;
}
.main-nav a {
  display: inline-block;
  padding: .35rem .5rem;
  font-size: .85rem;
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--olive-dark); }

/* Hero */
.hero {
  text-align: center;
  padding: 3.5rem 0 3rem;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 50% 50%, transparent 9px, rgba(200, 135, 58, .18) 10px, transparent 11px),
    radial-gradient(circle at 0 0, rgba(91, 107, 58, .10) 4px, transparent 5px);
  background-size: 28px 28px;
  border-bottom: 1px solid var(--cream-dark);
}
.eyebrow {
  display: inline-block;
  margin: 0 0 .8rem;
  padding: .15rem .8rem;
  border-top: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  font-family: var(--serif);
  letter-spacing: .05em;
  color: var(--olive-dark);
}
.slogan {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  margin: 0 0 1.5rem;
}
[dir="rtl"] .slogan { font-style: normal; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

/* Buttons */
.btn {
  display: inline-block;
  max-width: 100%;
  font: inherit;
  font-weight: bold;
  padding: .7rem 1.3rem;
  min-height: 44px;
  border-radius: 999px;
  border: 2px solid var(--olive);
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--olive); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--olive-dark); }
.btn[disabled] {
  background: var(--cream-dark);
  border-color: #B9A88C;
  color: #5A5446;
  cursor: not-allowed;
}

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--white); }
.section h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: .4rem;
  background: var(--copper);
}
.lead { margin-top: 0; }

.card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-inline-start: 4px solid var(--copper);
  border-radius: 10px;
  padding: 1.2rem;
  max-width: 100%;
}
.section-alt .card { background: var(--cream); }
.card p:last-child { margin-bottom: 0; }
.placeholder { text-align: center; font-style: italic; }
.note { font-size: .9rem; color: #514C3E; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.grid > * { min-width: 0; }
.break { word-break: break-all; }

/* Footer */
.site-footer {
  text-align: center;
  font-size: .8rem;
  padding: 1.2rem 1rem;
  background: var(--cream-dark);
  color: #514C3E;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--olive-dark); }

/* RTL */
[dir="rtl"] body, body[dir="rtl"] { font-family: var(--sans); }

@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .main-nav a { font-size: .95rem; }
  .brand { font-size: 1.25rem; }
  .hero { padding: 5rem 0 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
