/* Center Construction & Renovations (construction-renovations/). Content comes from data/renovations.js. */
.reno-hero { padding-bottom: 28px; }

/* In progress / Completed: two sections of photos, newest first, caption and date under each (data/renovation-photos.js) */
.reno-section + .reno-section { padding-top: 0; }
.reno-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.reno-section-head .section-title { display: inline-flex; align-items: center; gap: 14px; margin: 0; }
.reno-section-head p { margin: 0; font-size: 16px; color: var(--muted); max-width: 46ch; }
.reno-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--green); box-shadow: 0 0 0 5px var(--paper-2); }
.reno-dot[data-status="in-progress"] { background: var(--gold); }
.reno-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; }
.reno-grid:empty { display: none; }
.reno-grid li { min-width: 0; display: flex; }
.reno-grid .reno-photo { flex: none; aspect-ratio: 4 / 3; }
.reno-figure { margin: 0; display: flex; flex-direction: column; gap: 10px; width: 100%; min-height: 0; }
.reno-figure figcaption time { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); opacity: 0.85; font-variant-numeric: tabular-nums; }
.reno-empty { margin: 0; padding: 30px 24px; border: 1px dashed var(--line); border-radius: 18px; background: var(--paper-2); color: var(--muted); font-size: 16px; text-align: center; }
.reno-photo { position: relative; flex: 1; min-height: 0; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--paper-2); cursor: zoom-in; box-shadow: 0 16px 30px -22px #163e3266; transition: box-shadow 300ms var(--ease-out), transform 300ms var(--ease-out); }
.reno-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms var(--ease-out); }
.reno-photo:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .reno-photo:hover { box-shadow: 0 24px 40px -24px #163e3288; transform: translateY(-3px); }
  .reno-photo:hover img { transform: scale(1.04); }
}
.reno-photo:active { transform: scale(0.99); }
.reno-figure figcaption { font-size: 15px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }

/* Invitation: a green room with the hadith */
.reno-invite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: 22px; background: var(--green); color: var(--on-green); }
.reno-invite h2 { font-size: clamp(28px, 3vw, 40px); color: #fff; margin-bottom: 14px; max-width: 18ch; }
.reno-invite p { font-size: 18px; line-height: 1.6; color: var(--on-green); max-width: 46ch; }
.reno-hadith { margin: 0; padding-left: 28px; border-left: 1px solid #ffffff33; }
.reno-hadith blockquote { margin: 0; }
.reno-hadith .reno-arabic { font-family: 'Amiri', serif; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.9; color: var(--gold-soft); margin-bottom: 12px; }
.reno-hadith p:not(.reno-arabic) { font-family: var(--serif); font-size: 20px; line-height: 1.5; color: #fff; }
.reno-hadith figcaption { margin-top: 14px; font-size: 14px; color: var(--on-green-muted); }

/* Ongoing or next project: two photos and a caption */
.reno-project { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px 56px; align-items: center; }
.reno-project:empty { display: none; }
.reno-project-copy .notice-label { display: block; margin-bottom: 10px; }
.reno-project-copy .section-title { margin-bottom: 14px; }
.reno-project-copy p { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 44ch; }
.reno-project-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reno-project-photos .reno-photo { flex: none; aspect-ratio: 4 / 3; }
.reno-cta { display: flex; justify-content: center; margin-top: 44px; }

@media (max-width: 900px) {
  .reno-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reno-invite, .reno-project { grid-template-columns: 1fr; }
  .reno-hadith { padding-left: 0; padding-top: 24px; border-left: 0; border-top: 1px solid #ffffff33; }
}
@media (max-width: 560px) {
  .reno-grid { grid-template-columns: 1fr; gap: 26px; }
  .reno-project-photos { gap: 10px; }
  .reno-cta .button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .reno-photo, .reno-photo img { transition: none; }
  .reno-photo:hover, .reno-photo:hover img, .reno-photo:active { transform: none; }
}
