:root {
  --primary: #1F3A5F;
  --accent: #F2B705;
  --bg: #F7F5EF;
  --surface: #FFFFFF;
  --text: #1C2430;
  --muted: #4A5568;
  --radius: 14px;
  --font: 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; scroll-padding-top: 1rem; }

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

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

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

.skip-link {
  position: absolute;
  inset-inline-start: 0.5rem;
  top: -3rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 0.5rem; }

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

/* Header */
.site-header {
  background: var(--primary);
  color: #fff;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  min-width: 0;
  max-width: 100%;
}
.brand-mark {
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.brand-name { font-size: 0.95rem; line-height: 1.25; }

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.lang-btn {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.lang-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  font-weight: 700;
}

.main-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.main-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0.4rem 0.5rem;
  max-width: 960px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.35rem;
}
.main-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

/* Hero */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 2.5rem 0 3rem;
  text-align: center;
  border-bottom: 6px solid var(--accent);
}
.hero-kicker {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-weight: 700;
}
.hero h1 {
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  line-height: 1.2;
}
.hero-slogan {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  font-size: 1.1rem;
  color: #E6ECF3;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-block;
  max-width: 100%;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-accent { background: var(--accent); color: var(--primary); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Sections */
.section { padding: 2.5rem 0; }
.section-alt { background: #EEEAE0; }
.section h2 {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1.25;
}
.section h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: 0.4rem;
  border-radius: 4px;
  background: var(--accent);
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(31, 58, 95, 0.12);
}
.card h3 { margin: 0 0 0.5rem; color: var(--primary); font-size: 1.1rem; }
.card p { margin: 0.4rem 0; }
.card-soon { border-inline-start: 4px solid var(--accent); }
.muted { color: var(--muted); }
.break { word-break: break-all; }

.placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .main-nav a { font-size: 0.95rem; }
  .brand-name { font-size: 1.1rem; }
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.site-footer a { color: var(--primary); }

/* RTL */
[dir="rtl"] body, html[dir="rtl"] { font-family: var(--font); }
html[dir="rtl"] .hero-kicker { letter-spacing: 0; }
