:root {
  --navy: #123454;
  --navy-dark: #0c2438;
  --orange: #f5821f;
  --orange-dark: #db6d0e;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --text: #1a2733;
  --text-muted: #5b6b78;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe57;
  --radius: 16px;
  --wrap: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #eef1f4;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo { height: 44px; width: auto; }
.footer-logo { height: 56px; width: auto; margin-bottom: 14px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, .35);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-1px); }

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 17px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  padding: 44px 0 36px;
}

.hero-inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.hero-text h1 {
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--navy);
  font-weight: 900;
}

.hero-text .lead {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.hero-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.device-illustration { width: 170px; height: auto; }

/* ===== Value props ===== */
.values { padding: 8px 0 36px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.value-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
}

.value-ic { font-size: 26px; display: block; margin-bottom: 8px; }

.value-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--navy);
}

.value-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ===== Trust strip ===== */
.trust {
  background: var(--navy);
  color: #fff;
  padding: 18px 0;
  text-align: center;
}

.partners-img {
  max-width: 340px;
  width: 100%;
  margin: 0 auto 10px;
}

.trust-stats {
  margin: 0;
  font-size: 13px;
  color: #cdd9e4;
}

/* ===== CTA band ===== */
.cta-band {
  padding: 40px 0;
  text-align: center;
}

.cta-inner h2 {
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 18px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark);
  color: #c9d5df;
  padding: 36px 0 90px;
  text-align: center;
  font-size: 13.5px;
}

.footer-desc { color: #e6ecf1; max-width: 480px; margin: 0 auto 18px; }

.footer-info {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 6px;
}

.footer-info a { color: #ffd9b0; text-decoration: none; }
.footer-info strong { color: #ffffff; }

.footer-legal {
  max-width: 560px;
  margin: 0 auto 18px;
  font-size: 12px;
  color: #93a4b1;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.link-btn {
  background: none;
  border: none;
  color: #ffd9b0;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
  text-decoration: underline;
}

.footer-copy { margin: 0; color: #6f8391; font-size: 12px; }

/* ===== Floating WhatsApp button ===== */
.fab-whatsapp {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .45);
}
.fab-whatsapp .ic { width: 28px; height: 28px; fill: #fff; }
.fab-whatsapp:hover { background: var(--whatsapp-dark); }

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal.is-open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 33, .55);
}

.modal-box {
  position: relative;
  background: #fff;
  border-radius: 20px 20px 0 0;
  max-width: var(--wrap);
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 28px 22px 34px;
}

.modal-box h2 { color: var(--navy); margin-top: 0; }
.modal-box ul { padding-inline-start: 20px; color: var(--text-muted); font-size: 14px; }
.modal-box li { margin-bottom: 8px; }
.modal-box p { color: var(--text-muted); font-size: 14px; }

.modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--bg-soft);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}

/* ===== Desktop / wider screens ===== */
@media (min-width: 720px) {
  .hero-inner { flex-direction: row; text-align: right; gap: 48px; }
  .hero-text { flex: 1; }
  .hero-note { text-align: right; }
  .device-illustration { width: 220px; }
  .modal { align-items: center; }
  .modal-box { border-radius: 20px; max-width: 560px; }
}
