/*
 * Masjid Baiturrahim Jakasetia — stylesheet.
 * Palette taken from the building itself: genteng (roof tile) red-brown, the cream walls, the
 * teal of the prayer-hall carpet and window glass, the black marble of the mihrab.
 * unslop-ignore: cream + serif here is the client-requested masjid.musolutionlab.com direction,
 * and the cream is the wall colour of the mosque.
 */
:root {
  --marble: #1c1915;
  --wall: #f4eedd;
  --wall-2: #ebe2c9;
  --wall-3: #ddd0ae;
  --teal: #1f6e73;
  --teal-deep: #10464a;
  --teal-soft: #9fd0cc;
  --tile: #9a4630;
  --ink: #23221e;
  --ink-soft: #5d5a50;
  --white: #ffffff;

  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;

  --t-xl: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem);
  --t-2xl: clamp(2.1rem, 1.3rem + 2.8vw, 3rem);
  --t-slide: clamp(2.4rem, 1.2rem + 4.6vw, 5rem);

  --radius: 12px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-size: 106.25%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--teal-deep);
  text-wrap: balance;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
  max-width: 66ch;
}

:focus-visible {
  outline: 2px solid var(--tile);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--teal-deep);
  border-radius: 10px;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(64px, 8vw, 108px);
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 0.9rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn--teal {
  background: var(--teal);
  color: var(--white);
}
.btn--teal:hover {
  background: var(--teal-deep);
}
.btn--outline {
  border-color: var(--wall-3);
  background: var(--white);
  color: var(--teal-deep);
}
.btn--outline:hover {
  border-color: var(--tile);
}
.btn--light {
  background: var(--wall);
  color: var(--teal-deep);
}
.btn--light:hover {
  background: var(--white);
}

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.nav__bar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 12px;
  margin-right: auto;
  color: var(--white);
  text-decoration: none;
  line-height: 1.15;
}
/* The mark spans both text lines; white over the hero, genteng red once the bar turns cream. */
.brand__mark {
  grid-row: span 2;
  width: auto;
  height: 34px;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}
.brand__place {
  font-size: 0.74rem;
  opacity: 0.75;
}
.nav__links {
  display: flex;
  gap: 26px;
}
.nav__links a {
  color: rgb(255 255 255 / 0.86);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.nav__links a:hover,
.nav__links a[aria-current] {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--teal-soft);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.nav__cta {
  min-height: 42px;
  padding: 9px 18px;
}
.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 0.4);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.nav.is-solid {
  background: rgb(244 238 221 / 0.96);
  border-bottom-color: var(--wall-3);
}
.nav.is-solid .brand {
  color: var(--teal-deep);
}
.nav.is-solid .brand__mark {
  color: var(--tile);
}
.nav.is-solid .nav__links a {
  color: var(--ink-soft);
}
.nav.is-solid .nav__links a:hover,
.nav.is-solid .nav__links a[aria-current] {
  color: var(--teal-deep);
  text-decoration-color: var(--tile);
}
.nav.is-solid .nav__cta {
  background: var(--teal);
  color: var(--white);
}
.nav.is-solid .nav__toggle {
  border-color: var(--wall-3);
  color: var(--teal-deep);
}
.sheet {
  border-top: 1px solid var(--wall-3);
  background: var(--wall);
}
.sheet nav {
  display: grid;
  padding: 6px 24px 18px;
}
.sheet a {
  padding: 13px 0;
  border-bottom: 1px solid var(--wall-2);
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: none;
}

/* ------------------------------------------------------------------ hero slider */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  background: var(--marble);
  overflow: hidden;
}
.slides {
  position: absolute;
  inset: 0;
}
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.1s ease, visibility 0s;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide.is-active img {
  animation: drift 9s ease-out both;
}
@keyframes drift {
  from {
    transform: scale(1.06);
  }
}
/* Top scrim for the menu, bottom fade for caption and prayer rail. */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgb(28 25 21 / 0.7), transparent 160px),
    linear-gradient(to top, var(--marble) 4%, rgb(28 25 21 / 0.72) 34%, rgb(28 25 21 / 0.1) 68%);
}

/* Caption on the photo, as on the MRBJ slider: one title, then what happens there. */
.slide__caption {
  position: absolute;
  inset: auto 0 calc(var(--rail, 132px) + 76px);
  z-index: 1;
  padding-inline: 24px;
  text-align: center;
}
.slide__title {
  margin: 0 auto;
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: var(--t-slide);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgb(0 0 0 / 0.35);
}
.slide__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.88);
}
.slide__items li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin: 0 14px;
  vertical-align: -0.12em;
  background: rgb(255 255 255 / 0.5);
}
.slide.is-active .slide__title,
.slide.is-active .slide__items {
  animation: caption-in 0.9s var(--ease) both;
}
.slide.is-active .slide__items {
  animation-delay: 0.15s;
}
@keyframes caption-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.slider-ui {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.slider-ui__dots {
  display: flex;
  gap: 8px;
}
.slider-ui__dots button {
  width: 46px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
/* Each dot is a bar that fills while its photo is on screen. */
.slider-ui__dots span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.3);
  overflow: hidden;
}
.slider-ui__dots span::after {
  content: "";
  display: block;
  height: 100%;
  width: 0;
  background: var(--white);
}
.slider-ui__dots [aria-selected="true"] span::after {
  width: 100%;
  animation: fill var(--slide-ms, 7000ms) linear both;
}
.slider-ui.is-paused [aria-selected="true"] span::after {
  animation: none;
  width: 100%;
}
@keyframes fill {
  from {
    width: 0;
  }
}
.slider-ui__buttons {
  display: flex;
  gap: 8px;
}
.round {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.35);
  background: rgb(28 25 21 / 0.35);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s;
}
.round:hover {
  background: rgb(255 255 255 / 0.16);
}

/* Prayer rail */
.prayer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(28 25 21 / 0.82);
}
.prayer__inner {
  display: flex;
  align-items: stretch;
  gap: 24px;
}
.prayer__list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.prayer__list li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 16px 6px 18px;
  text-align: center;
}
.prayer__list li > span {
  color: rgb(255 255 255 / 0.62);
  font-size: 0.74rem;
  font-weight: 600;
}
.prayer__list time {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.prayer__list li.is-sun time {
  color: rgb(255 255 255 / 0.6);
}
.prayer__list li.is-next {
  background: rgb(159 208 204 / 0.12);
}
.prayer__list li.is-next::before {
  content: "";
  position: absolute;
  inset: -1px 20% auto;
  height: 2px;
  background: var(--teal-soft);
}
.prayer__list li.is-next > span,
.prayer__list li.is-next time {
  color: var(--teal-soft);
}
.prayer__next {
  display: grid;
  align-content: center;
  min-width: 200px;
  padding: 10px 0 10px 24px;
  border-left: 1px solid rgb(255 255 255 / 0.14);
}
.prayer__next > span {
  color: rgb(255 255 255 / 0.65);
  font-size: 0.78rem;
}
.prayer__next strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ kajian */
.kajian {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 80px);
}
.kajian__intro h2 {
  margin-bottom: 18px;
}
.kajian__intro > p {
  color: var(--ink-soft);
}
.agenda {
  margin: 28px 0;
}
.agenda div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--wall-3);
}
.agenda div:last-child {
  border-bottom: 1px solid var(--wall-3);
}
.agenda dt {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--tile);
}
.agenda dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}
.agenda strong {
  display: block;
  color: var(--ink);
}
.kajian__contact {
  font-size: 0.93rem;
}
.kajian__contact a {
  font-weight: 700;
}
.kajian__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.videos__title {
  margin-bottom: 18px;
}
.videos__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.videos__list button,
.videos__list iframe {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--marble);
  cursor: pointer;
}
.videos__list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}
.videos__list button:hover img {
  opacity: 0.85;
}
.play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--tile);
}
.videos__name {
  margin: 12px 0 2px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.videos__meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

/* ------------------------------------------------------------------ poster kajian */
/* Posters are shown whole (never cropped: their text is the content). Ten fit two rows of five
 * on desktop; on phones they become a sideways swipe strip. */
.posters {
  padding-top: 0;
}
.posters__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
}
.posters__head h2 {
  margin: 0;
}
.posters__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px 20px;
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}
.posters__list a {
  position: relative;
  display: block;
  border-radius: var(--radius);
}
.posters__list img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--wall-3), 0 12px 24px -14px rgb(60 44 20 / 0.45);
  transition: transform 0.3s var(--ease);
}
.posters__list a:hover img {
  transform: translateY(-3px);
}
.posters__soon {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tile);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}
.posters__date {
  margin: 14px 0 2px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
}
.posters__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.3;
}
.posters__speaker {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.4;
}
@media (prefers-reduced-motion: reduce) {
  .posters__list img {
    transition: none;
  }
}

/* ------------------------------------------------------------------ fasilitas */
/* The photo sits in a mihrab arch with the Google rating pressed onto it like a seal; reviews
 * read on black marble, the stone of the mihrab wall. Bullets are the eight-point star. */
.fasilitas {
  background: var(--wall-2);
  border-block: 1px solid var(--wall-3);
}
.fasilitas__top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.fasilitas h2 {
  max-width: 12ch;
  margin-bottom: clamp(26px, 3vw, 40px);
  font-size: clamp(2.3rem, 1.4rem + 3.2vw, 3.6rem);
}
.amenities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.amenities li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-top: 1px solid var(--wall-3);
  line-height: 1.45;
}
.amenities li::before,
.amenities li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: calc(14px + 0.72em - 5px);
  width: 10px;
  height: 10px;
  background: var(--teal);
}
.amenities li::after {
  transform: rotate(45deg);
}
.mihrab {
  position: relative;
  margin: 0;
}
.mihrab img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 999px 999px var(--radius) var(--radius);
  outline: 1px solid var(--wall-3);
  outline-offset: 8px;
}
.seal {
  position: absolute;
  left: -34px;
  bottom: 28px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  width: 128px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tile);
  box-shadow: 0 0 0 5px var(--wall-2), 0 10px 24px rgb(80 36 22 / 0.28);
  color: rgb(255 255 255 / 0.85);
  font-size: 0.68rem;
  line-height: 1.25;
  text-align: center;
  transform: rotate(-8deg);
}
.seal strong {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 500;
  line-height: 1;
  color: var(--white);
}
.seal__stars {
  display: flex;
  gap: 1px;
  margin-bottom: 3px;
  color: #f1cf8a;
}
.voices {
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius);
  background: var(--marble);
  color: rgb(255 255 255 / 0.86);
}
/* Google Maps vocabulary: score + stars + count on top, then one entry per reviewer. */
.voices__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
}
.voices__score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  max-width: none;
  margin: 0;
  color: rgb(255 255 255 / 0.62);
  font-size: 0.88rem;
}
.voices__score strong {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--white);
}
.voices__all {
  padding: 9px 18px;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 999px;
  color: var(--teal-soft);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.voices__all:hover {
  border-color: var(--teal-soft);
}
.voices__all:focus-visible {
  outline: 2px solid var(--teal-soft);
  outline-offset: 3px;
}
.stars {
  display: inline-flex;
  gap: 1px;
  fill: #fbbc04;
}
.stars .is-off {
  fill: rgb(255 255 255 / 0.22);
}
.voices__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.review {
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.04);
}
.review__who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review__who strong {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
}
.review__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
}
.review:nth-child(3n + 2) .review__avatar {
  background: var(--tile);
}
.review:nth-child(3n) .review__avatar {
  background: #7a6a2e;
}
.review__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: none;
  margin: 14px 0 8px;
  color: rgb(255 255 255 / 0.55);
  font-size: 0.8rem;
}
.review__text {
  max-width: none;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ------------------------------------------------------------------ akad */
.akad {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.akad__head h2 {
  margin-bottom: 16px;
}
.akad__head p {
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.akad__photos {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.akad__photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.akad__a {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
}
.akad__b {
  aspect-ratio: 4 / 3;
}
.akad__c {
  aspect-ratio: 4 / 3;
}

/* ------------------------------------------------------------------ tk */
.tk {
  background: var(--teal-deep);
  color: rgb(255 255 255 / 0.85);
}
.tk__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto;
  gap: 24px 48px;
  align-items: center;
  padding-block: 56px;
}
.tk h2 {
  color: var(--white);
  font-size: var(--t-xl);
}
.tk p {
  margin: 0;
}

/* ------------------------------------------------------------------ galeri */
.galeri h2 {
  margin-bottom: 28px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery img:first-child {
  grid-row: span 2;
  grid-column: span 2;
}

/* ------------------------------------------------------------------ lokasi */
.lokasi {
  padding-top: 0;
}
.lokasi__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
}
.lokasi h2 {
  margin-bottom: 22px;
}
address {
  display: grid;
  gap: 14px;
  font-style: normal;
}
address p {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
}
address svg {
  margin-top: 3px;
  color: var(--teal);
}
address a {
  color: var(--ink);
  font-weight: 600;
}
.social {
  display: flex;
  gap: 10px;
  margin: 24px 0;
}
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--wall-3);
  background: var(--white);
  color: var(--teal-deep);
}
/* ------------------------------------------------------------------ footer */
.footer {
  background: var(--marble);
  color: rgb(255 255 255 / 0.7);
  padding-block: 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 40px;
  align-items: center;
}
.footer__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
}
.footer nav a {
  color: rgb(255 255 255 / 0.75);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer nav a:hover {
  color: var(--white);
}
.footer__legal {
  grid-column: 1 / -1;
  margin: 0;
  max-width: none;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.8rem;
  color: rgb(255 255 255 / 0.5);
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: grid;
  }
  .kajian,
  .akad,
  .lokasi__grid,
  .tk__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .fasilitas__top {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
  .posters__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .amenities {
    grid-template-columns: minmax(0, 1fr);
  }
  .prayer__inner {
    flex-direction: column;
    gap: 0;
  }
  .prayer__next {
    order: -1;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0 6px;
    border-left: 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.14);
  }
  .prayer__next strong {
    font-size: 1.4rem;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding-inline: 18px;
  }
  .nav__cta {
    display: none;
  }
  /* Brand stays on one line next to the menu button on 360px phones. */
  .brand {
    column-gap: 9px;
  }
  .brand__mark {
    height: 26px;
  }
  .brand__name {
    font-size: 1.12rem;
    white-space: nowrap;
  }
  /* Seven times on two full rows: four across, then three wider ones, no empty slot. */
  .prayer__list {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .prayer__list li {
    grid-column: span 3;
    padding: 10px 4px 12px;
  }
  .prayer__list li:nth-child(n + 5) {
    grid-column: span 4;
  }
  .prayer__list time {
    font-size: 1.2rem;
  }

  /* Hero on phones: caption reads from the left edge above the photo's busy middle,
     on a deeper scrim; slides change by swipe or the story bars, no arrow buttons. */
  /* Scrim stops follow the caption (which sits on --rail), not the screen height,
     so the text keeps its dark backing on short and tall phones alike. */
  .slide::after {
    --cap: calc(var(--rail, 220px) + 34px);
    background:
      linear-gradient(to bottom, rgb(28 25 21 / 0.7), transparent 140px),
      linear-gradient(
        to top,
        var(--marble) 0,
        rgb(28 25 21 / 0.93) var(--cap),
        rgb(28 25 21 / 0.9) calc(var(--cap) + 190px),
        rgb(28 25 21 / 0.3) calc(var(--cap) + 290px),
        transparent calc(var(--cap) + 380px)
      );
  }
  .prayer__next [data-hijri] {
    white-space: nowrap;
  }
  .slide__caption {
    bottom: calc(var(--rail, 220px) + 34px);
    padding-inline: 18px;
    text-align: left;
  }
  .slide__title {
    max-width: 14ch;
    margin: 0;
    font-size: clamp(2.1rem, 1.2rem + 4.4vw, 2.6rem);
    line-height: 1.04;
  }
  /* Stacked on phones: a wrapped row would otherwise start with a separator. */
  .slide__items {
    flex-direction: column;
    gap: 0;
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgb(255 255 255 / 0.8);
  }
  .slide__items li + li::before {
    content: none;
  }
  .slider-ui {
    gap: 14px;
    margin-bottom: 16px;
  }
  .slider-ui__dots {
    flex: 1;
    gap: 6px;
  }
  .slider-ui__dots button {
    flex: 1;
    width: auto;
    height: 32px;
  }
  .slider-ui [data-prev],
  .slider-ui [data-next] {
    display: none;
  }
  /* Pause stays (auto-advancing photos must be stoppable), but small and quiet. */
  .slider-ui [data-pause] {
    width: 36px;
    height: 36px;
    border-color: rgb(255 255 255 / 0.25);
    background: transparent;
  }
  .videos__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .fasilitas__top {
    grid-template-columns: minmax(0, 1fr);
  }
  .posters__list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 64%;
    gap: 14px;
    margin-inline: -18px;
    padding: 0 18px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 18px;
    scrollbar-width: none;
  }
  .posters__list::-webkit-scrollbar {
    display: none;
  }
  .posters__list li {
    scroll-snap-align: start;
  }
  .mihrab {
    width: min(78%, 300px);
    margin: 8px auto 0;
  }
  .seal {
    left: -40px;
    width: 108px;
  }
  .seal strong {
    font-size: 1.9rem;
  }
  /* Reviews swipe sideways on phones instead of stacking into a long column; the marble band
   * closes the section, so no cream strip under it. */
  .fasilitas {
    padding-bottom: 0;
  }
  .voices {
    margin-inline: -18px;
    padding: 28px 0;
    border-radius: 0;
  }
  .voices__head {
    padding-inline: 18px;
  }
  .voices__list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 12px;
    padding-inline: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 18px;
    scrollbar-width: none;
  }
  .voices__list::-webkit-scrollbar {
    display: none;
  }
  .review {
    scroll-snap-align: start;
  }
  .akad__photos {
    grid-template-columns: 1fr 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
  }
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer nav {
    justify-content: flex-start;
  }
}

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