/* ==================================================================
   pages/home.css — only used by index.html
   ================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  /* Photo sits under the green; if hero.jpg is missing, the green shows. */
  background:
    radial-gradient(ellipse at 80% 40%, rgba(219, 185, 79, 0.18), transparent 55%),
    linear-gradient(110deg, rgba(8, 40, 12, 0.97) 0%, rgba(12, 54, 17, 0.9) 55%, rgba(19, 74, 24, 0.7) 100%),
    url('../../images/hero.jpg') center / cover no-repeat,
    var(--green-900);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../../images/pattern.svg') center / 120px;
  opacity: 0.06;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 56px;
  padding-top: 80px;
  padding-bottom: 120px;
}

.hero__bismillah {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--gold-400);
  text-align: start;
}

.hero__title {
  margin-top: 10px;
  color: #fff;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.hero__title span {
  color: var(--gold-400);
}

.hero__tagline {
  margin-top: 14px;
  max-width: 460px;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.82);
}

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

.hero__dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero__dot {
  color: var(--gold-400);
  font-size: 0.7rem;
}

/* ---------- Next prayer (arch / mihrab shape) ---------- */
.next-prayer {
  justify-self: end;
  width: 100%;
  max-width: 380px;
  padding: 10px;
  border-radius: var(--radius-arch);
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.next-prayer__arch {
  padding: 56px 28px 28px;
  border-radius: var(--radius-arch);
  background:
    url('../../images/pattern.svg') center / 70px,
    linear-gradient(180deg, var(--green-800), var(--green-950));
  background-blend-mode: soft-light, normal;
  text-align: center;
}

.next-prayer__label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.next-prayer__arabic {
  margin-top: 14px;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--gold-400);
  direction: rtl;
}

.next-prayer__name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.1;
}

.next-prayer__countdown {
  margin-top: 18px;
  padding: 10px 0;
  border-top: 1px solid rgba(219, 185, 79, 0.3);
  border-bottom: 1px solid rgba(219, 185, 79, 0.3);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-variant-numeric: tabular-nums;
}

.next-prayer__times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 18px 0 0;
}

.next-prayer__times div + div {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.14);
}

.next-prayer__times dt {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.next-prayer__times dd {
  margin: 2px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

/* Today's prayers lift up over the hero's bottom edge */
.section--overlap {
  position: relative;
  z-index: 2;
  margin-top: -64px;
  padding-top: 0;
}

.section--overlap .section__head {
  padding: 22px 26px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ---------- Ayah ---------- */
.ayah {
  padding: 72px 0;
  text-align: center;
  background:
    url('../../images/pattern-dark.svg') center / 110px,
    var(--bg);
}

.ayah__arabic {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.9;
  color: var(--green-800);
}

.ayah__translation {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-style: italic;
  color: var(--ink-soft);
}

.ayah__ref {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-600);
}

/* ---------- News + events ---------- */
.news-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}

.news-layout__title {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

/* ---------- Visit ---------- */
.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.visit__address {
  margin-top: 16px;
  font-size: 1.25rem;
  font-weight: 700;
}

.visit__note {
  margin: 10px 0 24px;
  color: var(--muted);
  max-width: 440px;
}

.visit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.visit .map-frame {
  max-width: 480px;
  justify-self: end;
  width: 100%;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 52px;
    padding-bottom: 96px;
  }

  .next-prayer {
    justify-self: center;
  }

  .news-layout,
  .visit {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .visit .map-frame {
    justify-self: stretch;
    max-width: none;
  }

  .map-frame--arch {
    aspect-ratio: 4 / 3;
    border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  }
}
