/* =========================
   Mootheq Landing — Pro UI
   (RTL, trust, clean, fast)
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root{
  --bg: #F6F8FB;
  --card: #FFFFFF;
  --text: #0F172A;
  --muted: #475569;

  --primary: #0B2A43;
  --accent:  #176B9A;
  --accent2: #0EA5E9;

  --border: #E6EEF6;
  --shadow: 0 12px 30px rgba(2, 22, 43, 0.08);

  --radius: 18px;
  --radius2: 24px;

  --container: 1040px;
}

/* Only affect the landing template page */
body.page-template-page-landing{
  background: var(--bg);
}

/* Hide theme header/footer */
body.page-template-page-landing header,
body.page-template-page-landing .site-header,
body.page-template-page-landing .site-footer,
body.page-template-page-landing #site-header,
body.page-template-page-landing #site-footer{
  display:none !important;
}

/* Base */
.landing-page{
  direction: rtl;
  color: var(--text);
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  line-height: 1.85;
  letter-spacing: 0;
}

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

/* =========================
   Topbar
   ========================= */
.topbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;

  background: rgba(246, 248, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);

  /* hidden by default */
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

body.show-topbar .topbar{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.show-topbar .landing-page{
  padding-top: 64px; /* تقريبًا ارتفاع التوب بار */
}

.topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.topbar__brand{
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.topbar__role{
  color: var(--muted);
  font-weight: 800;
  font-size: 0.90rem;
}

.topbar__name{
  color: var(--primary);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.2px;
}

.topbar__actions{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Topbar WhatsApp button */
.btn-top{
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.95rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(23,107,154,0.30);
  box-shadow: 0 12px 24px rgba(23,107,154,0.18);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-top:hover{ transform: translateY(-1px); }

/* =========================
   Typography
   ========================= */
.h1{
  color: var(--primary);
  font-weight: 900;
  line-height: 1.12;
  margin: 0 auto 14px;
  letter-spacing: -0.5px;
  font-size: clamp(30px, 3.6vw, 54px);
  max-width: 20ch;
  text-wrap: balance;
}

.h2{
  color: var(--primary);
  font-weight: 900;
  margin: 0 0 12px;
  letter-spacing: -0.25px;
  font-size: clamp(22px, 2.3vw, 30px);
}

.sub{
  color: var(--muted);
  margin: 0 auto 18px;
  max-width: 72ch;
  font-size: 1.05rem;
  text-wrap: pretty;
}

.meta{
  color: var(--muted);
  font-weight: 800;
  font-size: 0.90rem;
}

/* Trust line (replaces chips) */
.trustline{
  margin: 14px auto 0;
  max-width: 70ch;
  color: rgba(15, 23, 42, 0.62);
  font-weight: 800;
  font-size: 0.95rem;
}

/* =========================
   Layout Sections
   ========================= */
.section{
  padding: 64px 0;
  background: #fff;
  text-align: center;
}

.section.alt{
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* =========================
   HERO
   ========================= */
.landing-hero{
  position: relative;
  padding: 84px 0 72px;
  text-align: center;
  background:
    radial-gradient(1200px 500px at 50% 0%, rgba(23,107,154,0.12), transparent 60%),
    linear-gradient(180deg, var(--bg), #ffffff 70%);
  overflow: hidden;
}

.landing-hero::after{
  content:"";
  position:absolute;
  left:-140px;
  top:-220px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 30% 30%, rgba(14,165,233,0.18), transparent 55%);
  filter: blur(2px);
  transform: rotate(12deg);
  pointer-events:none;
}

.landing-hero::before{
  content:"";
  position:absolute;
  right:-200px;
  bottom:-260px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 40% 40%, rgba(11,42,67,0.10), transparent 60%);
  filter: blur(2px);
  transform: rotate(-8deg);
  pointer-events:none;
}

.landing-hero .landing-wrap{
  position: relative;
  z-index: 2;
}

/* =========================
   CTA
   ========================= */
.cta-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

/* Primary Button */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  user-select: none;
  white-space: nowrap;
}

.btn-primary{
  background: var(--accent);
  color: #fff;
  border-color: rgba(23,107,154,0.30);
  box-shadow: 0 14px 35px rgba(23,107,154,0.22);
  font-size: 1.02rem;
  min-width: 240px;
}

.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(23,107,154,0.28);
}

/* Phone as text link */
.btn-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
  padding: 10px 6px;
  border-radius: 10px;
  opacity: .88;
}

.btn-link:hover{
  text-decoration: underline;
  opacity: 1;
}

/* Topbar version */
.btn-link--top{
  padding: 8px 6px;
  font-size: .95rem;
}

/* meta under CTA */
.cta-row .meta{
  display: block;
  width: 100%;
  margin-top: 8px;
  opacity: .82;
}

/* =========================
   Box + List
   ========================= */
.box{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 18px 18px;
  box-shadow: 0 10px 24px rgba(2,22,43,0.06);
  margin: 18px auto;
  max-width: 920px;
  text-align: right;
}

.list{
  list-style: none;
  padding-right: 0;
  display: inline-block;
  text-align: right;
  margin: 12px auto 0;
}

.list li{
  position: relative;
  padding-right: 34px;
  margin: 12px 0;
  color: var(--text);
}

.list li::before{
  position:absolute;
  right: 0;
  top: 0;
  font-weight: 900;
  color: var(--accent);
}

.list li:nth-child(1)::before{ content:"⏱"; }
.list li:nth-child(2)::before{ content:"❓"; }
.list li:nth-child(3)::before{ content:"📄"; }

/* =========================
   Services
   ========================= */
.services{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.service{
  display:block;
  text-decoration:none;
  color: inherit;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  text-align: right;
}

.service:hover{
  transform: translateY(-2px);
  border-color: rgba(23,107,154,0.35);
  box-shadow: 0 16px 34px rgba(2, 22, 43, 0.12);
}

.service:focus{
  outline: 3px solid rgba(14,165,233,0.25);
  outline-offset: 4px;
}

.service::after{
  content:"";
  position:absolute;
  inset:-40px -40px auto auto;
  width:120px;
  height:120px;
  background: radial-gradient(circle at 30% 30%, rgba(23,107,154,0.16), transparent 60%);
  transform: rotate(8deg);
  pointer-events:none;
}

.service h3{
  margin: 0 0 10px;
  color: var(--primary);
  font-weight: 900;
  font-size: 1.05rem;
}

.service p{
  margin: 0;
  color: var(--muted);
}

/* =========================
   Steps (RTL numbering)
   ========================= */
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
  counter-reset: step;
}

.step{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow);
  position: relative;
  text-align: right;
  padding-right: 64px;
}

.step::before{
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23,107,154,0.08);
  border: 2px solid rgba(23,107,154,0.25);
  color: var(--primary);
  font-weight: 900;
  font-size: 14px;
}

.step h3{
  margin: 0 0 10px;
  color: var(--primary);
  font-weight: 900;
  font-size: 1.05rem;
}

.step p{
  margin: 0;
  color: var(--muted);
}

/* Final block */
.final{
  margin-top: 26px;
  padding-top: 10px;
}

/* Footer */
.footer{
  padding: 32px 0 72px;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  text-align: center;
}

/* Floating — mobile only (WhatsApp only) */
.float{
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
}

.float a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration:none;
  box-shadow: 0 16px 34px rgba(2, 22, 43, 0.18);
  transition: transform .12s ease;
}

.float .wa{
  background:#25D366;
  color:#fff;
}

.float a:hover{ transform: translateY(-1px); }

@media (min-width: 900px){
  .float{ display:none; }
}

/* Responsive */
@media (max-width: 860px){
  .landing-hero{ padding: 58px 0 52px; }
  .section{ padding: 52px 0; }

  .steps{ grid-template-columns: 1fr; }
  .services{ grid-template-columns: 1fr; }

  .btn{
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .btn-link{
    width: auto;
    justify-content: center;
  }

  .topbar__inner{ padding: 10px 0; }
  .topbar__role{ font-size: 0.85rem; }
  .topbar__name{ font-size: 1.0rem; }
  .btn-top{ height: 38px; padding: 0 12px; }

  .h1{ max-width: 16ch; }
  .step{ padding-right: 56px; }
  .step::before{ right: 16px; }

  .trustline{ font-size: 0.9rem; margin-top: 10px; }
}

/* Small polish */
.landing-page a{ -webkit-tap-highlight-color: transparent; }