/* Agarha public landing page. Standalone — does not load AdminLTE. */
@font-face { font-family: 'Tajawal'; src: url('../fonts/Tajawal-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('../fonts/Tajawal-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('../fonts/Tajawal-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('../fonts/Tajawal-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --primary: #0F7A71;
  --primary-dark: #0A5C55;
  --primary-soft: #E6F2F1;
  --gold: #D97706;
  --gold-soft: #FEF3C7;
  --ink: #1E293B;
  --muted: #64748B;
  --bg: #FFFFFF;
  --bg-alt: #F4F7F6;
  --border: #E2E8F0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 42, 40, .08);
  --shadow-lg: 0 30px 60px rgba(15, 42, 40, .16);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: 'Segoe UI', 'Tajawal', system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 800; }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  font-size: .85rem; font-weight: 700; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease; font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { color: var(--ink); background: transparent; padding: 8px 14px; }
.btn-ghost:hover { color: var(--primary); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-2px); }

.store-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px;
  background: var(--ink); color: #fff; border-radius: 12px; min-width: 170px; transition: .2s;
}
.store-btn:hover { transform: translateY(-2px); background: #0F172A; }
.store-btn i { font-size: 1.7rem; }
.store-btn small { display: block; font-size: .7rem; opacity: .75; line-height: 1.2; }
.store-btn strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.store-btn.light { background: #fff; color: var(--ink); }
.store-btn.light:hover { background: #F1F5F9; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: .25s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-weight: 500; color: var(--muted); transition: .2s; }
.nav-links a:hover { color: var(--primary); background: var(--primary-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn {
  border: 1px solid var(--border); background: #fff; border-radius: 10px;
  padding: 8px 12px; font-weight: 700; cursor: pointer; font-family: inherit; color: var(--ink);
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* Hero */
.hero {
  padding: 150px 0 90px; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(15,122,113,.14), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(217,119,6,.10), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 14px 0 18px; }
.hero h1 span { color: var(--primary); }
.hero-lead { font-size: 1.18rem; color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.hero-trust i { color: var(--primary); margin-inline-end: 6px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .phone { transform: rotate(-4deg); }
html[dir="ltr"] .hero-visual .phone { transform: rotate(4deg); }
.float-card {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 700;
  animation: float 5s ease-in-out infinite;
}
.float-card i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem; }
.float-card small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }
.float-card.one { top: 12%; inset-inline-start: -4%; }
.float-card.one i { background: var(--primary-soft); color: var(--primary); }
.float-card.two { bottom: 14%; inset-inline-end: -2%; animation-delay: 1.5s; }
.float-card.two i { background: var(--gold-soft); color: var(--gold); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Phone frame */
.phone {
  width: 290px; aspect-ratio: 360 / 760; border-radius: 42px; padding: 10px;
  background: #0F172A; box-shadow: var(--shadow-lg), inset 0 0 0 2px #334155; position: relative; flex-shrink: 0;
}
.phone::before {
  content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: #0F172A; border-radius: 999px; z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; background: #fff; }

/* Stats */
.stats { margin-top: -40px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border);
}
.stat { padding: 28px 16px; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--border); }
.stat strong { display: block; font-size: 2.1rem; color: var(--primary); font-weight: 800; line-height: 1.2; }
.stat span { color: var(--muted); font-size: .95rem; }

/* Audience tabs */
.tabs { display: inline-flex; background: var(--bg-alt); border-radius: 14px; padding: 6px; gap: 4px; margin-top: 24px; }
.tab-btn {
  border: 0; background: transparent; padding: 10px 22px; border-radius: 10px;
  font-family: inherit; font-weight: 700; font-size: 1rem; color: var(--muted); cursor: pointer; transition: .2s;
}
.tab-btn.active { background: #fff; color: var(--primary); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature .ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; background: var(--primary-soft); color: var(--primary); margin-bottom: 18px;
}
.feature.gold .ico { background: var(--gold-soft); color: var(--gold); }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { text-align: center; padding: 10px; position: relative; }
.step img { width: 150px; height: 150px; object-fit: contain; margin: 0 auto 14px; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin: 0 auto 14px; font-size: 1.1rem;
  box-shadow: 0 0 0 8px var(--primary-soft);
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .97rem; }

/* Screenshots carousel */
.shots {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 20px 4px 34px; scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shot { scroll-snap-align: center; text-align: center; flex: 0 0 auto; }
.shot .phone { width: 240px; margin: 0 auto 16px; }
.shot figcaption { font-weight: 700; }
.shots-nav { display: flex; justify-content: center; gap: 10px; }
.shots-nav button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: #fff;
  font-size: 1.2rem; cursor: pointer; color: var(--ink); transition: .2s;
}
.shots-nav button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Partners (offices) section */
.partner { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.partner::before {
  content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(15,122,113,.45), transparent 70%);
  top: -200px; inset-inline-end: -150px;
}
.partner .container { position: relative; }
.partner-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.partner .eyebrow { background: rgba(255,255,255,.1); color: #5EEAD4; }
.partner h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.partner-lead { color: #CBD5E1; font-size: 1.08rem; margin-bottom: 28px; }
.check-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list i {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(94,234,212,.15); color: #5EEAD4; margin-top: 2px;
}
.check-list strong { display: block; }
.check-list span { color: #94A3B8; font-size: .95rem; }
.partner-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.partner .btn-outline { border-color: #fff; color: #fff; }
.partner .btn-outline:hover { background: #fff; color: var(--ink); }
.browser { border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.4); }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); }
.quote .stars { color: var(--gold); margin-bottom: 12px; letter-spacing: 2px; }
.quote p { color: var(--ink); margin-bottom: 20px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-weight: 800;
}
.quote .who small { display: block; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; transition: .2s; }
.faq details[open] { border-color: var(--primary); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); transition: .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* Download CTA */
.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 28px; padding: 56px; color: #fff;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; overflow: hidden; position: relative;
}
.cta-box h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 12px; }
.cta-box p { color: #D1FAE5; margin-bottom: 26px; font-size: 1.08rem; }
.cta-box img { max-height: 260px; margin: 0 auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.25)); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: center; transition: .2s;
}
.contact-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.contact-card i { font-size: 1.6rem; color: var(--primary); }
.contact-card h4 { margin: 10px 0 4px; font-size: 1rem; }
.contact-card span { color: var(--muted); direction: ltr; unicode-bidi: plaintext; }

/* Footer */
.site-footer { background: #0F172A; color: #94A3B8; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.site-footer img { height: 44px; width: auto; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: #5EEAD4; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); font-size: 1.1rem; transition: .2s;
}
.socials a:hover { background: var(--primary); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .9rem;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 10px 25px rgba(37,211,102,.4);
  transition: .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .features, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; inset-inline: 0; flex-direction: column; background: #fff;
    padding: 12px 16px 18px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px; }
  .nav-actions .btn-login-text { display: none; }
  .hero { padding: 120px 0 70px; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-lead { margin-inline: auto; }
  .hero-cta, .hero-trust, .hero .store-btns { justify-content: center; }
  .hero-visual { margin-top: 20px; }
  .float-card.one { inset-inline-start: 0; }
  .float-card.two { inset-inline-end: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .cta-box { grid-template-columns: 1fr; padding: 36px 24px; text-align: center; }
  .cta-box .store-btns { justify-content: center; }
}
@media (max-width: 600px) {
  .section { padding: 68px 0; }
  .container { padding: 0 16px; }
  .features, .testimonials, .steps, .footer-grid { grid-template-columns: 1fr; }
  .phone { width: 240px; }
  .float-card { display: none; }
  .tab-btn { padding: 10px 14px; font-size: .92rem; }
  .store-btn { min-width: 0; flex: 1; }
  .nav-actions .btn-primary { padding: 9px 14px; font-size: .9rem; }
  .brand img { height: 36px; }
}
