/* Husan Afroz Memorial Trust — site styles
   Identity: Sindhi rilli patchwork. Palm green, rilli rose, date brown, ochre,
   running-stitch borders, square corners. */
:root {
  --palm: #1E4D3A;
  --palm-2: #2E6B50;
  --mint: #EAF2EC;
  --rose: #B4365F;
  --rose-dark: #8E2648;
  --date: #6B3A1F;
  --date-deep: #3E2416;
  --ochre: #E0B23A;
  --white: #FFFFFF;
  --ink: #1B2620;
  --muted: #4D5E55;
  --line: rgba(30, 77, 58, .18);
  --head: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --body: "Literata", Georgia, "Times New Roman", 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.7; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
p, ul, ol, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--ochre); 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(--ochre); color: var(--ink); padding: .75rem 1.2rem; font-family: var(--head); font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }

.container { max-width: 74rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 66ch; }
.block { padding: 4.5rem 0; }
@media (min-width: 800px) { .block { padding: 6.5rem 0; } }
.on-mint { background: var(--mint); }
.on-palm { background: var(--palm); color: var(--white); }
.on-date { background: var(--date-deep); color: #F3E7DC; }
.muted { color: var(--muted); }
.on-palm .muted { color: #CFE0D5; }
.title { font-size: clamp(2rem, 4.6vw, 3.25rem); color: var(--palm); }
.on-palm .title { color: var(--white); }
.sub { font-size: clamp(1.4rem, 2.4vw, 1.75rem); color: var(--palm); }
.gap-s { margin-top: .75rem; } .gap-m { margin-top: 1.4rem; } .gap-l { margin-top: 2.25rem; } .gap-xl { margin-top: 3.5rem; }

/* Running stitch: the recurring structural device */
.stitch { border: 2px dashed currentColor; }
.stitch-rule { height: 0; border-top: 2px dashed var(--line); }
.on-palm .stitch-rule { border-top-color: rgba(255,255,255,.35); }

/* Buttons: square-cornered, like cut cloth */
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 1.5rem; border: 2px solid transparent; border-radius: 3px; font-family: var(--head); font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-rose { background: var(--rose); color: var(--white); }
.btn-rose:hover { background: var(--rose-dark); }
.btn-palm { background: var(--palm); color: var(--white); }
.btn-palm:hover { background: var(--date); }
.btn-line { border-color: var(--palm); color: var(--palm); background: transparent; }
.btn-line:hover { background: var(--palm); color: var(--white); }
.btn-white { background: var(--white); color: var(--palm); }
.btn-white:hover { background: var(--ochre); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.text-link { font-family: var(--head); font-weight: 700; color: var(--rose); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.text-link:hover { color: var(--palm); }

/* Top bar */
.topbar { background: var(--palm); color: #D9E8DE; font-family: var(--head); font-size: .9rem; padding-top: env(safe-area-inset-top, 0px); }
.topbar .container { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; padding-top: .5rem; padding-bottom: .5rem; }
.topbar a { text-decoration: none; color: var(--white); }
.topbar a:hover { color: var(--ochre); }
.topbar .place { display: none; }
@media (min-width: 700px) { .topbar .place { display: inline; margin-right: auto; } }

/* Header */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 2px dashed var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: .85rem; padding-bottom: .85rem; }
.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.logo img { width: 46px; height: 46px; }
.logo span { font-family: var(--head); font-weight: 800; font-size: 1.1rem; line-height: 1.05; color: var(--palm); max-width: 11rem; }
.nav { display: none; }
.nav ul { list-style: none; padding: 0; display: flex; gap: 1.75rem; }
.nav a { font-family: var(--head); font-weight: 600; text-decoration: none; padding: .35rem 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--ochre); }
.nav a[aria-current="page"] { border-bottom-color: var(--rose); color: var(--rose); }
.head-cta { display: none; }
.burger { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; background: var(--palm); color: var(--white); border: 0; border-radius: 3px; cursor: pointer; }
.drawer { background: var(--palm); color: var(--white); padding: 1rem 1.25rem 1.75rem; }
.drawer[hidden] { display: none; }
.drawer ul { list-style: none; padding: 0; }
.drawer a.d-link { display: block; padding: .8rem 0; border-bottom: 2px dashed rgba(255,255,255,.3); font-family: var(--head); font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.drawer a.d-link[aria-current="page"] { color: var(--ochre); }
.drawer .btn { margin-top: 1.25rem; width: 100%; justify-content: center; }
@media (min-width: 880px) {
  .nav { display: block; }
  .burger, .drawer { display: none !important; }
}
@media (min-width: 1080px) { .head-cta { display: inline-flex; } }

/* Hero */
.hero { background: var(--mint); padding-top: 3.5rem; overflow: hidden; }
@media (min-width: 800px) { .hero { padding-top: 5.5rem; } }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); color: var(--palm); max-width: 15ch; letter-spacing: -0.03em; }
.hero-lower { display: grid; gap: 1.75rem; margin-top: 2rem; padding-bottom: 3rem; }
@media (min-width: 800px) { .hero-lower { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 3rem; padding-bottom: 4rem; } }
.hero-lower p { font-size: 1.15rem; color: var(--muted); max-width: 40ch; }
@media (min-width: 800px) { .hero-lower .btn-row { justify-content: flex-end; } }

/* The quilt: the one memorable element */
.quilt { display: grid; grid-template-columns: repeat(6, 1fr); line-height: 0; }
@media (min-width: 600px) { .quilt { grid-template-columns: repeat(9, 1fr); } }
@media (min-width: 1000px) { .quilt { grid-template-columns: repeat(12, 1fr); } }
.quilt svg { width: 100%; height: auto; aspect-ratio: 1; }
.quilt .q-hide-s { display: none; }
@media (min-width: 600px) { .quilt .q-hide-s { display: block; } }
.quilt .q-hide-m { display: none; }
@media (min-width: 1000px) { .quilt .q-hide-m { display: block; } }
@keyframes patch-in { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
.quilt svg { animation: patch-in .5s cubic-bezier(.2,.8,.3,1.2) both; }

/* Name / memorial */
.memorial { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .memorial { grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: start; } }
.memorial .lead-big { font-size: clamp(1.25rem, 2vw, 1.45rem); line-height: 1.6; }
.memorial .founder { display: flex; gap: 1rem; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 2px dashed var(--line); }
.memorial .founder img { width: 40px; height: 40px; }
.memorial .founder p { font-family: var(--head); line-height: 1.3; }
.memorial .founder strong { display: block; color: var(--palm); font-size: 1.1rem; }

/* Mission / vision frame */
.mv { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .mv { grid-template-columns: 1fr 1fr; } }
.mv > div { border: 2px dashed rgba(255,255,255,.45); padding: 2rem; }
@media (min-width: 800px) { .mv > div { padding: 2.75rem; } }
.mv h2 { font-size: 1rem; color: var(--ochre); letter-spacing: .02em; }
.mv p { font-family: var(--head); font-weight: 500; font-size: clamp(1.35rem, 2.3vw, 1.75rem); line-height: 1.35; margin-top: 1rem; }

/* Work grid */
.work-grid { display: grid; gap: 0; margin-top: 3rem; border-top: 2px dashed var(--line); }
@media (min-width: 760px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.work-item { display: grid; grid-template-columns: 64px 1fr; gap: 1.25rem; padding: 2rem 0; border-bottom: 2px dashed var(--line); }
@media (min-width: 760px) {
  .work-item { padding: 2.25rem 2rem 2.25rem 0; }
  .work-item:nth-child(even) { padding-left: 2rem; padding-right: 0; border-left: 2px dashed var(--line); }
}
.work-item svg { width: 64px; height: 64px; }
.work-item h3 { font-size: 1.45rem; color: var(--palm); }
.work-item p { margin-top: .5rem; color: var(--muted); }

/* Support rows */
.support { margin-top: 3rem; }
.support-row { display: grid; gap: 1rem; padding: 2rem 0; border-top: 2px dashed rgba(255,255,255,.35); }
.support-row:last-child { border-bottom: 2px dashed rgba(255,255,255,.35); }
@media (min-width: 800px) { .support-row { grid-template-columns: 14rem 1fr auto; align-items: center; gap: 2.5rem; } }
.support-row h3 { font-size: 1.6rem; color: var(--ochre); }
.support-row p { color: #CFE0D5; max-width: 52ch; }

/* FAQ */
.faq-wrap { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .faq-wrap { grid-template-columns: 1fr 1.8fr; gap: 4rem; } }
.faq details { border-bottom: 2px dashed var(--line); }
.faq details:first-child { border-top: 2px dashed var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 1.25rem; align-items: center; padding: 1.25rem 0; cursor: pointer; font-family: var(--head); font-weight: 700; font-size: 1.2rem; color: var(--palm); }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { flex-shrink: 0; width: 34px; height: 34px; background: var(--palm); color: var(--white); display: flex; align-items: center; justify-content: center; border-radius: 3px; }
.faq .pm::before { content: "+"; font-size: 1.4rem; line-height: 1; }
.faq details[open] .pm { background: var(--rose); }
.faq details[open] .pm::before { content: "−"; }
.faq details p { padding-bottom: 1.5rem; color: var(--muted); max-width: 64ch; }

/* Contact band on home */
.reach { display: grid; gap: 0; }
@media (min-width: 800px) { .reach { grid-template-columns: repeat(3, 1fr); } }
.reach > div { padding: 1.75rem 0; border-top: 2px dashed rgba(62,36,22,.35); }
@media (min-width: 800px) { .reach > div { padding: 0 2rem; border-top: 0; border-left: 2px dashed rgba(62,36,22,.35); } .reach > div:first-child { border-left: 0; padding-left: 0; } }
.reach h3 { font-size: 1rem; color: var(--date); }
.reach a, .reach p { display: block; margin-top: .4rem; font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; word-break: break-word; }
.reach a:hover { color: var(--rose); }
.on-ochre { background: var(--ochre); }

/* Inner page banner */
.banner { background: var(--mint); }
.banner .container { padding-top: 3.5rem; padding-bottom: 0; }
@media (min-width: 800px) { .banner .container { padding-top: 5rem; } }
.banner h1 { font-size: clamp(2.3rem, 6vw, 4.25rem); color: var(--palm); max-width: 18ch; letter-spacing: -0.025em; }
.banner p { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin-top: 1.25rem; padding-bottom: 2.75rem; }
.banner .quilt { grid-template-columns: repeat(8, 1fr); }
@media (min-width: 600px) { .banner .quilt { grid-template-columns: repeat(12, 1fr); } }
@media (min-width: 1000px) { .banner .quilt { grid-template-columns: repeat(16, 1fr); } }

/* Layout helpers */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.side { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .side { grid-template-columns: 1fr 1.45fr; gap: 4rem; } }

/* Principles */
.principles { list-style: none; padding: 0; margin-top: 2.5rem; display: grid; gap: 1rem; }
@media (min-width: 760px) { .principles { grid-template-columns: 1fr 1fr; } }
.principles li { background: var(--white); padding: 1.75rem; border-left: 6px solid var(--rose); }
.principles li:nth-child(2) { border-left-color: var(--ochre); }
.principles li:nth-child(3) { border-left-color: var(--palm); }
.principles li:nth-child(4) { border-left-color: var(--date); }
.principles h3 { font-size: 1.3rem; color: var(--palm); }
.principles p { margin-top: .5rem; color: var(--muted); }

/* Record table */
.record { width: 100%; border-collapse: collapse; }
.record th, .record td { text-align: left; vertical-align: top; padding: .95rem 0; border-bottom: 2px dashed var(--line); }
.record th { font-family: var(--head); font-weight: 700; color: var(--palm); width: 11rem; padding-right: 1.25rem; }
.record td { word-break: break-word; }

/* Detail cards on "What we do" */
.detail { display: grid; gap: 1.5rem; padding: 2.5rem 0; border-bottom: 2px dashed var(--line); scroll-margin-top: 7rem; }
.detail:first-of-type { border-top: 2px dashed var(--line); }
@media (min-width: 800px) { .detail { grid-template-columns: 96px 1fr 1.3fr; gap: 2.5rem; align-items: start; } }
.detail svg { width: 80px; height: 80px; }
.detail h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); color: var(--palm); }
.detail .who { margin-top: .5rem; font-family: var(--head); font-weight: 600; color: var(--rose); }
.detail p.body { color: var(--muted); }
.honest { margin-top: 3.5rem; padding: 2rem; background: var(--mint); border: 2px dashed var(--palm); }
@media (min-width: 800px) { .honest { padding: 2.5rem; } }

/* Boxes */
.sheet { background: var(--white); padding: 1.5rem; border: 2px solid var(--palm); border-radius: 3px; }
@media (min-width: 640px) { .sheet { padding: 2.5rem; } }
.caution { border: 2px dashed var(--ochre); padding: 1.75rem; }
.caution h3 { color: var(--ochre); font-size: 1.35rem; }
.caution ul { margin-top: 1rem; padding-left: 1.2rem; color: #E6F0E9; }
.caution li + li { margin-top: .6rem; }
.contact-facts > div { padding: 1.4rem 0; border-bottom: 2px dashed var(--line); }
.contact-facts > div:first-child { padding-top: 0; }
.contact-facts h2 { font-size: 1rem; color: var(--rose); }
.contact-facts a, .contact-facts address { display: block; margin-top: .35rem; font-family: var(--head); font-weight: 700; font-size: 1.2rem; font-style: normal; text-decoration: none; color: var(--ink); word-break: break-all; }
.contact-facts address { word-break: normal; line-height: 1.4; }
.contact-facts a:hover { color: var(--rose); }
.mapframe { border: 2px solid var(--palm); }
.mapframe iframe { width: 100%; height: 360px; border: 0; }
@media (min-width: 800px) { .mapframe iframe { height: 440px; } }

/* Forms */
.form { display: grid; gap: 1.2rem; }
.form .pair { display: grid; gap: 1.2rem; }
@media (min-width: 620px) { .form .pair { grid-template-columns: 1fr 1fr; } }
.form .lbl { font-family: var(--head); font-weight: 600; }
.form .opt { font-weight: 400; color: var(--muted); }
.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 .95rem; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 2px solid rgba(30,77,58,.3); border-radius: 3px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--palm); box-shadow: 0 0 0 3px rgba(224,178,58,.45); }
.form [aria-invalid="true"] { border-color: var(--rose) !important; }
.form .err { margin-top: .3rem; font-size: .92rem; color: var(--rose-dark); font-weight: 600; }
.form .agree { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; line-height: 1.5; }
.form .agree input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--palm); }
.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: 2px solid var(--rose); padding: 1rem; font-size: .95rem; background: #FBF0F3; }
.alert strong { display: block; color: var(--rose-dark); font-family: var(--head); }
.success { border: 2px dashed var(--palm); background: var(--mint); padding: 2rem; }
.success h3 { color: var(--palm); font-size: 1.6rem; }
.success button { margin-top: 1.25rem; background: none; border: 0; padding: 0; font: inherit; font-family: var(--head); font-weight: 700; color: var(--rose); text-decoration: underline; cursor: pointer; }

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

/* Footer */
.site-foot { background: var(--date-deep); color: #E9DCCF; }
.foot-grid { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3rem; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.foot-logo { display: flex; gap: .75rem; align-items: center; }
.foot-logo img { width: 52px; height: 52px; }
.foot-logo p { font-family: var(--head); font-weight: 800; font-size: 1.3rem; line-height: 1.1; color: var(--white); }
.site-foot h2 { font-size: 1rem; color: var(--ochre); }
.site-foot ul { list-style: none; padding: 0; margin-top: .9rem; }
.site-foot li + li { margin-top: .5rem; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ochre); text-decoration: underline; }
.site-foot address { font-style: normal; margin-top: .9rem; }
.site-foot address p + p { margin-top: .5rem; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.socials a { border: 2px dashed rgba(233,220,207,.4); padding: .3rem .7rem; font-size: .9rem; }
.foot-base { border-top: 2px dashed rgba(233,220,207,.25); }
.foot-base p { padding-top: 1.2rem; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }

/* Back to top */
.up { position: fixed; right: 1.1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--rose); color: var(--white); border: 2px dashed var(--white); border-radius: 3px; cursor: pointer; box-shadow: 0 6px 16px rgba(62,36,22,.3); }
.up[hidden] { display: none; }
.up:hover { background: var(--palm); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .quilt svg { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
.reach a[href^="mailto"] { font-size: 1.05rem; word-break: break-all; }
