/* Al Markaz-ul Sabriya International — website styles.
   Colours and type follow the mobile app. Fonts are self-hosted so no
   visitor data is sent to third parties. */

@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/IBMPlexSans-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/IBMPlexSans-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/IBMPlexSans-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Noto Naskh Arabic'; src: url('../fonts/NotoNaskhArabic-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Noto Naskh Arabic'; src: url('../fonts/NotoNaskhArabic-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
	--navy: #00327d;
	--teal: #00658d;
	--sky: #73cafe;
	--ink: #0b1c30;
	--muted: #434653;
	--line: #d6deef;
	--surface: #f8f9ff;
	--card: #ffffff;
	--soft: #e5eeff;
	--gold: #c99a2e;
	--radius: 18px;
	--shadow: 0 10px 30px rgba(0, 50, 125, 0.08);
	--font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-urdu: 'Noto Naskh Arabic', 'IBM Plex Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; margin: 0; }
body[dir='rtl'] { font-family: var(--font-urdu); line-height: 2; }
img { display: block; height: auto; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 0.5em; }
body[dir='rtl'] h1, body[dir='rtl'] h2, body[dir='rtl'] h3 { line-height: 1.7; }
p { margin: 0 0 1em; }
.container { margin: 0 auto; max-width: 1080px; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip-link { background: var(--navy); color: #fff; left: 12px; padding: 8px 14px; position: absolute; top: -48px; z-index: 10; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { background: rgba(248, 249, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .container { align-items: center; display: flex; gap: 16px; min-height: 68px; }
.brand { align-items: center; color: var(--ink); display: flex; gap: 10px; text-decoration: none; }
.brand img { border-radius: 50%; height: 40px; width: 40px; }
.brand strong { display: block; font-size: 17px; line-height: 1.2; }
.brand small { color: var(--teal); display: block; font-size: 10px; font-weight: 700; letter-spacing: 3px; }
body[dir='rtl'] .brand small { letter-spacing: 0; }
.site-nav { align-items: center; display: flex; flex-wrap: wrap; gap: 4px 18px; margin-inline-start: auto; }
.site-nav a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--navy); }
.lang-switch { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

/* Hero */
.hero { background: radial-gradient(circle at 75% 20%, rgba(115, 202, 254, 0.35), transparent 45%), linear-gradient(160deg, var(--navy), var(--teal)); color: #fff; overflow: hidden; }
.hero .container { align-items: center; display: grid; gap: 40px; grid-template-columns: 1.2fr 0.8fr; padding-bottom: 72px; padding-top: 64px; }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 50px); }
.hero .urdu-name { color: #dce9ff; font-family: var(--font-urdu); font-size: clamp(22px, 3vw, 30px); line-height: 1.9; margin-bottom: 12px; }
.hero p.lead { color: #dce9ff; font-size: 18px; max-width: 560px; }
.hero-emblem { filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35)); justify-self: center; max-width: 300px; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { align-items: center; border-radius: 14px; display: inline-flex; font-weight: 600; gap: 10px; min-height: 52px; padding: 0 22px; text-decoration: none; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--soft); color: var(--navy); }
.btn-outline { border: 1.5px solid rgba(255, 255, 255, 0.6); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn small { display: block; font-size: 11px; font-weight: 400; line-height: 1; opacity: 0.8; }
.btn span { line-height: 1.2; }
.store-icon { flex: 0 0 auto; height: 26px; width: 26px; }

/* Sections */
section { padding: 64px 0; }
.section-head { margin: 0 auto 36px; max-width: 640px; text-align: center; }
.section-head p { color: var(--muted); }
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.feature .icon { align-items: center; background: var(--soft); border-radius: 14px; color: var(--navy); display: flex; font-size: 24px; height: 48px; justify-content: center; margin-bottom: 14px; width: 48px; }
.feature h3 { font-size: 17px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }
.band { background: var(--card); border-block: 1px solid var(--line); }
.points { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; margin: 0; padding: 0; }
.points li { align-items: flex-start; display: flex; gap: 12px; }
.points li::before { color: var(--teal); content: '✓'; font-weight: 700; }
.center-links { justify-content: center; }
.contact-card { background: linear-gradient(160deg, var(--navy), var(--teal)); border-radius: 24px; color: #fff; padding: 40px 28px; text-align: center; }
.contact-card h2 { color: #fff; }
.contact-card a { color: #fff; font-weight: 700; }

/* Documents (privacy policy, account deletion) */
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); }
.doc h2 { border-top: 1px solid var(--line); font-size: 21px; margin-top: 36px; padding-top: 28px; }
.doc h3 { font-size: 17px; margin-top: 20px; }
.doc ul, .doc ol { padding-inline-start: 22px; }
.doc li { margin-bottom: 6px; }
.meta { color: var(--muted); font-size: 14px; }
.note { background: var(--soft); border-inline-start: 4px solid var(--navy); border-radius: 12px; margin: 20px 0; padding: 16px 18px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; font-size: 14px; min-width: 560px; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; }
th { background: var(--soft); color: var(--navy); }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; padding: 14px 16px 14px 56px; position: relative; }
body[dir='rtl'] .steps li { padding: 14px 56px 14px 16px; }
.steps li::before { align-items: center; background: var(--navy); border-radius: 50%; color: #fff; content: counter(step); counter-increment: step; display: flex; font-weight: 700; height: 28px; inset-inline-start: 16px; justify-content: center; position: absolute; top: 14px; width: 28px; }

/* Footer */
.site-footer { background: #081a3a; color: #b9c6e4; font-size: 14px; padding: 40px 0; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }

@media (max-width: 760px) {
	.hero .container { grid-template-columns: 1fr; padding-top: 40px; text-align: center; }
	.hero p.lead { margin-inline: auto; }
	.hero .actions { justify-content: center; }
	.hero-emblem { grid-row: 1; max-width: 200px; }
	.site-nav { gap: 4px 12px; }
	.site-nav .hide-sm { display: none; }
	section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
