/* Shubban ul Muslimeen Convention — palette taken from the logo */
:root {
  --ink: #000000;
  --paper: #ffffff;
  --mist: #F1F1F2;
  --line: #DCDCDF;
  --slate: #5D5D61;
  --gold: #A7804A;
  --gold-deep: #7E5C2E;
  --gold-light: #E3BB7E;
  --red: #E1232B;
  --ok: #16794A;
  --gold-grad: linear-gradient(100deg, #7E5C2E 0%, #C99A5B 38%, #E8C48A 52%, #B48650 70%, #7E5C2E 100%);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --urdu: "Noto Nastaliq Urdu", serif;
  --wrap: 1180px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* diamond — the logo's own mark, used to start each section */
.dia { display: inline-block; width: 10px; height: 10px; background: var(--red); transform: rotate(45deg); flex-shrink: 0; }
.dia.grey { background: var(--slate); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.site-head .brand img { height: 46px; width: auto; }
.site-head nav { display: flex; gap: 28px; margin-left: auto; }
.site-head nav a { text-decoration: none; font-weight: 500; color: var(--slate); }
.site-head nav a:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: .02em; padding: 12px 26px; border-radius: var(--radius);
  background: var(--ink); color: var(--paper); transition: background .15s, transform .15s; }
.btn:hover { background: #262626; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn.small { font-size: 17px; padding: 9px 18px; }
.btn.gold { background: var(--gold-grad); color: var(--ink); }
.btn.gold:hover { filter: brightness(1.05); }
.btn.outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--paper); }
.btn.block { width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; border-bottom: 1px solid var(--line); }
.hero::after { /* faint diamond lattice, echoing the logo */
  content: ""; position: absolute; inset: 0 0 0 52%; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Crect x='14' y='14' width='16' height='16' fill='%23E8E8EA' transform='rotate(45 22 22)'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.hero-org { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: .32em; color: var(--slate); margin: 0 0 6px; text-transform: uppercase; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 9vw, 116px); line-height: .9; margin: 0; letter-spacing: -.01em; }
.hero-tag { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); font-weight: 500; margin: 22px 0 0; }
.hero-meta { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 30px 0 34px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.hero-meta div { padding: 14px 28px 14px 0; margin-right: 28px; }
.hero-meta div + div { border-left: 1px solid var(--line); padding-left: 28px; }
.hero-meta dt { font-size: 14px; color: var(--slate); }
.hero-meta dd { margin: 2px 0 0; font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.1; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-actions .btn { font-size: 22px; padding: 15px 34px; }
.countdown { color: var(--slate); font-size: 16px; }
.countdown b { color: var(--ink); font-family: var(--display); font-size: 24px; font-weight: 600; }

.hero-urdu { position: relative; text-align: center; }
.hero-urdu .urdu { font-family: var(--urdu); font-weight: 700; direction: rtl; font-size: clamp(64px, 9.5vw, 132px); line-height: 2.1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; padding: 0 .1em; }
.hero-urdu .gloss { display: block; margin-top: -10px; color: var(--slate); font-size: 15px; }
.hero-urdu .dots { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }

/* ---------- section scaffolding ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--mist); }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.sec-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 5vw, 56px); line-height: 1; margin: 0; }
.sec-head .dia { transform: rotate(45deg) translateY(-6px); }
.sec-intro { max-width: 62ch; color: var(--slate); margin: 0 0 44px; }

/* objectives */
.obj-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.obj-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.obj-list li .dia { margin-top: 9px; }
.obj-list h3 { font-family: var(--display); font-size: 26px; font-weight: 600; margin: 0 0 4px; line-height: 1.15; }
.obj-list p { margin: 0; color: var(--slate); }
.placeholder { background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(225,35,43,.06) 6px 12px); outline: 1px dashed rgba(225,35,43,.35); outline-offset: 4px; }

/* highlights / reels */
.reels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.reel { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: #1c1c1c; border: 0; padding: 0; cursor: pointer; }
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.reel:hover img { transform: scale(1.04); }
.reel .play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  background: rgba(0,0,0,.6); display: grid; place-items: center; transition: background .2s; }
.reel:hover .play { background: var(--red); }
.reel .play svg { width: 22px; height: 22px; fill: #fff; margin-left: 4px; }
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reels-note { margin-top: 18px; color: var(--slate); font-size: 15px; }

/* ---------- registration center ---------- */
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }
.choice { text-align: left; border: 2px solid var(--line); background: var(--paper); border-radius: 10px; padding: 24px 26px; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; align-items: center; transition: border-color .15s, background .15s, color .15s; }
.choice:hover { border-color: var(--ink); }
.choice h3 { font-family: var(--display); font-size: 30px; font-weight: 700; margin: 0; line-height: 1.1; }
.choice p { margin: 0; color: var(--slate); grid-column: 1; }
.choice .tick { grid-row: 1 / span 2; grid-column: 2; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.choice[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice[aria-selected="true"] p { color: #bdbdc2; }
.choice[aria-selected="true"] .tick { border-color: var(--gold-light); background: var(--gold-light); }
.choice[aria-selected="true"] .tick::after { content: ""; width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 40px; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.panel h3 { font-family: var(--display); font-size: 34px; font-weight: 700; margin: 0 0 4px; line-height: 1.1; }
.panel .lead { color: var(--slate); margin: 0 0 26px; }

/* forms */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.field { margin-bottom: 20px; }
.field label, .field .label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 7px; }
.field .hint { font-weight: 400; color: var(--slate); }
.input { width: 100%; height: 52px; padding: 0 14px; border: 1.5px solid #C9C9CE; border-radius: var(--radius); background: var(--paper); font-size: 17px; transition: border-color .15s, box-shadow .15s; }
.input:hover { border-color: #9a9aa0; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(167,128,74,.35); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field.has-error .input, .field.has-error .seg { border-color: var(--red); }
.field.is-valid .input { border-color: var(--ok); }
.err-msg { display: none; color: var(--red); font-size: 14px; margin-top: 6px; }
.field.has-error .err-msg { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid #C9C9CE; border-radius: var(--radius); overflow: hidden; }
.seg label { margin: 0; position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 13px 10px; font-weight: 600; transition: background .15s, color .15s; }
.seg label + label span { border-left: 1.5px solid #C9C9CE; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { box-shadow: inset 0 0 0 3px var(--gold); }

/* intl-tel-input fit */
.iti { width: 100%; display: block; }
.iti__country-list { z-index: 20; font-size: 15px; }
.iti--separate-dial-code .iti__selected-flag { background: var(--mist); border-right: 1px solid #C9C9CE; }

/* notices */
.notice { display: none; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 22px; font-size: 15.5px; line-height: 1.45; }
.notice.show { display: flex; }
.notice .dia { margin-top: 6px; }
.notice.info { background: #F6EFE3; border-left: 4px solid var(--gold); }
.notice.info .dia { background: var(--gold); }
.notice.error { background: #FDECEC; border-left: 4px solid var(--red); }
.notice.success { background: #E8F4EE; border-left: 4px solid var(--ok); }
.notice.success .dia { background: var(--ok); }

/* ---------- entry pass ---------- */
.pass-col { position: sticky; top: 92px; }
.pass-empty { border: 2px dashed var(--line); border-radius: 14px; aspect-ratio: 340 / 560; display: grid; place-items: center; text-align: center; color: var(--slate); padding: 30px; }
.pass-empty .dia { display: block; margin: 0 auto 18px; width: 18px; height: 18px; }
.pass-stage { display: flex; justify-content: center; }
.pass-export { padding: 14px; background: transparent; }
.pass { width: 340px; background: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06); font-family: var(--body); position: relative; }
.pass-top { background: var(--ink); padding: 22px 22px 18px; text-align: center; color: var(--paper); position: relative; }
.pass-top img { height: 74px; width: auto; margin: 0 auto 10px; }
.pass-title { font-family: var(--display); font-size: 25px; font-weight: 700; line-height: 1.05; letter-spacing: .01em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pass-sub { font-size: 12.5px; color: #c9c9ce; margin-top: 6px; }
.pass-ribbon { background: var(--red); color: #fff; text-align: center; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.3; letter-spacing: .16em; padding: 7px 0 8px; }
.pass-body { padding: 20px 24px 6px; }
.pass-name { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.05; margin: 2px 0 14px; word-break: break-word; }
.pass-rows { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pass-rows div { padding: 10px 0; }
.pass-rows div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.pass-k { font-size: 12px; color: var(--slate); display: block; }
.pass-v { font-weight: 600; font-size: 16px; }
.pass-v.member { color: var(--gold-deep); }
.pass-qr { padding: 18px 0 8px; display: flex; flex-direction: column; align-items: center; }
.pass-qr .qr { width: 156px; height: 156px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.pass-qr .qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.pass-serial { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: .08em; margin-top: 10px; }
.pass-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 24px 16px; font-size: 12px; color: var(--slate); }
.pass-foot .dias { display: flex; gap: 6px; }
.pass-foot .dias i { width: 7px; height: 7px; background: var(--slate); transform: rotate(45deg); display: block; }
.pass-foot .dias i:first-child { background: var(--red); }
.pass-actions { margin-top: 18px; display: grid; gap: 10px; }
.pass-warn { text-align: center; font-size: 14px; color: var(--slate); }
.pass-reveal { animation: passIn .55s cubic-bezier(.16,1,.3,1); }
@keyframes passIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* stall request receipt */
.receipt { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.receipt-top { background: var(--ink); color: #fff; padding: 18px 22px; }
.receipt-top .k { font-size: 13px; color: #bdbdc2; }
.receipt-top .ref { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: .06em; }
.receipt dl { margin: 0; padding: 8px 22px 18px; }
.receipt dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.receipt dt { color: var(--slate); }
.receipt dd { margin: 0; font-weight: 600; text-align: right; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 14px; }
.status-pill.pending { background: #F6EFE3; color: var(--gold-deep); }
.status-pill.approved { background: #E3F3EA; color: var(--ok); }
.status-pill.rejected { background: #FDECEC; color: var(--red); }

/* ---------- activities ---------- */
.acts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.act { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); }
.act:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.act svg { width: 34px; height: 34px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.act h3 { font-family: var(--display); font-size: 28px; font-weight: 700; margin: 0 0 4px; line-height: 1.1; }
.act p { margin: 0; color: var(--slate); }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #d0d0d4; padding: 64px 0 28px; }
.site-foot .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-foot img { height: 84px; width: auto; margin-bottom: 14px; }
.site-foot h4 { font-family: var(--display); color: #fff; font-size: 22px; font-weight: 600; margin: 0 0 10px; }
.site-foot p { margin: 0 0 6px; }
.site-foot .base { border-top: 1px solid #2a2a2a; margin-top: 44px; padding-top: 20px; font-size: 14px; color: #8d8d93; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-foot a { color: var(--gold-light); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .reels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel-grid { grid-template-columns: 1fr; }
  .pass-col { position: static; }
  .pass-empty { aspect-ratio: auto; min-height: 220px; }
}
@media (max-width: 860px) {
  .site-head nav { display: none; }
  .site-head .wrap { justify-content: space-between; }
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero-urdu { order: -1; text-align: left; }
  .hero-urdu .urdu { line-height: 1.9; }
  .hero-urdu .gloss, .hero-urdu .dots { display: none; }
  .hero::after { inset: 0 0 50% 30%; }
  .obj-list { grid-template-columns: 1fr; }
  .acts { grid-template-columns: 1fr 1fr; }
  .act, .act:not(:nth-child(3n+1)) { padding: 26px 20px 28px 0; border-left: 0; }
  .act:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .site-foot .cols { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero-org { font-size: 16px; letter-spacing: .22em; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta div, .hero-meta div + div { border-left: 0; padding: 12px 0; margin: 0; }
  .hero-meta div + div { border-top: 1px solid var(--line); }
  .hero-actions .btn { width: 100%; }
  .choose { grid-template-columns: 1fr; gap: 10px; }
  .choice { padding: 18px 20px; }
  .choice h3 { font-size: 25px; }
  .panel { padding: 22px 16px; border-radius: 10px; }
  .grid-2 { grid-template-columns: 1fr; }
  .reels { grid-template-columns: repeat(6, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: -16px; }
  .reel { scroll-snap-align: start; }
  .acts { grid-template-columns: 1fr; }
  .act, .act:nth-child(2n), .act:not(:nth-child(3n+1)) { padding: 24px 0; border-left: 0; }
  .pass { width: 312px; }
  .pass-export { padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* html2canvas can't paint gradient text; use solid gold while exporting */
.exporting .pass-title { background: none; color: var(--gold-light); -webkit-text-fill-color: var(--gold-light); }

/* ---------- official pass artwork (canvas) ---------- */
.pass-canvas { display: block; width: 100%; max-width: 360px; height: auto; aspect-ratio: 861 / 1600; margin: 0 auto;
  border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06); background: var(--mist); }
.pass-col .pass-empty { aspect-ratio: 861 / 1600; max-width: 360px; margin: 0 auto; }
.pass-actions { max-width: 360px; margin-left: auto; margin-right: auto; }
.h1-gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 1080px) { .pass-col .pass-empty { aspect-ratio: auto; min-height: 200px; max-width: none; } }

/* ---------- hero: official banner artwork ---------- */
.hero-banner { background: #F6F5F1; border-bottom: 1px solid var(--line); }
.hero-banner picture { display: block; max-width: 1920px; margin: 0 auto; }
.banner-img { display: block; width: 100%; height: auto; }
.hero-cta { display: flex; justify-content: center; padding: 26px 16px 34px; }
.hero-cta .btn { font-size: 22px; padding: 15px 44px; }
@media (max-width: 640px) {
  .hero-cta { padding: 18px 16px 26px; }
  .hero-cta .btn { width: 100%; max-width: 360px; }
}

/* ---------- about + key objectives ---------- */
.about-lead { max-width: 68ch; font-size: 20px; line-height: 1.6; margin: 0 0 56px; color: var(--ink); }
.obj-title { font-family: var(--display); font-size: 30px; font-weight: 700; margin: 0 0 22px; text-align: center; }
.obj-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.obj-card { background: linear-gradient(180deg, #F7F2E8 0%, #FFFFFF 100%); border: 1px solid #E3D3B5;
  border-radius: 50% 50% 12px 12px / 84px 84px 12px 12px; padding: 50px 18px 26px; text-align: center; }
.obj-card svg { width: 38px; height: 38px; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 14px; display: block; }
.obj-card h4 { font-family: var(--display); font-size: 23px; font-weight: 700; line-height: 1.1; margin: 0 0 8px; text-wrap: balance; }
.obj-card p { margin: 0; color: var(--slate); font-size: 15.5px; line-height: 1.45; }
@media (max-width: 1080px) { .obj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .obj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .about-lead { font-size: 18px; margin-bottom: 40px; } }
@media (max-width: 480px)  { .obj-grid { grid-template-columns: 1fr; } .obj-card { padding: 46px 18px 24px; border-radius: 50% 50% 12px 12px / 64px 64px 12px 12px; } }
