/* =========================================================
   Mount Salem Zion: Cherubim & Seraphim Church
   Palette: deep navy, white, soft gold
   ========================================================= */

:root {
  --navy-900: #0b1830;
  --navy-800: #12264a;
  --navy-700: #1b3566;
  --blue-50: #f3f6fb;
  --blue-100: #e4ebf6;
  --white: #ffffff;
  --gold-500: #c9a24b;
  --gold-300: #e0c98a;
  --gold-700: #8a6a1f; /* gold dark enough for text on white */
  --ink: #1b2433;
  --muted: #4a566b;
  --line: #d6deeb;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:
    "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --shadow-soft: 0 6px 24px rgba(18, 38, 74, 0.1);
  --shadow-lift: 0 14px 34px rgba(18, 38, 74, 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy-800);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}
a {
  color: var(--navy-700);
}
ul,
ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy-800);
  color: var(--white);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 1rem;
}

/* Placeholder text: easy to spot and search for when replacing */
.ph {
  background: rgba(201, 162, 75, 0.2);
  border-bottom: 1px dashed var(--gold-700);
  padding: 0 0.15em;
}
.ph--light {
  background: rgba(224, 201, 138, 0.18);
  border-bottom-color: var(--gold-300);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 700 1rem/1 var(--font-body);
  text-decoration: none;
  text-align: center;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.btn:active {
  transform: translateY(0);
}
.btn--gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn--gold:hover {
  background: var(--gold-300);
}
.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
}
.btn--outline-light:hover {
  background: var(--white);
  color: var(--navy-800);
}
.btn--navy {
  background: var(--navy-800);
  color: var(--white);
}
.btn--navy:hover {
  background: var(--navy-700);
}
.btn[disabled] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(18, 38, 74, 0.12);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy-800);
}
.brand__logo {
  width: 44px;
  height: 44px;
  flex: none;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
}
.brand__sub {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.brand--light {
  color: var(--white);
}
.brand--light .brand__sub {
  color: var(--gold-300);
}

.primary-nav__list {
  display: flex;
  gap: 0.25rem;
}
.primary-nav a {
  position: relative;
  display: block;
  padding: 0.6rem 0.85rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy-800);
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-800);
  transition:
    transform 0.25s var(--ease),
    opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.22s var(--ease),
      transform 0.22s var(--ease),
      visibility 0.22s;
  }
  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .primary-nav__list {
    flex-direction: column;
    padding: 0.5rem 1.25rem 1rem;
    gap: 0;
  }
  .primary-nav a {
    padding: 0.95rem 0.25rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--blue-100);
    border-radius: 0;
  }
  .primary-nav li:last-child a {
    border-bottom: 0;
  }
  .primary-nav a::after {
    display: none;
  }
  .primary-nav a.is-active {
    color: var(--gold-700);
  }
}

@media (max-width: 400px) {
  .brand__sub {
    display: none;
  }
  .brand__name {
    font-size: 1.25rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 640px;
  min-height: max(560px, calc(100svh - var(--header-h)));
  padding: 4rem 0;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-900);
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 24, 48, 0.62);
}
.hero__content {
  position: relative;
  max-width: 900px;
}

.hero__title {
  font-size: clamp(3.2rem, 11vw, 7rem);
  font-weight: 700;
  line-height: 1.02;
  color: var(--white);
  margin-bottom: 0.3em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero__lead {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-300);
  margin-bottom: 2.25rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.btn--live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6281e;
  animation: live-pulse 2s infinite;
}
@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 40, 30, 0.5);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(214, 40, 30, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(214, 40, 30, 0);
  }
}

/* Page-load entrance: one calm, staggered rise */
.hero__content > * {
  animation: rise 0.8s var(--ease) both;
}
.hero__content > *:nth-child(1) {
  animation-delay: 0.05s;
}
.hero__content > *:nth-child(2) {
  animation-delay: 0.2s;
}
.hero__content > *:nth-child(3) {
  animation-delay: 0.35s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.section--tint {
  background: var(--blue-50);
}
.section--navy {
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.92);
}
.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}
.section-head {
  max-width: 680px;
  margin-bottom: 2.5rem;
}
.section-intro {
  color: var(--muted);
  font-size: 1.15rem;
}
.lead {
  font-size: 1.2rem;
  color: var(--navy-700);
}

/* Fade-in on scroll (only active when JS has added .js to <html>) */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- About ---------- */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.framed {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
}
.framed::before {
  content: "";
  position: absolute;
  inset: 3px -2px -2px 3px;
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-md);
  z-index: 0;
}
.framed img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
}
.framed {
  overflow: fixed;
}
.framed--gold::before {
  border-color: var(--gold-300);
}

/* Image zoom on hover: clip inside a wrapper-less approach using clip-path */
.framed img,
.trustee__photo img {
  transition: transform 0.5s var(--ease);
}
.framed:hover img {
  transform: scale(1.02);
}

.mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.75rem 0;
}
.mv__item {
  padding: 1.25rem 1.4rem;
  background: var(--blue-50);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
}
.mv__item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}
.mv__item p {
  margin: 0;
}

.values-title {
  font-size: 1.6rem;
}
.values li {
  padding: 0.55rem 0 0.55rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.values li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  background: var(--gold-500);
  transform: rotate(45deg);
}

/* ---------- History ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 3rem;
}
.facts > div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
}
.facts dt {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}
.facts dd {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy-800);
}

.timeline {
  position: relative;
  max-width: 860px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--gold-500);
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.5rem;
  padding: 0 0 2.25rem 2.25rem;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 16px;
  height: 16px;
  background: var(--white);
  border: 3px solid var(--gold-500);
  border-radius: 50%;
}
.timeline__date {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-700);
  line-height: 1.4;
}
.timeline__body h3 {
  font-size: 1.55rem;
  margin-bottom: 0.25rem;
}
.timeline__body p span {
  color: var(--gold-700);
  font-weight: 12000;
}
.timeline__body p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Prophet ---------- */
.prophet {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 7vw, 5.5rem);
  align-items: center;
}
.prophet__Title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--gold-300);
  line-height: 1.2;
  margin-bottom: 0.1rem;
}

.prophet__name {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 600;
  color: var(--gold-300);
  line-height: 1.2;
  margin-bottom: 0.1rem;
}
.prophet__role {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  font-size: clamp(1.1rem, 1vw, 1.3rem);
  margin-bottom: 1.5rem;
}
.prophet__text h3 {
  font-size: 1.45rem;
  margin-top: 1.5rem;
  margin-bottom: 0.3rem;
}
.prophet__message {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prophet__message p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}
.prophet__message footer {
  color: var(--gold-300);
  font-weight: 600;
}

/* ---------- Trustees ---------- */
.trustee-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .trustee-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .trustee-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trustee {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(18, 38, 74, 0.06);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.trustee:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.trustee__photo {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--blue-100);
}
.trustee__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trustee:hover .trustee__photo img {
  transform: scale(1.05);
}
.trustee__body {
  padding: 1.25rem 1.35rem 1.5rem;
}
.trustee__name {
  font-size: 1.45rem;
  margin-bottom: 0.1rem;
}
.trustee__role {
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.trustee__desc {
  color: var(--muted);
  font-size: 0.98rem;
}
.trustee__link {
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 1rem;
}
.gallery-grid > li {
  min-width: 0;
}
.gallery-grid > li:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-grid > li:nth-child(6) {
  grid-row: span 2;
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: zoom-in;
  background: var(--blue-100);
  box-shadow: 0 2px 10px rgba(18, 38, 74, 0.1);
  transition: box-shadow 0.25s var(--ease);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery__item:hover {
  box-shadow: var(--shadow-lift);
}
.gallery__item:hover img {
  transform: scale(1.05);
}

/* History intro: text beside the church image */
.history-intro {
  margin-bottom: 3rem;
}

/* ---------- Gallery: "View all" button and full gallery page ---------- */
.gallery-more {
  margin-top: 2.25rem;
  text-align: center;
}

.page-banner {
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.9);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.page-banner h1 {
  color: var(--white);
  margin-bottom: 0.3em;
}
.page-banner p {
  margin: 0;
  max-width: 56ch;
  font-size: 1.1rem;
}
.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--gold-300);
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gallery-all {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-all > li {
  aspect-ratio: 4 / 3;
  min-width: 0;
}

.lightbox {
  border: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  background: rgba(11, 24, 48, 0.96);
  color: var(--white);
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.lightbox::backdrop {
  background: rgba(11, 24, 48, 0.96);
}
.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 100% - 7rem);
  text-align: center;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  margin-inline: auto;
  border-radius: var(--radius-sm);
}
.lightbox__figure figcaption {
  margin-top: 0.8rem;
  color: var(--gold-300);
  font-weight: 600;
  min-height: 1.5em;
}
.lightbox__close,
.lightbox__nav {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  flex: none;
  transition: background-color 0.2s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}
html.lightbox-open {
  overflow: hidden;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-list > div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list > div:first-child {
  padding-top: 0;
}
.contact-list dt {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-700);
}
.contact-list dd {
  margin: 0.15rem 0 0;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.social-title {
  font-size: 1.4rem;
  margin: 1.75rem 0 0.6rem;
}
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.social a {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--navy-700);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.social a:hover {
  background: var(--navy-800);
  color: var(--white);
}

.contact-form {
  background: var(--white);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-500);
}
.contact-form h3 {
  font-size: 1.8rem;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field {
  margin-bottom: 1rem;
  min-width: 0;
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy-800);
}
.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.8rem 0.95rem;
  background: var(--white);
  border: 1.5px solid #9fb0cc;
  border-radius: var(--radius-sm);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 140px;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.55);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b3261e;
}
.field__error {
  color: #b3261e;
  font-size: 0.9rem;
  margin: 0.3rem 0 0;
  min-height: 0;
}
.field__error:empty {
  display: none;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 1rem 0 0;
  font-weight: 600;
}
.form-status:empty {
  display: none;
}
.form-status.is-success {
  color: #1b6b3a;
  background: #e8f5ec;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
}
.form-status.is-error {
  color: #8c1d18;
  background: #fdecea;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
}

.map {
  margin-top: 3rem;
}
.map__placeholder,
.map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: var(--radius-md);
}
.map__placeholder {
  display: grid;
  place-items: center;
  background: var(--blue-100);
  border: 2px dashed var(--navy-700);
  text-align: center;
  padding: 1rem;
}
.map__placeholder p {
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 4rem;
}
.site-footer h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration-color: var(--gold-500);
  text-underline-offset: 3px;
}
.site-footer a:hover {
  color: var(--gold-300);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-about p {
  margin-top: 1rem;
  max-width: 34ch;
}
.footer-links li {
  margin-bottom: 0.45rem;
  overflow-wrap: anywhere;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.4rem 0;
  font-size: 0.95rem;
}
.footer-bottom p {
  margin: 0;
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .split,
  .prophet,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .split .framed,
  .prophet .framed {
    max-width: 460px;
    margin-inline: auto 16px;
  }
  .split .framed {
    order: -1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .gallery-grid > li:nth-child(1),
  .gallery-grid > li:nth-child(8) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .gallery-grid > li:nth-child(6) {
    grid-row: span 1;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  body {
    font-size: 1.03rem;
  }
  .hero {
    padding: 3rem 0;
  }
  .hero__actions .btn {
    flex: 1 1 100%;
  }
  .mv {
    grid-template-columns: 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .timeline__item {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .map__placeholder,
  .map iframe {
    height: 280px;
  }
  .gallery-grid {
    grid-auto-rows: 150px;
    gap: 0.6rem;
  }
  .gallery-all {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .lightbox__figure {
    max-width: 100%;
  }
  .lightbox__nav {
    position: absolute;
    bottom: 1rem;
  }
  .lightbox__nav--prev {
    left: 1rem;
  }
  .lightbox__nav--next {
    right: 1rem;
  }
  .framed::before {
    inset: 12px -10px -12px 10px;
  }
  .split .framed,
  .prophet .framed {
    margin-inline: auto 10px;
    width: calc(100% - 10px);
  }
}
/* ---------- Books ---------- */
.book {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  padding: 2.5rem 0;
}
.book + .book {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.book--reverse {
  grid-template-columns: 1.3fr 0.7fr;
}
.book--reverse .book__cover {
  order: 2;
}

.book__cover {
  width: 100%;
  max-width: 340px;
  margin: 0;
  justify-self: center;
}
.book__cover img {
  width: 100%;
  border-radius: 6px 10px 10px 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s var(--ease);
}
.book__cover:hover img {
  transform: scale(1.03);
}

.book__title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 0.2em;
}
.book__author {
  color: var(--gold-300);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.book__desc {
  max-width: 56ch;
  margin-bottom: 1.75rem;
}

@media (max-width: 760px) {
  .book,
  .book--reverse {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .book--reverse .book__cover {
    order: 0;
  }
  .book__cover {
    max-width: 240px;
  }
}
/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
