/* I PAS Pakistan — site styles
   Identity: Margalla Hills contour lines at dusk. Violet, lavender, apricot.
   Light, airy type (Sora), generous rounded shapes, centred hero. */
:root {
  --violet: #45348A;
  --violet-deep: #2B1F5E;
  --lav: #F1EEFA;
  --lav-2: #E3DDF6;
  --lilac: #C9BFF0;
  --apricot: #F7A34B;
  --apricot-dark: #D9822A;
  --white: #FFFFFF;
  --text: #221C3D;
  --grey: #5A5475;
  --hair: rgba(69, 52, 138, .16);
  --font: "Sora", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--font); font-size: 16.5px; line-height: 1.7; font-weight: 400; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.12; letter-spacing: -0.025em; }
p, ul, dl, dd { margin: 0; }
strong, b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 8px; }
.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(--apricot); color: var(--text); padding: .7rem 1.2rem; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.sec { padding: 4.5rem 0; }
@media (min-width: 820px) { .sec { padding: 6.5rem 0; } }
.lav { background: var(--lav); }
.dark { background: var(--violet-deep); color: var(--white); }
.grey { color: var(--grey); }
.dark .grey { color: #CFC8EE; }
.cap { max-width: 62ch; }
.h-big { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--violet); }
.dark .h-big { color: var(--white); }
.h-mid { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--violet); }
.dark .h-mid { color: var(--white); }
.m1 { margin-top: .75rem; } .m2 { margin-top: 1.4rem; } .m3 { margin-top: 2.25rem; } .m4 { margin-top: 3.25rem; }
.centre { text-align: center; }
.centre .cap { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.7rem; border-radius: 999px; border: 1.5px solid transparent; font-family: var(--font); font-size: .98rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-v { background: var(--violet); color: var(--white); }
.btn-v:hover { background: var(--violet-deep); }
.btn-a { background: var(--apricot); color: var(--text); }
.btn-a:hover { background: var(--apricot-dark); color: var(--white); }
.btn-o { border-color: var(--violet); color: var(--violet); }
.btn-o:hover { background: var(--violet); color: var(--white); }
.btn-ow { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ow:hover { border-color: var(--apricot); color: var(--apricot); }
.btnset { display: flex; flex-wrap: wrap; gap: .75rem; }
.centre .btnset { justify-content: center; }
.lnk { font-weight: 600; color: var(--violet); text-decoration: underline; text-decoration-color: var(--apricot); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lnk:hover { color: var(--apricot-dark); }

/* Header */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); padding-top: env(safe-area-inset-top, 0px); }
.hdr-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 74px; }
.mark { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.mark img { width: 42px; height: 42px; }
.mark span { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; color: var(--violet-deep); }
.links { display: none; }
.links ul { list-style: none; padding: 0; display: flex; gap: 2rem; }
.links a { position: relative; font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--grey); padding: .4rem 0; }
.links a:hover { color: var(--violet); }
.links a[aria-current="page"] { color: var(--violet); font-weight: 600; }
.links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--apricot); }
.hdr-cta { display: none; padding: .65rem 1.25rem; font-size: .92rem; }
.toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--lav); color: var(--violet); cursor: pointer; }
.sheet-menu { padding: .5rem 1.25rem 1.75rem; border-top: 1px solid var(--hair); background: var(--white); }
.sheet-menu[hidden] { display: none; }
.sheet-menu ul { list-style: none; padding: 0; }
.sheet-menu a.s-link { display: block; padding: .8rem 0; font-size: 1.6rem; font-weight: 300; letter-spacing: -0.02em; text-decoration: none; color: var(--violet-deep); border-bottom: 1px solid var(--hair); }
.sheet-menu a.s-link[aria-current="page"] { color: var(--apricot-dark); }
.sheet-menu .btn { width: 100%; margin-top: 1.25rem; }
@media (min-width: 900px) { .links { display: block; } .toggle, .sheet-menu { display: none !important; } }
@media (min-width: 1100px) { .hdr-cta { display: inline-flex; } }

/* Hero: centred over the contour drawing */
.hero { position: relative; overflow: hidden; background: var(--lav); }
.hero .contours { position: absolute; inset: auto 0 0 0; width: 100%; height: 15rem; }
@media (min-width: 820px) { .hero .contours { height: 19rem; } }
.hero .contours path { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-txt { position: relative; text-align: center; padding: 4.5rem 0 16rem; }
@media (min-width: 820px) { .hero-txt { padding: 6rem 0 21rem; } }
.hero h1 { font-size: clamp(2.5rem, 6.8vw, 5.2rem); color: var(--violet-deep); max-width: 17ch; margin: 0 auto; }
.hero p { margin: 1.75rem auto 0; max-width: 46ch; font-size: 1.12rem; color: var(--grey); }
.hero .btnset { margin-top: 2.25rem; justify-content: center; }

/* Purpose */
.purpose { display: grid; gap: 2rem; }
@media (min-width: 820px) { .purpose { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.purpose > div { border-radius: 28px; padding: 2.25rem; }
@media (min-width: 820px) { .purpose > div { padding: 3rem; } }
.purpose .m { background: var(--violet); color: var(--white); }
.purpose .v { background: var(--lav); }
.purpose h2 { font-size: .95rem; font-weight: 600; letter-spacing: 0; }
.purpose .m h2 { color: var(--apricot); }
.purpose .v h2 { color: var(--violet); }
.purpose p { margin-top: 1rem; font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 300; line-height: 1.45; letter-spacing: -0.01em; }

/* Focus list */
.focus { list-style: none; padding: 0; margin-top: 3rem; display: grid; gap: 1rem; }
@media (min-width: 760px) { .focus { grid-template-columns: 1fr 1fr; } }
.focus a { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; padding: 1.75rem; border-radius: 24px; background: var(--white); border: 1px solid var(--hair); text-decoration: none; transition: border-color .2s, background-color .2s; height: 100%; }
.focus a:hover { border-color: var(--violet); background: var(--lav); }
.focus .ico { width: 54px; height: 54px; border-radius: 50%; background: var(--lav-2); display: flex; align-items: center; justify-content: center; color: var(--violet); }
.focus a:hover .ico { background: var(--violet); color: var(--apricot); }
.focus h3 { font-size: 1.35rem; font-weight: 500; color: var(--violet-deep); letter-spacing: -0.015em; }
.focus p { margin-top: .4rem; color: var(--grey); font-size: .97rem; }

/* Help options */
.opts { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 820px) { .opts { grid-template-columns: repeat(3, 1fr); } }
.opts > div { border-radius: 24px; padding: 2rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; }
.opts h3 { font-size: 1.6rem; color: var(--white); }
.opts p { margin-top: .75rem; color: #CFC8EE; flex: 1; }
.opts .btn { margin-top: 1.75rem; align-self: flex-start; }

/* FAQ */
.qa { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .qa { grid-template-columns: 1fr 1.7fr; gap: 4rem; } }
.qa-list details { border-bottom: 1px solid var(--hair); }
.qa-list details:first-child { border-top: 1px solid var(--hair); }
.qa-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 0; cursor: pointer; font-size: 1.08rem; font-weight: 500; color: var(--violet-deep); }
.qa-list summary::-webkit-details-marker { display: none; }
.qa-list .dot { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--violet); position: relative; }
.qa-list .dot::before, .qa-list .dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--violet); transition: transform .2s; }
.qa-list .dot::after { transform: rotate(90deg); }
.qa-list details[open] .dot { background: var(--violet); }
.qa-list details[open] .dot::before { background: var(--white); }
.qa-list details[open] .dot::after { transform: rotate(0); background: var(--white); }
.qa-list details p { padding-bottom: 1.4rem; color: var(--grey); max-width: 62ch; }

/* Closing contact */
.closer { text-align: center; }
.closer .row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.5rem; margin-top: 2rem; font-size: 1.15rem; font-weight: 500; }
.closer .row a { text-decoration: none; color: var(--violet); }
.closer .row a:hover { color: var(--apricot-dark); text-decoration: underline; text-underline-offset: 4px; }
.closer address { font-style: normal; margin-top: 1rem; color: var(--grey); }

/* Inner page head */
.ph { position: relative; overflow: hidden; background: var(--lav); }
.ph .contours { position: absolute; right: -5%; bottom: 0; width: 70%; height: 100%; opacity: .9; }
.ph .wrap { position: relative; padding-top: 4rem; padding-bottom: 4.5rem; }
@media (min-width: 820px) { .ph .wrap { padding-top: 5.5rem; padding-bottom: 6rem; } }
.ph h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); color: var(--violet-deep); max-width: 15ch; }
.ph p { margin-top: 1.25rem; max-width: 50ch; font-size: 1.1rem; color: var(--grey); }

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

/* Values */
.vlist { list-style: none; padding: 0; margin-top: 2.5rem; display: grid; gap: 0; }
@media (min-width: 760px) { .vlist { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.vlist li { padding: 1.5rem 0; border-top: 1px solid var(--hair); }
.vlist h3 { font-size: 1.35rem; font-weight: 500; color: var(--violet); }
.vlist p { margin-top: .4rem; color: var(--grey); }

/* Info table */
.info { width: 100%; border-collapse: collapse; }
.info th, .info td { text-align: left; vertical-align: top; padding: 1rem 0; border-bottom: 1px solid var(--hair); }
.info th { width: 11rem; padding-right: 1.25rem; font-weight: 600; color: var(--violet); }
.info td { word-break: break-word; }

/* Independence note */
.indep { border-radius: 20px; background: var(--white); border: 1.5px solid var(--violet); padding: 1.5rem 1.75rem; }
.indep h3 { font-size: 1.15rem; font-weight: 600; color: var(--violet); letter-spacing: 0; }
.indep p { margin-top: .5rem; color: var(--grey); }

/* Our work detail */
.blocks { display: grid; gap: 1.25rem; }
.blk { display: grid; gap: 1.25rem; border-radius: 28px; padding: 2rem; background: var(--lav); scroll-margin-top: 6rem; }
@media (min-width: 820px) { .blk { grid-template-columns: 64px 1fr 1.3fr; gap: 2.25rem; padding: 2.75rem; } }
.blk .ico { width: 64px; height: 64px; border-radius: 50%; background: var(--violet); color: var(--apricot); display: flex; align-items: center; justify-content: center; }
.blk h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--violet-deep); }
.blk .who { margin-top: .5rem; font-weight: 600; color: var(--apricot-dark); font-size: .97rem; }
.blk .body { color: var(--grey); }
.pending { margin-top: 3rem; border-radius: 28px; border: 1.5px dashed var(--violet); padding: 2rem; }
@media (min-width: 820px) { .pending { padding: 2.75rem; } }

/* Contact */
.clist > div { padding: 1.4rem 0; border-bottom: 1px solid var(--hair); }
.clist > div:first-child { padding-top: 0; }
.clist h2 { font-size: .92rem; font-weight: 600; color: var(--apricot-dark); letter-spacing: 0; }
.clist a, .clist address { display: block; margin-top: .3rem; font-size: 1.15rem; font-weight: 500; font-style: normal; text-decoration: none; color: var(--violet-deep); word-break: break-all; }
.clist address { word-break: normal; line-height: 1.5; }
.clist a:hover { color: var(--violet); text-decoration: underline; }
.fbox { background: var(--lav); border-radius: 28px; padding: 1.5rem; }
@media (min-width: 640px) { .fbox { padding: 2.5rem; } }
.mapr { border-radius: 28px; overflow: hidden; border: 1px solid var(--hair); }
.mapr iframe { width: 100%; height: 380px; border: 0; }
@media (min-width: 820px) { .mapr iframe { height: 450px; } }

/* Donation safety */
.safe { border-radius: 24px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); padding: 2rem; }
.safe h3 { font-size: 1.5rem; color: var(--apricot); }
.safe ul { margin-top: 1rem; padding-left: 1.2rem; color: #E6E1F7; }
.safe li + li { margin-top: .6rem; }

/* Forms */
.form { display: grid; gap: 1.15rem; }
.form .duo { display: grid; gap: 1.15rem; }
@media (min-width: 620px) { .form .duo { grid-template-columns: 1fr 1fr; } }
.form .fl { font-weight: 500; font-size: .95rem; }
.form .opt { font-weight: 400; color: var(--grey); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { display: block; width: 100%; margin-top: .45rem; padding: .85rem 1.1rem; font: inherit; font-size: 1rem; color: var(--text); background: var(--white); border: 1.5px solid var(--hair); border-radius: 16px; }
.form select { border-radius: 999px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(69,52,138,.12); }
.form [aria-invalid="true"] { border-color: #C2413A !important; }
.form .err { margin-top: .3rem; font-size: .9rem; font-weight: 500; color: #B2342D; }
.form .ok-box { display: flex; gap: .75rem; align-items: flex-start; font-size: .93rem; line-height: 1.55; }
.form .ok-box input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--violet); }
.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 { border-radius: 16px; padding: 1rem 1.1rem; font-size: .95rem; background: #FCEFEE; border: 1.5px solid #C2413A; }
.alert strong { display: block; color: #B2342D; }
.success { border-radius: 24px; padding: 2rem; background: var(--white); border: 1.5px solid var(--violet); }
.success h3 { font-size: 1.7rem; color: var(--violet); }
.success button { margin-top: 1.25rem; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--violet); text-decoration: underline; cursor: pointer; }

/* Legal */
.law { max-width: 46rem; margin: 0 auto; padding: 4rem 1.25rem; }
@media (min-width: 820px) { .law { padding: 5.5rem 1.25rem; } }
.law h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); color: var(--violet-deep); }
.law h2 { font-size: 1.45rem; font-weight: 400; color: var(--violet); margin-top: 2.5rem; }
.law p, .law ul { margin-top: .75rem; }
.law ul { padding-left: 1.4rem; }
.law li + li { margin-top: .45rem; }

/* Footer */
.ftr { background: var(--violet-deep); color: #CFC8EE; }
.ftr-grid { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 2.5rem; }
@media (min-width: 820px) { .ftr-grid { grid-template-columns: 1.6fr 1fr 1.4fr; } }
.ftr .mark span { color: var(--white); font-size: 1.35rem; }
.ftr h2 { font-size: .92rem; font-weight: 600; color: var(--apricot); letter-spacing: 0; }
.ftr ul { list-style: none; padding: 0; margin-top: .9rem; }
.ftr li + li { margin-top: .5rem; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--white); text-decoration: underline; }
.ftr address { font-style: normal; margin-top: .9rem; }
.ftr address p + p { margin-top: .5rem; }
.ftr .disclaim { margin-top: 1.25rem; font-size: .88rem; color: #B6ADE0; max-width: 30rem; }
.ftr-soc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.ftr-soc a { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .3rem .8rem; font-size: .88rem; }
.ftr-end { border-top: 1px solid rgba(255,255,255,.12); }
.ftr-end p { padding-top: 1.2rem; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); font-size: .88rem; }

/* Back to top */
.goup { position: fixed; right: 1.1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--violet); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 22px rgba(43,31,94,.3); }
.goup[hidden] { display: none; }
.goup:hover { background: var(--apricot); color: var(--text); }

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