/* Najma site – same palette and fonts as the app. Fonts are self-hosted so the pages make no third-party requests. */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/BricolageGrotesque.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  src: url('/fonts/Rubik.ttf') format('truetype');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --night: #262c6e;
  --ink: #111111;
  --paper: #ffffff;
  --soft: #f6f4ec;
  --gold: #ffd84d;
  --muted: #55565e;
  --fajr: #c9b8ff;
  --dhuhr: #74fb97;
  --maghrib: #ff8f6b;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font: 400 17px/1.65 'Bricolage Grotesque', 'Rubik', system-ui, sans-serif;
}
[dir='rtl'] body, body[dir='rtl'] { font-family: 'Rubik', system-ui, sans-serif; }

header.hero {
  background: var(--night);
  color: var(--paper);
  padding: 28px 16px 64px;
}
.wrap { max-width: 760px; margin: 0 auto; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { width: 48px; height: 48px; border-radius: 14px; border: 2.5px solid var(--ink); }
.brand span { font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lang {
  color: var(--ink);
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--ink);
}
.lang:hover { background: var(--gold); }

/* About and Support links, next to the language switch. */
.navlinks { display: flex; align-items: center; gap: 18px; }
.navlinks .tab {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 7px;
  text-decoration-thickness: 2.5px;
  white-space: nowrap;
}
.navlinks .tab:hover, .navlinks .tab[aria-current='page'] { text-decoration-line: underline; text-decoration-color: var(--gold); }
@media (max-width: 460px) {
  .topbar .brand span, .nav .brand span { display: none; }
  .navlinks { gap: 12px; }
  .navlinks .tab { font-size: 15px; }
  .lang { padding: 3px 10px; }
}
@media (max-width: 360px) {
  .navlinks { gap: 10px; }
  .navlinks .tab, .lang { font-size: 14px; }
  .lang { padding: 2px 9px; }
}

h1 {
  font-weight: 800;
  font-size: clamp(32px, 7vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 40px 0 8px;
}
.hero p { margin: 0; color: #d9dcff; }

main.card {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 28px;
  box-shadow: 0 6px 0 var(--ink);
  margin: -40px auto 40px;
  max-width: 760px;
  padding: 8px 28px 28px;
}
@media (max-width: 800px) { main.card { margin: -40px 16px 32px; padding: 4px 18px 22px; } }

h2 {
  font-weight: 800;
  font-size: 22px;
  margin: 32px 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
h2::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 5px;
  border: 2px solid var(--ink);
  background: var(--gold);
}
h3 { font-size: 17px; margin: 20px 0 4px; }

p, li { margin: 8px 0; }
ul, ol { padding-inline-start: 22px; }

.summary {
  background: var(--soft);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 6px 20px;
  margin-top: 28px;
}
.summary ul { padding-inline-start: 0; list-style: none; }
.summary li::before { content: '★'; color: #e0b400; margin-inline-end: 8px; }

table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { text-align: start; vertical-align: top; padding: 10px 8px; border-bottom: 1.5px solid #e4e2d8; }
th { font-weight: 700; }
@media (max-width: 560px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border: 2px solid var(--ink); border-radius: 16px; margin: 10px 0; padding: 4px 12px; }
  td { border: 0; padding: 4px 0; }
  td:first-child { font-weight: 700; }
}

a { color: #3a41b8; }
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--ink);
  margin: 6px 6px 6px 0;
}
.btn.alt { background: var(--paper); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 46px;
  margin: 14px 0;
  min-height: 34px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--fajr);
  display: grid;
  place-items: center;
  font-weight: 800;
}
[lang='ar'] .steps li::before { content: counter(step, arabic-indic); }

.muted { color: var(--muted); font-size: 15px; }
.center { text-align: center; }

/* About */
.verse-card {
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.8;
  text-align: center;
  margin: 28px 0 0;
}
.hadith {
  background: var(--soft);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 14px 20px;
  margin-top: 32px;
  text-align: center;
  font-weight: 600;
}
.hadith .muted { display: block; font-weight: 400; }

/* Support */
.contact { background: #fff6cc; }
.contact .btn { margin-top: 2px; }
details.faq {
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 0 18px;
  margin: 10px 0;
}
details.faq[open] { background: var(--soft); }
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-weight: 800; font-size: 22px; line-height: 1.1; }
details.faq[open] summary::after { content: '–'; }
details.faq p, details.faq ul { margin-top: 0; }
footer { text-align: center; padding: 0 16px 40px; color: var(--muted); font-size: 14px; }
footer a { margin: 0 8px; }
