/* Masjid Hearts: home styles (ported from the Astro build) */
.net {
  width: 100%;
  height: auto;
  overflow: visible;
}

.thread {
  fill: none;
  stroke: #cfb083;
  stroke-width: 1.4px;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  opacity: .75;
}

.giver circle {
  fill: #cfb0831f;
  stroke: #cfb083;
  stroke-width: 1.4px;
}

.giver path {
  fill: #cfb083;
}

.node {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] .thread {
    stroke-dashoffset: 1px;
    transition: stroke-dashoffset 1.1s cubic-bezier(.5, 0, .2, 1);
    transition-delay: calc(.35s + var(--i) * .12s);
  }

  .js [data-reveal] .node {
    opacity: 0;
    transform: translateY(10px) scale(.8);
    transition: opacity .6s, transform .6s cubic-bezier(.22, .8, .26, 1);
    transition-delay: calc(1.15s + var(--i) * .12s);
  }

  .js [data-reveal].in .thread {
    stroke-dashoffset: 0;
  }

  .js [data-reveal].in .node {
    opacity: 1;
    transform: none;
  }
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.contact h2 {
  margin: 14px 0 20px;
  color: var(--green);
}

.who {
  margin-top: 36px;
  display: grid;
}

.who li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.who svg {
  width: 18px;
  margin-top: 5px;
  color: var(--gold);
}

.who strong {
  display: block;
  font-weight: 650;
}

.who span {
  color: var(--ink-soft);
  font-size: .99rem;
}

.direct {
  margin-top: 24px;
}

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 3.4vw, 44px);
  display: grid;
  gap: 20px;
  box-shadow: 0 40px 80px -60px #00483d80;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 650;
  font-size: .95rem;
}

input, select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1.5px solid #00483d8c;
  border-radius: 12px;
  background: var(--white);
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2300483D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-inline-end: 44px;
  text-overflow: ellipsis;
}

[dir="rtl"] select {
  background-position: 14px;
}

input:hover, select:hover, textarea:hover {
  border-color: var(--green);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px #cfb08373;
}

*[aria-invalid="true"] {
  border-color: #a4332b;
  border-width: 2px;
}

.form .btn {
  justify-self: start;
}

.status {
  min-height: 1.5em;
  font-size: .96rem;
  font-weight: 550;
  color: var(--ink-soft);
  margin-top: -6px;
}

.status[data-kind="ok"] {
  color: var(--green);
}

.status[data-kind="error"] {
  color: #a4332b;
}

@media (width <= 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form .btn {
    width: 100%;
  }
}
.hero {
  position: relative;
  padding: clamp(120px, 15vw, 176px) 0 0;
  background: radial-gradient(120% 90% at 78% 30%, #0a5e50 0%, var(--green) 42%, var(--green-deep) 100%);
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23CFB083' stroke-width='1'%3E%3Crect x='21' y='21' width='58' height='58'/%3E%3Crect x='21' y='21' width='58' height='58' transform='rotate(45 50 50)'/%3E%3Cpath d='M0 50h9M91 50h9M50 0v9M50 91v9'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: linear-gradient(100deg, #0000 5%, #000 70%);
  -webkit-mask-image: linear-gradient(100deg, #0000 5%, #000 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}

.hero-copy > * + * {
  margin-top: 26px;
}

.hero-copy .lede {
  max-width: 50ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-art {
  position: relative;
  max-width: 480px;
  width: 100%;
  justify-self: center;
}

.halo {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, #cfb08338, #0000 70%);
}

.hero-art .dome {
  position: relative;
  filter: drop-shadow(0 24px 40px #00141059);
}

.hero-facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line-light);
}

.hero-facts li {
  padding-block: 26px 34px;
  padding-inline: 0 28px;
}

.hero-facts li + li {
  padding-inline-start: 28px;
  border-inline-start: 1px solid var(--line-light);
}

.hero-facts strong {
  display: block;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.25rem;
  color: var(--gold-soft);
}

.hero-facts span {
  display: block;
  margin-top: 4px;
  color: #ffffffbd;
  font-size: .98rem;
}

@media (width <= 860px) {
  .hero {
    padding-top: 104px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-art {
    order: -1;
    max-width: min(52vw, 230px);
    justify-self: start;
    margin-block: 0 12px;
    margin-inline: -4px 0;
  }

  .halo {
    inset: -30%;
  }

  .hero-copy > * + * {
    margin-top: 20px;
  }

  .hero-cta {
    margin-top: 28px;
  }

  .hero-cta .btn {
    flex: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    margin-top: 44px;
  }

  .hero-facts li, .hero-facts li + li {
    padding: 18px 0;
    border-inline-start: 0;
  }

  .hero-facts li + li {
    border-top: 1px solid var(--line-light);
  }

  .hero-facts li:last-child {
    padding-bottom: 30px;
  }
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.sec-head h2 {
  margin-top: 14px;
  max-width: 18ch;
}

.lead {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding-bottom: clamp(36px, 5vw, 60px);
  margin-bottom: clamp(36px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
}

.lead .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.lead .meta .cat {
  color: var(--gold-ink);
}

.lead .meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
}

.lead h3 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin-top: 16px;
}

.lead h3 span {
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat;
  transition: background-size .5s var(--ease);
}

.lead:hover h3 span {
  background-size: 100% 2px;
}

.lead p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 46ch;
}

.lead .link {
  margin-top: 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

@media (width <= 860px) {
  .lead {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (width >= 600px) and (width <= 860px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.mission-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(28px, 6vw, 88px);
  align-items: end;
}

.statement {
  font-size: clamp(1.9rem, 4.2vw, 3.3rem);
  line-height: 1.12;
  margin-top: 18px;
  color: var(--green);
}

.mission-copy p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.mission-copy p + p {
  margin-top: 16px;
}

.work {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
}

.work li {
  padding-block: 30px 0;
  padding-inline: 0 24px;
}

.work li + li {
  padding-inline-start: 24px;
  border-inline-start: 1px solid var(--line);
}

.work-heart {
  display: block;
  width: 20px;
  color: var(--gold);
  margin-bottom: 18px;
}

.work h3 {
  font-size: 1.7rem;
  color: var(--green);
}

.work p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: .99rem;
}

@media (width <= 860px) {
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .work {
    grid-template-columns: 1fr 1fr;
  }

  .work li, .work li + li {
    padding-block: 24px;
    padding-inline: 0 16px;
    border-inline-start: 0;
  }

  .work li:nth-child(2n) {
    padding-inline-start: 18px;
    border-inline-start: 1px solid var(--line);
  }

  .work li:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }
}

.how {
  position: relative;
  overflow: hidden;
  background: var(--green);
}

.how-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.how-copy h2 {
  margin: 14px 0 20px;
}

.steps {
  margin-top: 36px;
  display: grid;
  gap: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line-light);
}

.steps .n {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.15rem;
}

.steps h3 {
  font-size: 1.1rem;
  font-weight: 650;
}

.steps p {
  margin-top: 4px;
  color: #ffffffbd;
  font-size: .99rem;
}

@media (width <= 900px) {
  .how-grid {
    grid-template-columns: 1fr;
  }

  .how-art {
    order: -1;
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }
}

.why {
  position: relative;
  isolation: isolate;
  color: var(--white);
  min-height: min(86vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.why .why-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.why-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(#00231e40 0%, #00231e8c 45%, #00231ef0 100%);
}

.why-inner {
  padding-block: clamp(64px, 10vw, 120px);
}

.why blockquote {
  font-size: clamp(1.9rem, 4.6vw, 3.7rem);
  line-height: 1.1;
  max-width: 20ch;
  font-weight: 600;
}

.why figcaption {
  margin-top: 28px;
  font-weight: 650;
  color: var(--gold-soft);
}

.why figcaption span {
  display: block;
  font-weight: 500;
  font-size: .92rem;
  color: #ffffffb8;
  margin-top: 2px;
}

.give-head {
  max-width: 760px;
}

.give-head h2 {
  margin: 14px 0 20px;
}

.levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(36px, 5vw, 60px);
  align-items: stretch;
}

.level {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s, opacity .7s var(--ease);
}

.level:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -30px #00483d73;
  border-color: #00483d4d;
}

.level.mid {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.level.mid *:focus-visible {
  outline-color: var(--gold-soft);
}

.hearts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 44px;
  align-content: flex-start;
  color: var(--gold);
}

.hearts svg {
  width: 17px;
  height: 17px;
}

.amount {
  margin-top: 18px;
  color: var(--ink-soft);
  font-weight: 550;
}

.amount .display {
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  color: var(--green);
  margin-inline-end: 4px;
}

.mid .amount {
  color: #ffffffc2;
}

.mid .amount .display {
  color: var(--gold-soft);
}

.level h3 {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 650;
}

.level .line {
  margin-top: 8px;
  color: var(--ink-soft);
  flex: 1;
}

.mid .line {
  color: #ffffffc7;
}

.level .btn {
  margin-top: 28px;
  width: 100%;
}

.fine {
  margin-top: 26px;
  font-size: .93rem;
  color: var(--ink-soft);
  max-width: 70ch;
}

@media (width <= 900px) {
  .levels {
    grid-template-columns: 1fr;
  }

  .hearts {
    min-height: 0;
  }
}

[dir="rtl"] .lead h3 span {
  background-position: 100% 100%;
}

[lang="ar"] .hero-facts strong {
  font-size: 1.4rem;
}

[lang="ar"] .statement {
  line-height: 1.45;
}

[lang="ar"] .work h3 {
  font-size: 2rem;
}

[lang="ar"] .steps .n, [lang="ar"] .amount .display {
  font-family: Playfair Display Variable, Georgia, serif;
}

[lang="ar"] .steps h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

[lang="ar"] .why blockquote {
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1.7;
  max-width: 24ch;
  font-weight: 700;
}

[lang="ar"] .why figcaption span {
  font-size: .95rem;
  line-height: 1.7;
}

[lang="ar"] .level h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

[lang="ar"] .amount {
  font-size: 1.05rem;
}
