:root {
  --green: #0b4d3a;
  --green-2: #16634d;
  --gold: #d4a017;
  --cream: #f5e9cf;
  --bg: #faf7f0;
  --surface: #ffffff;
  --text: #111111;
  --muted: #687280;
  --border: rgba(11, 77, 58, 0.14);
  --shadow: 0 18px 55px rgba(18, 36, 31, 0.10);
  --shadow-soft: 0 14px 38px rgba(18, 36, 31, 0.07);
  --radius: 24px;
  --container: 1180px;
  --header-h: 86px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; font-family: inherit; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
h1,h2,h3,p { margin-top: 0; }

.container { width: min(100% - 36px, var(--container)); margin-inline: auto; }
.section { padding: 86px 0; position: relative; }
.section-soft { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(250, 247, 240, .88);
  border-bottom: 1px solid rgba(11,77,58,.08);
  backdrop-filter: blur(18px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand-link { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-link img { width: 178px; height: auto; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 10px; color: var(--green); font-weight: 800; }
.primary-nav a:not(.btn) { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; transition: .2s ease; }
.primary-nav a:not(.btn):hover { background: rgba(11,77,58,.08); color: #063729; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 16px; background: #fff; color: var(--green); cursor: pointer; }
.menu-toggle span { display: block; width: 21px; height: 2px; margin: 5px auto; border-radius: 999px; background: currentColor; transition: .2s ease; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border: 1px solid transparent; border-radius: 15px; font-weight: 900; line-height: 1.3; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid rgba(212,160,23,.34); outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 14px 30px rgba(11,77,58,.20); }
.btn-primary:hover { background: #073d2e; }
.btn-secondary { color: var(--green); background: rgba(255,255,255,.85); border-color: rgba(212,160,23,.55); }
.btn-secondary:hover { background: #fff; border-color: var(--gold); }
.btn-light { background: #fff; color: var(--green); border-color: rgba(255,255,255,.78); }
.btn-small { min-height: 44px; padding: 10px 16px; border-radius: 13px; }

.hero { min-height: calc(100svh - var(--header-h)); position: relative; display: flex; align-items: center; overflow: hidden; background: linear-gradient(90deg, rgba(250,247,240,.98) 0%, rgba(250,247,240,.92) 46%, rgba(250,247,240,.78) 100%), url('../assets/images/hero-bg-light.jpg') center bottom / cover no-repeat; border-bottom: 1px solid rgba(11,77,58,.08); }
.hero::before, .hero::after { content:""; position:absolute; pointer-events:none; border-radius:50%; filter: blur(10px); opacity:.5; }
.hero::before { width: 390px; height: 390px; background: radial-gradient(circle, rgba(212,160,23,.16), transparent 62%); top: 14%; right: 48%; }
.hero::after { width: 520px; height: 520px; background: radial-gradient(circle, rgba(11,77,58,.12), transparent 66%); bottom: -200px; left: -120px; }
.hero-pattern { position:absolute; inset:0; background-image: radial-gradient(rgba(212,160,23,.12) 1px, transparent 1px); background-size: 32px 32px; opacity:.20; mask-image: linear-gradient(90deg, transparent, #000 26%, #000 70%, transparent); }
.hero-grid { position: relative; z-index: 1; display:grid; grid-template-columns: 1.02fr .98fr; align-items:center; gap: 60px; padding-block: 70px; }
.hero-copy { max-width: 620px; }
.hero-brand { width: 210px; margin-bottom: 10px; display:none; }
.eyebrow { margin-bottom: 10px; color: var(--gold); font-weight: 900; letter-spacing: .02em; }
h1 { margin-bottom: 22px; color: var(--green); font-size: clamp(3rem, 6vw, 5.7rem); line-height: 1.04; font-weight: 900; letter-spacing: -0.02em; }
.hero-lead { max-width: 570px; margin-bottom: 30px; color: #26322f; font-size: clamp(1.12rem, 2vw, 1.38rem); font-weight: 600; }
.hero-actions { display:flex; flex-wrap:wrap; gap: 14px; margin-bottom: 28px; }
.hero-stats { display:flex; flex-wrap:wrap; gap: 12px; color: var(--green); font-weight: 700; }
.hero-stats span { padding: 9px 14px; border: 1px solid rgba(11,77,58,.12); border-radius: 999px; background: rgba(255,255,255,.62); }
.hero-stats strong { color: var(--gold); }
.hero-visual { display:flex; justify-content:center; }
.phone-stage { position:relative; width:min(90vw,430px); min-height: 610px; display:grid; place-items:center; }
.phone-stage::before { content:""; position:absolute; inset: 54px 0 10px; background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.48)); border:1px solid rgba(212,160,23,.28); border-radius: 36px; box-shadow: var(--shadow); transform: rotate(-1deg); }
.phone-stage::after { content:""; position:absolute; width: 92%; height: 28px; bottom: 0; background: radial-gradient(ellipse, rgba(18,36,31,.20), transparent 70%); filter: blur(4px); }
.phone-preview { position:relative; z-index:1; width: min(82vw, 350px); max-height: 650px; object-fit: contain; border-radius: 32px; filter: drop-shadow(0 24px 42px rgba(18,36,31,.22)); animation: floatPhone 5s ease-in-out infinite; }
@keyframes floatPhone { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }

.section-heading { max-width: 760px; margin: 0 auto 38px; text-align:center; }
.section-heading h2 { margin-bottom: 12px; color: var(--green); font-size: clamp(2rem,4vw,3.3rem); line-height:1.16; font-weight:900; }
.section-heading p:last-child { color: var(--muted); font-size: 1.08rem; }
.feature-grid { display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.feature-card { min-height: 190px; padding: 24px 20px; border:1px solid rgba(11,77,58,.12); border-radius: var(--radius); background: rgba(255,255,255,.9); box-shadow: var(--shadow-soft); transition: .22s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: rgba(212,160,23,.55); box-shadow: 0 22px 58px rgba(18,36,31,.12); }
.feature-card svg { width: 42px; height:42px; color: var(--green); margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 8px; color: var(--green); font-size: 1.15rem; font-weight:900; line-height:1.35; }
.feature-card p { margin-bottom: 0; color: var(--muted); font-weight:600; line-height:1.7; }

.about-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.about-card { position:relative; overflow:hidden; min-height: 210px; padding: 32px; border:1px solid rgba(11,77,58,.12); border-radius: 28px; background: linear-gradient(135deg, #fff, rgba(245,233,207,.46)); box-shadow: var(--shadow-soft); }
.about-card::after { content:""; position:absolute; inset:auto -20px -60px auto; width:190px; height:190px; border-radius:50%; background: rgba(11,77,58,.08); }
.about-icon { width:72px; height:72px; display:grid; place-items:center; border-radius:50%; background: rgba(11,77,58,.08); color: var(--green); margin-bottom: 18px; }
.about-icon svg { width:40px; height:40px; }
.about-card h2 { color: var(--green); font-size: clamp(1.55rem,2.4vw,2.2rem); line-height:1.25; margin-bottom: 10px; }
.about-card p { color: var(--muted); font-weight:600; margin-bottom:0; }

.screens-section { background: #fff; }
.screen-slider { position: relative; }
.screen-track { display:grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px)/3); gap: 18px; overflow-x:auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width:none; padding: 6px 0 20px; }
.screen-track::-webkit-scrollbar { display:none; }
.screen-card { margin:0; overflow:hidden; border:1px solid rgba(11,77,58,.12); border-radius: 26px; background:#fff; box-shadow: var(--shadow-soft); scroll-snap-align:start; }
.screen-card img { width:100%; aspect-ratio: 16/9; object-fit: cover; object-position: center; background: var(--cream); }
.screen-card figcaption { padding: 17px 20px 20px; color: var(--green); text-align:center; font-weight:900; }
.slider-btn { position:absolute; top: 42%; z-index:3; width:46px; height:46px; display:grid; place-items:center; border:1px solid rgba(11,77,58,.16); border-radius:50%; background:#fff; color:var(--green); box-shadow: var(--shadow-soft); cursor:pointer; transition:.2s ease; }
.slider-btn:hover { transform: translateY(-2px); background: var(--green); color:#fff; }
.slider-btn.prev { right: -20px; }
.slider-btn.next { left: -20px; }

.support-cta { padding: 34px 0 70px; background:#fff; }
.support-card { position:relative; overflow:hidden; display:grid; grid-template-columns: 1fr auto auto; align-items:center; gap: 24px; padding: 34px 38px; border-radius: 30px; color:#fff; background: linear-gradient(110deg, rgba(11,77,58,.98), rgba(22,99,77,.94)), url('../assets/images/kaaba-soft-bg.png') center 62%/cover no-repeat; box-shadow: var(--shadow); }
.support-card h2 { color:#fff; margin-bottom:8px; font-size: clamp(2rem,4vw,3rem); line-height:1.15; }
.support-card p { margin:0; color: rgba(255,255,255,.86); font-weight:600; }
.support-card .eyebrow { color: var(--cream); }
.support-icon { width:96px; height:96px; display:grid; place-items:center; border: 1px solid rgba(255,255,255,.15); border-radius: 28px; background: rgba(255,255,255,.08); color: var(--gold); }
.support-icon svg { width:58px; height:58px; }

.legal-preview { background: var(--bg); padding-top: 64px; }
.legal-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.legal-card { display:grid; grid-template-columns:auto 1fr; gap: 16px; align-items:center; padding: 26px; border:1px solid rgba(11,77,58,.12); border-radius: 24px; background: rgba(255,255,255,.9); box-shadow: var(--shadow-soft); transition:.2s ease; }
.legal-card:hover { transform: translateY(-4px); border-color: rgba(212,160,23,.58); }
.legal-card svg { grid-row: span 2; width:42px; height:42px; color: var(--green); }
.legal-card span { color: var(--green); font-size:1.2rem; font-weight:900; }
.legal-card small { color: var(--muted); font-weight:600; }

.site-footer { padding: 34px 0; background: linear-gradient(90deg, #073d2e, var(--green)); color:#fff; }
.footer-inner { display:grid; grid-template-columns: auto 1fr auto; align-items:center; gap: 30px; }
.footer-brand img { width: 165px; filter: brightness(0) invert(1) sepia(1) saturate(0) brightness(2); opacity:.96; }
.footer-brand p { margin:6px 0 0; color: rgba(255,255,255,.75); font-size:.95rem; }
.footer-links { display:flex; flex-wrap:wrap; justify-content:center; gap: 16px 22px; font-weight:800; }
.footer-links a { color: rgba(255,255,255,.86); transition:.2s ease; }
.footer-links a:hover { color: var(--gold); }
.copyright { margin:0; color: rgba(255,255,255,.72); }

/* Legal pages */
.legal-hero { position:relative; overflow:hidden; padding: 82px 0 58px; background: linear-gradient(90deg, rgba(250,247,240,.98), rgba(250,247,240,.78)), url('../assets/images/legal-hero-bg.jpg') center/cover no-repeat; border-bottom:1px solid rgba(11,77,58,.08); text-align:center; }
.legal-hero h1 { font-size: clamp(2.6rem, 5vw, 5rem); margin-bottom: 16px; }
.legal-hero p { max-width:720px; margin:0 auto; color:#33423e; font-size:1.12rem; font-weight:600; }
.update-pill { margin: 22px auto 0; display:inline-flex; align-items:center; gap:10px; color: var(--gold); background: rgba(255,255,255,.78); border: 1px solid rgba(212,160,23,.28); padding: 10px 18px; border-radius:999px; font-weight:800; }
.legal-layout { display:grid; grid-template-columns: 280px 1fr; gap: 28px; align-items:start; }
.legal-sidebar { position:sticky; top: calc(var(--header-h) + 24px); padding: 22px; border:1px solid rgba(11,77,58,.12); border-radius:26px; background: rgba(255,255,255,.84); box-shadow: var(--shadow-soft); }
.legal-sidebar h2 { font-size:1.2rem; color:var(--green); margin-bottom:14px; }
.legal-sidebar a { display:flex; align-items:center; justify-content:space-between; gap:10px; padding: 12px 14px; border-radius: 14px; color: #475751; font-weight:800; transition:.2s ease; }
.legal-sidebar a:hover, .legal-sidebar a.active { background: rgba(11,77,58,.08); color: var(--green); }
.legal-content { display:grid; gap: 16px; }
.policy-card { display:grid; grid-template-columns: auto 1fr; gap: 18px; padding: 26px; border:1px solid rgba(11,77,58,.12); border-radius: 24px; background:#fff; box-shadow: var(--shadow-soft); }
.policy-card .num { width:46px; height:46px; display:grid; place-items:center; border-radius:15px; background: rgba(245,233,207,.72); color: var(--gold); font-weight:900; }
.policy-card svg { width:42px; height:42px; color: var(--green); }
.policy-icon { width:58px; height:58px; display:grid; place-items:center; border-radius:18px; background: rgba(11,77,58,.07); color:var(--green); }
.policy-card h2 { color: var(--green); font-size:1.45rem; margin-bottom:6px; line-height:1.35; }
.policy-card p, .policy-card li { color: var(--muted); font-weight:600; }
.policy-card p:last-child, .policy-card ul:last-child { margin-bottom:0; }
.policy-card ul { margin: 8px 0 0; padding-inline-start: 22px; }
.legal-bottom-cta { margin-top: 24px; }

.reveal-up { opacity:0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal-up.in-view { opacity:1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; text-align:center; gap: 24px; padding-block: 46px; }
  .hero-copy { margin-inline:auto; }
  .hero-actions, .hero-stats { justify-content:center; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .screen-track { grid-auto-columns: 82%; }
  .support-card { grid-template-columns: 1fr; text-align:center; justify-items:center; }
  .footer-inner { grid-template-columns: 1fr; text-align:center; }
  .footer-brand { display:grid; justify-items:center; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-sidebar { position:relative; top:auto; }
}

@media (max-width: 740px) {
  :root { --header-h: 74px; }
  .container { width: min(100% - 28px, var(--container)); }
  .brand-link img { width: 126px; }
  .menu-toggle { display:block; }
  .primary-nav { position: fixed; inset: var(--header-h) 14px auto; display:grid; gap: 8px; padding: 14px; border:1px solid rgba(11,77,58,.12); border-radius: 22px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); transform: translateY(-12px); opacity:0; pointer-events:none; transition:.2s ease; }
  .primary-nav.is-open { transform: translateY(0); opacity:1; pointer-events:auto; }
  .primary-nav .btn { width:100%; }
  .section { padding: 58px 0; }
  .hero { min-height:auto; }
  .hero-grid { padding-block: 36px 50px; }
  .hero-brand { display:block; margin-inline:auto; width:160px; }
  h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .hero-lead { font-size:1.05rem; }
  .hero-actions .btn { width:100%; }
  .phone-stage { width:100%; min-height: 430px; }
  .phone-preview { width: min(76vw, 280px); }
  .feature-grid, .about-grid, .legal-grid { grid-template-columns: 1fr; }
  .screen-track { grid-auto-columns: 88%; }
  .slider-btn { display:none; }
  .support-card { padding: 28px 20px; }
  .policy-card { grid-template-columns: 1fr; padding:22px; }
  .legal-hero { padding-block: 56px 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior:auto !important; }
}


/* === Temporary production hero image update === */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero.hero-art {
  min-height: auto;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #faf7f0;
  border-bottom: 1px solid rgba(11, 77, 58, 0.08);
}

.hero-art-frame {
  position: relative;
  width: 100%;
  min-height: clamp(520px, calc(100svh - var(--header-h)), 860px);
  background:
    linear-gradient(90deg, rgba(250, 247, 240, 0.03), rgba(250, 247, 240, 0.01)),
    url('../assets/images/hero-rafiqi-faith.png') center center / cover no-repeat;
}

.hero-art-actions {
  position: absolute;
  z-index: 2;
  right: clamp(56px, 11.5vw, 190px);
  bottom: clamp(60px, 0vw, 160px);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-art-actions .btn {
  min-width: 178px;
  box-shadow: 0 18px 34px rgba(18, 36, 31, 0.12);
}

.hero-art-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

@media (max-width: 1020px) {
  .hero-art-frame {
    min-height: 720px;
    background-position: 39% center;
  }

  .hero-art-actions {
    right: 50%;
    bottom: 44px;
    transform: translateX(50%);
    justify-content: center;
    width: min(100% - 32px, 520px);
  }

  .hero-art-actions .btn {
    flex: 1 1 0;
  }
}

@media (max-width: 740px) {
  .hero-art-frame {
    min-height: calc(100svh - var(--header-h));
    background-size: auto 100%;
    background-position: 32% center;
  }

  .hero-art-actions {
    bottom: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-art-actions .btn {
    width: 100%;
    min-height: 50px;
  }
}
