:root {
  --bg-top: #f7f8fc;
  --bg-mid: #eef1f8;
  --bg-bottom: #dde2ef;
  --cream: #ffffff;
  --ink: #1d2433;
  --muted: #4b556b;
  --card: rgba(255, 255, 255, 0.88);
  --card-border: rgba(39, 52, 76, 0.16);
  --accent: #6550b9;
  --accent-2: #7f62d7;
  --shadow: 0 16px 36px rgba(24, 35, 56, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Trebuchet MS', 'Gill Sans', sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 20%, #f9fbff, transparent 45%),
    radial-gradient(circle at 80% 10%, #e9e2ff, transparent 38%),
    linear-gradient(150deg, var(--bg-top), var(--bg-mid) 48%, var(--bg-bottom));
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: Georgia, 'Palatino Linotype', serif;
  margin: 0;
}

p {
  margin: 0;
}

.site-wrap {
  width: min(1600px, 98vw);
  margin: 0 auto;
  padding: 0.5rem 0 1.4rem;
  position: relative;
}

.bg-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(2px);
  animation: drift 14s ease-in-out infinite;
}

.bg-glow-left {
  left: -90px;
  top: 180px;
  background: radial-gradient(circle, rgba(186, 171, 255, 0.35), rgba(186, 171, 255, 0));
}

.bg-glow-right {
  right: -70px;
  top: 60px;
  background: radial-gradient(circle, rgba(126, 171, 255, 0.28), rgba(126, 171, 255, 0));
  animation-delay: 2s;
}

.hero {
  text-align: center;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(241, 244, 255, 0.92));
  border: 1px solid var(--card-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1rem 1rem;
}

.church-logo {
  width: clamp(70px, 9vw, 106px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 999px;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 28px rgba(12, 33, 55, 0.25);
  margin-bottom: 0.9rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

h1 {
  font-size: clamp(1.45rem, 4.4vw, 2.5rem);
  line-height: 1.08;
  color: #1a2230;
}

.hero-text {
  width: min(650px, 90%);
  margin: 0.7rem auto 0;
  font-size: clamp(0.9rem, 1.65vw, 1rem);
  color: var(--muted);
}

.cta-row {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: var(--cream);
  box-shadow: 0 8px 20px rgba(101, 80, 185, 0.32);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(29, 36, 51, 0.45);
  color: #1d2433;
}

.quick-links {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.quick-links a {
  text-decoration: none;
  color: #1d2433;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(39, 52, 76, 0.15);
  border-radius: 999px;
  padding: 0.35rem 0.78rem;
}

.hero-media {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(39, 52, 76, 0.12);
}

main {
  margin-top: 0.75rem;
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 0.85rem;
}

.service-single {
  background: rgba(242, 246, 255, 0.95);
  border: 2px solid rgba(39, 52, 76, 0.12);
  border-radius: 18px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.service-single h3 {
  font-size: 1.26rem;
}

.service-time {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  color: #2b3560;
}

.badge {
  margin-top: 0.55rem;
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(39, 52, 76, 0.12);
}

.countdown {
  margin-top: 0.95rem;
  font-weight: 700;
  color: #324166;
}

.visit-copy {
  margin-bottom: 1rem;
}

.history-copy {
  line-height: 1.72;
  color: #2e3a52;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.map-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.map-wrap iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

.map-actions {
  margin-top: 0.9rem;
}

.facebook-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.75);
}

.fb-status {
  margin: 0 0 0.7rem;
  font-weight: 700;
  color: #324166;
}

.facebook-wrap iframe {
  width: 100%;
  aspect-ratio: 560 / 314;
  height: auto;
  min-height: 0;
  display: block;
}

.announcement-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.announcement-list li {
  background: rgba(244, 247, 255, 0.92);
  border: 1px solid rgba(39, 52, 76, 0.16);
  border-radius: 14px;
  padding: 0.75rem;
}

.announcement-label {
  font-weight: 700;
  margin-right: 0.3rem;
}

.announcement-text {
  display: inline;
  border-radius: 8px;
  padding: 0.08rem 0.2rem;
  transition: background 0.2s ease, outline-color 0.2s ease;
}

.announcement-text:focus {
  outline: 2px solid rgba(101, 80, 185, 0.45);
  background: rgba(255, 255, 255, 0.72);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.gallery-item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(39, 52, 76, 0.16);
  box-shadow: 0 10px 22px rgba(12, 33, 55, 0.18);
  background: rgba(255, 255, 255, 0.65);
}

.gallery-item img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

#connect-form {
  display: grid;
  gap: 0.8rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(39, 52, 76, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 0.68rem 0.72rem;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(101, 80, 185, 0.45);
  border-color: transparent;
}

.message-label {
  grid-column: 1 / -1;
}

.response {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-top: 0.8rem;
  font-weight: 700;
  color: #124f29;
}

.response.show {
  opacity: 1;
  transform: translateY(0);
}

.pulse {
  animation: pulse 1.8s infinite;
}

footer {
  text-align: center;
  margin-top: 1rem;
  color: #2a3246;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
}

@media (max-width: 880px) {
  .hero-media {
    grid-template-columns: 1fr;
  }

  .service-single {
    align-items: flex-start;
  }

  .facebook-wrap iframe {
    aspect-ratio: 16 / 10;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .map-wrap iframe {
    height: 240px;
  }

  .hero {
    padding: 1rem 0.85rem;
  }

  .site-wrap {
    padding-top: 0.55rem;
  }
}
