/* =========================================================
   وصلة — Landing Page
   Design tokens
========================================================= */
:root {
  --c-primary: #3fbee1;
  --c-primary-dark: #1c8fb0;
  --c-ink: #0c2233;
  --c-ink-soft: #14344a;
  --c-tint: #eaf8fc;
  --c-verified: #2fbf71;
  --c-paper: #ffffff;
  --c-text: #16323f;
  --c-text-soft: #4c6b78;
  --c-border: #dbeef4;

  /* Primary: matches the Wasla app's own fonts.
     NOTE: Hacen Liner Print is a licensed Arabic font not available on public
     font CDNs — add its files under /fonts (woff2 preferred) for it to load.
     Until then, the page falls back to Tajawal automatically. */
  --font-display: 'Hacen Liner Print', 'Tajawal', sans-serif;
  --font-body: 'Hacen Liner Print', 'IBM Plex Sans Arabic', sans-serif;
  --font-display-en: 'Plus Jakarta Sans', sans-serif;
  --font-body-en: 'Plus Jakarta Sans', sans-serif;

  --container: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-md: 0 12px 30px -12px rgba(12, 34, 51, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(12, 34, 51, 0.25);
}

/* =========================================================
   App fonts
   Loaded from the local /fonts folder (one level up from this
   css/style.css file): fonts/Hacen-Liner-Print-out.ttf
========================================================= */
@font-face {
  font-family: 'Hacen Liner Print';
  src: url('../fonts/Hacen-Liner-Print-out.ttf') format('truetype');
  font-weight: 400 900;
  font-display: swap;
}

/* Switch the whole page to the English app font when language = EN */
body.lang-en { font-family: var(--font-body-en); }
body.lang-en h1, body.lang-en h2, body.lang-en h3, body.lang-en h4,
body.lang-en .brand-name, body.lang-en .eyebrow, body.lang-en .btn,
body.lang-en .timeline-num, body.lang-en .step-num, body.lang-en .node-label,
body.lang-en .audience-tag, body.lang-en .store-badge strong {
  font-family: var(--font-display-en);
}

/* =========================================================
   Reset
========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--c-ink);
  margin: 0 0 0.5em;
  line-height: 1.25;
}
p { margin: 0 0 1em; color: var(--c-text-soft); }
button { font-family: inherit; cursor: pointer; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--c-primary-dark);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Layout helpers
========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 88px 0; }
.section-tint { background: var(--c-tint); }

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--c-primary-dark);
  background: var(--c-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Buttons
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--c-primary);
  color: var(--c-ink);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--c-border);
  color: var(--c-ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary-dark); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* =========================================================
   Header
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  height: 40px;
  width: auto;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--c-ink);
}
.footer-logo-icon {
  height: 32px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
}
.main-nav a { color: var(--c-text-soft); transition: color 0.2s ease; }
.main-nav a:hover { color: var(--c-primary-dark); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  font-family: var(--font-display-en);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--c-primary-dark);
  background: var(--c-tint);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 7px 14px;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-toggle:hover { background: var(--c-primary); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-ink);
  margin-inline: auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(63, 190, 225, 0.14), transparent),
    var(--c-paper);
}
.hero-watermark {
  position: absolute;
  inset-inline-end: -6%;
  top: -8%;
  width: 480px;
  max-width: 46vw;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-lead { font-size: 1.05rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 36px; }

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}
.hero-trust-item { display: flex; flex-direction: column; gap: 2px; }
.hero-trust-item strong { font-family: var(--font-display); color: var(--c-ink); font-size: 0.98rem; }
.hero-trust-item span { font-size: 0.85rem; color: var(--c-text-soft); }

/* Signature visual: chain of trust */
.hero-visual { text-align: center; }
.chain-card {
  background: var(--c-paper);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 36px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.chain-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.node-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--c-tint);
  border: 2px solid var(--c-border);
}
.node-check .node-icon {
  background: var(--c-verified);
  border-color: var(--c-verified);
  box-shadow: 0 0 0 6px rgba(47, 191, 113, 0.15);
}
.node-label { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--c-ink); }
.chain-line { width: 100%; max-width: 70px; height: 20px; }
.chain-caption { margin-top: 20px; font-size: 0.9rem; color: var(--c-text-soft); }

/* =========================================================
   Timeline (how it works — 6 steps)
========================================================= */
.timeline {
  position: relative;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 23px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--c-border);
}
.timeline-item {
  position: relative;
  display: flex;
  gap: 22px;
  padding: 18px 0;
}
.timeline-num {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--c-primary);
  color: var(--c-ink);
  border: 4px solid var(--c-paper);
  box-shadow: 0 0 0 1px var(--c-border);
}
.timeline-body { padding-top: 4px; }
.timeline-body p { margin-bottom: 0; font-size: 0.95rem; }

/* =========================================================
   Features grid
========================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--c-paper);
  border-radius: var(--radius);
  padding: 28px 22px;
  border: 1px solid var(--c-border);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--c-tint);
  margin-bottom: 16px;
}
.feature-card p { font-size: 0.92rem; margin-bottom: 0; }

/* =========================================================
   Audience split
========================================================= */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.audience-card {
  padding: 36px 30px;
  border-radius: var(--radius);
  background: var(--c-tint);
  border: 1px solid var(--c-border);
}
.audience-card-alt { background: var(--c-ink); }
.audience-card-alt h3,
.audience-card-alt .check-list li { color: #fff; }
.audience-card-alt .check-list li::before { color: var(--c-primary); }

.audience-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--c-primary);
  color: var(--c-ink);
  margin-bottom: 14px;
}
.check-list li {
  position: relative;
  padding-inline-start: 26px;
  margin-bottom: 10px;
  color: var(--c-text);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--c-verified);
  font-weight: 700;
}

/* =========================================================
   CTA band
========================================================= */
.cta-band {
  background: var(--c-ink);
  color: #fff;
  padding: 72px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.75); margin-bottom: 0; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.store-badge:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.store-badge-icon { font-size: 1.4rem; color: var(--c-primary); }
.store-badge small { display: block; font-size: 0.72rem; color: rgba(255, 255, 255, 0.7); }
.store-badge strong { font-family: var(--font-display); font-size: 1rem; color: #fff; }

/* =========================================================
   Contact
========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}
.contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-primary-dark);
  transition: color 0.2s ease;
}
.contact-info a:hover { color: var(--c-ink); }
.contact-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-tint);
  flex-shrink: 0;
}
.contact-form {
  background: var(--c-tint);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  background: var(--c-paper);
  color: var(--c-text);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(63, 190, 225, 0.2);
}
.form-note {
  font-size: 0.88rem;
  color: var(--c-verified);
  min-height: 1.2em;
  margin: 0;
}

/* =========================================================
   Floating WhatsApp button
========================================================= */
.whatsapp-float {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* =========================================================
   Footer
========================================================= */
.site-footer { background: var(--c-ink-soft); color: rgba(255, 255, 255, 0.85); padding-top: 56px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: rgba(255, 255, 255, 0.65); margin-top: 14px; font-size: 0.92rem; }
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 12px; }
.footer-links h4, .footer-social h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.footer-links a { color: rgba(255, 255, 255, 0.65); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--c-primary); }
.social-icons { display: flex; gap: 10px; }
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #fff;
  transition: background 0.2s ease;
}
.social-icons a:hover { background: var(--c-primary); color: var(--c-ink); }

.footer-bottom { padding: 20px 0; }
.footer-bottom p { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); text-align: center; }

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 840px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--c-paper);
    border-bottom: 1px solid var(--c-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; text-align: start; }
  .chain-card { flex-wrap: wrap; }
  .hero-watermark { width: 300px; opacity: 0.045; }
  .whatsapp-float { width: 50px; height: 50px; inset-inline-end: 16px; bottom: 16px; }
  .timeline::before { inset-inline-start: 19px; }
  .timeline-num { width: 40px; height: 40px; font-size: 0.95rem; }
  .timeline-item { gap: 16px; }
}
