/* Inner pages: About, Hajj, Guides, Contact, guide articles */
html { scroll-behavior: smooth; }
.nav ul a.cur { color: var(--accent-text); }

/* Photo hero (Apple style: image card inside white page) */
.ph-hero { position: relative; padding: 48px 0 30px; background: radial-gradient(60% 50% at 70% 10%, rgba(201,179,59,.14), transparent 70%), var(--callig) 0 0 / 480px, #fff; overflow: hidden; }
.ph-hero-copy { text-align: center; max-width: 820px; margin: 0 auto 36px; padding: 0 24px; will-change: transform, opacity; }
.ph-hero-copy .h1 { font-size: clamp(48px, 6.6vw, 92px); margin: 18px 0 10px; }
.ph-hero-copy .ar { font-size: 32px; color: var(--accent-text); margin: 4px 0 14px; direction: rtl; }
.ph-hero-copy .lead { margin: 0 auto; max-width: 640px; }
.ph-hero-frame { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.ph-hero-frame > div { border-radius: 34px; overflow: hidden; aspect-ratio: 21/9; box-shadow: var(--shadow-lg); }
.ph-hero-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { color: var(--accent-text); font-weight: 600; }

/* Word fill paragraph */
.fill { font-size: clamp(28px, 3.8vw, 48px); line-height: 1.15; font-weight: 700; letter-spacing: -.04em; max-width: 980px; margin: 0 auto; text-align: center; }
.fill .w { color: #d6d6db; transition: color .35s ease; }
.fill .w.on { color: var(--text); }
.fill .w.on.g { background: linear-gradient(100deg, #6b5a0c, #a48f1f 50%, #c9b33b); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Founders */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.person { background: #fff; border-radius: 30px; padding: 34px; box-shadow: var(--shadow); }
.person .av { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 700; color: #fff; background: linear-gradient(145deg, #e6d47a, var(--accent) 50%, #8a7414); box-shadow: 0 10px 24px rgba(160,140,30,.3); margin-bottom: 18px; }
.person small { color: var(--accent-text); font-weight: 600; }
.person h3 { font-size: 26px; letter-spacing: -.03em; margin: 4px 0 10px; }
.person p { color: var(--muted); font-size: 16px; }

/* How we work */
.ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.way { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow); }
.way img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.way:hover img { transform: scale(1.06); }
.way div { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; border-radius: 20px; background: rgba(255,255,255,.84); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); }
.way h4 { font-size: 18px; letter-spacing: -.02em; }
.way p { font-size: 14px; color: var(--muted); }

/* Legacy timeline (horizontal) */
.legs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; position: relative; }
.leg { background: #fff; border-radius: 22px; padding: 20px 16px; box-shadow: var(--shadow); text-align: center; transition: transform .4s; }
.leg:hover { transform: translateY(-4px); }
.leg b { display: block; font-size: 30px; letter-spacing: -.05em; background: linear-gradient(170deg, #e6d47a, #8a7414); -webkit-background-clip: text; background-clip: text; color: transparent; }
.leg small { display: block; color: var(--accent-text); font-weight: 600; font-size: 12px; margin-top: 4px; }
.leg span { font-size: 13px; color: var(--muted); }

/* Generic cards + forms */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border-radius: 26px; padding: 28px; box-shadow: var(--shadow); }
.card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 19px; background: linear-gradient(145deg, #e6d47a, var(--accent) 50%, #8a7414); margin-bottom: 14px; }
.card h4 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.form-card { max-width: 860px; margin: 0 auto; background: #fff; border-radius: 34px; padding: 30px; box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #3a3a3c; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 13px 16px; border-radius: 14px; border: 0; background: #f5f5f7; color: var(--text); outline: 2px solid transparent; transition: outline-color .25s, background .25s; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline-color: var(--accent); background: #fff; }
.form-card .btn { margin-top: 18px; width: 100%; justify-content: center; padding: 16px; font-size: 16px; }
.form-card .ok { margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: #fbf5dc; color: #4a3f0a; font-size: 14px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }

/* Contact tiles */
.cts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.ct { display: block; background: #fff; border-radius: 24px; padding: 24px; box-shadow: var(--shadow); transition: transform .4s, box-shadow .4s; }
.ct:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ct i { font-size: 22px; color: var(--accent-text); }
.ct small { display: block; margin-top: 14px; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ct b { display: block; font-size: 17px; letter-spacing: -.01em; margin-top: 2px; }

/* Guides index */
.gcards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gcard { display: grid; grid-template-columns: 200px 1fr; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s; }
.gcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.gcard img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.gcard div { padding: 26px; display: flex; flex-direction: column; }
.gcard small { color: var(--accent-text); font-weight: 600; }
.gcard h3 { font-size: 22px; letter-spacing: -.03em; margin: 4px 0 8px; }
.gcard p { color: var(--muted); font-size: 15px; flex: 1; }
.gcard span { margin-top: 14px; font-weight: 600; color: var(--accent-text); }

/* Guide article */
.read-bar { position: fixed; top: 64px; left: 0; right: 0; height: 3px; z-index: 18; }
.read-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #e6d47a, var(--accent)); }
.art { display: grid; grid-template-columns: 240px 1fr; gap: 48px; max-width: 1100px; margin: 0 auto; padding: 60px 24px 40px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14px; }
.toc b { display: block; margin-bottom: 10px; color: var(--accent-text); }
.toc a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--muted); transition: background .3s, color .3s; }
.toc a.on { background: #fbf5dc; color: #4a3f0a; font-weight: 600; }
.art-body { max-width: 700px; font-size: 18px; line-height: 1.7; color: #2c2c2e; }
.art-body h2 { font-size: 32px; letter-spacing: -.035em; line-height: 1.15; margin: 48px 0 14px; color: var(--text); scroll-margin-top: 90px; }
.art-body h2:first-child { margin-top: 0; }
.art-body h3 { font-size: 21px; letter-spacing: -.02em; margin: 26px 0 6px; color: var(--text); }
.art-body p { margin: 0 0 14px; }
.art-body ul { list-style: none; margin: 0 0 18px; display: grid; gap: 8px; }
.art-body li { position: relative; padding: 12px 16px 12px 46px; background: #f9f9fb; border-radius: 14px; font-size: 17px; }
.art-body li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 16px; top: 13px; color: var(--accent-text); }
.art-body .ar { font-family: "KFGQPC Uthmanic Hafs", "Noto Naskh Arabic", serif; font-size: 28px; line-height: 2; direction: rtl; text-align: center; padding: 18px; border-radius: 20px; background: #fbf5dc; color: #3a320a; }
.art-cta { margin-top: 40px; padding: 28px; border-radius: 26px; background: linear-gradient(135deg, #fffaf0, #f6ebc2); }
.art-cta h4 { font-size: 22px; letter-spacing: -.02em; }
.art-cta p { color: #5c5547; }
.art-cta .btn { margin-top: 12px; }
.more-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.more-g a { background: #fff; border-radius: 20px; padding: 20px; box-shadow: var(--shadow); font-weight: 600; transition: transform .4s; }
.more-g a:hover { transform: translateY(-4px); }
.more-g small { display: block; color: var(--accent-text); font-weight: 600; font-size: 12px; margin-bottom: 4px; }

@media (max-width: 900px) {
  .ph-hero { padding: 30px 0 16px; }
  .ph-hero-frame > div { aspect-ratio: 4/3; border-radius: 26px; }
  .people, .cards, .gcards, .form-grid { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr 1fr; }
  .legs { grid-template-columns: repeat(2, 1fr); }
  .cts { grid-template-columns: 1fr 1fr; }
  .gcard { grid-template-columns: 1fr; }
  .gcard img { min-height: 0; aspect-ratio: 16/9; }
  .art { grid-template-columns: 1fr; padding: 30px 20px; gap: 10px; }
  .toc { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .toc b { display: none; }
  .toc a { flex: 0 0 auto; background: #f5f5f7; }
  .art-body h2 { font-size: 26px; }
  .more-g { grid-template-columns: 1fr; }
  .person { padding: 26px; }
}
.tbl { overflow-x: auto; margin: 6px 0 22px; border-radius: 18px; box-shadow: var(--shadow); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 16px; background: #fff; }
.tbl th { text-align: left; background: #fbf5dc; color: #4a3f0a; padding: 12px 16px; font-size: 13px; }
.tbl td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl td span { color: var(--muted); font-size: 14px; }
.legal .art-body p, .legal .art-body li { font-size: 16px; }
.fill-in { background: #fff1a8; border-radius: 6px; padding: 1px 6px; font-weight: 600; color: #5c4f0f; white-space: nowrap; }
.legal-note { background: #fbf5dc; border-radius: 18px; padding: 16px 20px; font-size: 14px; color: #4a3f0a; margin-bottom: 26px; }
.updated { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.art > *, .art-body > * { min-width: 0; }
.ct b { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .cts { grid-template-columns: 1fr; }
  .fill-in { white-space: normal; }
  .tbl table { font-size: 14px; }
}
.answer { background: linear-gradient(135deg, #fffaf0, #f6ebc2); border-radius: 28px; padding: 30px 32px; box-shadow: var(--shadow); }
.answer p { font-size: 19px; line-height: 1.6; margin-top: 8px; color: #2c2c2e; }
.facts-list { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts-list div { background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); }
.facts-list dt { font-size: 12px; font-weight: 600; color: var(--accent-text); text-transform: uppercase; letter-spacing: .05em; }
.facts-list dd { margin: 2px 0 0; font-size: 16px; font-weight: 500; }
.urdu, .urdu .art-body { font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif; }
.urdu .art-body { font-size: 21px; line-height: 2.1; }
.urdu .art-body h2 { font-family: "Noto Naskh Arabic", serif; letter-spacing: 0; line-height: 1.6; }
.urdu .art-body li { padding: 12px 46px 12px 16px; font-size: 19px; }
.urdu .art-body li::before { left: auto; right: 16px; }
.urdu .toc a { font-family: "Noto Naskh Arabic", serif; }
@media (max-width: 900px) { .facts-list { grid-template-columns: 1fr; } .answer { padding: 22px; } .answer p { font-size: 17px; } }
.ur, .ph-hero-copy .ar.ur { font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif !important; line-height: 2; }
.card { overflow: hidden; }
.cimg { margin: -28px -28px 18px; height: 160px; overflow: hidden; }
.cimg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.card:hover .cimg img { transform: scale(1.06); }
.cimg + .ic { margin-top: -44px; position: relative; border: 3px solid #fff; }
