:root {
  color-scheme: light;
  --navy: #080b18;
  --navy-soft: #10162c;
  --primary: #2f61ee;
  --primary-bright: #5b80ff;
  --primary-soft: #edf2ff;
  --canvas: #f4f7fc;
  --surface: #ffffff;
  --text: #111a2f;
  --muted: #65718a;
  --line: #dfe5f0;
  --line-dark: rgba(255,255,255,.12);
  --shadow: 0 24px 70px rgba(17, 30, 66, .12);
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

html[lang="ar"] {
  --font-display: "Cairo", "Inter", sans-serif;
  --font-body: "Cairo", "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--text); font-family: var(--font-body); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .brand { font-family: var(--font-display); }
a { color: inherit; }
button, input { font: inherit; }
.skip-link { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: white; color: var(--navy); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 20; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-shell, .hero-grid, .content-shell, .footer-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.nav-shell { min-height: 78px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 20px; letter-spacing: -.02em; }
.brand img { border-radius: 12px; box-shadow: 0 8px 24px rgba(47,97,238,.24); }
.brand strong { font-weight: 760; }
.nav-shell nav { display: flex; align-items: center; gap: 28px; margin-inline: auto; }
.nav-shell nav a { color: #aeb8d1; font-size: 14px; font-weight: 650; text-decoration: none; transition: color .2s ease; }
.nav-shell nav a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.language { color: #dce3f8; font-size: 14px; font-weight: 700; text-decoration: none; }

.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 21px; border: 1px solid transparent; border-radius: 15px; background: var(--primary); color: #fff; font-weight: 760; text-decoration: none; box-shadow: 0 15px 34px rgba(47,97,238,.3); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: #3b6bf5; box-shadow: 0 19px 40px rgba(47,97,238,.38); }
.button-small { min-height: 42px; padding: 8px 16px; border-radius: 12px; font-size: 13px; }
.button-ghost { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.23); box-shadow: none; }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.button-light { background: #fff; color: #163170; box-shadow: 0 14px 34px rgba(4,10,28,.18); }
.button-light:hover { background: #f8faff; }

.hero-shell { position: relative; overflow: hidden; min-height: 720px; padding: 142px 0 118px; color: #fff; background: radial-gradient(circle at 18% 20%, rgba(67,94,198,.34), transparent 30%), radial-gradient(circle at 78% 62%, rgba(48,91,222,.18), transparent 30%), var(--navy); }
.hero-shell::before { content: ""; position: absolute; width: 620px; height: 620px; inset: -270px auto auto -210px; border: 1px solid rgba(111,139,238,.12); border-radius: 50%; box-shadow: 0 0 0 80px rgba(111,139,238,.025), 0 0 0 160px rgba(111,139,238,.018); }
html[dir="rtl"] .hero-shell::before { inset-inline: auto -210px; }
.hero-shell::after { content: ""; position: absolute; width: 420px; height: 420px; inset: auto -220px -220px auto; border-radius: 50%; background: radial-gradient(circle, rgba(71,108,237,.22), transparent 68%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(420px,.92fr); align-items: center; gap: clamp(44px,7vw,96px); }
.crumbs { min-height: 26px; display: flex; align-items: center; gap: 8px; margin-bottom: 24px; color: #8996b5; font-size: 13px; white-space: nowrap; overflow: auto; scrollbar-width: none; }
.crumbs a { text-decoration: none; }
.hero-tag, .section-kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px; color: var(--primary-bright); font-size: 13px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.section-kicker { color: #3159c7; }
.hero-tag { padding: 8px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.055); color: #e8edff; letter-spacing: 0; text-transform: none; }
.hero-tag i, .live-status i { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--primary-bright); box-shadow: 0 0 0 5px rgba(91,128,255,.13); }
h1 { max-width: 720px; margin: 0; font-size: clamp(48px,5.8vw,78px); line-height: 1.06; letter-spacing: -.052em; text-wrap: balance; }
html[dir="rtl"] h1 { letter-spacing: -.025em; }
.hero-lead { max-width: 660px; margin: 24px 0 30px; color: #a9b3ca; font-size: clamp(17px,1.7vw,21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; gap: 26px; margin-top: 42px; }
.trust-row span { min-width: 98px; display: grid; color: #7f8ba8; font-size: 12px; }
.trust-row b { margin-bottom: 2px; color: #fff; font-size: 20px; line-height: 1.2; }

.hero-visual { position: relative; min-width: 0; }
.preview-window { position: relative; overflow: hidden; padding: 0 24px 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 25px; background: linear-gradient(145deg, rgba(31,43,82,.95), rgba(12,17,36,.96)); box-shadow: 0 40px 90px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.05); transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); }
html[dir="rtl"] .preview-window { transform: perspective(1200px) rotateY(3deg) rotateX(1deg); }
.preview-bar { height: 54px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid rgba(255,255,255,.09); }
.preview-bar span { width: 8px; height: 8px; border-radius: 50%; background: #47516b; }
.preview-bar em { margin-inline-start: auto; color: #8290ad; font-size: 11px; font-style: normal; }
.preview-location { display: flex; align-items: center; gap: 15px; padding: 26px 0 20px; }
.preview-location img { border-radius: 15px; box-shadow: 0 10px 28px rgba(47,97,238,.3); }
.preview-location div { display: grid; }
.preview-location small { color: #8490aa; }
.preview-location strong { font-size: 21px; }
.preview-steps { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.preview-steps li { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; background: rgba(255,255,255,.035); }
.preview-steps li > b { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: rgba(71,109,240,.15); color: #7c9aff; font-size: 12px; }
.preview-steps span { min-width: 0; display: grid; }
.preview-steps strong { font-size: 14px; }
.preview-steps small { color: #8390aa; font-size: 12px; }
.preview-next { padding: 24px; border-radius: 18px; background: linear-gradient(135deg, #315fe7, #5179f2); box-shadow: 0 18px 38px rgba(47,97,238,.28); }
.preview-next span { display: block; color: #dfe7ff; font-size: 12px; }
.preview-next strong { display: block; margin-top: 8px; font-size: 21px; }
.preview-next b { display: block; margin-top: -10px; text-align: end; font-size: 38px; letter-spacing: -.03em; }
.preview-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 12px; }
.preview-strip span { display: grid; gap: 3px; padding: 11px 5px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; text-align: center; }
.preview-strip small { color: #7f8ba8; font-size: 10px; }
.preview-strip b { font-size: 13px; }
.floating-pill { position: absolute; z-index: 2; padding: 9px 13px; border-radius: 12px; background: #fff; color: #17203a; font-size: 11px; font-weight: 750; box-shadow: 0 16px 38px rgba(0,0,0,.24); }
.floating-one { inset: 31% auto auto -28px; }
.floating-two { inset: auto -26px 12% auto; }
html[dir="rtl"] .floating-one { inset-inline: auto -28px; }
html[dir="rtl"] .floating-two { inset-inline: -26px auto; }

.content-shell { position: relative; z-index: 3; margin-top: -68px; padding-bottom: 90px; }
.prayer-card, .discovery-card { border: 1px solid var(--line); border-radius: 25px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); }
.prayer-card { padding: clamp(24px,4vw,42px); }
.discovery-card { min-height: 138px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 34px; background: linear-gradient(120deg, #2e5ee8, #4e77ef); color: #fff; border-color: rgba(255,255,255,.18); }
.discovery-card .section-kicker { margin: 0 0 5px; color: #dce5ff; }
.discovery-card h2 { margin: 0 0 3px; }
.discovery-card p { margin: 0; color: #dfe6fb; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.section-title-row h2, .section-heading h2, .how h2, .seo-copy h2, .final-cta h2 { margin: 0; font-size: clamp(30px,4vw,46px); line-height: 1.13; letter-spacing: -.035em; }
html[dir="rtl"] :is(.section-title-row h2,.section-heading h2,.how h2,.seo-copy h2,.final-cta h2) { letter-spacing: -.015em; }
.section-title-row p, .section-heading p { margin: 8px 0 0; color: var(--muted); }
.live-status { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; color: var(--muted); font-size: 12px; font-weight: 700; }
.times { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; margin-top: 28px; }
.time { display: grid; gap: 5px; padding: 17px 8px; border: 1px solid transparent; border-radius: 16px; background: var(--primary-soft); text-align: center; }
.time span { color: var(--muted); font-size: 13px; }
.time strong { font-size: 23px; }
.time.featured { border-color: rgba(47,97,238,.26); background: var(--primary); color: #fff; box-shadow: 0 13px 28px rgba(47,97,238,.25); }
.time.featured span { color: #dce5ff; }
.source-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; }

.directory { padding: 108px 0 34px; }
.section-heading { max-width: 720px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.location-search { position: relative; max-width: 680px; display: block; margin: 30px 0 22px; }
.location-search > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.location-search input { width: 100%; min-height: 58px; padding: 12px 50px 12px 18px; border: 1px solid var(--line); border-radius: 16px; outline: none; background: #fff; color: var(--text); box-shadow: 0 9px 28px rgba(19,31,65,.06); }
html[dir="rtl"] .location-search input { padding: 12px 18px 12px 50px; }
.location-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47,97,238,.1); }
.location-search b { position: absolute; inset-block-start: 50%; inset-inline-end: 18px; transform: translateY(-50%); color: var(--primary); font-size: 24px; font-weight: 400; }
.links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.links a { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 0 12px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-decoration: none; box-shadow: 0 7px 22px rgba(19,31,65,.045); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.links a:hover { transform: translateY(-2px); border-color: rgba(47,97,238,.42); box-shadow: 0 13px 30px rgba(19,31,65,.09); }
.links a span { min-width: 0; overflow: hidden; font-weight: 730; text-overflow: ellipsis; white-space: nowrap; }
.links a small { min-width: 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.links a b { grid-row: 1/3; grid-column: 2; color: var(--primary); font-size: 17px; }
.links a[hidden] { display: none; }
.links:not(.expanded):not(.searching) a:nth-child(n+19) { display: none; }
.show-locations { min-height: 46px; display: block; margin: 22px auto 0; padding: 9px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--primary); cursor: pointer; font-weight: 750; box-shadow: 0 8px 24px rgba(19,31,65,.06); }
.show-locations:hover { border-color: rgba(47,97,238,.4); }
.no-results { padding: 24px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; }

.benefits { padding: 100px 0; }
.benefit-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-top: 38px; }
.benefit-card { min-height: 245px; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 14px 42px rgba(19,31,65,.07); }
.benefit-card:first-child { grid-row: span 2; min-height: 504px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: radial-gradient(circle at 20% 10%, rgba(67,98,214,.42), transparent 32%), var(--navy); border-color: rgba(255,255,255,.09); }
.benefit-card > span { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: auto; border-radius: 13px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 800; }
.benefit-card:first-child > span { background: rgba(88,124,255,.15); color: #89a2ff; }
.benefit-card h3 { margin: 20px 0 8px; font-size: clamp(23px,3vw,34px); line-height: 1.15; }
.benefit-card p { max-width: 620px; margin: 0; color: var(--muted); }
.benefit-card:first-child p { color: #9da9c3; }

.how { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; padding: 100px 0; border-top: 1px solid var(--line); }
.how-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.how-list li { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.how-list li > b { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--primary-soft); color: var(--primary); font-size: 12px; }
.how-list h3 { margin: 0 0 5px; font-size: 19px; }
.how-list p { margin: 0; color: var(--muted); }

.seo-copy { max-width: 940px; margin: 0 auto 100px; padding: clamp(28px,5vw,54px); border-radius: 26px; color: #fff; background: radial-gradient(circle at 85% 20%, rgba(74,108,231,.35), transparent 30%), var(--navy); box-shadow: 0 24px 70px rgba(12,20,47,.18); }
.seo-copy .section-kicker { color: #8fa8ff; }
.seo-copy p { color: #abb5cd; font-size: 16px; }

.faq { display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; padding: 95px 0; border-top: 1px solid var(--line); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 0 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.faq-list summary { min-height: 68px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; cursor: pointer; font-weight: 730; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--primary); font-size: 12px; }
.faq-list details p { margin: -2px 0 20px; padding-inline-start: 48px; color: var(--muted); }

.final-cta { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 25px; padding: clamp(30px,5vw,48px); border-radius: 28px; color: #fff; background: linear-gradient(120deg, #2858df, #4f78ef); box-shadow: 0 25px 65px rgba(47,97,238,.24); }
.final-cta img { border-radius: 18px; box-shadow: 0 13px 30px rgba(5,15,45,.25); }
.final-cta .section-kicker { margin-bottom: 5px; color: #dce5ff; }
.final-cta h2 { font-size: clamp(28px,3.2vw,42px); }
.final-cta p { margin: 7px 0 0; color: #dfe6fb; }

footer { padding: 52px 0; color: #939eb8; background: var(--navy); }
.footer-shell { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.footer-shell p { margin: 0; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: #c5cde1; font-size: 13px; text-decoration: none; }
.footer-shell small { grid-column: 1/-1; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }

@media (max-width: 900px) {
  .nav-shell nav { display: none; }
  .hero-shell { min-height: auto; padding-bottom: 130px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-visual { width: min(560px,100%); margin-inline: auto; }
  .times { grid-template-columns: repeat(3,1fr); }
  .links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .how, .faq { grid-template-columns: 1fr; gap: 34px; }
  .footer-shell { grid-template-columns: 1fr; }
  .footer-shell small { grid-column: auto; }
}

@media (max-width: 620px) {
  .nav-shell, .hero-grid, .content-shell, .footer-shell { width: min(100% - 28px,1180px); }
  .nav-shell { min-height: 68px; gap: 12px; }
  .brand strong { font-size: 17px; }
  .nav-actions { margin-inline-start: auto; gap: 9px; }
  .language { font-size: 12px; }
  .button-small { min-height: 38px; padding: 7px 11px; font-size: 11px; }
  .hero-shell { padding: 110px 0 110px; }
  h1 { font-size: clamp(39px,12vw,56px); }
  .hero-lead { margin-top: 18px; font-size: 16px; }
  .hero-actions .button { flex: 1 1 150px; padding-inline: 13px; }
  .trust-row { gap: 13px; margin-top: 32px; }
  .trust-row span { min-width: 0; flex: 1; }
  .trust-row b { font-size: 16px; }
  .preview-window { padding: 0 15px 15px; border-radius: 20px; transform: none; }
  html[dir="rtl"] .preview-window { transform: none; }
  .floating-pill { display: none; }
  .content-shell { margin-top: -50px; padding-bottom: 64px; }
  .discovery-card { align-items: stretch; flex-direction: column; padding: 24px; }
  .section-title-row { align-items: start; flex-direction: column; gap: 12px; }
  .times { grid-template-columns: repeat(2,1fr); }
  .directory, .benefits, .how, .faq { padding: 72px 0; }
  .links { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-card:first-child { grid-row: auto; min-height: 330px; }
  .benefit-card { min-height: 220px; }
  .seo-copy { margin-bottom: 72px; }
  .final-cta { grid-template-columns: 1fr; text-align: center; }
  .final-cta img { margin-inline: auto; }
  .final-cta .button { width: 100%; }
  .footer-shell { text-align: center; }
  .footer-shell .brand, .footer-links { justify-content: center; }
}

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