
/* =========================================================================
   مكين لحلول الأعمال — نظام التصميم (Design System)
   RTL · Arabic-first · Mobile-first
   ========================================================================= */

/* ----------------------------- Design Tokens ---------------------------- */
:root {
  /* Brand colors */
  --green-primary: #1B5E3F;
  --green-dark:    #0F3D28;
  --green-soft:    #2E7D5B;
  --orange:        #D2691E;
  --orange-light:  #EF9F27;
  --grey-bg:       #F7F7F5;
  --grey-line:     #E6E6E1;
  --text-dark:     #1A1A1A;
  --text-muted:    #5B5B5B;
  --white:         #FFFFFF;

  /* Typography */
  --font-base: 'Tajawal', 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
  --fs-hero:   clamp(2rem, 5vw + 1rem, 3.75rem);
  --fs-h2:     clamp(1.6rem, 2.5vw + 0.6rem, 2.5rem);
  --fs-h3:     clamp(1.15rem, 1vw + 0.7rem, 1.45rem);
  --fs-lead:   clamp(1.05rem, 1vw + 0.6rem, 1.3rem);
  --fs-body:   1.05rem;

  /* Spacing & layout */
  --container: 1200px;
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius:    16px;
  --radius-sm: 10px;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(15, 61, 40, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 61, 40, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 61, 40, 0.16);
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ----------------------------- Utilities -------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--grey { background: var(--grey-bg); }
.section--green {
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--orange);
  margin-bottom: 0.85rem;
}
.section--green .eyebrow { color: var(--orange-light); }

.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 60ch;
}
.section--green .section-intro { color: rgba(255, 255, 255, 0.85); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: var(--white); box-shadow: 0 8px 20px rgba(210, 105, 30, 0.3); }
.btn--primary:hover { background: var(--orange-light); }
.btn--ghost { background: transparent; color: var(--green-primary); border: 2px solid var(--green-primary); }
.btn--ghost:hover { background: var(--green-primary); color: var(--white); }
.btn--white { background: var(--white); color: var(--green-primary); }
.btn--white:hover { background: var(--grey-bg); }

/* =============================== Header ================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-line);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--green-primary);
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-soft));
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.brand__sub { display: block; font-size: 0.7rem; font-weight: 500; color: var(--text-muted); margin-top: -2px; }
.brand__logo { height: 34px; width: auto; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--text-dark);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover, .nav__link.is-active { color: var(--green-primary); background: var(--grey-bg); }

/* Dropdown */
.nav__item { position: relative; }
.nav__item--has-menu > .nav__link::after {
  content: "";
  width: 7px; height: 7px;
  border-inline-start: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-top: -3px;
  transition: transform var(--transition);
}
.nav__item--has-menu:hover > .nav__link::after,
.nav__item--has-menu:focus-within > .nav__link::after { transform: rotate(135deg); margin-top: 3px; }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  min-width: 290px;
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.nav__item--has-menu:hover .dropdown,
.nav__item--has-menu:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: background var(--transition), color var(--transition);
}
.dropdown a:hover { background: var(--grey-bg); color: var(--green-primary); }
.dropdown a.is-active { background: var(--grey-bg); color: var(--green-primary); }
.dropdown a.is-flagship { color: var(--orange); }
.dropdown a.is-flagship::before { content: "★ "; }

.nav__cta { display: inline-flex; font-size: 0.85rem; padding: 0.5rem 1.1rem; }

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--green-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================== Hero =================================== */
.hero {
  position: relative;
  background: linear-gradient(160deg, #F4F8F5 0%, var(--grey-bg) 60%, #FBF4EC 100%);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.hero__title .accent { color: var(--orange); }
.hero__lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  margin-block: 1.25rem 2rem;
  max-width: 48ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Hero visual — decorative geometric composition */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.hero__blob {
  position: absolute;
  inset: 8%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  border-radius: 42% 58% 56% 44% / 50% 44% 56% 50%;
  box-shadow: var(--shadow-lg);
  animation: morph 12s ease-in-out infinite;
}
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 56% 44% / 50% 44% 56% 50%; }
  50% { border-radius: 56% 44% 42% 58% / 44% 56% 50% 50%; }
}
.hero__blob--img {
  background:
    linear-gradient(150deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.05)),
    url("../img/hero-gold.jpg") center / cover no-repeat;
}
.hero__shape {
  position: absolute;
  border-radius: 18px;
  background: var(--orange);
  opacity: 0.92;
}
.hero__shape--1 { width: 88px; height: 88px; top: 6%; inset-inline-start: 2%; transform: rotate(15deg); box-shadow: var(--shadow-md); }
.hero__shape--2 { width: 56px; height: 56px; bottom: 10%; inset-inline-end: 4%; background: var(--orange-light); border-radius: 50%; }
.hero__badge {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 1.5rem;
}
.hero__badge .num { display: block; font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: 1; color: var(--orange-light); }
.hero__badge .label { display: block; font-size: 1.05rem; font-weight: 600; margin-top: 0.5rem; }

/* ============================ Feature row ============================== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
.feature {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature__icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 18px;
  background: rgba(27, 94, 63, 0.08);
  color: var(--green-primary);
}
.feature__icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: var(--fs-h3); font-weight: 800; margin-bottom: 0.5rem; }
.feature p { color: var(--text-muted); font-size: 1rem; }

/* ============================ Service cards ============================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
  margin-top: 3rem;
}
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  transform: scaleX(0);
  transform-origin: inline-end;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-soft));
  color: var(--white);
  margin-bottom: 1.25rem;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: var(--fs-h3); font-weight: 800; margin-bottom: 0.6rem; line-height: 1.35; }
.service-card p { color: var(--text-muted); font-size: 0.98rem; }
.service-card__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.1rem;
  font-weight: 700; font-size: 0.95rem;
  color: var(--green-primary);
}
.service-card__link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.service-card:hover .service-card__link svg { transform: translateX(-4px); }

/* Flagship variant */
.service-card--flagship {
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  color: var(--white);
  border-color: transparent;
  grid-column: span 1;
}
.service-card--flagship .service-card__icon { background: var(--orange); }
.service-card--flagship p { color: rgba(255, 255, 255, 0.85); }
.service-card--flagship .service-card__link { color: var(--orange-light); }
.service-card--flagship .badge-flag {
  position: absolute; top: 1.25rem; inset-inline-end: 1.25rem;
  font-size: 0.72rem; font-weight: 700;
  background: var(--orange); color: var(--white);
  padding: 0.25rem 0.7rem; border-radius: 999px;
}

/* ========================== Flagship banner =========================== */
.flagship {
  position: relative;
  overflow: hidden;
}
.flagship__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.flagship__list { display: grid; gap: 1rem; margin-top: 1.75rem; }
.flagship__list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 1.05rem;
}
.flagship__list svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--orange-light); margin-top: 3px; }
.flagship__panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(6px);
}
.flagship__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.flagship__stat .num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--orange-light); line-height: 1; }
.flagship__stat .label { font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); margin-top: 0.4rem; }
.flagship__integrations { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.14); }
.flagship__integrations span { font-size: 0.85rem; color: rgba(255,255,255,0.7); display: block; margin-bottom: 0.75rem; }
.flagship__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.flagship__chips em {
  font-style: normal; font-size: 0.9rem; font-weight: 600;
  background: rgba(255,255,255,0.1); padding: 0.4rem 0.9rem; border-radius: 999px;
}

/* ============================== CTA strip ============================= */
.cta-strip {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.cta-strip h2 { font-size: var(--fs-h2); font-weight: 800; margin-bottom: 0.75rem; }
.cta-strip p { font-size: var(--fs-lead); margin-bottom: 1.75rem; opacity: 0.95; }
.cta-strip .btn--white { color: var(--orange); }

/* ============================== Footer =============================== */
.footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.82);
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
.footer__brand { font-weight: 800; font-size: 1.3rem; color: var(--white); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.footer__logo { height: 46px; width: auto; margin-bottom: 1.1rem; }
.footer__about { font-size: 0.95rem; line-height: 1.8; max-width: 38ch; }
.footer h4 { color: var(--white); font-size: 1.05rem; font-weight: 700; margin-bottom: 1.1rem; }
.footer__links li { margin-bottom: 0.6rem; }
.footer__links a { font-size: 0.95rem; transition: color var(--transition); }
.footer__links a:hover { color: var(--orange-light); }
.footer__contact li { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.85rem; font-size: 0.95rem; }
.footer__contact svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--orange-light); margin-top: 4px; }
.footer__social { display: flex; gap: 0.7rem; margin-top: 1.25rem; }
.footer__social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  transition: background var(--transition), transform var(--transition);
}
.footer__social a:hover { background: var(--orange); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: 0.88rem;
}
.footer__powered { display: inline-flex; align-items: center; gap: 0.4rem; opacity: 0.8; }
.footer__powered strong { color: var(--white); }

/* ========================= Inner page template ======================= */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  color: var(--white);
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset-block: -20% auto; inset-inline-start: -6%;
  width: 320px; height: 320px;
  background: var(--orange);
  opacity: 0.16;
  border-radius: 42% 58% 56% 44% / 50% 44% 56% 50%;
  pointer-events: none;
}
.page-hero__title { font-size: var(--fs-hero); font-weight: 800; line-height: 1.2; max-width: 22ch; }
.page-hero__lead { font-size: var(--fs-lead); color: rgba(255,255,255,0.85); margin-top: 1rem; max-width: 60ch; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 1.25rem; }
.breadcrumb a { transition: color var(--transition); }
.breadcrumb a:hover { color: var(--orange-light); }
.breadcrumb span { opacity: 0.6; }

.prose { max-width: 70ch; }
.prose p { margin-bottom: 1.1rem; color: var(--text-muted); }
.prose p:last-child { margin-bottom: 0; }

/* Media row: text + image side by side */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.media-row__img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
}
.media-row--reverse .media-row__media { order: -1; }

/* Numbered benefit cards */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 3vw, 1.75rem); }
.benefit-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 2rem 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.benefit-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.benefit-card__num {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(27, 94, 63, 0.08);
  color: var(--green-primary);
  font-size: 1.3rem; font-weight: 800;
  margin-bottom: 1.1rem;
}
.benefit-card h3 { font-size: var(--fs-h3); font-weight: 800; margin-bottom: 0.5rem; }
.benefit-card h3 .tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  color: var(--white); background: var(--orange);
  padding: 0.2rem 0.7rem; border-radius: 999px;
  margin-inline-start: 0.5rem; vertical-align: middle;
}
.benefit-card p { color: var(--text-muted); font-size: 1rem; }

/* Simple bullet list with check marks */
.check-list { display: grid; gap: 0.9rem; margin-top: 1.5rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 1.05rem; }
.check-list svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--orange); margin-top: 3px; }

@media (max-width: 768px) {
  .benefits { grid-template-columns: 1fr; }
  .media-row { grid-template-columns: 1fr; }
  .media-row--reverse .media-row__media { order: 0; }
}

/* ====================== Disclaimer / legal note ====================== */
.disclaimer {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  max-width: 70ch;
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  background: #FBF4EC;
  border: 1px solid #EAD9C2;
  border-inline-start: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: #5B4632;
  line-height: 1.7;
}
.disclaimer svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--orange); margin-top: 2px; }

/* Long-form legal prose (privacy / terms) */
.legal-prose { max-width: 75ch; }
.legal-prose h2 { font-size: var(--fs-h3); font-weight: 800; color: var(--green-primary); margin: 2rem 0 0.75rem; }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p { color: var(--text-muted); margin-bottom: 1rem; }
.legal-prose ul { margin: 0 0 1rem; padding-inline-start: 1.5rem; }
.legal-prose li { position: relative; color: var(--text-muted); margin-bottom: 0.6rem; padding-inline-start: 1.25rem; }
.legal-prose li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.legal-prose .updated { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* Footer legal links */
.footer__legal { display: inline-flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.footer__legal a { transition: color var(--transition); }
.footer__legal a:hover { color: var(--orange-light); }
.footer__legal .sep { opacity: 0.45; }

/* Consent field */
.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 1.1rem; font-size: 0.95rem; color: var(--text-muted); }
.form-consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--green-primary); }
.form-consent a { color: var(--green-primary); font-weight: 600; text-decoration: underline; }

/* ============================ Contact ================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-info { display: grid; gap: 1.5rem; }
.contact-info__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info__icon {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(27, 94, 63, 0.08);
  color: var(--green-primary);
}
.contact-info__icon svg { width: 22px; height: 22px; }
.contact-info__item h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.2rem; }
.contact-info__item p, .contact-info__item a { color: var(--text-muted); font-size: 1rem; }
.contact-info__item a:hover { color: var(--green-primary); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-weight: 600; font-size: 0.95rem; }
.form-field input, .form-field textarea {
  font-family: inherit; font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--grey-line);
  border-radius: var(--radius-sm);
  background: var(--grey-bg);
  color: var(--text-dark);
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--green-primary);
  background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.75rem; }
.form-status { margin-top: 1rem; font-weight: 600; font-size: 0.95rem; min-height: 1.2em; }
.form-status.is-ok { color: var(--green-primary); }

.map-embed { margin-top: 3rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--grey-line); }
.map-embed iframe { display: block; width: 100%; height: 360px; border: 0; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ==================== Accessibility & global polish =================== */
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -48px;
  z-index: 200;
  background: var(--green-primary);
  color: var(--white);
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 10px 10px;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--green-primary);
  border: 1.5px solid var(--grey-line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.lang-switch:hover { background: var(--grey-bg); border-color: var(--green-primary); }
.lang-switch svg { width: 16px; height: 16px; }

/* ============================== Blog ================================== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
  margin-top: 3rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--grey-bg);
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.5rem 1.6rem;
}
.post-card__cat {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-primary);
  background: rgba(27, 94, 63, 0.08);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.post-card h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.45; margin-bottom: 0.6rem; }
.post-card h3 a { transition: color var(--transition); }
.post-card h3 a:hover { color: var(--green-primary); }
.post-card p { color: var(--text-muted); font-size: 0.95rem; flex-grow: 1; }
.post-card__meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--grey-line);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.post-card__meta .dot { opacity: 0.4; }

/* Article page */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1rem;
}
.article-meta .cat {
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
}
.article-prose { max-width: 75ch; }
.article-prose .lead { font-size: var(--fs-lead); color: var(--text-dark); margin-bottom: 1.5rem; }
.article-prose h2 {
  font-size: clamp(1.25rem, 1.5vw + 0.8rem, 1.6rem);
  font-weight: 800;
  color: var(--green-primary);
  margin: 2.25rem 0 0.9rem;
}
.article-prose p { color: var(--text-muted); margin-bottom: 1.1rem; line-height: 1.9; }
.article-prose ul { margin: 0 0 1.25rem; }
.article-prose li {
  position: relative;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  padding-inline-start: 1.6rem;
  line-height: 1.8;
}
.article-prose li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.25rem;
  top: 0.7em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.article-prose .article-sources li { font-size: 0.95rem; }
.article-prose .article-sources a { color: var(--green-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.article-prose .article-sources a:hover { color: var(--orange); }
.article-prose .article-disclaimer {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--grey-bg);
  border-inline-start: 4px solid var(--grey-line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey-line);
}

/* ====================== Page visual banner =========================== */
.page-visual { position: relative; z-index: 5; margin-top: clamp(-3.5rem, -5vw, -2rem); }
.page-visual img {
  width: 100%;
  height: clamp(200px, 30vw, 330px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
}
.page-visual + .section { padding-block-start: clamp(2.5rem, 5vw, 4rem); }

/* ====================== Blog category accents ======================== */
.post-card { position: relative; overflow: hidden; }
.post-card::before {
  content: "";
  position: absolute;
  top: 0; inset-inline: 0;
  height: 4px;
  background: var(--cat-color, var(--orange));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}
.post-card:hover::before { transform: scaleX(1); }
.post-card .post-card__cat { color: var(--cat-color, var(--green-primary)); background: var(--cat-bg, rgba(27, 94, 63, 0.08)); }
.cat-zakat      { --cat-color: #1B5E3F; --cat-bg: rgba(27, 94, 63, 0.10); }
.cat-finance    { --cat-color: #D2691E; --cat-bg: rgba(210, 105, 30, 0.10); }
.cat-digital    { --cat-color: #0E7490; --cat-bg: rgba(14, 116, 144, 0.10); }
.cat-governance { --cat-color: #6D28D9; --cat-bg: rgba(109, 40, 217, 0.08); }
.cat-startups   { --cat-color: #B45309; --cat-bg: rgba(180, 83, 9, 0.10); }

/* ==================== Scroll progress + back-to-top =================== */
.scroll-progress {
  position: fixed;
  top: 0; inset-inline-start: 0;
  z-index: 300;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}
[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }

.to-top {
  position: fixed;
  inset-inline-start: 1.25rem;
  bottom: 1.25rem;
  z-index: 150;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white);
  color: var(--green-primary);
  border: 1.5px solid var(--grey-line);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition), color var(--transition);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-primary); color: var(--white); }
.to-top svg { width: 20px; height: 20px; }

/* ========================= Floating assistant ======================== */
.bot__fab {
  position: fixed;
  inset-inline-end: 1.25rem;
  bottom: 1.25rem;
  z-index: 150;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-primary), var(--green-soft));
  color: var(--white);
  box-shadow: 0 10px 28px rgba(15, 61, 40, 0.35);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.bot__fab:hover { transform: scale(1.07); box-shadow: 0 14px 34px rgba(15, 61, 40, 0.45); }
.bot__fab::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(46, 125, 91, 0.55);
  animation: bot-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes bot-pulse {
  0% { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}
.bot__fab svg { width: 28px; height: 28px; position: absolute; transition: opacity var(--transition), transform var(--transition); }
.bot__fab .ico-close { opacity: 0; transform: rotate(-45deg); }
.bot__fab.is-open .ico-chat { opacity: 0; transform: rotate(45deg); }
.bot__fab.is-open .ico-close { opacity: 1; transform: rotate(0); }
.bot__fab.is-open::after { animation: none; opacity: 0; }

.bot__panel {
  position: fixed;
  inset-inline-end: 1.25rem;
  bottom: calc(1.25rem + 72px);
  z-index: 160;
  width: min(370px, calc(100vw - 2rem));
  max-height: min(560px, calc(100dvh - 120px));
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.bot__panel.is-open { opacity: 1; transform: none; visibility: visible; }

.bot__head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  color: var(--white);
}
.bot__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange);
  font-weight: 800; font-size: 1.15rem;
  flex-shrink: 0;
}
.bot__head strong { display: block; font-size: 1rem; }
.bot__head .status { display: flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; opacity: 0.85; }
.bot__head .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6EE7A0; }

.bot__msgs {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--grey-bg);
  min-height: 180px;
}
.bot__msg {
  max-width: 85%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  font-size: 0.93rem;
  line-height: 1.7;
  white-space: pre-line;
}
.bot__msg--bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-start-start-radius: 4px;
}
.bot__msg--user {
  align-self: flex-end;
  background: var(--green-primary);
  color: var(--white);
  border-start-end-radius: 4px;
}
.bot__actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.55rem; }
.bot__actions a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.83rem; font-weight: 700;
  color: var(--green-primary);
  background: rgba(27, 94, 63, 0.08);
  border: 1px solid rgba(27, 94, 63, 0.18);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}
.bot__actions a:hover { background: var(--green-primary); color: var(--white); }
.bot__actions a svg { width: 14px; height: 14px; }

.bot__typing { display: inline-flex; gap: 5px; padding: 0.8rem 1rem; }
.bot__typing i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-muted);
  animation: bot-dot 1.1s infinite;
}
.bot__typing i:nth-child(2) { animation-delay: 0.18s; }
.bot__typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes bot-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }

.bot__chips {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  padding: 0.7rem 1rem 0.35rem;
  background: var(--white);
  border-top: 1px solid var(--grey-line);
}
.bot__chips button {
  font-size: 0.82rem; font-weight: 700;
  color: var(--green-primary);
  background: var(--grey-bg);
  border: 1px solid var(--grey-line);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.bot__chips button:hover { background: var(--green-primary); border-color: var(--green-primary); color: var(--white); }

.bot__input {
  display: flex; gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--white);
}
.bot__input input {
  flex: 1;
  font-family: inherit; font-size: 0.93rem;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--grey-line);
  border-radius: 999px;
  background: var(--grey-bg);
  color: var(--text-dark);
}
.bot__input input:focus { outline: none; border-color: var(--green-primary); background: var(--white); }
.bot__input button {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange);
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}
.bot__input button:hover { background: var(--orange-light); transform: scale(1.06); }
.bot__input button svg { width: 18px; height: 18px; }
[dir="rtl"] .bot__input button svg { transform: scaleX(-1); }

.bot__note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0 1rem 0.6rem;
  background: var(--white);
}

@media (max-width: 480px) {
  .bot__panel { inset-inline: 1rem; width: auto; }
}

/* ============================ Animations ============================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================ Responsive ============================= */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  /* Full-width image banner above the text — shows the whole composition, no overlap */
  .hero__visual { order: -1; max-width: 100%; aspect-ratio: 16 / 10; margin-inline: 0; }
  .hero__blob--img { inset: 0; border-radius: var(--radius); animation: none; box-shadow: var(--shadow-md); }
  .hero__shape { display: none; }
  .hero__badge { position: static; }
  .flagship__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--white);
    border-bottom: 1px solid var(--grey-line);
    padding: 1rem var(--gutter) 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform var(--transition);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__link { padding: 0.8rem 1rem; font-size: 1.05rem; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none;
    min-width: 0;
    padding-inline-start: 1rem;
    max-height: 0; overflow: hidden;
    transition: max-height var(--transition);
  }
  .nav__item--has-menu.is-open .dropdown { max-height: 600px; }
  .nav__item--has-menu:hover .dropdown { opacity: 1; }
  .nav__cta { display: none; }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================================
   ELEVATION PASS — distinctive, on-brand refinement (applies site-wide)
   Signature: Islamic 8-point "khatam" geometry · Kufic display · zakat-gold accent
   ============================================================================ */
:root {
  --font-display: 'Amiri', 'Tajawal', 'IBM Plex Sans Arabic', serif;
  --gold:      #B4892C;
  --gold-soft: #CBA53A;
  --paper:     #FCFCFA;
  --grey-bg:   #F3F6F2;
  --grey-line: #E4E9E2;
  --text-dark: #15201A;
  --text-muted:#55605A;
  --shadow-sm: 0 1px 3px rgba(15, 61, 40, 0.05);
  --shadow-md: 0 16px 38px rgba(15, 61, 40, 0.12);
  --shadow-lg: 0 28px 64px rgba(15, 61, 40, 0.16);
}

/* Kufic display for the large headings; Latin falls back to Tajawal per-glyph */
html[lang="ar"] .hero__title,
html[lang="ar"] .page-hero__title,
html[lang="ar"] .section-title,
html[lang="ar"] .cta-strip h2,
html[lang="ar"] .article-prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.4;
}

/* Signature — a small khatam (8-point star) precedes every eyebrow label */
.eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; }
.eyebrow::before {
  content: "";
  width: 15px; height: 15px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23B4892C'%3E%3Crect x='5.5' y='5.5' width='13' height='13' rx='1.5'/%3E%3Crect x='5.5' y='5.5' width='13' height='13' rx='1.5' transform='rotate(45 12 12)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.section--green .eyebrow::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23CBA53A'%3E%3Crect x='5.5' y='5.5' width='13' height='13' rx='1.5'/%3E%3Crect x='5.5' y='5.5' width='13' height='13' rx='1.5' transform='rotate(45 12 12)'/%3E%3C/g%3E%3C/svg%3E");
}

/* Warm-paper cards + refined depth (flagship keeps its green gradient) */
.feature,
.service-card:not(.service-card--flagship),
.benefit-card,
.post-card,
.contact-form {
  background-color: var(--paper);
}

/* Zakat-gold, tabular numerals for the headline platform stats */
.flagship__stat .num {
  color: var(--gold-soft);
  font-family: var(--font-base);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.benefit-card__num { font-variant-numeric: tabular-nums; }

/* Faint khatam field on the deep-green sections — quiet luxury depth */
.section--green { position: relative; isolation: isolate; }
.section--green > .container { position: relative; z-index: 1; }
.section--green::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Crect x='19' y='19' width='18' height='18'/%3E%3Crect x='19' y='19' width='18' height='18' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.05;
  pointer-events: none;
}

/* Hero — a large ambient khatam ornament behind the composition */
.hero { position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }
.hero::after {
  content: "";
  position: absolute; z-index: 0;
  inset-block-start: -14%;
  inset-inline-start: -6%;
  width: 480px; height: 480px;
  max-width: 60vw;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23B4892C' stroke-width='1.5'%3E%3Crect x='50' y='50' width='100' height='100'/%3E%3Crect x='50' y='50' width='100' height='100' transform='rotate(45 100 100)'/%3E%3Ccircle cx='100' cy='100' r='79'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

/* Small refinements */
.btn--primary { box-shadow: 0 8px 22px rgba(210, 105, 30, 0.26); }
.service-card::before { background: linear-gradient(90deg, var(--gold), var(--orange)); }

/* ============================================================================
   ZAKAT CALCULATOR — free interactive individual-zakat tool
   ============================================================================ */
.nav__link--calc { color: var(--green-primary); }
.nav__link--calc .nav__free {
  font-size: 0.62rem; font-weight: 800; color: #fff; background: var(--gold);
  padding: 0.05rem 0.4rem; border-radius: 999px; margin-inline-start: 0.3rem; letter-spacing: 0.02em;
}
.nav__link--calc:hover { background: rgba(180, 137, 44, 0.12); color: var(--green-dark); }

.zc-free {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(180, 137, 44, 0.14); color: #7a5c14;
  border: 1px solid rgba(180, 137, 44, 0.35);
  font-weight: 800; font-size: 0.85rem; padding: 0.3rem 0.9rem; border-radius: 999px;
}
.zc-free svg { width: 15px; height: 15px; }

.zc-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.zc-form { display: grid; gap: 1.5rem; }
.zc-block { background: var(--paper); border: 1px solid var(--grey-line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.5rem; }
.zc-block h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.zc-block h3 svg { width: 20px; height: 20px; color: var(--green-primary); }
.zc-row { display: grid; gap: 0.9rem; }
.zc-field label { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 0.35rem; }
.zc-input { position: relative; display: flex; align-items: center; }
.zc-input input {
  width: 100%; font-family: inherit; font-size: 1rem; font-variant-numeric: tabular-nums;
  padding: 0.65rem 0.9rem; border: 1.5px solid var(--grey-line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text-dark); transition: border-color var(--transition);
}
.zc-input input:focus { outline: none; border-color: var(--green-primary); }
.zc-input .unit { position: absolute; inset-inline-end: 0.85rem; font-size: 0.8rem; color: var(--text-muted); pointer-events: none; }
.zc-metal { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.zc-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }
.zc-seg { display: inline-flex; background: var(--grey-bg); border: 1px solid var(--grey-line); border-radius: 999px; padding: 0.2rem; gap: 0.2rem; }
.zc-seg button { font-family: inherit; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); padding: 0.35rem 0.9rem; border-radius: 999px; transition: all var(--transition); }
.zc-seg button.is-on { background: var(--green-primary); color: #fff; }

.zc-result { position: sticky; top: 84px; background: linear-gradient(160deg, var(--green-primary), var(--green-dark)); color: #fff; border-radius: var(--radius); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-md); }
.zc-result h3 { font-size: 1rem; font-weight: 700; opacity: 0.9; margin-bottom: 1rem; }
.zc-line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.14); font-size: 0.95rem; }
.zc-line span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; }
.zc-line .muted { color: rgba(255,255,255,0.75); font-weight: 400; }
.zc-zakat { margin-top: 1.2rem; text-align: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(203,165,58,0.4); border-radius: var(--radius-sm); padding: 1.2rem; }
.zc-zakat .label { font-size: 0.9rem; opacity: 0.85; }
.zc-zakat .amount { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; color: var(--gold-soft); font-variant-numeric: tabular-nums; line-height: 1.1; margin: 0.25rem 0; }
.zc-zakat .amount .cur { font-size: 1.1rem; font-weight: 700; }
.zc-status { font-size: 0.9rem; margin-top: 0.5rem; }
.zc-status.due { color: #8CE6B0; }
.zc-status.under { color: #F3C98B; }
.zc-reset { margin-top: 1rem; width: 100%; justify-content: center; }

.zc-disclaimer { margin-top: 1.5rem; font-size: 0.86rem; color: var(--text-muted); background: #FBF4EC; border: 1px solid #EAD9C2; border-inline-start: 4px solid var(--orange); border-radius: var(--radius-sm); padding: 1rem 1.2rem; line-height: 1.7; }

/* FAQ accordion (native details) */
.faq { max-width: 75ch; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq details { background: var(--paper); border: 1px solid var(--grey-line); border-radius: var(--radius-sm); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 1.2rem; font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-inline-end: 2px solid var(--green-primary); border-bottom: 2px solid var(--green-primary); transform: rotate(45deg); transition: transform var(--transition); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > p { padding: 0 1.2rem 1.1rem; color: var(--text-muted); margin: 0; }

@media (max-width: 860px) {
  .zc-grid { grid-template-columns: 1fr; }
  .zc-result { position: static; }
}

/* Process steps (how zakat is calculated) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 1.5rem); }
.step-card { background: var(--paper); border: 1px solid var(--grey-line); border-radius: var(--radius); padding: 1.6rem 1.4rem; position: relative; }
.step-card__n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-soft));
  color: #fff; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-sm); margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Zakat calculator — currency bar + live price source */
.zc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; background: var(--paper); border: 1px solid var(--grey-line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.zc-cur-wrap { display: flex; align-items: center; gap: 0.5rem; }
.zc-cur-wrap label { font-weight: 700; font-size: 0.9rem; }
.zc-bar select { font-family: inherit; font-size: 0.95rem; font-weight: 600; padding: 0.5rem 0.8rem; border: 1.5px solid var(--grey-line); border-radius: var(--radius-sm); background: var(--white); color: var(--text-dark); cursor: pointer; }
.zc-bar select:focus { outline: none; border-color: var(--green-primary); }
.zc-refresh { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.85rem; color: var(--green-primary); background: rgba(27, 94, 63, 0.08); border: 1px solid rgba(27, 94, 63, 0.2); padding: 0.5rem 0.9rem; border-radius: 999px; transition: background var(--transition), color var(--transition); }
.zc-refresh:hover { background: var(--green-primary); color: #fff; }
.zc-refresh svg { width: 15px; height: 15px; }
.zc-refresh.spin svg { animation: zc-spin 0.8s linear infinite; }
@keyframes zc-spin { to { transform: rotate(360deg); } }
.zc-src { flex-basis: 100%; font-size: 0.82rem; color: var(--text-muted); margin: 0; line-height: 1.65; }
.zc-src .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); margin-inline-end: 0.4rem; vertical-align: middle; }
.zc-src.live .dot { background: #2E7D5B; box-shadow: 0 0 0 3px rgba(46, 125, 91, 0.15); }
.zc-src.err .dot { background: var(--orange); }

/* ============================================================================
   VALUES — readable 5-value cards (replaces the old infographic image)
   ============================================================================ */
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1rem, 2vw, 1.4rem); }
.value-card { background: var(--paper); border: 1px solid var(--grey-line); border-radius: var(--radius); padding: 1.85rem 1.25rem; text-align: center; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.value-card__icon { width: 58px; height: 58px; margin: 0 auto 1.1rem; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, rgba(27, 94, 63, 0.12), rgba(180, 137, 44, 0.14)); color: var(--green-primary); }
.value-card__icon svg { width: 28px; height: 28px; }
.value-card h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.7; }
@media (max-width: 1000px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .values-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; } .value-card { padding: 1.4rem 1rem; } }
@media (max-width: 380px) { .values-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   CLIENTS — logo wall (social proof / credibility)
   ============================================================================ */
/* Logo ticker bar — small logos scrolling right-to-left, like a news ticker */
.marquee { position: relative; overflow: hidden; margin-top: 2.5rem; direction: ltr;
  background: #fff; padding-block: 1.25rem; border-block: 1px solid var(--grey-line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; direction: ltr; align-items: center; gap: 2.25rem; width: max-content; animation: marquee-rtl 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.logo-card { flex: 0 0 auto; width: 138px; aspect-ratio: 440 / 150; border-radius: 8px; overflow: hidden; }
.logo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 600px) { .logo-card { width: 112px; } .marquee__track { gap: 1.5rem; animation-duration: 24s; } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .marquee { overflow-x: auto; } }

/* Honeypot (spam trap) — visually hidden, off keyboard/AT */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
