:root {
  --color-red-950: #3d0505;
  --color-red-900: #5f0808;
  --color-red-800: #8f1010;
  --color-red-700: #aa1818;
  --color-white: #ffffff;
  --color-cream: #fbf8f5;
  --color-ink: #201716;
  --color-muted: #6e5c58;
  --color-line: #eadeda;
  --color-gold: #d6aa4a;
  --color-green: #15803d;
  --shadow-soft: 0 24px 70px rgba(61, 5, 5, 0.14);
  --radius: 8px;
  --container: 1120px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(234, 222, 218, 0.9);
  backdrop-filter: blur(18px);
}

.navbar {
  min-height: var(--header-height);
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--color-red-900);
}

.brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-line);
}

.brand__name {
  max-width: 160px;
  line-height: 1.2;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-red-900);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  position: fixed;
  inset: var(--header-height) 0 auto 0;
  min-height: calc(100vh - var(--header-height));
  margin: 0;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  background: var(--color-white);
  border-top: 1px solid var(--color-line);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.nav-links.is-open {
  transform: translateX(0);
}

.nav-links a {
  display: block;
  padding: 14px 0;
  font-weight: 700;
  color: var(--color-red-900);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--color-white);
}

.hero__image,
.hero picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(61, 5, 5, 0.86), rgba(61, 5, 5, 0.44) 55%, rgba(61, 5, 5, 0.14)),
    radial-gradient(circle at 20% 10%, rgba(214, 170, 74, 0.22), transparent 34%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 96px 72px;
}

.hero h1 {
  max-width: 980px;
  margin: 8px 0 16px;
  font-size: clamp(2rem, 5.6vw, 4.1rem);
  line-height: 1.08;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
}

.hero__reference {
  display: block;
  max-width: 980px !important;
  margin-bottom: 18px !important;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
  text-align: right;
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-align: center;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--color-red-800);
  color: var(--color-white);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--color-red-700);
}

.button--light {
  background: var(--color-white);
  color: var(--color-red-900);
}

.button--outline {
  border-color: var(--color-red-800);
  color: var(--color-red-900);
}

.button--whatsapp {
  background: var(--color-green);
  color: var(--color-white);
}

.section {
  padding-block: 76px;
}

.section--muted {
  background:
    linear-gradient(135deg, rgba(143, 16, 16, 0.04), transparent 36%),
    var(--color-cream);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--color-gold);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 12px;
  color: var(--color-red-950);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.06;
}

.section-heading p:not(.eyebrow),
.supporting-text,
.document-card p {
  color: var(--color-muted);
}

.donation {
  background:
    linear-gradient(135deg, rgba(95, 8, 8, 0.08), transparent 40%),
    linear-gradient(45deg, transparent 48%, rgba(214, 170, 74, 0.14) 49%, rgba(214, 170, 74, 0.14) 51%, transparent 52%),
    var(--color-cream);
}

.donation-card {
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.donation-card__stats,
.donation-card__footer {
  display: grid;
  gap: 18px;
}

.donation-card__stats {
  margin-bottom: 28px;
}

.donation-card__stats span,
.donation-card__footer p {
  display: block;
  margin: 0;
  color: var(--color-muted);
  font-weight: 700;
}

.donation-card__stats strong {
  display: block;
  color: var(--color-red-900);
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1;
}

.progress {
  height: 34px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0e5e2;
}

.progress__bar {
  width: 0%;
  height: 100%;
  min-width: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-red-900), var(--color-red-700));
  color: var(--color-white);
  font-weight: 900;
  transition: width 1200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.donation-card__footer {
  margin-top: 18px;
}

.donation-card__footer strong,
.percentageText {
  color: var(--color-red-900);
}

.image-button {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  overflow: hidden;
}

.image-button img {
  width: 100%;
  border-radius: var(--radius);
}

.image-button--poster {
  max-width: 520px;
  margin-inline: auto;
}

.banner {
  padding-block: 24px 76px;
}

.banner img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.poster-layout,
.location-layout {
  display: grid;
  gap: 32px;
  align-items: center;
}

.bank-account {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-cream);
}

.bank-account span {
  color: var(--color-red-950);
  font-weight: 900;
}

.bank-account strong {
  color: var(--color-red-800);
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.qr-button {
  margin-top: 14px;
}

.document-card {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.project-details {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.project-details div {
  padding-top: 12px;
  border-top: 1px solid var(--color-line);
}

.project-details dt {
  color: var(--color-red-900);
  font-weight: 900;
}

.project-details dd {
  margin: 2px 0 0;
  color: var(--color-muted);
}

.contact {
  padding-block: 86px;
  color: var(--color-white);
  background:
    linear-gradient(135deg, rgba(214, 170, 74, 0.16), transparent 34%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.04) 75%, transparent 75%),
    var(--color-red-950);
  background-size: auto, 42px 42px, auto;
}

.contact__inner {
  text-align: center;
}

.bottom-hadith {
  max-width: 900px;
  margin: 0 auto 52px;
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.bottom-hadith blockquote {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(1.2rem, 3.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.45;
}

.bottom-hadith figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.contact h2 {
  color: var(--color-white);
}

.contact__text {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.site-footer {
  padding-block: 24px;
  background: var(--color-red-950);
  color: rgba(255, 255, 255, 0.84);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__inner,
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer__contact {
  font-weight: 800;
}

.site-footer__links a {
  font-weight: 800;
}

.section-fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.section-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 2, 2, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__image {
  max-width: min(100%, 1120px);
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 700px) {
  .donation-card__stats,
  .donation-card__footer,
  .document-card,
  .location-layout {
    grid-template-columns: 1fr 1fr;
  }

  .donation-card__footer {
    align-items: center;
  }

  .donation-card__footer p:last-child,
  .document-card .button {
    justify-self: end;
  }

  .site-footer__inner,
  .site-footer__links {
    flex-direction: row;
    align-items: center;
  }

  .site-footer__inner {
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    min-height: auto;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    border: 0;
    background: transparent;
    transform: none;
  }

  .nav-links a {
    padding: 8px 0;
    font-size: 0.95rem;
  }

  .poster-layout {
    grid-template-columns: 0.85fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
