/* ==========================================================================
   Rebelo — country landing pages
   Lightweight, ad-traffic oriented. No canvas, no heavy background images.
   ========================================================================== */

:root {
  --brand: #E53935;
  --brand-light: #FF5252;
  --brand-dark: #B71C1C;
  --bg: #0A0A0F;
  --bg-2: #121218;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.74);
  --faint: rgba(255, 255, 255, 0.55);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1080px;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

html[lang="ar"] body {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.85;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

.c-wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

.c-skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.c-skip:focus { inset-inline-start: 8px; top: 8px; }

/* ---------- Header ---------- */
.c-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.c-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.c-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  text-decoration: none;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.c-logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-light);
  align-self: center;
  margin-inline-end: 6px;
}
.c-logo .r { color: var(--brand-light); }

.c-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
}

.c-nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}
.c-nav-links a:hover { color: #fff; }

.c-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text) !important;
  font-weight: 600;
}
.c-lang:hover { border-color: rgba(255, 255, 255, 0.3); }

.c-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.c-nav-cta:hover { background: var(--brand-light); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.c-hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.c-hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -15%;
  top: -45%;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 57, 53, 0.28), transparent 62%);
  pointer-events: none;
}

.c-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: center;
}

.c-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 82, 82, 0.35);
  background: rgba(229, 57, 53, 0.10);
  color: var(--brand-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.c-hero h1 {
  font-family: 'Outfit', 'Tajawal', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.c-hero h1 .accent {
  background: linear-gradient(135deg, var(--brand-light), #FF8A80);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.c-hero p.lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 28px;
}

.c-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s, background .18s, border-color .18s;
}

.c-btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 14px 34px rgba(229, 57, 53, 0.30);
}
.c-btn.primary:hover { transform: translateY(-2px); }

.c-btn.ghost {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.c-btn.ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: var(--surface-2); }

.c-facts {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.c-facts li {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 14px 14px 12px;
}

.c-facts strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 2px;
}

.c-facts span { font-size: 0.8rem; color: var(--faint); }

.c-hero-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  padding: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.c-hero-card h2 {
  font-family: 'Outfit', 'Tajawal', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.c-role-list { list-style: none; display: grid; gap: 10px; }

.c-role-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color .18s, background .18s, transform .18s;
}

.c-role-list a:hover {
  border-color: rgba(255, 82, 82, 0.45);
  background: rgba(229, 57, 53, 0.10);
  transform: translateX(0);
}

.c-role-list .arrow { color: var(--brand-light); }

.c-note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--faint);
}

/* ---------- Sections ---------- */
.c-section { padding: 64px 0; border-bottom: 1px solid var(--border); }
.c-section:last-of-type { border-bottom: 0; }

.c-section-head { max-width: 62ch; margin-bottom: 32px; }

.c-label {
  display: inline-block;
  color: var(--brand-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.c-section h2 {
  font-family: 'Outfit', 'Tajawal', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.c-section p.sub { color: var(--muted); }

.c-grid-3, .c-grid-4 {
  display: grid;
  gap: 16px;
}
.c-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.c-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}

.c-card .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(229, 57, 53, 0.15);
  color: var(--brand-light);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.c-card h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
  font-family: 'Outfit', 'Tajawal', sans-serif;
}

.c-card p { font-size: 0.9rem; color: var(--muted); }

.c-check {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.c-check li { display: flex; gap: 10px; align-items: flex-start; }
.c-check li::before {
  content: "✓";
  color: var(--brand-light);
  font-weight: 800;
  line-height: 1.5;
}

.c-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.c-cities li {
  font-size: 0.82rem;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.c-faq { display: grid; gap: 10px; }

.c-faq details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 0 18px;
}

.c-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  font-size: 0.96rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.c-faq summary::-webkit-details-marker { display: none; }

.c-faq summary::after {
  content: "+";
  color: var(--brand-light);
  font-size: 1.3rem;
  line-height: 1;
  flex: none;
}

.c-faq details[open] summary::after { content: "−"; }

.c-faq details p {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Final CTA ---------- */
.c-final {
  padding: 60px 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(229, 57, 53, 0.22), transparent 60%),
    var(--bg-2);
  text-align: center;
}

.c-final h2 {
  font-family: 'Outfit', 'Tajawal', sans-serif;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin-bottom: 10px;
}

.c-final p { color: var(--muted); margin-bottom: 26px; }

.c-final .c-actions { justify-content: center; }

/* ---------- Footer ---------- */
.c-footer {
  padding: 34px 0 100px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.84rem;
}

.c-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
}

.c-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.c-footer a { color: var(--faint); text-decoration: none; }
.c-footer a:hover { color: #fff; }

/* ---------- Sticky mobile CTA ---------- */
.c-sticky {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 15, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}

.c-sticky .c-btn { width: 100%; min-height: 48px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .c-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .c-hero-card { max-width: 520px; }
  .c-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .c-grid-3 { grid-template-columns: 1fr; }
  .c-nav-links .optional { display: none; }
}

@media (max-width: 560px) {
  .c-hero { padding-top: 44px; }
  .c-nav-cta { display: none; }
  .c-facts { grid-template-columns: 1fr; }
  .c-actions .c-btn { width: 100%; }
  .c-grid-4 { grid-template-columns: 1fr; }
  .c-sticky { display: block; }
  .c-footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .c-btn, .c-role-list a, .c-nav-cta { transition: none; }
}
