/* ==========================================================================
   Mashtl — Modern Website Styles (RTL, Arabic)
   Unified stylesheet for all pages
   ========================================================================== */

:root {
  --green-900: #14532d;
  --green-700: #1b7a3e;
  --green-600: #22a355;
  --green-500: #2ec16a;
  --green-100: #e7f7ee;
  --green-50:  #f2fbf6;
  --ink:       #14261a;
  --muted:     #5c6b60;
  --line:      #e4ece7;
  --bg:        #ffffff;
  --bg-soft:   #f6faf7;
  --shadow-sm: 0 2px 10px rgba(20, 83, 45, .06);
  --shadow-md: 0 12px 32px rgba(20, 83, 45, .10);
  --shadow-lg: 0 24px 60px rgba(20, 83, 45, .14);
  --radius:    18px;
  --radius-lg: 28px;
  --grad:      linear-gradient(135deg, #22a355 0%, #14532d 100%);
  --grad-soft: linear-gradient(135deg, #f2fbf6 0%, #e7f7ee 100%);
  --font: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  direction: rtl;
  text-align: right;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--green-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--green-500); }

h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 800; line-height: 1.3; margin: 0 0 .5em; }

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.02rem;
  font-family: var(--font);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(34, 163, 85, .30);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(34, 163, 85, .40); color:#fff; }
.btn-ghost {
  background: #fff;
  color: var(--green-700);
  border-color: var(--green-100);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--green-500); color: var(--green-700); }
.btn-light { background: rgba(255,255,255,.15); color:#fff; border-color: rgba(255,255,255,.35); }
.btn-light:hover { background: rgba(255,255,255,.25); color:#fff; transform: translateY(-3px); }

/* ============ Navbar ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { width: 46px; height: 46px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.nav-brand span { font-weight: 800; font-size: 1.3rem; color: var(--green-700); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: .98rem;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: var(--green-50); color: var(--green-700); }
.nav-links a.cta {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 18px rgba(34,163,85,.28);
}
.nav-links a.cta:hover { transform: translateY(-2px); }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 74px; right: 0; left: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 14px 22px; gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--grad-soft);
  padding: 80px 0 90px;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: .5;
  z-index: 0;
}
.hero::before { width: 340px; height: 340px; background: radial-gradient(circle, rgba(46,193,106,.22), transparent 70%); top: -80px; left: -60px; }
.hero::after  { width: 420px; height: 420px; background: radial-gradient(circle, rgba(20,83,45,.14), transparent 70%); bottom: -120px; right: -80px; }
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
}
.hero .eyebrow {
  display: inline-block;
  background: #fff;
  color: var(--green-700);
  font-weight: 700;
  font-size: .92rem;
  padding: 7px 16px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin-bottom: 18px; }
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual .blob {
  width: min(360px, 78vw); aspect-ratio: 1;
  background: var(--grad);
  border-radius: 42% 58% 63% 37% / 42% 45% 55% 58%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  animation: morph 8s ease-in-out infinite;
}
.hero-visual .blob img {
  width: 62%; border-radius: 26px;
  background:#fff; padding: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
@keyframes morph {
  0%,100% { border-radius: 42% 58% 63% 37% / 42% 45% 55% 58%; }
  50%     { border-radius: 58% 42% 40% 60% / 55% 58% 42% 45%; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero .eyebrow { margin-inline: auto; }
  .hero-visual { margin-top: 30px; }
}

/* ============ Section shell ============ */
.section { padding: 90px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.section-head .eyebrow {
  display: inline-block; color: var(--green-600); font-weight: 700;
  font-size: .95rem; letter-spacing: .5px; margin-bottom: 12px;
  text-transform: uppercase;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ============ Feature cards ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--green-100); }
.card .ico {
  width: 76px; height: 76px; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 22px;
  background: var(--green-50);
  color: var(--green-600);
  font-size: 34px;
}
.card h4 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }

@media (max-width: 900px) { .cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.phone-frame {
  width: 280px; margin: 0 auto; padding: 12px;
  background: #14261a; border-radius: 42px;
  box-shadow: var(--shadow-lg); position: relative;
}
.phone-frame::before {
  content:""; position:absolute; top:12px; left:50%; transform:translateX(-50%);
  width: 130px; height: 24px; background:#14261a; border-radius: 0 0 16px 16px; z-index:2;
}
.phone-frame img { width:100%; border-radius: 32px; display:block; }
.about-list { list-style: none; padding: 0; margin: 26px 0 0; }
.about-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 1.08rem; }
.about-list .tick {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-visual { order: -1; } }

/* ============ Download / App cards ============ */
.app-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px; margin: 0 auto;
}
.app-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 34px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.app-card::before {
  content:""; position:absolute; inset:0 0 auto 0; height: 6px; background: var(--grad);
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.app-card .app-ico {
  width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 24px;
  background: var(--green-50); color: var(--green-600);
  display: flex; align-items: center; justify-content: center; font-size: 40px;
}
.app-card h4 { font-size: 1.5rem; margin-bottom: 8px; }
.app-card p { color: var(--muted); margin-bottom: 26px; }
.store-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store-badges a {
  display: inline-flex; background:#111; padding: 10px 16px; border-radius: 12px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease;
}
.store-badges a:hover { transform: translateY(-3px); }
.store-badges img { height: 38px; width: auto; }
@media (max-width: 760px) { .app-cards { grid-template-columns: 1fr; max-width: 440px; } }

/* ============ CTA band ============ */
.cta-band {
  background: var(--grad);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color:#fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin-bottom: 26px; }

/* ============ Page header (inner pages) ============ */
.page-hero {
  background: var(--grad-soft);
  padding: 64px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.page-hero .crumb { color: var(--green-600); font-weight: 700; margin-bottom: 12px; font-size: .92rem; }

/* ============ Content prose (privacy, about, delete) ============ */
.prose {
  background:#fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 42px; box-shadow: var(--shadow-sm); max-width: 860px; margin: 0 auto;
}
.prose h2 { font-size: 1.5rem; color: var(--green-700); margin: 30px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 22px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 1.04rem; }
.prose ul { padding-right: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { font-weight: 600; }

/* ============ FAQ accordion ============ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  background:#fff; border: 1px solid var(--line); border-radius: 16px;
  margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%; text-align: right; background: none; border: none; cursor: pointer;
  padding: 20px 24px; font-size: 1.1rem; font-weight: 700; color: var(--ink);
  font-family: var(--font);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-q .plus { flex: none; color: var(--green-600); font-size: 1.4rem; transition: transform .3s ease; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--muted); font-size: 1.03rem; }

/* ============ Forms ============ */
.form-card {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow-md); max-width: 640px; margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-group label { display:block; font-weight: 700; margin-bottom: 8px; color: var(--ink); font-size: .98rem; }
.form-control {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--font); font-size: 1rem; color: var(--ink); background: var(--bg-soft);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus {
  outline: none; border-color: var(--green-500); background:#fff;
  box-shadow: 0 0 0 4px rgba(46,193,106,.12);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--muted); margin-top: 6px; }

/* ============ Footer ============ */
.footer {
  background: var(--green-900);
  color: rgba(255,255,255,.82);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
}
.footer h4 { color:#fff; font-size: 1.15rem; margin-bottom: 16px; }
.footer .brand { display:flex; align-items:center; gap: 12px; margin-bottom: 16px; }
.footer .brand img { width: 48px; height:48px; border-radius: 12px; }
.footer .brand span { font-weight: 800; font-size: 1.25rem; color:#fff; }
.footer p { color: rgba(255,255,255,.72); font-size: .98rem; }
.footer ul { list-style:none; padding:0; margin:0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: rgba(255,255,255,.72); font-size: .98rem; }
.footer ul a:hover { color:#fff; }
.footer .contact-line { display:flex; align-items:center; gap:10px; margin-bottom: 10px; color: rgba(255,255,255,.72); }
.footer .contact-line i { color: var(--green-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px; text-align: center; color: rgba(255,255,255,.6); font-size: .92rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } .footer .brand { justify-content: center; } .footer .contact-line { justify-content: center; } }

/* ============ Back to top ============ */
.to-top {
  position: fixed; bottom: 26px; left: 26px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad); color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transition: .3s; font-size: 20px;
  border:none; cursor:pointer;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { transform: translateY(-4px); color:#fff; }

/* ============ Modal ============ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,38,26,.55);
  display: none; align-items: center; justify-content: center; z-index: 1000;
  backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background:#fff; border-radius: var(--radius); padding: 34px; width: min(360px, 90vw);
  text-align: center; box-shadow: var(--shadow-lg);
}
.modal-box h5 { font-size: 1.3rem; margin-bottom: 18px; }
.modal-phone {
  display:flex; align-items:center; justify-content:center; gap: 10px;
  font-size: 1.25rem; font-weight: 800; color: var(--green-700); margin-bottom: 22px;
  direction: ltr;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
