@charset "UTF-8";

:root {
  --bg: #f3fbf9;
  --bg-2: #e4f6f2;
  --surface: #ffffff;
  --text: #14201e;
  --muted: #4a635e;
  --primary: #00a890;
  --primary-2: #008f7a;
  --accent: #c9a000;
  --teal: #00a890;
  --border: #cfe8e2;
  --shadow: 0 16px 40px rgba(0, 168, 144, .12);
  --header: rgba(255, 255, 255, .9);
  --bar: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(228, 246, 242, .58));
  --bar-fg: #14201e;
  --bar-muted: #4a635e;
  --bar-line: rgba(207, 232, 226, .45);
  --chip: #d8f4ee;
  --ok: #008f7a;
  --radius: 22px;
  --max: 1180px;
}

[data-theme="dark"] {
  --bg: #06201c;
  --bg-2: #0a2b26;
  --surface: #0d322c;
  --text: #e8faf6;
  --muted: #9cc9c0;
  --primary: #1ad4b8;
  --primary-2: #5eead4;
  --accent: #c9a000;
  --teal: #2dd4bf;
  --border: #1a4a43;
  --shadow: 0 16px 40px rgba(0, 0, 0, .32);
  --header: rgba(6, 32, 28, .9);
  --bar: linear-gradient(180deg, rgba(4, 22, 20, .86), rgba(6, 32, 28, .78));
  --bar-fg: #f4fffb;
  --bar-muted: #d4f5ee;
  --bar-line: rgba(94, 234, 212, .28);
  --chip: #0f3d37;
  --ok: #34d399;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  letter-spacing: normal;
  word-spacing: normal;
}
html.theme-ready body,
html.theme-ready .site-header,
html.theme-ready .site-footer,
html.theme-ready .card,
html.theme-ready .stat-card,
html.theme-ready .faq-item,
html.theme-ready .form-card,
html.theme-ready .country-orbit,
html.theme-ready .btn,
html.theme-ready .icon-btn,
html.theme-ready .lang-btn,
html.theme-ready .chip,
html.theme-ready .drop-menu,
html.theme-ready .lang-panel,
html.theme-ready .nav,
html.theme-ready input,
html.theme-ready textarea,
html.theme-ready select,
html.theme-ready .hero,
html.theme-ready .filters a,
html.theme-ready .wa {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease, fill .45s ease;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .45s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, select, input, textarea { font: inherit; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bar);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--bar-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 84px;
}
.logo {
  display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem;
  letter-spacing: 0; color: var(--primary);
}
.logo img {
  height: 86px; width: auto; display: block; object-fit: contain;
  background: transparent;
}
.logo span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a, .drop > span {
  padding: 8px 8px; border-radius: 10px; color: var(--bar-muted); font-weight: 600; font-size: .84rem;
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap;
}
.nav a:hover, .nav a.active, .drop:hover > span { color: var(--primary); background: var(--chip); }
[data-theme="dark"] .nav a:hover,
[data-theme="dark"] .nav a.active,
[data-theme="dark"] .drop:hover > span {
  color: #06201c;
  background: #5eead4;
}

.drop { position: relative; }
.drop-menu {
  display: none; position: absolute; top: 100%; inset-inline-start: 0;
  min-width: 220px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow); padding: 8px; z-index: 30;
}
.drop:hover .drop-menu, .drop:focus-within .drop-menu { display: block; }
.drop-menu a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--text); }
.drop-menu a:hover { color: var(--text); background: var(--bg-2); }
.tools { display: flex; align-items: center; gap: 8px; }
.icon-btn, .lang-btn {
  border: 1px solid var(--bar-line); background: rgba(255,255,255,.45); color: var(--bar-fg);
  border-radius: 12px; min-height: 40px; padding: 0 10px; cursor: pointer;
}
[data-theme="dark"] .icon-btn,
[data-theme="dark"] .lang-btn {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
  color: #f4fffb;
}
.lang-wrap { position: relative; }
.lang-panel {
  display: none; position: absolute; top: calc(100% + 6px); inset-inline-end: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  min-width: 150px; box-shadow: var(--shadow); padding: 6px; z-index: 40;
}
.lang-wrap.open .lang-panel { display: block; }
.lang-panel a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); }
.lang-panel a.active { background: var(--chip); font-weight: 700; }
.burger { display: none; }

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 10% 0%, rgba(0, 168, 144, .2), transparent 50%),
    radial-gradient(700px 360px at 90% 10%, rgba(201, 160, 0, .24), transparent 46%),
    var(--bg);
  padding: 72px 0 48px;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.kicker {
  display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px;
  background: var(--chip); color: var(--primary); border-radius: 999px; font-weight: 700; font-size: .85rem;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.25; margin: 14px 0 10px; letter-spacing: 0; word-spacing: 0.04em; }
.hero .sub { font-size: 1.2rem; color: var(--accent); font-weight: 700; margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 14px; border: 0; font-weight: 700; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
[data-theme="dark"] .btn-primary { color: #06201c; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.rotator {
  min-height: 56px; display: grid;
}
.rotator p {
  grid-area: 1 / 1; margin: 0; font-weight: 600; color: var(--muted);
  opacity: 0; transform: translateY(8px); transition: .45s ease;
}
.rotator p.active { opacity: 1; transform: none; }

.country-orbit {
  display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 28px; padding: 22px; box-shadow: var(--shadow); min-height: 280px;
}
.country-orbit .big {
  font-size: 2rem; font-weight: 800; display: flex; align-items: center; gap: 12px;
}
.flag { font-size: 2rem; line-height: 1; }
.orbit-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 10px; font-size: .85rem; font-weight: 600;
}
.chip.on { background: var(--chip); color: var(--primary); }

section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: 1.7rem; letter-spacing: 0; }
.muted { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card, .card, .faq-item, .form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-card { padding: 22px; }
.stat-card strong { display: block; font-size: 1.8rem; color: var(--primary); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { overflow: hidden; display: flex; flex-direction: column; }
.card-media {
  height: 150px; display: grid; place-items: center;
  background: linear-gradient(135deg, #00a890, #008f7a 58%, #c9a000);
  color: #fff; font-size: 2.4rem; overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.15rem; }
.meta { font-size: .85rem; color: var(--muted); }
.page-hero { padding: 42px 0 10px; }
.page-hero h1 { margin: 8px 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.prose { max-width: 820px; }
.prose p { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.filters a { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.filters a.active { background: var(--primary); color: #fff; border-color: transparent; }
[data-theme="dark"] .filters a.active { color: #06201c; }

.faq-item { margin-bottom: 10px; }
.faq-item button {
  width: 100%; text-align: inherit; background: none; border: 0; padding: 18px 20px;
  font-weight: 700; cursor: pointer; color: var(--text);
}
.faq-item .answer { display: none; padding: 0 20px 18px; color: var(--muted); }
.faq-item.open .answer { display: block; }

.form-card { padding: 22px; display: grid; gap: 12px; }
label { font-weight: 600; font-size: .92rem; }
input, textarea, select {
  width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text);
}
textarea { min-height: 120px; resize: vertical; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.socials a { padding: 8px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); }

.site-footer {
  border-top: 1px solid var(--bar-line);
  padding: 36px 0 24px;
  background: var(--bar);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--bar-fg);
}
.site-footer a { color: var(--bar-fg); }
.site-footer .muted { color: var(--bar-muted); }
.site-footer strong { color: var(--bar-fg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer-logo img { height: 88px; }
.footer-credit {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--bar-line);
  text-align: center;
}
.footer-credit p { margin: 0 0 8px; }
.site-footer .socials a {
  background: rgba(255,255,255,.45);
  border-color: var(--bar-line);
  color: var(--bar-fg);
}
[data-theme="dark"] .site-footer .socials a {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
  color: #f4fffb;
}
.wa {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.wa svg { width: 30px; height: 30px; display: block; }
.empty { padding: 28px; border: 1px dashed var(--border); border-radius: 16px; color: var(--muted); }
.flash { padding: 12px 14px; border-radius: 12px; background: #dcfce7; color: #14532d; margin-bottom: 12px; }
[data-theme="dark"] .flash { background: #14532d; color: #bbf7d0; }

[dir="rtl"] .drop-menu, [dir="rtl"] .lang-panel { inset-inline-end: 0; inset-inline-start: auto; }

@media (max-width: 980px) {
  .hero-grid, .cards, .stats, .contact-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1120px) {
  .burger { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 84px; inset-inline: 0;
    background: var(--bar); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 12px;
  }
  .nav.open { display: flex; }
  .drop-menu { position: static; box-shadow: none; }
  .hero-grid, .cards, .stats, .contact-grid, .footer-grid, .section-head { grid-template-columns: 1fr; display: grid; }
  .hero { padding-top: 40px; }
}
