/* =========================================================
   AL Sadat Ghayas Dastarkhuwan Welfare Organization
   Single stylesheet — no external requests, no framework.
   ========================================================= */

:root {
  /* Palette — grounded in Pakistani kitchen colors */
  --karachi-green: #1e5f3f;
  --karachi-green-dark: #12432c;
  --karachi-green-light: #2d7a52;
  --haldi: #e8a537;
  --haldi-light: #f4c76d;
  --haldi-deep: #b3801f;
  --anaar: #a83232;
  --anaar-dark: #822525;
  --atta: #faf6ef;
  --atta-deep: #f0ead9;
  --ink: #1a1a1a;
  --ink-muted: #6b6459;
  --rule: #d9d0bd;
  --white: #ffffff;

  --font-display: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1160px;
  --gutter-x: clamp(1.25rem, 3vw, 2.5rem);
  --gutter-y: clamp(3rem, 6vw, 6rem);

  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.06);
  --shadow: 0 6px 22px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 14px 44px rgba(26, 26, 26, 0.14);

  --transition: 200ms ease;
}

/* --------- Reset --------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--atta);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: var(--karachi-green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--karachi-green-dark); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--haldi);
  outline-offset: 2px;
  border-radius: 3px;
}
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }
::selection { background: var(--haldi-light); color: var(--karachi-green-dark); }

/* --------- Typography --------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--karachi-green-dark);
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 700; color: var(--ink); }
p { max-width: 68ch; }
p + p { margin-top: 1rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--haldi-deep);
  margin-bottom: 0.75rem;
}
.lead { font-size: 1.125rem; color: var(--ink-muted); line-height: 1.55; }

/* --------- Layout --------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter-x);
}
.section { padding-block: var(--gutter-y); }
.section-tight { padding-block: clamp(2rem, 4vw, 4rem); }
.section-alt { background: var(--atta-deep); }
.section-dark { background: var(--karachi-green-dark); color: var(--atta); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--haldi-light); }
.section-dark p { color: rgba(250, 246, 239, 0.88); }

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.text-center { text-align: center; }
.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: 3rem; }
.section-head p { margin-inline: auto; }

/* --------- Header / Nav --------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.94);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.875rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--karachi-green-dark);
  text-decoration: none;
}
.logo:hover { text-decoration: none; color: var(--karachi-green-dark); }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--karachi-green);
  color: var(--haldi-light);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  /* Small haldi accent stroke */
  content: '';
  position: absolute;
  bottom: 6px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--haldi);
  border-radius: 2px;
}
.logo-text {
  font-family: var(--font-display);
  line-height: 1.05;
  font-size: 1rem;
  font-weight: 700;
  color: var(--karachi-green-dark);
}
.logo-text .logo-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  align-items: center;
  margin: 0;
}
.nav-list li { margin: 0; }
.nav-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  white-space: nowrap;
}
.nav-list a:hover { color: var(--karachi-green-dark); text-decoration: none; }
.nav-list a[aria-current="page"] { color: var(--karachi-green-dark); font-weight: 600; }
.nav-list a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--haldi);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--atta);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem var(--gutter-x) 1.5rem;
    gap: 0.5rem;
    transform: translateY(-120%);
    transition: transform 240ms ease;
    box-shadow: var(--shadow);
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list a {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--rule);
    display: block;
    font-size: 1rem;
  }
  .nav-list a[aria-current="page"]::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--karachi-green-dark); }
  .nav .btn { align-self: flex-start; margin-top: 0.75rem; }
}

/* --------- Buttons --------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  line-height: 1.2;
  font-family: inherit;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--anaar); color: var(--white); border-color: var(--anaar); }
.btn-primary:hover { background: var(--anaar-dark); border-color: var(--anaar-dark); transform: translateY(-1px); color: var(--white); }
.btn-secondary { background: var(--karachi-green); color: var(--white); border-color: var(--karachi-green); }
.btn-secondary:hover { background: var(--karachi-green-dark); border-color: var(--karachi-green-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--karachi-green-dark); border-color: var(--karachi-green); }
.btn-outline:hover { background: var(--karachi-green); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: var(--white); border-color: var(--ink-muted); }
.btn-lg { padding: 1.125rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }

.section-dark .btn-outline { color: var(--haldi-light); border-color: var(--haldi); }
.section-dark .btn-outline:hover { background: var(--haldi); color: var(--karachi-green-dark); }

/* --------- Hero --------- */
.hero {
  padding-block: clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(1200px 400px at 90% 0%, rgba(232, 165, 55, 0.15), transparent 60%),
    linear-gradient(180deg, var(--atta) 0%, var(--atta-deep) 100%);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  margin-bottom: 1.25rem;
}
.hero h1 .accent { color: var(--anaar); font-style: italic; }
.hero-lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--ink-muted);
  margin-bottom: 2rem;
  max-width: 44ch;
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 2rem;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
}
.hero-meta strong { color: var(--karachi-green-dark); font-weight: 600; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--karachi-green) 0%, var(--karachi-green-light) 60%, var(--haldi-deep) 100%);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  color: var(--atta);
}
.hero-visual::before {
  /* Woven dastarkhuwan pattern overlay */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.06) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.06) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  opacity: 0.7;
}
.hero-quote {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.4;
  font-style: italic;
  color: var(--atta);
  max-width: 30ch;
}
.hero-quote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--haldi-light);
  font-weight: 600;
}

/* --------- Signature dastarkhuwan divider --------- */
.pattern-divider {
  height: 14px;
  background-image:
    repeating-linear-gradient(
      90deg,
      var(--karachi-green) 0 22px,
      var(--haldi) 22px 32px,
      var(--karachi-green) 32px 54px,
      var(--anaar) 54px 60px
    );
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* --------- Impact / Stats --------- */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .impact-grid { grid-template-columns: 1fr; } }
.stat {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: left;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--karachi-green-dark);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-number .unit { font-size: 0.6em; color: var(--haldi-deep); margin-left: 0.15em; }
.stat-label {
  margin-top: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.stat::after {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  background: var(--haldi);
  border-radius: 0 0 3px 3px;
}

/* --------- Program cards --------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .programs-grid { grid-template-columns: 1fr; } }
.program {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.program:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--haldi); }
.program-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--atta-deep);
  color: var(--karachi-green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.program-icon svg { width: 28px; height: 28px; }
.program h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.program p { color: var(--ink-muted); font-size: 0.9375rem; margin-bottom: 1rem; }
.program-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--karachi-green-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.program-link::after { content: '→'; transition: transform var(--transition); }
.program:hover .program-link::after { transform: translateX(4px); }

/* --------- Story / Two-col --------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.image-block {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--karachi-green-light), var(--haldi));
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.image-block::after {
  content: attr(data-caption);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--atta);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  text-align: center;
  padding: 1.5rem;
  background: rgba(30, 95, 63, 0.35);
}

/* --------- CTA band --------- */
.cta-band {
  background: var(--karachi-green-dark);
  color: var(--atta);
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 165, 55, 0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-band .container { position: relative; }
.cta-band h2 { color: var(--haldi-light); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(250, 246, 239, 0.85); margin-inline: auto; max-width: 55ch; margin-bottom: 2rem; }

/* --------- Footer --------- */
.site-footer {
  background: var(--karachi-green-dark);
  color: rgba(250, 246, 239, 0.85);
  padding-block: 3.5rem 1.5rem;
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--haldi-light);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(250, 246, 239, 0.85); }
.site-footer a:hover { color: var(--haldi-light); text-decoration: underline; }
.site-footer .logo-text { color: var(--atta); }
.site-footer .logo-text .logo-sub { color: rgba(250, 246, 239, 0.6); }
.footer-about p { margin-top: 1rem; color: rgba(250, 246, 239, 0.75); max-width: 34ch; }
.footer-uan {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.625rem 1rem;
  border: 1px solid rgba(232, 165, 55, 0.4);
  border-radius: var(--radius-sm);
  color: var(--haldi-light);
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.footer-uan:hover { background: rgba(232, 165, 55, 0.1); color: var(--haldi-light); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(250, 246, 239, 0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(250, 246, 239, 0.6);
}
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.socials { display: flex; gap: 0.75rem; margin-top: 1rem; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(250, 246, 239, 0.2);
  border-radius: 50%;
  transition: background var(--transition), border-color var(--transition);
}
.socials a:hover { background: var(--haldi); border-color: var(--haldi); }
.socials a:hover svg { fill: var(--karachi-green-dark); }
.socials svg { width: 16px; height: 16px; fill: var(--atta); }

/* --------- Page banner (non-home hero) --------- */
.page-banner {
  background:
    radial-gradient(800px 300px at 20% 0%, rgba(232, 165, 55, 0.14), transparent 60%),
    linear-gradient(180deg, var(--atta) 0%, var(--atta-deep) 100%);
  padding-block: clamp(3rem, 6vw, 5rem);
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.page-banner h1 { max-width: 20ch; margin-inline: auto; margin-bottom: 0.75rem; }
.page-banner p { max-width: 55ch; margin-inline: auto; color: var(--ink-muted); font-size: 1.125rem; }

/* --------- Breadcrumbs --------- */
.breadcrumbs {
  padding-block: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--rule);
  background: var(--atta);
}
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: '/'; margin-right: 0.5rem; color: var(--rule); }
.breadcrumbs a { color: var(--ink-muted); }
.breadcrumbs a:hover { color: var(--karachi-green-dark); }
.breadcrumbs [aria-current="page"] { color: var(--karachi-green-dark); font-weight: 500; }

/* --------- Prose (article body) --------- */
.prose { max-width: 72ch; margin-inline: auto; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose p { margin-bottom: 1rem; max-width: none; }
.prose ul, .prose ol { margin-bottom: 1rem; }
.prose blockquote {
  border-left: 4px solid var(--haldi);
  padding: 0.75rem 1.25rem;
  background: var(--atta-deep);
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--karachi-green-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote p { max-width: none; }

/* --------- FAQ (details/summary) --------- */
.faq-list details {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-list details[open] { border-color: var(--haldi); }
.faq-list summary {
  padding: 1.125rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--karachi-green-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.4;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--haldi-deep);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list .faq-body {
  padding: 0 1.5rem 1.25rem;
  color: var(--ink-muted);
  line-height: 1.6;
}
.faq-list .faq-body p + p { margin-top: 0.75rem; }

/* --------- Forms --------- */
.form {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 1.25rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }
.form label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--karachi-green-dark);
  margin-bottom: 0.375rem;
}
.form label .req { color: var(--anaar); }
.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--atta);
  color: var(--ink);
  transition: border-color var(--transition), background var(--transition);
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--karachi-green);
  background: var(--white);
}
.form textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.8125rem; color: var(--ink-muted); margin-top: 0.375rem; }

/* --------- Info cards (contact/donate) --------- */
.info-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.info-card h3 { margin-bottom: 1rem; color: var(--karachi-green-dark); }
.info-card dl { margin: 0; }
.info-card dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--haldi-deep);
  font-weight: 700;
  margin-top: 1rem;
}
.info-card dt:first-child { margin-top: 0; }
.info-card dd {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  color: var(--ink);
  font-family: var(--font-mono);
  word-break: break-word;
}
.info-card .plain dd { font-family: var(--font-body); }

/* --------- Gallery --------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 800px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--karachi-green-light), var(--haldi));
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: var(--atta);
  font-size: 0.875rem;
  font-weight: 500;
  background: linear-gradient(180deg, transparent 40%, rgba(18, 67, 44, 0.7) 100%);
}

/* --------- Zakat calculator --------- */
.calc {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.calc-total {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--karachi-green-dark), var(--karachi-green));
  color: var(--atta);
  border-radius: var(--radius);
  text-align: center;
}
.calc-total .label {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--haldi-light);
  font-weight: 600;
}
.calc-total .amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--atta);
  margin-top: 0.375rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.calc-note { font-size: 0.8125rem; color: var(--ink-muted); margin-top: 1rem; text-align: center; }

/* --------- Utility --------- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--ink-muted); }
.hidden { display: none !important; }

/* --------- Reduced motion --------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* --------- Print --------- */
@media print {
  .site-header, .site-footer, .cta-band, .btn { display: none; }
  body { background: white; color: black; }
}
