@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap");

:root {
  --navy: #0a1f44;
  --navy-light: #152d56;
  --text: #1f2937;
  --muted: #4b5563;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.serif {
  font-family: "Playfair Display", Georgia, serif;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.nav-inner {
  max-width: 1280px;
  min-height: 80px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  font-weight: 700;
  white-space: nowrap;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--white);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--white);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.mobile-links {
  display: none;
  background: var(--navy-light);
  padding: 10px 16px 18px;
}

.mobile-links.open {
  display: block;
}

.mobile-links a {
  display: block;
  padding: 12px 16px;
  border-radius: 6px;
  color: var(--white);
}

.mobile-links a.active {
  background: var(--white);
  color: var(--navy);
}

.hero {
  position: relative;
  min-height: calc(88vh - 80px);
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.page-hero {
  position: relative;
  padding: 80px 0;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.70;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slideshow .hero-bg {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1600ms ease, transform 9000ms ease;
}

.hero-slideshow .hero-bg.active {
  opacity: 0.70;
  transform: scale(1);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy), rgba(10, 31, 68, 0.4), rgba(10, 31, 68, 0.2));
}

.page-hero .hero-bg {
  opacity: 0.70;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slideshow .hero-bg {
    transition: none;
  }
}

.container {
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
  padding: 80px 0;
}

.page-hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 5.5rem);
  line-height: 1.03;
  font-weight: 500;
  margin-bottom: 24px;
}

.page-hero h1 {
  font-size: clamp(3rem, 7vw, 4.5rem);
}

.hero p,
.page-hero p {
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 32px;
}

.section {
  padding: 80px 0;
}

.section.soft {
  background: var(--soft);
}

.section.navy {
  background: var(--navy);
  color: var(--white);
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 3rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.section.navy .section-title {
  color: var(--white);
}

.lead {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.image-frame {
  height: 420px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.18);
}

.image-frame.tall {
  height: 500px;
}

.image-frame img,
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 6px;
  padding: 0 30px;
  border: 2px solid var(--white);
  font-weight: 600;
  transition: 180ms ease;
}

.button.primary {
  background: var(--white);
  color: var(--navy);
}

.button.outline {
  color: var(--white);
}

.button.dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
}

.quote {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.quote blockquote {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-style: italic;
  line-height: 1.35;
  margin: 0 0 24px;
}

.quote p {
  color: var(--white);
  font-size: 1.1rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: 180ms ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
}

.card-image {
  height: 260px;
  overflow: hidden;
}

.card-body {
  padding: 24px;
}

.card h3 {
  color: var(--navy);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.book-card {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(450px, 400px) 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

.book-card img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: contain;
  object-position: center;
}

.book-copy {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pill {
  width: max-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 31, 68, 0.1);
  color: var(--navy);
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.point {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  color: var(--navy);
}

.overlay-card {
  position: relative;
  min-height: 390px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

.overlay-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 31, 68, 0.92), rgba(10, 31, 68, 0.28), transparent);
}

.overlay-card div {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: var(--white);
}

.overlay-card h3 {
  color: var(--white);
}

.overlay-card p {
  color: rgba(255, 255, 255, 0.86);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 14px 16px;
  font: inherit;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.form-stack {
  display: grid;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.form-status {
  min-height: 1.5rem;
  margin: -8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.form-status.success {
  color: #166534;
}

.form-status.error {
  color: #b91c1c;
}

.regional-link-note {
  min-height: 1.5rem;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.donation-panel {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 42px;
  align-items: start;
}

.info-stack {
  display: grid;
  gap: 28px;
}

.info-item {
  display: flex;
  gap: 16px;
}

.icon-box {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(10, 31, 68, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.prayer-box {
  margin-top: 36px;
  padding: 24px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
}

.footer {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 32px;
}

.footer h3 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.footer p,
.footer a,
.footer span {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.socials {
  display: flex;
  gap: 14px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.copyright {
  border-top: 1px solid var(--navy-light);
  text-align: center;
  padding-top: 28px;
  margin-top: 34px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .nav-inner {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: calc(88vh - 80px);
  }

  .grid-2,
  .grid-3,
  .form-grid,
  .donation-panel,
  .contact-grid,
  .footer-grid,
  .book-card,
  .points {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 72px 0;
  }

  .section {
    padding: 64px 0;
  }

  .image-frame,
  .image-frame.tall {
    height: 360px;
  }

  .book-card img {
    min-height: 360px;
  }

  .book-copy {
    padding: 28px;
  }
}
