:root {
  --main: #1F2328;
  --accent: #E4572E;
  --accent-dark: #B83A16;
  --bg: #FAFAF7;
  --muted: #4A5058;
  --line: #E3E3DE;
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", Roboto, Arial, "Noto Sans Arabic", Tahoma, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--main);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 1rem; font-weight: 700; letter-spacing: -0.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
p { margin: 0 0 1rem; }

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip {
  position: absolute;
  inset-inline-start: 0.5rem;
  top: -3rem;
  background: var(--main);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { top: 0.5rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
}
.brand {
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  min-width: 0;
}
.lang { display: flex; gap: 0.25rem; }
.lang button {
  font: inherit;
  font-size: 0.85rem;
  min-height: 2.25rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--main);
  background: transparent;
  color: var(--main);
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--main); color: var(--bg); }

.nav {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.5rem;
}
.nav a {
  display: inline-block;
  padding: 0.35rem 0.4rem;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--accent-dark); text-decoration: underline; }

/* Sections */
section { scroll-margin-top: 7.5rem; }
.hero { padding: 4rem 0 3.5rem; background: var(--main); color: var(--bg); }
.hero h1 { font-size: clamp(2rem, 9vw, 3.75rem); overflow-wrap: anywhere; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: #F08A6B;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; }
.slogan { font-size: 1.2rem; max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.section { padding: 3.5rem 0; }
.section-alt { background: #F0F0EB; }
.section h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
.section h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: 0.75rem;
  background: var(--accent);
}

.soon { color: var(--muted); font-style: italic; }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
}
.btn-accent { background: var(--accent-dark); color: #fff; }
.btn-accent:hover { background: #9A2F10; }
.btn-ghost { border-color: var(--bg); color: var(--bg); }
.btn-ghost:hover { background: var(--bg); color: var(--main); }
.btn[disabled] { background: #C9C9C4; color: #3A3F45; cursor: not-allowed; }

.grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.card { border: 1px solid var(--line); background: #fff; padding: 1.5rem; min-width: 0; }
.card h3 { font-size: 1.15rem; }
dl { margin: 0; }
dt { font-size: 0.85rem; color: var(--muted); }
dd { margin: 0 0 0.9rem; font-weight: 600; }
.card a { color: var(--accent-dark); }
.break { overflow-wrap: anywhere; word-break: break-word; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.site-footer a { color: var(--main); }

@media (min-width: 48rem) {
  .nav { justify-content: flex-start; gap: 0.25rem 1rem; }
  .nav a { font-size: 0.95rem; }
  .hero { padding: 6.5rem 0 5.5rem; }
  .section { padding: 5rem 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  section { scroll-margin-top: 6rem; }
}

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