/* ==========================================================================
   Allah & Muhammad Names — consolidated stylesheet
   --------------------------------------------------------------------------
   Used by all five pages:
     index.html            <body class="page-home">
     allah-names.html      <body class="page-names page-allah">
     muhammad-names.html   <body class="page-names page-muhammad">
     privacy-policy.html   <body class="page-legal">
     terms-of-use.html     <body class="page-legal">

   Layout of this file
     1. Design tokens (CSS variables)
     2. Reset & base
     3. Header / navigation (shared, responsive)
     4. Shared components (gold line, footer)
     5. Home page
     6. Names pages (Allah + Muhammad)
     7. Legal pages (Privacy + Terms)
     8. Animations (+ reduced-motion)
     9. Responsive overrides (kept last on purpose)

   Rules that differ between page types are scoped with the body class so
   they cannot leak between pages. After editing this file, bump the version
   in the <link> tag (styles.css?v=2) so browsers fetch the new copy.
   ========================================================================== */


/* ── 1. DESIGN TOKENS ─────────────────────────────────────────────────── */
:root {
  --green-deep:   #0d2b1e;
  --green-dark:   #163d2b;
  --green-mid:    #1e5c3e;
  --green-light:  #2a7a53;
  --gold:         #c9a84c;
  --gold-light:   #e8c97a;
  --gold-pale:    #f5e6bb;
  --cream:        #faf6ee;
  --text-light:   #e8dfc8;
  --text-muted:   #a89878;

  /* Prophet accent — warm amber-bronze */
  --prophet-gold: #d4a843;
  --prophet-warm: #e6c06a;

  /* Font stacks. Latin brand fonts come first; the script font of each language
     is added per-language below, so mixed text (e.g. "Google Play") stays in the brand font. */
  --font-display: 'Cinzel', serif;
  --font-body:    'Cormorant Garamond', Georgia, serif;
  --font-arabic:  'Amiri', serif;
}

html:lang(ur) {
  --font-display: 'Cinzel', 'Noto Nastaliq Urdu', 'Amiri', serif;
  --font-body:    'Cormorant Garamond', 'Noto Nastaliq Urdu', 'Amiri', serif;
}
html:lang(ar) {
  --font-display: 'Cinzel', 'Noto Naskh Arabic', 'Amiri', serif;
  --font-body:    'Cormorant Garamond', 'Noto Naskh Arabic', 'Amiri', serif;
}
html:lang(hi) {
  --font-display: 'Cinzel', 'Noto Serif Devanagari', serif;
  --font-body:    'Cormorant Garamond', 'Noto Serif Devanagari', serif;
}
html:lang(bn) {
  --font-display: 'Cinzel', 'Noto Serif Bengali', serif;
  --font-body:    'Cormorant Garamond', 'Noto Serif Bengali', serif;
}

/* The home page uses a slightly warmer muted text colour */
.page-home { --text-muted: #c4aa88; }


/* ── 2. RESET & BASE ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

[hidden] { display: none !important; }

body {
  background: var(--green-deep);
  color: var(--text-light);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* Geometric background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(60deg, transparent, transparent 40px, rgba(201,168,76,0.03) 40px, rgba(201,168,76,0.03) 41px),
    repeating-linear-gradient(-60deg, transparent, transparent 40px, rgba(201,168,76,0.03) 40px, rgba(201,168,76,0.03) 41px),
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(201,168,76,0.02) 40px, rgba(201,168,76,0.02) 41px);
  pointer-events: none;
  z-index: 0;
}

/* Legal pages: two-layer pattern and looser line height */
body.page-legal { line-height: 1.8; }
body.page-legal::before {
  background-image:
    repeating-linear-gradient(60deg, transparent, transparent 40px, rgba(201,168,76,0.03) 40px, rgba(201,168,76,0.03) 41px),
    repeating-linear-gradient(-60deg, transparent, transparent 40px, rgba(201,168,76,0.03) 40px, rgba(201,168,76,0.03) 41px);
}


/* ── 3. HEADER / NAVIGATION ───────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 6vw;
  background: rgba(13,43,30,0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.page-home nav { background: rgba(13,43,30,0.85); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }

/* Download button (.nav-cta on the home page, .nav-back on the others) */
.nav-cta,
.nav-back {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--green-deep);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  padding: 10px 22px;
  border-radius: 2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.3s, transform 0.3s;
}
.nav-cta:hover,
.nav-back:hover { opacity: 0.88; transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: 0; color: inherit; font: inherit; text-align: inherit;
  -webkit-appearance: none; appearance: none;
}
.hamburger span { width: 24px; height: 2px; background: var(--gold); border-radius: 2px; }

.store-icon { width: 15px; height: 15px; fill: currentColor; }
.page-home .store-icon { width: 18px; height: 18px; }


/* Accessibility: skip link + visible keyboard focus */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--green-deep);
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

a:focus-visible,
button:focus-visible,
.search-input:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}


/* ── 4. SHARED COMPONENTS ─────────────────────────────────────────────── */

/* Gold divider line */
.gold-line {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-home  .gold-line { margin: 0 auto 2.5rem; animation: fadeIn 1s 0.4s ease both; }
.page-names .gold-line { margin: 0 auto 2rem;   animation: fadeIn 0.8s 0.4s ease both; }
.page-legal .gold-line { margin: 2rem auto; }

/* Footer */
footer {
  background: var(--green-deep);
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 3rem 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative; z-index: 1;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.12em;
}
.footer-logo a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-logo a:hover { color: var(--gold); }

.footer-copy { font-size: 0.85rem; color: var(--text-muted); text-align: center; }

.footer-arabic {
  font-family: var(--font-arabic);
  font-size: 1rem;
  color: rgba(201,168,76,0.5);
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }


/* ── 5. HOME PAGE ─────────────────────────────────────────────────────── */

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 6vw 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(42,122,83,0.25) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: glowPulse 7.85s ease-in-out infinite;
}

.bismillah {
  font-family: var(--font-arabic);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  animation: fadeDown 1s ease both;
}

.bismillah-sub {
  font-size: clamp(0.78rem, 1.5vw, 0.92rem);
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.06em;
  margin-bottom: 3rem;
  animation: fadeDown 1s 0.2s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--cream);
  letter-spacing: 0.04em;
  margin-bottom: 1.4rem;
  animation: fadeDown 1s 0.3s ease both;
}
.hero h1 span { color: var(--gold); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3rem;
  animation: fadeDown 1s 0.5s ease both;
}

.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  animation: fadeDown 1s 0.7s ease both;
}

/* Buttons */
.btn-primary {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  padding: 16px 32px;
  border-radius: 2px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 30px rgba(201,168,76,0.25);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 40px rgba(201,168,76,0.35); }
.btn-primary.btn-inline { display: inline-flex; width: fit-content; }

.btn-secondary {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(201,168,76,0.4);
  padding: 16px 32px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}
.btn-secondary:hover { background: rgba(201,168,76,0.08); border-color: var(--gold); }

/* Mock phone */
.phone-wrap {
  margin-top: 5rem;
  animation: fadeUp 1.2s 0.9s ease both;
  position: relative;
}

.phone-frame {
  width: 220px;
  background: var(--green-dark);
  border-radius: 36px;
  border: 2px solid rgba(201,168,76,0.3);
  padding: 16px 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(42,122,83,0.15);
  position: relative;
  margin: 0 auto;
}

.phone-notch {
  width: 70px; height: 10px;
  background: var(--green-deep);
  border-radius: 6px;
  margin: 0 auto 12px;
}

.phone-screen {
  background: #0f3323;
  border-radius: 20px;
  padding: 12px 10px;
  text-align: center;
}

.phone-arabic {
  font-family: var(--font-arabic);
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 2px;
}

.phone-title {
  font-family: var(--font-body);
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.phone-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 5px;
}

.phone-card {
  background: #163d2b;
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
  border: 1px solid rgba(201,168,76,0.15);
}

.phone-card-icon  { font-size: 1rem; margin-bottom: 3px; }
.phone-card-label { font-size: 0.45rem; font-weight: bold; color: var(--cream); }
.phone-card-sub   { font-size: 0.45rem; color: var(--cream); opacity: 0.85; }

.phone-row {
  background: #163d2b;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex; align-items: center; gap: 6px;
  border: 1px solid rgba(201,168,76,0.15);
  border-left: 3px solid var(--gold);
}

.phone-row-icon { font-size: 0.75rem; }
.phone-row-text { font-size: 0.45rem; }
.phone-row-text b { color: var(--cream); display: block; font-size: 0.48rem; }
.phone-row-text span { color: var(--cream); opacity: 0.85; }

/* Stats */
.stats {
  position: relative; z-index: 1;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
  border-top: 1px solid rgba(201,168,76,0.12);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  background: rgba(22,61,43,0.4);
  backdrop-filter: blur(8px);
}

.stat-item {
  flex: 1; min-width: 160px;
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(201,168,76,0.1);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--gold);
  display: block;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* Section shared */
:where(.page-home) section { position: relative; z-index: 1; }

.section-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.section-desc {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 500px;
}

/* Features */
.features { padding: 8rem 6vw; }

.features-header { text-align: center; margin-bottom: 5rem; }
.features-header .section-desc { margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.12);
}

.feature-card {
  background: var(--green-dark);
  padding: 3rem 2.5rem;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: linear-gradient(180deg, var(--gold), transparent);
  transition: height 0.4s ease;
}

.feature-card:hover { background: rgba(30,92,62,0.6); }
.feature-card:hover::before { height: 100%; }

.feature-icon { font-size: 2rem; margin-bottom: 1.2rem; display: block; }

.feature-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
  letter-spacing: 0.06em;
}

.feature-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.75; }

.feature-link {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
}

/* Names showcase */
.names-section { padding: 8rem 6vw; background: rgba(22,61,43,0.6); }

.names-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.names-cards { display: flex; flex-direction: column; gap: 1rem; }

.page-home .name-card {
  background: rgba(22,61,43,0.6);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 4px;
  padding: 1.5rem 2rem;
  display: flex; align-items: center; gap: 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
  animation: slideIn 0.6s ease both;
}
.page-home .name-card:hover { border-color: rgba(201,168,76,0.45); transform: translateX(6px); }

/* Staggered entrance for the five showcase cards */
.page-home .names-cards .name-card:nth-child(1) { animation-delay: 0.1s; }
.page-home .names-cards .name-card:nth-child(2) { animation-delay: 0.2s; }
.page-home .names-cards .name-card:nth-child(3) { animation-delay: 0.3s; }
.page-home .names-cards .name-card:nth-child(4) { animation-delay: 0.4s; }
.page-home .names-cards .name-card:nth-child(5) { animation-delay: 0.5s; }

.name-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--gold);
  opacity: 1;
  min-width: 28px;
}

.name-arabic {
  font-family: var(--font-arabic);
  font-size: 1.6rem;
  color: var(--gold-light);
  flex: 1;
  text-align: right;
}

.name-info { flex: 2; }

.name-en {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--cream);
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.name-meaning { font-size: 0.88rem; color: var(--text-muted); font-style: italic; }

/* Hadith */
.hadith-section { padding: 7rem 6vw; text-align: center; position: relative; }

.hadith-section::before {
  content: '❝';
  position: absolute;
  top: 3rem; left: 50%;
  transform: translateX(-50%);
  font-size: 6rem;
  color: rgba(201,168,76,0.06);
  font-family: Georgia, serif;
  line-height: 1;
}

.hadith-text {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  max-width: 680px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.hadith-source {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}

/* Why / features list */
.why-section { padding: 8rem 6vw; background: rgba(22,61,43,0.3); }

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.why-list { list-style: none; margin-top: 2rem; }

.why-list li {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.08);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.why-list li:last-child { border-bottom: none; }

.why-check {
  width: 20px; height: 20px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
  font-size: 0.65rem;
}

.why-right {
  background: var(--green-dark);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 4px;
  padding: 3rem;
}

.why-right-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.audience-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.08);
}
.audience-item:last-child { border-bottom: none; }
.audience-icon { font-size: 1.3rem; }
.audience-text { font-size: 1rem; color: var(--text-muted); }

/* Download CTA */
.download-section {
  padding: 10rem 6vw;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-section::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(42,122,83,0.2) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.download-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--gold);
  margin-bottom: 1rem;
}

.download-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 1rem;
}

.download-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  font-style: italic;
}

.download-btns { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }

/* Scroll reveal (home) */
.page-home .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.page-home .reveal.visible { opacity: 1; transform: translateY(0); }


/* ── 6. NAMES PAGES (Allah + Muhammad) ────────────────────────────────── */

/* Page header */
.page-names .page-header {
  position: relative;
  padding: 160px 6vw 80px;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.page-names .page-header::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(42,122,83,0.2) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
/* Prophet page: warm amber glow instead of green */
.page-muhammad .page-header::before {
  background: radial-gradient(circle, rgba(212,168,67,0.12) 0%, transparent 70%);
}

.page-names .page-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  animation: fadeDown 0.8s ease both;
}

.page-arabic-title {
  font-family: var(--font-arabic);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  animation: fadeDown 0.8s 0.1s ease both;
}

.page-names .page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
  animation: fadeDown 0.8s 0.2s ease both;
}

.salawat {
  font-family: var(--font-arabic);
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--gold);
  margin-bottom: 1rem;
  animation: fadeDown 0.8s 0.25s ease both;
}

.page-desc {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  font-style: italic;
  animation: fadeDown 0.8s 0.3s ease both;
}

/* Search bar */
.controls {
  position: relative; z-index: 1;
  max-width: 700px;
  margin: 0 auto 4rem;
  padding: 0 6vw;
  animation: fadeDown 0.8s 0.5s ease both;
}

.search-wrap { position: relative; }

.search-input {
  width: 100%;
  background: rgba(22,61,43,0.6);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 2px;
  padding: 16px 50px 16px 20px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--cream);
  outline: none;
  transition: border-color 0.3s;
  letter-spacing: 0.04em;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: rgba(201,168,76,0.6); }

.search-icon {
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  opacity: 0.6;
  font-size: 1rem;
  pointer-events: none;
}

/* Names grid */
.names-container {
  position: relative; z-index: 1;
  padding: 0 6vw 8rem;
  max-width: 1400px;
  margin: 0 auto;
}

.names-count {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-align: center;
}
.names-count span { color: var(--gold); }

.names-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.5px;
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.1);
}

.page-names .name-card {
  background: var(--green-dark);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  cursor: default;
}

.page-names .name-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: linear-gradient(180deg, var(--gold), transparent);
  transition: height 0.4s ease;
}
/* Prophet page: accent bar sits on the right */
.page-muhammad .name-card::before { left: auto; right: 0; }

.page-names .name-card:hover { background: rgba(30,92,62,0.55); }
.page-names .name-card:hover::before { height: 100%; }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.card-number {
  font-family: var(--font-display);
  font-size: 0.68rem;
  color: var(--gold);
  opacity: 0.65;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.card-arabic {
  font-family: var(--font-arabic);
  font-size: 1.9rem;
  color: var(--gold-light);
  line-height: 1.3;
  text-align: right;
  direction: rtl;
}

.card-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.2), transparent);
  margin-bottom: 1.2rem;
}

.card-english {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.card-meaning {
  font-size: 1rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.card-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; }

.no-results {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.1rem;
  grid-column: 1 / -1;
  background: var(--green-dark);
}

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


/* ── 7. LEGAL PAGES (Privacy + Terms) ─────────────────────────────────── */

/* Element defaults — :where() keeps specificity at element level so class
   rules such as .footer-copy and .nav-links a still take precedence. */
:where(.page-legal) h2 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500; color: var(--cream);
  letter-spacing: 0.06em; margin-bottom: 1.4rem;
}

:where(.page-legal) p {
  font-size: 1.05rem; color: var(--text-muted);
  margin-bottom: 1.2rem; line-height: 1.85;
}

:where(.page-legal) a { color: var(--gold); text-decoration: none; }

/* Page header */
.page-legal .page-header {
  position: relative; z-index: 1;
  padding: 140px 6vw 60px;
  text-align: center;
}

.page-legal .page-label {
  font-family: var(--font-display);
  font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem;
}

.page-legal .page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600; color: var(--cream);
  letter-spacing: 0.04em; margin-bottom: 1rem;
}

.page-meta {
  font-size: 0.9rem; color: var(--text-muted);
  font-style: italic; letter-spacing: 0.04em;
}

/* Content wrapper */
.content-wrap {
  position: relative; z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 6vw 8rem;
}

/* Table of contents */
.toc {
  background: rgba(22,61,43,0.5);
  border: 1px solid rgba(201,168,76,0.15);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  padding: 2rem 2.5rem;
  margin-bottom: 4rem;
}

.toc-title {
  font-family: var(--font-display);
  font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.2rem;
}

.toc ol { padding-left: 1.2rem; }
.toc li { margin-bottom: 0.5rem; }
.toc a {
  color: var(--text-muted); text-decoration: none;
  font-size: 1rem; transition: color 0.3s;
}
.toc a:hover { color: var(--gold-light); }

/* Sections */
.policy-section {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.policy-section:last-child { border-bottom: none; }

.section-num {
  font-family: var(--font-display);
  font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  opacity: 0.7; margin-bottom: 0.5rem;
}

/* Highlight box */
.highlight-box {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 2px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}
.highlight-box p { margin-bottom: 0; }

/* Contact card */
.contact-card {
  background: var(--green-dark);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 2px;
  padding: 2rem 2.5rem;
  margin-top: 1.5rem;
}
.contact-card p { margin-bottom: 0.4rem; }

/* Info boxes (Privacy: AdMob / AdSense) */
.info-box {
  background: rgba(22,61,43,0.5);
  border: 1px solid rgba(201,168,76,0.15);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}
.info-box ul { margin-bottom: 0; }

.page-legal .info-box-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

/* Paragraph spacing helpers (beat the generic .page-legal p margin) */
.page-legal .mb-0  { margin-bottom: 0; }
.page-legal .mb-sm { margin-bottom: 0.6rem; }

.page-legal .note-small {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Data-safety table (Privacy) */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }

.data-table thead tr {
  background: rgba(201,168,76,0.12);
  border-bottom: 2px solid rgba(201,168,76,0.3);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 500;
}
.data-table th.cell-center { text-align: center; }

.data-table td { padding: 12px 16px; }
.data-table td.cell-label  { color: var(--text-light); }
.data-table td.cell-center { text-align: center; }
.data-table td.cell-note   { color: var(--text-muted); }

.data-table tr.row-line { border-bottom: 1px solid rgba(201,168,76,0.08); }
.data-table tr.row-alt  { background: rgba(22,61,43,0.3); }

.badge {
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 0.82rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}
.badge-yes { background: rgba(42,122,83,0.25); color: #7ecfa0; }
.badge-no  { background: rgba(120,60,30,0.3);  color: #e0a080; }


/* ── 8. ANIMATIONS ────────────────────────────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRtl {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes glowPulse {
  0%   { transform: translate(-50%, -50%) scale(0.85); animation-timing-function: ease-out; }
  25%  { transform: translate(-50%, -50%) scale(1);    animation-timing-function: ease-in-out; }
  75%  { transform: translate(-50%, -50%) scale(0.7);  animation-timing-function: ease-in; }
  100% { transform: translate(-50%, -50%) scale(0.85); }
}

/* Respect the visitor's "reduce motion" setting */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ── 8b. LANGUAGE SWITCHER ────────────────────────────────────────────── */
.nav-lang { position: relative; }
.nav-lang summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}
.nav-lang summary::-webkit-details-marker { display: none; }
.nav-lang summary:hover,
.nav-lang details[open] > summary { color: var(--gold-light); }
.nav-lang .globe { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; flex-shrink: 0; }

.lang-menu {
  position: absolute;
  top: calc(100% + 18px);
  inset-inline-end: 0;
  min-width: 170px;
  list-style: none;
  background: rgba(13,43,30,0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  padding: 8px 0;
  z-index: 101;
}
.nav-lang .lang-menu a {
  display: block;
  padding: 8px 18px;
  font-size: 1rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.nav-lang .lang-menu a:hover,
.nav-lang .lang-menu a[aria-current="true"] { color: var(--gold-light); background: rgba(201,168,76,0.08); }

/* Language links in the footer (also helps crawlers find every language version) */
.footer-langs {
  flex-basis: 100%;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.6rem 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(201,168,76,0.08);
}
.footer-langs a { font-size: 0.85rem; color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-langs a:hover,
.footer-langs a[aria-current="true"] { color: var(--gold); }


/* ── 8c. SCRIPT-SPECIFIC TYPOGRAPHY ───────────────────────────────────── */
/* Arabic-script and Indic text must not be letter-spaced (it breaks the joins)
   and looks wrong in synthetic italics. The Latin brand name keeps its spacing. */
html:is(:lang(ur), :lang(ar), :lang(hi), :lang(bn)) * { letter-spacing: 0; font-style: normal; }
html:is(:lang(ur), :lang(ar), :lang(hi), :lang(bn)) :is(.nav-logo, .footer-logo, .footer-logo a) { letter-spacing: 0.12em; }

/* Taller line boxes for scripts with tall ascenders/descenders */
html:lang(ur) body { line-height: 1.9; }
html:is(:lang(ar), :lang(hi), :lang(bn)) body { line-height: 1.7; }
html:lang(ur) :is(h1, h2, h3, .section-title, .download-title, .page-title) { line-height: 1.8; }
html:lang(ur) :is(nav, footer) { line-height: 1.5; }


/* ── 8d. RIGHT-TO-LEFT (Urdu, Arabic) ─────────────────────────────────── */
/* Flex/grid rows and text alignment mirror automatically from dir="rtl";
   only rules with hard-coded left/right need an explicit mirror. */
[dir="rtl"] .skip-link { left: auto; right: -9999px; }
[dir="rtl"] .skip-link:focus { left: auto; right: 12px; }
[dir="rtl"] .feature-card::before { left: auto; right: 0; }
[dir="rtl"] .page-names .name-card::before { left: auto; right: 0; }
[dir="rtl"] .page-muhammad .name-card::before { left: 0; right: auto; }
[dir="rtl"] .stat-item { border-right: none; border-left: 1px solid rgba(201,168,76,0.1); }
[dir="rtl"] .stat-item:last-child { border-left: none; }
[dir="rtl"] .name-arabic,
[dir="rtl"] .card-arabic { text-align: left; }
[dir="rtl"] .page-home .name-card { animation-name: slideInRtl; }
[dir="rtl"] .page-home .name-card:hover { transform: translateX(-6px); }
[dir="rtl"] .search-input { padding: 16px 20px 16px 50px; }
[dir="rtl"] .search-icon { right: auto; left: 18px; }


/* ── 9. RESPONSIVE (keep last so these override the rules above) ───────── */

/* Tablet & below: collapse header into hamburger menu */
@media (max-width: 900px) {
  .nav-links,
  .nav-cta,
  .nav-back { display: none; }
  .hamburger { display: flex; }

  /* Menu open state — toggled by toggleMenu() in each page */
  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(13,43,30,0.97);
    padding: 2rem;
    gap: 1.5rem;
    z-index: 99;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .nav-cta.nav-open,
  .nav-back.nav-open {
    display: block;
    text-align: center;
    margin: 0 2rem;
  }
  .lang-menu {
    position: static;
    min-width: 0;
    background: none;
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 0.8rem 0 0;
  }
  .nav-lang .lang-menu a { padding: 6px 0; }

  /* Home */
  .names-inner,
  .why-inner { grid-template-columns: 1fr; gap: 3rem; }
  .stat-item { min-width: 120px; padding: 2rem 1rem; }
}

/* Phones */
@media (max-width: 600px) {
  footer { flex-direction: column; text-align: center; }
  .page-legal .footer-links { justify-content: center; }

  /* Home */
  .features-grid { grid-template-columns: 1fr; gap: 1px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .download-btns { flex-direction: column; align-items: center; }
}
