@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@400;500;600;700&display=swap");

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }

:root {
  --bg: #e7f3fb;
  --bg-soft: #fff4c4;
  --bg-deep: #3d7eb5;
  --bg-mid: #8ec4e6;
  --surface: #fffdf4;
  --text: #2d4256;
  --muted: #5d7388;
  --blue: #6eafd8;
  --blue-dark: #3d7eb5;
  --gold: #c9a227;
  --gold-light: #e8c878;
  --yellow: #ffe58a;
  --border: #c9dff0;
  --shadow: rgba(61, 126, 181, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
}

body {
  font-family: var(--serif);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 229, 138, 0.55), transparent 38%),
    radial-gradient(circle at 90% 8%, rgba(142, 196, 230, 0.55), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(201, 162, 39, 0.16), transparent 42%),
    linear-gradient(180deg, #eef7fd 0%, #dceef9 48%, #cfe6f6 100%);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

header {
  background: rgba(255, 252, 244, 0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px var(--shadow);
}

header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold-light), var(--yellow), var(--gold));
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.header-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
  text-align: left;
  flex: 1 1 auto;
  line-height: 1.2;
}

.logo:hover { color: var(--blue-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  width: 100%;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.nav-menu a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  min-height: 40px;
  color: var(--blue-dark);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  border-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .nav-menu a:hover {
    transform: translateY(-1px);
  }
}

main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  width: 100%;
}

.page-main {
  padding-top: 2rem;
}

.page-main .section {
  margin-top: 0;
}

.hero {
  text-align: center;
  padding: 2.75rem 1.5rem 3rem;
  margin: -2rem -1.5rem 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 245, 180, 0.8), transparent 52%),
    linear-gradient(165deg, #e3f3fc 0%, #d4ebf8 48%, #c5e3f5 100%);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 14px 36px rgba(61, 126, 181, 0.16);
}

.hero-welcome {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.ministry-logo {
  max-width: 420px;
  width: min(92vw, 420px);
  margin: 0 auto 1.25rem;
  display: block;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(61, 126, 181, 0.16);
  background: #fffdf6;
  border: 1px solid #d7e8f5;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2f5f86;
  text-shadow: none;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-style: italic;
  color: var(--blue-dark);
  margin-bottom: 1.5rem;
}

.hero .cta-buttons {
  margin-top: 0;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  padding: 0.85rem 1.9rem;
  min-height: 48px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(166, 124, 0, 0.22);
  transition: transform 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
}

.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border: 2px solid var(--blue);
  box-shadow: none;
}

.btn-outline:hover { background: var(--blue); color: #fff; }

.section {
  margin-top: 2.5rem;
  padding: 2rem;
  background: #fffdf6;
  border: 1px solid #d5e8f5;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(61, 126, 181, 0.1);
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.section p {
  font-family: var(--sans);
  color: var(--muted);
  margin-bottom: 1rem;
}

.section-center { text-align: center; }

.section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.section-with-image {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 0.5rem;
}

.section-photo {
  margin: 0;
}

.section-photo img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px var(--shadow);
  display: block;
}

.section-photo figcaption {
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-dark);
  text-align: center;
}

.section-copy p:last-child,
.section-copy .scripture:last-child {
  margin-bottom: 0;
}

.section-banner {
  margin: 0 0 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px var(--shadow);
}

.section-banner img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.contact-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 3px solid var(--gold-light);
  box-shadow: 0 8px 20px var(--shadow);
  margin: 0 auto 1.25rem;
  display: block;
}

.scripture {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #fff4c2;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  text-align: left;
}

.scripture p {
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.scripture cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  color: var(--blue-dark);
}

.scripture-inline {
  margin: 1.25rem 0;
}

.salvation-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.salvation-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px var(--shadow);
}

.salvation-step h3 {
  font-size: 1.15rem;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
  text-align: center;
}

.salvation-step p {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0;
  text-align: center;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.program-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform 0.25s;
}

.program-card:hover { transform: translateY(-4px); }

.program-card.program-featured {
  border-color: var(--gold-light);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.15);
}

.program-label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.program-card h3 {
  font-size: 1.25rem;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.program-price {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}

.program-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.program-card ul {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  padding-left: 1.15rem;
  margin: 0;
}

.program-card li { margin-bottom: 0.5rem; }
.program-card li:last-child { margin-bottom: 0; }

.program-note {
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--sans);
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform 0.25s;
}

.card-with-image {
  padding: 0;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-with-image h3,
.card-with-image p {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.card-with-image h3 {
  margin-top: 1.25rem;
}

.card-with-image p {
  padding-bottom: 1.75rem;
}

.card:hover { transform: translateY(-4px); }

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--blue-dark);
  text-align: center;
}

.card p {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0;
  text-align: left;
}

.testimony-cards {
  margin-top: 1.5rem;
}

.testimony-card {
  text-align: left;
  border-top: 3px solid var(--gold);
}

.testimony-quote {
  margin: 0;
  padding: 0;
  border: none;
}

.testimony-quote p {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.testimony-quote p::before {
  content: "\201C";
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 0;
  margin-right: 0.15rem;
}

.testimony-quote cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  color: var(--blue-dark);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-info {
  font-family: var(--sans);
  margin-top: 1rem;
}

.contact-info a {
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.contact-info a:hover { text-decoration: underline; }

.honey-field {
  display: none !important;
}

.prayer-form {
  max-width: 520px;
  margin: 1.5rem auto 0;
  text-align: left;
}

.form-field {
  display: block;
  margin-bottom: 1.25rem;
}

.form-field span {
  display: block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 0.4rem;
}

.form-field span em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.prayer-form input,
.prayer-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.prayer-form input:focus,
.prayer-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.22);
}

.prayer-form textarea {
  resize: vertical;
  min-height: 140px;
}

.prayer-form .btn {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.share-option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 0 1.35rem;
  padding: 0.9rem 1rem;
  background: #fff4c2;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
}

.share-option input {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.share-option span {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.45;
}

.prayer-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

@media (min-width: 800px) {
  .prayer-panels {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.prayer-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 8px 22px var(--shadow);
  text-align: left;
}

.prayer-panel h2 {
  margin-bottom: 0.65rem;
}

.prayer-panel p {
  font-family: var(--sans);
  color: var(--muted);
  margin-bottom: 1rem;
}

.taken-prayer {
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem;
  background: #fff4c2;
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  min-height: 150px;
}

.taken-prayer p {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.taken-prayer cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  color: var(--blue-dark);
}

.prayer-status {
  font-family: var(--sans);
  font-size: 0.95rem;
  margin-top: 1rem;
  color: var(--blue-dark);
}

.prayer-status.error {
  color: #9a4a32;
}

footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #eef7fd;
}

@media (min-width: 900px) {
  .header-bar {
    justify-content: center;
  }

  .logo {
    text-align: center;
    flex: 0 1 auto;
  }
}

@media (max-width: 899px) {
  body.menu-open {
    overflow: hidden;
  }

  .header-inner {
    padding: 0.75rem 1rem 0.85rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    gap: 0;
    align-items: stretch;
  }

  .logo {
    font-size: 1.15rem;
    max-width: calc(100% - 56px);
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    width: 100%;
    padding-top: 0.75rem;
  }

  .nav-menu.open {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding-bottom: 0.35rem;
  }

  .nav-menu a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
    min-height: 48px;
    font-size: 1rem;
    border-radius: 14px;
  }

  main {
    padding: 1.5rem 1rem 3rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .hero {
    margin: -1.5rem -1rem 0;
    padding: 2.25rem 1rem 2.5rem;
    border-radius: 0 0 22px 22px;
  }

  .ministry-logo {
    width: min(88vw, 320px);
  }

  .section { padding: 1.5rem 1.15rem; }

  .cards,
  .salvation-steps,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .section-with-image {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section-photo {
    max-width: 280px;
    margin: 0 auto;
  }

  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn,
  .prayer-form .btn { width: 100%; text-align: center; }

  .card-image { height: 200px; }
}

@media (max-width: 640px) {
  .logo { font-size: 1.08rem; }
  .section { padding: 1.35rem 1rem; }
  .scripture { padding: 1rem 1.1rem; }
  footer {
    padding: 1.75rem 1rem;
    padding-bottom: max(1.75rem, env(safe-area-inset-bottom));
    font-size: 0.85rem;
  }
}

.nav-menu a:focus-visible,
.btn:focus-visible,
.hamburger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
