/* Ijtamai Taraqiati Council — site styles
   Identity: Sadiqabad's grain market and cotton belt. Oxblood, wheat gold,
   cotton white, field olive. Urdu name in Nastaliq, wide Archivo headings,
   charpai rope-weave pattern. */
:root {
  --ox: #5E1A24;
  --ox-deep: #3F1018;
  --ox-soft: #F4E9E7;
  --wheat: #E8C36A;
  --wheat-dark: #C99A3E;
  --cotton: #FAFAF7;
  --olive: #59672E;
  --olive-soft: #EEF0E2;
  --char: #2A2324;
  --mute: #5F5556;
  --hair: rgba(94, 26, 36, .16);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cotton); color: var(--char); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 700; font-stretch: 118%; font-variation-settings: "wdth" 118; line-height: 1.05; letter-spacing: -0.01em; }
p, ul, dl, dd { margin: 0; }
.ur { font-family: var(--urdu); direction: rtl; font-weight: 400; line-height: 2.1; }
:focus-visible { outline: 3px solid var(--wheat-dark); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--wheat); color: var(--ox-deep); padding: .7rem 1.2rem; font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }

.inner { max-width: 74rem; margin: 0 auto; padding: 0 1.25rem; }
.zone { padding: 4.5rem 0; }
@media (min-width: 820px) { .zone { padding: 6.5rem 0; } }
.z-ox { background: var(--ox); color: var(--cotton); }
.z-olive { background: var(--olive-soft); }
.z-rose { background: var(--ox-soft); }
.z-wheat { background: var(--wheat); color: var(--ox-deep); }
.mute { color: var(--mute); }
.z-ox .mute { color: #EADBD9; }
.lim { max-width: 64ch; }
.hd { font-size: clamp(2rem, 4.4vw, 3.2rem); color: var(--ox); }
.z-ox .hd { color: var(--cotton); }
.z-wheat .hd { color: var(--ox-deep); }
.hd-s { font-size: clamp(1.45rem, 2.6vw, 1.9rem); color: var(--ox); }
.t1 { margin-top: .75rem; } .t2 { margin-top: 1.4rem; } .t3 { margin-top: 2.25rem; } .t4 { margin-top: 3.25rem; }

.weave { height: 22px; background: url("../img/weave.svg") repeat-x left center / 22px 22px; }

/* Buttons: flat with a thick base line, like a ledger stamp */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 1.5rem; border: 0; border-bottom: 4px solid rgba(0,0,0,.25); border-radius: 4px; font-family: var(--sans); font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.b-wheat { background: var(--wheat); color: var(--ox-deep); }
.b-wheat:hover { background: var(--cotton); }
.b-ox { background: var(--ox); color: var(--cotton); }
.b-ox:hover { background: var(--olive); }
.b-olive { background: var(--olive); color: var(--cotton); }
.b-olive:hover { background: var(--ox-deep); }
.b-ghost { background: transparent; color: var(--cotton); border: 2px solid rgba(250,250,247,.5); }
.b-ghost:hover { border-color: var(--wheat); color: var(--wheat); }
.b-line { background: transparent; color: var(--ox); border: 2px solid var(--ox); }
.b-line:hover { background: var(--ox); color: var(--cotton); }
.bset { display: flex; flex-wrap: wrap; gap: .75rem; }
.ln { font-weight: 700; color: var(--ox); text-decoration: underline; text-decoration-color: var(--wheat-dark); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.ln:hover { color: var(--olive); }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: var(--cotton); border-bottom: 1px solid var(--hair); padding-top: env(safe-area-inset-top, 0px); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; height: 76px; }
.id { display: flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 0; }
.id img { width: 44px; height: 44px; flex-shrink: 0; }
.id .names { display: flex; flex-direction: column; line-height: 1.1; }
.id .en { font-weight: 700; font-stretch: 112%; font-variation-settings: "wdth" 112; font-size: 1.02rem; color: var(--ox); }
.id .urn { font-family: var(--urdu); font-size: .8rem; line-height: 1.9; color: var(--mute); direction: rtl; text-align: left; }
.nv { display: none; }
.nv ul { list-style: none; padding: 0; display: flex; gap: .25rem; }
.nv a { display: block; padding: .5rem .85rem; font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: 4px; }
.nv a:hover { background: var(--ox-soft); }
.nv a[aria-current="page"] { background: var(--ox); color: var(--cotton); }
.top-cta { display: none; }
.mbtn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; height: 44px; padding: 0 .9rem; border: 2px solid var(--ox); border-radius: 4px; background: none; color: var(--ox); font: inherit; font-weight: 700; cursor: pointer; }
.mpanel { background: var(--ox); color: var(--cotton); padding: .5rem 1.25rem 1.75rem; }
.mpanel[hidden] { display: none; }
.mpanel ul { list-style: none; padding: 0; }
.mpanel a.m-link { display: block; padding: .85rem 0; font-weight: 700; font-stretch: 118%; font-variation-settings: "wdth" 118; font-size: 1.45rem; text-decoration: none; border-bottom: 1px solid rgba(250,250,247,.18); }
.mpanel a.m-link[aria-current="page"] { color: var(--wheat); }
.mpanel .btn { width: 100%; margin-top: 1.25rem; }
@media (min-width: 940px) { .nv { display: block; } .mbtn, .mpanel { display: none !important; } }
@media (min-width: 1160px) { .top-cta { display: inline-flex; } }

/* Hero */
.hero { background: var(--ox); color: var(--cotton); overflow: hidden; }
.hero-grid { display: grid; gap: 1.5rem; padding-top: 3.5rem; padding-bottom: 4rem; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; padding-top: 5rem; padding-bottom: 5.5rem; } }
.hero .urdu-name { order: -1; font-family: var(--urdu); direction: rtl; text-align: right; color: var(--wheat); font-size: clamp(2.6rem, 7.5vw, 5.4rem); line-height: 1.9; animation: rise 1.2s ease-out both; }
@media (min-width: 900px) { .hero .urdu-name { order: 2; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
.hero .what { margin-top: 1.5rem; font-size: 1.12rem; color: #EADBD9; max-width: 44ch; }
.hero .bset { margin-top: 2.25rem; }
.hero .meaning { margin-top: 1.25rem; font-size: .95rem; color: var(--wheat); }

/* Name explainer */
.name-row { display: grid; gap: 2rem; }
@media (min-width: 820px) { .name-row { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.word { padding: 1.5rem 0; border-top: 3px solid var(--ox); }
@media (min-width: 820px) { .word { padding: 1.75rem 2rem 0 0; } .word + .word { padding-left: 2rem; border-left: 1px solid var(--hair); } }
.word .u { font-family: var(--urdu); font-size: 2.1rem; line-height: 2; color: var(--ox); direction: rtl; text-align: left; }
.word .r { font-weight: 700; font-size: 1.15rem; }
.word .m { color: var(--mute); margin-top: .2rem; }

/* Mission split */
.mvs { display: grid; gap: 0; }
@media (min-width: 820px) { .mvs { grid-template-columns: 1fr 1fr; } }
.mvs > div { padding: 2.25rem 0; }
@media (min-width: 820px) { .mvs > div { padding: 0 3rem 0 0; } .mvs > div + div { padding: 0 0 0 3rem; border-left: 2px solid rgba(63,16,24,.25); } }
.mvs > div + div { border-top: 2px solid rgba(63,16,24,.25); }
@media (min-width: 820px) { .mvs > div + div { border-top: 0; } }
.mvs h2 { font-size: 1.05rem; text-transform: none; }
.mvs p { margin-top: .9rem; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.4; font-weight: 500; }

/* Focus rows */
.rows { margin-top: 3rem; display: grid; gap: 1rem; }
.row-item { display: grid; grid-template-columns: 58px 1fr; gap: 1.25rem; padding: 1.5rem; background: var(--cotton); border-left: 6px solid var(--ox); text-decoration: none; transition: border-color .2s, background-color .2s; }
.row-item:nth-child(2) { border-left-color: var(--olive); }
.row-item:nth-child(3) { border-left-color: var(--wheat-dark); }
.row-item:nth-child(4) { border-left-color: var(--ox-deep); }
.row-item:hover { background: var(--white, #fff); }
@media (min-width: 820px) { .rows { grid-template-columns: 1fr 1fr; } }
.row-item .ic { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; background: var(--ox-soft); color: var(--ox); border-radius: 4px; }
.row-item h3 { font-size: 1.3rem; color: var(--ox); }
.row-item p { margin-top: .4rem; color: var(--mute); }

/* Join */
.join { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 820px) { .join { grid-template-columns: repeat(3, 1fr); } }
.join > div { padding: 2rem; background: var(--ox-deep); display: flex; flex-direction: column; border-top: 4px solid var(--wheat); }
.join h3 { font-size: 1.55rem; color: var(--wheat); }
.join p { margin-top: .75rem; color: #EADBD9; flex: 1; }
.join .btn { margin-top: 1.75rem; align-self: flex-start; }

/* FAQ */
.qwrap { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .qwrap { grid-template-columns: 1fr 1.8fr; gap: 4rem; } }
.qs details { border-bottom: 1px solid var(--hair); }
.qs details:first-child { border-top: 3px solid var(--ox); }
.qs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; font-weight: 700; font-size: 1.08rem; color: var(--ox); }
.qs summary::-webkit-details-marker { display: none; }
.qs .ar { flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--ox-soft); color: var(--ox); border-radius: 4px; transition: transform .2s, background-color .2s; }
.qs details[open] .ar { transform: rotate(90deg); background: var(--wheat); }
.qs details p { padding-bottom: 1.4rem; color: var(--mute); max-width: 62ch; }

/* Contact band */
.cband { display: grid; gap: 1.5rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 820px) { .cband { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.cband h3 { font-size: .95rem; font-stretch: 100%; font-variation-settings: "wdth" 100; }
.cband a, .cband p { display: block; margin-top: .35rem; font-weight: 700; font-size: 1.2rem; text-decoration: none; word-break: break-word; }
.cband a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Inner page head */
.ph { background: var(--ox); color: var(--cotton); }
.ph .inner { display: grid; gap: .5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 820px) { .ph .inner { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 3rem; padding-top: 4.5rem; padding-bottom: 4.5rem; } }
.ph h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.ph p { margin-top: 1.1rem; max-width: 52ch; font-size: 1.1rem; color: #EADBD9; }
.ph .ur { color: var(--wheat); font-size: clamp(2rem, 4.5vw, 3rem); text-align: right; }

/* Layout */
.two { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .two { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.tw { display: grid; gap: 2.5rem; }
@media (min-width: 880px) { .tw { grid-template-columns: 1fr 1.45fr; gap: 4rem; } }

/* Principles */
.prin { list-style: none; padding: 0; margin-top: 2.5rem; display: grid; gap: 1rem; }
@media (min-width: 760px) { .prin { grid-template-columns: 1fr 1fr; } }
.prin li { background: var(--cotton); padding: 1.75rem; border-top: 4px solid var(--olive); }
.prin h3 { font-size: 1.3rem; color: var(--ox); }
.prin p { margin-top: .5rem; color: var(--mute); }

/* Details table */
.ledger { width: 100%; border-collapse: collapse; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 1rem 0; border-bottom: 1px solid var(--hair); }
.ledger tr:first-child th, .ledger tr:first-child td { border-top: 3px solid var(--ox); }
.ledger th { width: 11rem; padding-right: 1.25rem; font-weight: 700; color: var(--ox); }
.ledger td { word-break: break-word; }

/* Focus detail */
.fd { display: grid; gap: 1.25rem; padding: 2.25rem 0; border-bottom: 1px solid var(--hair); scroll-margin-top: 6rem; }
.fd:first-of-type { border-top: 3px solid var(--ox); }
@media (min-width: 820px) { .fd { grid-template-columns: 70px 1fr 1.3fr; gap: 2.5rem; align-items: start; } }
.fd .ic { width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; background: var(--ox); color: var(--wheat); border-radius: 4px; }
.fd h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); color: var(--ox); }
.fd .who { margin-top: .5rem; font-weight: 700; color: var(--olive); }
.fd .body { color: var(--mute); }
.flag { margin-top: 3rem; padding: 2rem; background: var(--olive-soft); border-left: 6px solid var(--olive); }

/* Contact */
.clines > div { padding: 1.4rem 0; border-bottom: 1px solid var(--hair); }
.clines > div:first-child { padding-top: 0; }
.clines h2 { font-size: .95rem; font-stretch: 100%; font-variation-settings: "wdth" 100; color: var(--olive); }
.clines a, .clines address { display: block; margin-top: .3rem; font-weight: 700; font-size: 1.15rem; font-style: normal; text-decoration: none; color: var(--char); word-break: break-all; }
.clines address { word-break: normal; line-height: 1.5; }
.clines a:hover { color: var(--ox); text-decoration: underline; }
.fcard { background: #FFFFFF; border: 1px solid var(--hair); border-top: 6px solid var(--ox); padding: 1.5rem; }
@media (min-width: 640px) { .fcard { padding: 2.5rem; } }
.mapw { border: 1px solid var(--hair); border-top: 6px solid var(--olive); }
.mapw iframe { width: 100%; height: 380px; border: 0; }
@media (min-width: 820px) { .mapw iframe { height: 450px; } }
.warn { background: var(--ox-deep); padding: 2rem; border-top: 4px solid var(--wheat); }
.warn h3 { font-size: 1.45rem; color: var(--wheat); }
.warn ul { margin-top: 1rem; padding-left: 1.2rem; color: #EADBD9; }
.warn li + li { margin-top: .6rem; }

/* Forms */
.form { display: grid; gap: 1.15rem; }
.form .pr { display: grid; gap: 1.15rem; }
@media (min-width: 620px) { .form .pr { grid-template-columns: 1fr 1fr; } }
.form .fl { font-weight: 600; }
.form .o { font-weight: 400; color: var(--mute); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { display: block; width: 100%; margin-top: .45rem; padding: .8rem 1rem; font: inherit; font-size: 1rem; color: var(--char); background: var(--cotton); border: 0; border-bottom: 2px solid rgba(94,26,36,.35); border-radius: 4px 4px 0 0; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--ox); background: var(--ox-soft); }
.form [aria-invalid="true"] { border-bottom-color: #B3261E !important; background: #FCEEEC; }
.form .err { margin-top: .3rem; font-size: .9rem; font-weight: 600; color: #A42019; }
.form .ck { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; line-height: 1.5; }
.form .ck input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--ox); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.alert { padding: 1rem; font-size: .95rem; background: #FCEEEC; border-left: 5px solid #B3261E; }
.alert strong { display: block; color: #A42019; }
.success { padding: 2rem; background: var(--olive-soft); border-left: 6px solid var(--olive); }
.success h3 { font-size: 1.7rem; color: var(--ox); }
.success button { margin-top: 1.25rem; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--ox); text-decoration: underline; cursor: pointer; }

/* Legal */
.lg { max-width: 46rem; margin: 0 auto; padding: 4rem 1.25rem; }
@media (min-width: 820px) { .lg { padding: 5.5rem 1.25rem; } }
.lg h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--ox); }
.lg h2 { font-size: 1.35rem; color: var(--ox); margin-top: 2.5rem; }
.lg p, .lg ul { margin-top: .75rem; }
.lg ul { padding-left: 1.4rem; }
.lg li + li { margin-top: .45rem; }

/* Footer */
.bottom { background: var(--ox-deep); color: #E3D2D0; }
.b-grid { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 2.5rem; }
@media (min-width: 820px) { .b-grid { grid-template-columns: 1.6fr 1fr 1.4fr; } }
.bottom .id .en { color: var(--cotton); font-size: 1.15rem; }
.bottom .id .urn { color: var(--wheat); font-size: .95rem; }
.bottom h2 { font-size: .95rem; font-stretch: 100%; font-variation-settings: "wdth" 100; color: var(--wheat); }
.bottom ul { list-style: none; padding: 0; margin-top: .9rem; }
.bottom li + li { margin-top: .5rem; }
.bottom a { text-decoration: none; }
.bottom a:hover { color: var(--cotton); text-decoration: underline; }
.bottom address { font-style: normal; margin-top: .9rem; }
.bottom address p + p { margin-top: .5rem; }
.b-soc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.b-soc a { border: 1px solid rgba(232,195,106,.4); border-radius: 4px; padding: .3rem .75rem; font-size: .9rem; }
.b-end { border-top: 1px solid rgba(250,250,247,.12); }
.b-end p { padding-top: 1.2rem; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }

/* Back to top */
.totop { position: fixed; right: 1.1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 50px; height: 50px; border: 0; border-bottom: 4px solid var(--wheat-dark); border-radius: 4px; background: var(--wheat); color: var(--ox-deep); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(63,16,24,.3); }
.totop[hidden] { display: none; }
.totop:hover { background: var(--ox); color: var(--wheat); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .urdu-name { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
