/* Jazba Welfare Foundation — site styles
   Identity: Pakistani truck art. Chrome yellow, truck red, deep green, sky blue.
   Sign-painted panels with inner borders, a swinging jhalar fringe, Lilita One. */
:root {
  --yellow: #FFC93C;
  --yellow-soft: #FFF4D6;
  --red: #D7263D;
  --red-dark: #A8172C;
  --green: #0B6E4F;
  --green-dark: #07513A;
  --sky: #1B98E0;
  --white: #FFFFFF;
  --ink: #1D1A2F;
  --dim: #514C66;
  --rule: rgba(29, 26, 47, .14);
  --sign: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: "Nunito Sans", "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(--ink); font-family: var(--body); 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(--sign); font-weight: 400; line-height: 1.05; letter-spacing: .005em; }
p, ul, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.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(--yellow); color: var(--ink); padding: .7rem 1.2rem; border-radius: 10px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 1rem; }

.w { max-width: 74rem; margin: 0 auto; padding: 0 1.25rem; }
.sx { padding: 4.5rem 0; }
@media (min-width: 820px) { .sx { padding: 6.5rem 0; } }
.on-y { background: var(--yellow); }
.on-ys { background: var(--yellow-soft); }
.on-g { background: var(--green); color: var(--white); }
.on-r { background: var(--red); color: var(--white); }
.dim { color: var(--dim); }
.on-g .dim, .on-r .dim { color: #F1EDE4; }
.cap { max-width: 62ch; }
.big { font-size: clamp(2.3rem, 5.4vw, 3.8rem); color: var(--red); }
.on-g .big, .on-r .big { color: var(--yellow); }
.on-y .big { color: var(--ink); }
.med { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--green); }
.a1 { margin-top: .75rem; } .a2 { margin-top: 1.4rem; } .a3 { margin-top: 2.25rem; } .a4 { margin-top: 3.25rem; }

/* Painted sign panel: the recurring device (outer colour, inner border) */
.sign { position: relative; border-radius: 22px; padding: 2rem; }
.sign::after { content: ""; position: absolute; inset: 10px; border: 2px solid currentColor; border-radius: 14px; opacity: .55; pointer-events: none; }
@media (min-width: 820px) { .sign { padding: 2.75rem; } }

/* Jhalar fringe */
.jhalar { height: 30px; background: url("../img/jhalar.svg") repeat-x left top / 32px 30px; transform-origin: top center; }
.jhalar.swing { animation: swing 1.6s ease-out both; }
@keyframes swing { 0% { transform: skewX(14deg); } 30% { transform: skewX(-9deg); } 55% { transform: skewX(5deg); } 78% { transform: skewX(-2deg); } 100% { transform: none; } }

/* Buttons */
.bn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 1.6rem; border-radius: 12px; border: 3px solid var(--ink); font-family: var(--sign); font-size: 1.12rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s, background-color .2s; }
.bn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.bn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.bn-r { background: var(--red); color: var(--white); }
.bn-g { background: var(--green); color: var(--white); }
.bn-y { background: var(--yellow); color: var(--ink); }
.bn-w { background: var(--white); color: var(--ink); }
.bns { display: flex; flex-wrap: wrap; gap: .9rem; }
.lk { font-weight: 800; color: var(--red); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 4px; }
.lk:hover { color: var(--green); }

/* Header */
.hd { position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top, 0px); background: var(--green); }
.hd-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; height: 72px; color: var(--white); }
.br { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.br img { width: 44px; height: 44px; }
.br b { font-family: var(--sign); font-weight: 400; font-size: 1.45rem; line-height: 1; }
.br small { display: block; font-family: var(--body); font-weight: 700; font-size: .75rem; letter-spacing: .02em; color: var(--yellow); margin-top: .15rem; }
.nl { display: none; }
.nl ul { list-style: none; padding: 0; display: flex; gap: .3rem; }
.nl a { display: block; padding: .45rem .9rem; border-radius: 10px; font-weight: 800; font-size: .95rem; text-decoration: none; }
.nl a:hover { background: var(--green-dark); }
.nl a[aria-current="page"] { background: var(--yellow); color: var(--ink); }
.hd-cta { display: none; font-size: 1rem; padding: .55rem 1.1rem; box-shadow: 0 3px 0 var(--ink); }
.mt { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 3px solid var(--ink); background: var(--yellow); color: var(--ink); cursor: pointer; }
.mm { background: var(--green); color: var(--white); padding: .25rem 1.25rem 1.75rem; }
.mm[hidden] { display: none; }
.mm ul { list-style: none; padding: 0; }
.mm a.ml { display: block; padding: .75rem 0; font-family: var(--sign); font-size: 1.75rem; text-decoration: none; border-bottom: 2px dashed rgba(255,255,255,.25); }
.mm a.ml[aria-current="page"] { color: var(--yellow); }
.mm .bn { width: 100%; margin-top: 1.25rem; }
@media (min-width: 940px) { .nl { display: block; } .mt, .mm { display: none !important; } }
@media (min-width: 1160px) { .hd-cta { display: inline-flex; } }
.hd .jhalar { position: absolute; left: 0; right: 0; top: 100%; pointer-events: none; }

/* Hero */
.hero { background: var(--yellow); padding-top: 30px; }
.hero-in { display: grid; gap: 2.5rem; align-items: center; padding-top: 3rem; padding-bottom: 4.5rem; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; padding-top: 4rem; padding-bottom: 6rem; } }
.hero h1 { font-size: clamp(2.9rem, 7vw, 5.4rem); color: var(--ink); }
.hero h1 em { font-style: normal; display: block; color: var(--red); }
.hero p { margin-top: 1.5rem; font-size: 1.15rem; max-width: 42ch; color: #3A3550; font-weight: 600; }
.hero .bns { margin-top: 2.25rem; }
.board { background: var(--red); color: var(--white); text-align: center; transform: rotate(-2deg); box-shadow: 0 10px 0 var(--ink); }
.board .flower { width: 120px; height: 120px; margin: 0 auto; }
.board .word { margin-top: 1rem; font-family: var(--sign); font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; color: var(--yellow); }
.board .gloss { margin-top: .6rem; font-weight: 800; font-size: 1.05rem; }
.board .tag { display: inline-block; margin-top: 1.25rem; padding: .4rem 1rem; border-radius: 999px; background: var(--green); font-weight: 800; font-size: .92rem; }

/* Mission/vision */
.mvx { display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .mvx { grid-template-columns: 1fr 1fr; } }
.mvx .sign { color: var(--green); background: var(--white); border: 3px solid var(--green); }
.mvx .sign + .sign { color: var(--red); border-color: var(--red); }
.mvx h2 { font-size: 1.7rem; }
.mvx p { margin-top: .9rem; color: var(--ink); font-size: clamp(1.15rem, 1.9vw, 1.35rem); line-height: 1.55; font-weight: 600; }

/* Causes */
.causes { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 680px) { .causes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .causes { grid-template-columns: repeat(4, 1fr); } }
.cause { display: flex; flex-direction: column; text-decoration: none; color: var(--white); padding: 1.75rem; }
.cause:nth-child(1) { background: var(--red); } .cause:nth-child(2) { background: var(--green); }
.cause:nth-child(3) { background: var(--sky); } .cause:nth-child(4) { background: var(--ink); }
.cause svg { width: 48px; height: 48px; color: var(--yellow); }
.cause h3 { margin-top: 1.1rem; font-size: 1.65rem; }
.cause p { margin-top: .5rem; flex: 1; font-weight: 600; color: rgba(255,255,255,.9); }
.cause .more { margin-top: 1.25rem; font-weight: 800; color: var(--yellow); }
.cause:hover .more { text-decoration: underline; text-underline-offset: 4px; }

/* Take part */
.tp { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 820px) { .tp { grid-template-columns: repeat(3, 1fr); } }
.tp .sign { background: var(--white); color: var(--ink); display: flex; flex-direction: column; }
.tp .sign::after { border-color: var(--green); opacity: .35; }
.tp h3 { font-size: 1.9rem; color: var(--red); }
.tp p { margin-top: .6rem; flex: 1; color: var(--dim); }
.tp .bn { margin-top: 1.75rem; align-self: flex-start; position: relative; z-index: 1; }

/* FAQ */
.fw { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .fw { grid-template-columns: 1fr 1.8fr; gap: 4rem; } }
.fl details { margin-bottom: .8rem; border: 3px solid var(--ink); border-radius: 14px; background: var(--white); box-shadow: 0 4px 0 var(--ink); }
.fl summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; font-weight: 800; font-size: 1.05rem; }
.fl summary::-webkit-details-marker { display: none; }
.fl .tg { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-family: var(--sign); font-size: 1.4rem; line-height: 1; }
.fl .tg::before { content: "+"; }
.fl details[open] .tg { background: var(--red); color: var(--white); }
.fl details[open] .tg::before { content: "−"; }
.fl details p { padding: 0 1.25rem 1.25rem; color: var(--dim); max-width: 62ch; }

/* Contact strip */
.cs { display: grid; gap: 1rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 820px) { .cs { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.cs > div { background: var(--white); border: 3px solid var(--ink); border-radius: 14px; padding: 1.25rem 1.4rem; }
.cs h3 { font-size: 1.15rem; color: var(--green); }
.cs a, .cs p { display: block; margin-top: .3rem; font-weight: 800; font-size: 1.12rem; text-decoration: none; word-break: break-word; }
.cs a:hover { color: var(--red); }

/* Page head */
.pg { background: var(--yellow); padding-top: 30px; }
.pg .w { display: grid; gap: 1.5rem; align-items: center; padding-top: 3rem; padding-bottom: 3.5rem; }
@media (min-width: 820px) { .pg .w { grid-template-columns: 1fr auto; padding-top: 3.5rem; padding-bottom: 4.5rem; } }
.pg h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); color: var(--ink); }
.pg p { margin-top: 1rem; max-width: 52ch; font-size: 1.12rem; font-weight: 600; color: #3A3550; }
.pg .medal { display: none; width: 150px; height: 150px; transform: rotate(-6deg); }
@media (min-width: 820px) { .pg .medal { display: block; } }

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

/* Values */
.vs { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 760px) { .vs { grid-template-columns: 1fr 1fr; } }
.vs .sign { background: var(--white); color: var(--sky); border: 3px solid var(--sky); }
.vs .sign:nth-child(2) { color: var(--green); border-color: var(--green); }
.vs .sign:nth-child(3) { color: var(--red); border-color: var(--red); }
.vs .sign:nth-child(4) { color: var(--ink); border-color: var(--ink); }
.vs h3 { font-size: 1.6rem; }
.vs p { margin-top: .5rem; color: var(--dim); }

/* Table */
.tb { width: 100%; border-collapse: collapse; }
.tb th, .tb td { text-align: left; vertical-align: top; padding: 1rem 0; border-bottom: 2px dashed var(--rule); }
.tb th { width: 11rem; padding-right: 1.25rem; font-weight: 800; color: var(--green); }
.tb td { word-break: break-word; }

/* Cause detail */
.cd { display: grid; gap: 1.25rem; padding: 2.25rem 0; border-bottom: 2px dashed var(--rule); scroll-margin-top: 7rem; }
.cd:first-of-type { padding-top: 0; }
@media (min-width: 820px) { .cd { grid-template-columns: 84px 1fr 1.3fr; gap: 2.5rem; align-items: start; } }
.cd .ic { width: 84px; height: 84px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: var(--yellow); }
.cd .ic svg { width: 46px; height: 46px; }
.cd h2 { font-size: clamp(1.9rem, 3.2vw, 2.4rem); color: var(--ink); }
.cd .for { margin-top: .5rem; font-weight: 800; color: var(--red); }
.cd .tx { color: var(--dim); }
.note { margin-top: 3rem; background: var(--yellow-soft); color: var(--green); }
.note h2 { font-size: 1.8rem; }
.note p { color: var(--dim); }

/* Contact */
.cx > div { padding: 1.25rem 1.4rem; border: 3px solid var(--ink); border-radius: 14px; background: var(--white); }
.cx > div + div { margin-top: .9rem; }
.cx h2 { font-size: 1.15rem; color: var(--green); }
.cx a, .cx address { display: block; margin-top: .3rem; font-weight: 800; font-size: 1.12rem; font-style: normal; text-decoration: none; word-break: break-all; }
.cx address { word-break: normal; line-height: 1.5; }
.cx a:hover { color: var(--red); }
.fp { background: var(--yellow-soft); border-radius: 22px; padding: 1.5rem; border: 3px solid var(--ink); }
@media (min-width: 640px) { .fp { padding: 2.5rem; } }
.mp { border: 3px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 6px 0 var(--ink); }
.mp iframe { width: 100%; height: 380px; border: 0; }
@media (min-width: 820px) { .mp iframe { height: 450px; } }
.sf { background: var(--green-dark); color: var(--yellow); }
.sf h3 { font-size: 1.8rem; }
.sf ul { margin-top: 1rem; padding-left: 1.2rem; color: var(--white); font-weight: 600; }
.sf li + li { margin-top: .6rem; }

/* Forms */
.form { display: grid; gap: 1.15rem; }
.form .r { display: grid; gap: 1.15rem; }
@media (min-width: 620px) { .form .r { grid-template-columns: 1fr 1fr; } }
.form .fl2 { font-weight: 800; }
.form .op { font-weight: 600; color: var(--dim); }
.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 1rem; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 2.5px solid var(--ink); border-radius: 12px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; box-shadow: 0 0 0 4px rgba(27,152,224,.35); }
.form [aria-invalid="true"] { border-color: var(--red) !important; background: #FFF0F2; }
.form .err { margin-top: .3rem; font-size: .92rem; font-weight: 800; color: var(--red-dark); }
.form .ck { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; line-height: 1.5; font-weight: 600; }
.form .ck input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--green); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .bn { justify-self: start; }
.form .bn[disabled] { opacity: .6; cursor: wait; }
.alert { border-radius: 12px; padding: 1rem; font-size: .95rem; background: #FFF0F2; border: 2.5px solid var(--red); }
.alert strong { display: block; color: var(--red-dark); }
.success { border-radius: 18px; padding: 2rem; background: var(--white); border: 3px solid var(--green); box-shadow: 0 5px 0 var(--green); }
.success h3 { font-size: 1.9rem; color: var(--green); }
.success button { margin-top: 1.25rem; background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--red); text-decoration: underline; cursor: pointer; }

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

/* Footer */
.ft { background: var(--ink); color: #D8D4E6; }
.ft-g { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 2.5rem; }
@media (min-width: 820px) { .ft-g { grid-template-columns: 1.6fr 1fr 1.4fr; } }
.ft .br b { color: var(--white); font-size: 1.7rem; }
.ft h2 { font-size: 1.25rem; color: var(--yellow); }
.ft ul { list-style: none; padding: 0; margin-top: .9rem; }
.ft li + li { margin-top: .5rem; }
.ft a { text-decoration: none; }
.ft a:hover { color: var(--yellow); text-decoration: underline; }
.ft address { font-style: normal; margin-top: .9rem; }
.ft address p + p { margin-top: .5rem; }
.ft-soc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.ft-soc a { border: 2px solid var(--yellow); border-radius: 10px; padding: .25rem .7rem; font-size: .9rem; font-weight: 700; }
.ft-e { border-top: 2px dashed rgba(255,255,255,.15); }
.ft-e p { padding-top: 1.2rem; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }
.stripes { height: 12px; background: linear-gradient(90deg, var(--red) 0 25%, var(--yellow) 25% 50%, var(--green) 50% 75%, var(--sky) 75% 100%); }

/* Back to top */
.upb { position: fixed; right: 1.1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 52px; height: 52px; border-radius: 14px; border: 3px solid var(--ink); background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 0 var(--ink); }
.upb[hidden] { display: none; }
.upb:hover { background: var(--red); color: var(--white); }

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