:root {
  --nav-bg: #1b4d2e;
  --nav-text: #ffffff;
  --nav-hover: rgba(255, 255, 255, 0.16);
  --nav-border: #123820;
  --page-bg: #f3f6f2;
  --text: #1a241c;
  --text-soft: #3d4a40;
  --link: #1b4d2e;
  --font-nav: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --header-offset: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-nav);
  background: var(--page-bg);
  color: var(--text);
}

main > section {
  scroll-margin-top: var(--header-offset);
}

.site-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.45rem 1rem 0.3rem;
  text-decoration: none;
  background: #ffffff;
}

.site-logo img {
  display: block;
  width: min(110px, 29vw);
  height: auto;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-top: 1px solid rgba(27, 77, 46, 0.12);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.25rem;
}

.nav-list {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 2px;
  background: var(--nav-hover);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
  will-change: transform, width, height;
}

.menu-slot {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  z-index: 110;
}

.burger-btn {
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.burger-btn:hover,
.burger-btn:focus-visible,
.burger-btn[aria-expanded="true"] {
  background: var(--nav-hover);
  outline: none;
}

.burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--nav-text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger-btn[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-btn[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.side-menu[hidden] {
  display: none;
}

.side-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 11.5rem;
  display: flex;
  flex-direction: column;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid rgba(27, 77, 46, 0.18);
  box-shadow: 0 12px 28px rgba(14, 28, 18, 0.18);
}

.side-menu-link {
  display: block;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.side-menu-link:hover,
.side-menu-link:focus-visible {
  background: rgba(27, 77, 46, 0.08);
  outline: none;
}

.side-menu-signin {
  margin-top: 0.15rem;
  border-top: 1px solid rgba(27, 77, 46, 0.12);
  border-radius: 0 0 2px 2px;
  color: var(--nav-bg);
}

.side-menu-welcome {
  margin: 0.35rem 0 0;
  padding: 0.55rem 0.9rem 0.25rem;
  border-top: 1px solid rgba(27, 77, 46, 0.12);
  color: var(--nav-bg);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
}

.side-menu-welcome[hidden] {
  display: none !important;
}

.side-menu-signout {
  margin-top: 0.15rem;
  border-top: 1px solid rgba(27, 77, 46, 0.12);
  border-radius: 0 0 2px 2px;
  color: #fff;
  background: #b42318;
}

.side-menu-signout:hover,
.side-menu-signout:focus-visible {
  background: #912018;
  color: #fff;
  outline: none;
}

.side-menu-signout.is-disabled,
.side-menu-signout:disabled {
  background: #c5cbc6;
  color: #6b746e;
  border-top-color: rgba(27, 77, 46, 0.12);
  cursor: not-allowed;
  opacity: 1;
}

.side-menu-signout.is-disabled:hover,
.side-menu-signout.is-disabled:focus-visible,
.side-menu-signout:disabled:hover,
.side-menu-signout:disabled:focus-visible {
  background: #c5cbc6;
  color: #6b746e;
}

.signin-modal[hidden] {
  display: none;
}

.signin-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.signin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 28, 18, 0.55);
}

.signin-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 24rem);
  padding: 1.75rem 1.5rem 1.5rem;
  background: linear-gradient(165deg, #f7f9f5 0%, #eef3eb 100%);
  border: 1px solid rgba(27, 77, 46, 0.18);
  box-shadow: 0 18px 40px rgba(14, 28, 18, 0.22);
  color: var(--text);
}

.signin-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.signin-modal-close:hover,
.signin-modal-close:focus-visible {
  color: var(--text);
  outline: none;
}

.signin-modal-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.signin-modal-intro {
  margin: 0 0 1.15rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.signin-form {
  display: grid;
  gap: 0.45rem;
}

.signin-form label {
  font-size: 0.9rem;
  font-weight: 700;
}

.signin-form input {
  width: 100%;
  margin-bottom: 0.55rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(27, 77, 46, 0.28);
  border-radius: 2px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.signin-form input:focus-visible {
  outline: 2px solid rgba(27, 77, 46, 0.35);
  outline-offset: 1px;
}

.signin-error {
  margin: 0 0 0.35rem;
  color: #8b1e1e;
  font-size: 0.9rem;
}

.signin-submit-btn {
  margin-top: 0.35rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--nav-border);
  background: var(--nav-bg);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.signin-submit-btn:hover,
.signin-submit-btn:focus-visible {
  background: #123820;
  outline: none;
}

.nav-list a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  color: var(--nav-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border-radius: 2px;
  white-space: nowrap;
  background: transparent;
  transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: transparent;
  outline: none;
}

.nav-list a[aria-current="page"] {
  background: transparent;
  outline: none;
}

/* Fallback if JS indicator is unavailable */
.nav-list:not(.has-indicator) a:hover,
.nav-list:not(.has-indicator) a:focus-visible,
.nav-list:not(.has-indicator) a[aria-current="page"] {
  background: var(--nav-hover);
}

.home-section {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.9rem 1.5rem 3.45rem;
  background:
    linear-gradient(180deg, #f7f9f5 0%, #eef3eb 100%);
  overflow-x: hidden;
}

.home-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 2.3rem 2.9rem;
  align-items: center;
  width: min(1120px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  animation: home-fade-up 0.85s ease-out both;
}

.home-content {
  text-align: left;
}

.home-content h1 {
  margin: 0 0 1.55rem;
  color: var(--nav-bg);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.home-copy {
  display: grid;
  gap: 1.15rem;
}

.home-copy p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.home-copy a {
  color: var(--link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.home-copy a:hover,
.home-copy a:focus-visible {
  color: #123820;
}

.prayer-widget {
  --prayer-scale: 1;
  --prayer-base-w: 281;
  --prayer-base-h: 500;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  justify-self: center;
  overflow: visible;
  animation: home-fade-up 0.85s ease-out 0.15s both;
}

.prayer-widget-frame {
  box-sizing: border-box;
  position: relative;
  width: calc(var(--prayer-base-w) * 1px * var(--prayer-scale));
  height: calc(var(--prayer-base-h) * 1px * var(--prayer-scale));
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  flex: 0 0 auto;
}

.prayer-widget iframe,
.prayer-iframe {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: calc(var(--prayer-base-w) * 1px);
  height: calc(var(--prayer-base-h) * 1px);
  border: 0;
  background: transparent;
  transform: scale(var(--prayer-scale));
  transform-origin: top left;
}

@keyframes home-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.events-section {
  padding: 4rem 1.5rem;
  background:
    linear-gradient(180deg, #f7f9f5 0%, #eef3eb 100%);
  border-top: 1px solid rgba(27, 77, 46, 0.12);
}

.events-inner {
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
}

.events-inner h2 {
  margin: 0 0 0.85rem;
  color: var(--nav-bg);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
}

.events-intro {
  margin: 0 auto 2rem;
  max-width: 36rem;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.announcement-carousel {
  margin: 0;
}

.carousel-viewport {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
}

.carousel-track {
  position: relative;
  width: 100%;
  min-height: 280px;
  background: transparent;
  border: 1px solid rgba(27, 77, 46, 0.18);
  overflow: hidden;
}

.carousel-track-inner {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
}

.carousel-slide img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--nav-border);
  background: var(--nav-bg);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: #123820;
  outline: none;
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  min-height: 0.7rem;
}

.carousel-dot {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border: 1px solid var(--nav-bg);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.carousel-dot.is-active,
.carousel-dot:hover,
.carousel-dot:focus-visible {
  background: var(--nav-bg);
  outline: none;
}

.announcement-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.announcement-actions[hidden],
.admin-only[hidden] {
  display: none !important;
}

.insert-image-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  background: var(--nav-bg);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--nav-border);
}

.insert-image-btn.is-uploading {
  opacity: 0.7;
  cursor: wait;
}

.insert-image-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.insert-image-btn:hover,
.insert-image-btn:focus-visible {
  background: #123820;
  outline: none;
}

.remove-image-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  background: #fff;
  color: #b42318;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #b42318;
}

.remove-image-btn:hover,
.remove-image-btn:focus-visible {
  background: #b42318;
  color: #fff;
  outline: none;
}

.manage-modal[hidden],
.confirm-modal[hidden] {
  display: none !important;
}

.manage-modal,
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.manage-modal-backdrop,
.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 28, 18, 0.55);
}

.manage-modal-panel,
.confirm-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 44rem);
  max-height: min(90vh, 40rem);
  overflow: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  background: linear-gradient(165deg, #f7f9f5 0%, #eef3eb 100%);
  border: 1px solid rgba(27, 77, 46, 0.18);
  box-shadow: 0 18px 40px rgba(14, 28, 18, 0.22);
  color: var(--text);
}

.confirm-modal-panel {
  width: min(100%, 26rem);
  max-height: none;
}

.manage-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.manage-modal-close:hover,
.manage-modal-close:focus-visible {
  color: var(--text);
  outline: none;
}

.manage-modal-panel h2,
.confirm-modal-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: var(--nav-bg);
}

.manage-modal-intro,
.confirm-modal-intro {
  margin: 0 0 1.15rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.manage-pictures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.manage-picture-option {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
  border: 2px solid rgba(27, 77, 46, 0.18);
  background: #fff;
}

.manage-picture-option.is-selected {
  border-color: var(--nav-bg);
}

.manage-picture-option img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.manage-picture-option input {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--nav-bg);
}

.manage-pictures-empty,
.manage-pictures-status {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.manage-pictures-status.is-error {
  color: #8b1e1e;
}

.manage-pictures-empty[hidden],
.manage-pictures-status[hidden] {
  display: none !important;
}

.manage-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.manage-cancel-btn,
.manage-delete-btn,
.confirm-delete-btn {
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--nav-border);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.manage-cancel-btn {
  background: #fff;
  color: var(--text);
  border-color: rgba(27, 77, 46, 0.28);
}

.manage-cancel-btn:hover,
.manage-cancel-btn:focus-visible {
  background: rgba(27, 77, 46, 0.06);
  outline: none;
}

.manage-delete-btn,
.confirm-delete-btn {
  background: #b42318;
  border-color: #912018;
  color: #fff;
}

.manage-delete-btn:hover,
.manage-delete-btn:focus-visible,
.confirm-delete-btn:hover,
.confirm-delete-btn:focus-visible {
  background: #912018;
  outline: none;
}

.manage-delete-btn:disabled {
  background: #c5cbc6;
  border-color: #b4bbb5;
  color: #6b746e;
  cursor: not-allowed;
}

.insert-hint code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
  color: var(--nav-bg);
}

.services-section,
.donations-section {
  padding: 4.5rem 1.5rem;
  background: #eef3eb;
  color: var(--text);
  border-top: 1px solid rgba(27, 77, 46, 0.12);
}

.services-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

.services-inner h2 {
  margin: 0 0 1.25rem;
  color: var(--nav-bg);
  font-size: clamp(1.85rem, 3.8vw, 2.55rem);
  font-weight: 700;
  line-height: 1.2;
}

.services-verse {
  margin: 0 auto 3rem;
  max-width: 46rem;
  padding: 0;
  border: 0;
}

.services-verse p {
  margin: 0;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  font-style: italic;
  line-height: 1.7;
  color: var(--text-soft);
}

.services-verse cite {
  font-style: italic;
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.75rem 3.5rem;
  text-align: left;
}

.service-item {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}

.service-icon {
  width: 3.25rem;
  height: 3.25rem;
  color: var(--nav-bg);
}

.service-icon svg,
.service-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-item h3 {
  margin: 0;
  color: var(--nav-bg);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.service-ayah {
  margin: 0;
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-soft);
}

.service-item > p:not(.service-ayah) {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.about-section {
  padding: 4.5rem 1.5rem;
  background:
    linear-gradient(180deg, #f7f9f5 0%, #eef3eb 100%);
  border-top: 1px solid rgba(27, 77, 46, 0.12);
}

.donations-inner {
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: center;
}

.donations-inner h2 {
  margin: 0 0 1.25rem;
  color: var(--nav-bg);
  font-size: clamp(1.85rem, 3.8vw, 2.55rem);
  font-weight: 700;
  line-height: 1.2;
}

.donations-inner p {
  margin: 0 0 1.1rem;
  color: var(--text-soft);
  font-size: 1.1rem;
  line-height: 1.75;
}

.donations-inner p:last-child {
  margin-bottom: 0;
}

.donations-inner a {
  color: var(--link);
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.donations-inner a:hover,
.donations-inner a:focus-visible {
  color: #123820;
}

.about-inner {
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: center;
}

.about-inner h2 {
  margin: 0 0 1.25rem;
  color: var(--nav-bg);
  font-size: clamp(1.85rem, 3.8vw, 2.55rem);
  font-weight: 700;
  line-height: 1.2;
}

.about-inner p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.1rem;
  line-height: 1.75;
}

.about-inner .about-copy {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  text-align: center;
}

.contact-section {
  padding: 4.5rem 1.5rem;
  background:
    linear-gradient(180deg, #eef3eb 0%, #f7f9f5 100%);
  border-top: 1px solid rgba(27, 77, 46, 0.12);
}

.contact-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  text-align: center;
}

.contact-inner h2 {
  margin: 0 0 0.85rem;
  color: var(--nav-bg);
  font-size: clamp(1.85rem, 3.8vw, 2.55rem);
  font-weight: 700;
  line-height: 1.2;
}

.contact-intro {
  margin: 0 auto 2rem;
  max-width: 36rem;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.service-form {
  width: min(560px, 100%);
  margin: 0 auto 3rem;
  text-align: left;
}

.service-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.service-form-status {
  margin: 0 0 0.85rem;
  color: var(--nav-bg);
  font-size: 0.95rem;
  font-weight: 700;
}

.service-form-status.is-error {
  color: #8b1e1e;
}

.service-form-status[hidden] {
  display: none !important;
}

.service-field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.service-field abbr {
  color: var(--nav-bg);
  text-decoration: none;
}

.service-field input,
.service-field textarea,
.service-field select {
  width: 100%;
  padding: 0.35rem 0 0.35rem;
  border: 0;
  border-bottom: 1px solid rgba(27, 77, 46, 0.35);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
}

.service-field select.service-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231b4d2e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.15rem center;
  padding-right: 1.4rem;
  cursor: pointer;
}

.service-field textarea.service-comments {
  display: block;
  min-height: 1.6em;
  max-height: 12rem;
  overflow-y: hidden;
  resize: none;
  line-height: 1.5;
  field-sizing: content;
}

.service-field input:focus-visible,
.service-field textarea:focus-visible,
.service-field select:focus-visible {
  outline: none;
  border-bottom-color: var(--nav-bg);
}

.service-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--nav-border);
  background: var(--nav-bg);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.service-submit-btn:hover,
.service-submit-btn:focus-visible {
  background: #123820;
  outline: none;
}

.contact-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.85fr);
  gap: 1.75rem 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  color: var(--text);
  text-align: center;
}

.contact-center {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1rem;
  width: 100%;
  text-align: center;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  border: 1px solid rgba(27, 77, 46, 0.22);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-btn svg {
  width: 0.85rem;
  height: 0.85rem;
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-2px);
  opacity: 0.92;
  outline: none;
}

.social-facebook {
  background: #1877f2;
  border-color: #1877f2;
}

.social-instagram {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
  border-color: transparent;
}

.contact-details {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  width: max-content;
  max-width: 100%;
}

.contact-details li {
  display: block;
}

.contact-line {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  color: var(--link);
  text-decoration: none;
  text-align: left;
}

.contact-line:hover,
.contact-line:focus-visible {
  color: #123820;
  outline: none;
}

.contact-line-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--nav-bg);
  color: #fff;
}

.contact-line-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.contact-line-text {
  display: grid;
  gap: 0.1rem;
  text-align: left;
}

.contact-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nav-bg);
}

.contact-line-text > span:last-child {
  font-size: 1rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-address {
  margin: 0;
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-soft);
  text-align: center;
}

.contact-address a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-address a:hover,
.contact-address a:focus-visible {
  color: #123820;
  outline: none;
}

.contact-map {
  width: 100%;
  aspect-ratio: 1;
  max-width: 260px;
  justify-self: center;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(27, 77, 46, 0.18);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .home-layout {
    grid-template-columns: 1fr;
    gap: 1.7rem;
    align-items: start;
  }

  .home-content {
    display: contents;
  }

  .home-content h1 {
    order: 1;
    margin: 0;
    text-align: center;
  }

  .prayer-widget {
    order: 2;
    width: 100%;
    max-width: min(100%, 28rem);
    margin-inline: auto;
    justify-self: center;
    justify-content: center;
  }

  .prayer-widget-frame {
    width: 100%;
    max-width: 100%;
    height: clamp(560px, 78vh, 760px);
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(14, 28, 18, 0.1);
  }

  .prayer-widget iframe,
  .prayer-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .home-copy {
    order: 3;
    text-align: center;
  }

  .services-grid {
    gap: 2.25rem 2rem;
  }

  .contact-bar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .contact-map {
    justify-self: center;
  }
}

@media (max-width: 700px) {
  :root {
    --header-offset: 5.5rem;
  }

  .nav-inner {
    justify-content: flex-start;
    padding-right: 6.5rem;
  }

  .nav-list {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .menu-slot {
    right: 0.75rem;
  }

  .home-section {
    min-height: 0;
    padding: 2rem 1rem 2.6rem;
    align-items: flex-start;
    overflow-x: hidden;
  }

  .top-nav {
    max-width: 100%;
    overflow: hidden;
  }

  .prayer-widget {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    justify-content: center;
  }

  .events-section,
  .services-section,
  .contact-section,
  .donations-section,
  .about-section {
    padding: 3rem 1.15rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
