:root {
  --ink: #111827;
  --muted: #637083;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --cream: #fff4dc;
  --gold: #d79a2b;
  --red: #df1f2d;
  --purple: #2c197f;
  --blue: #102f57;
  --teal: #146d6d;
  --line: rgba(17, 24, 39, 0.12);
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(251, 250, 247, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 64px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 56px;
  object-fit: contain;
  padding: 0;
  width: 100px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.12;
}

.brand strong {
  color: var(--blue);
  font-weight: 900;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 3px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 4px;
}

.site-nav a {
  border-radius: 999px;
  color: #2b3646;
  font-size: 0.94rem;
  font-weight: 800;
  padding: 10px 13px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #efe7d8;
  outline: none;
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  padding: 8px;
}

.nav-toggle span:not(.sr-only) {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 6px 0;
  width: 26px;
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(18px, 4vw, 64px);
}

.section-heading {
  margin: 0 auto 36px;
  max-width: 790px;
  text-align: center;
}

.eyebrow {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.welcome-copy h2 {
  color: var(--blue);
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.05;
  margin: 0;
}

.section h2,
.welcome-copy h2 {
  font-size: clamp(2.1rem, 4.2vw, 4rem);
}

.section-heading p:last-child,
.welcome-copy p,
.visit-layout p,
.contact p {
  color: var(--muted);
  font-size: 1.03rem;
}

.hero {
  align-items: center;
  background:
    radial-gradient(circle at 12% 8%, rgba(223, 31, 45, 0.12), transparent 30%),
    linear-gradient(135deg, #fffaf0 0%, #f3eadb 52%, #eef4f3 100%);
  display: grid;
  gap: clamp(34px, 5vw, 78px);
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  min-height: calc(100vh - 78px);
  overflow: hidden;
  padding: clamp(46px, 7vw, 94px) clamp(18px, 4vw, 64px);
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  max-width: 900px;
}

.hero-statement {
  color: #2e3f51;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  max-width: 680px;
}

.hero-actions,
.visit-actions,
.welcome-actions,
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.button.primary {
  background: var(--red);
  color: #fff;
}

.button.visit-primary {
  background: var(--ink);
  color: #fff;
  min-width: 132px;
}

.button.secondary,
.button.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.15);
  outline: none;
  transform: translateY(-2px);
}

.hero-media {
  min-height: 610px;
  position: relative;
}

.hero-image {
  margin: 0;
  overflow: hidden;
  position: absolute;
}

.hero-image img,
.welcome-media img,
.ministry-card img,
.media-card img,
.featured-image-wrapper img,
.gallery-item img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-main {
  aspect-ratio: 16 / 11;
  border: 8px solid #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  inset: 34px 0 auto 0;
}

.hero-main img {
  object-position: center center;
}

.hero-float {
  aspect-ratio: 4 / 5;
  border: 8px solid #fff;
  border-radius: 18px;
  bottom: 0;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.18);
  left: 8%;
  width: 34%;
}

.hero-float img {
  object-position: center top;
}

.hero-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  bottom: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
  padding: 18px 22px;
  position: absolute;
  right: 7%;
}

.hero-info strong {
  color: var(--blue);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.hero-info span {
  color: var(--red);
  font-size: 1.35rem;
  font-weight: 900;
}

.welcome-layout,
.visit-layout,
.contact {
  align-items: center;
  display: grid;
  gap: clamp(30px, 5vw, 76px);
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
}

.welcome-layout {
  background: #fff;
}

.welcome-media {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.welcome-media img {
  object-position: center top;
}

.welcome-copy p {
  margin: 18px 0 0;
}

.service-band {
  background:
    linear-gradient(135deg, rgba(16, 47, 87, 0.96), rgba(44, 25, 127, 0.94)),
    var(--blue);
  color: #fff;
}

.service-band h2,
.service-band .eyebrow {
  color: #f8d27b;
}

.service-grid,
.ministry-grid,
.events-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1120px;
}

.service-card,
.contact-card,
.event-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
}

.service-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.service-card.featured {
  background: #fff;
  color: var(--ink);
}

.service-card span,
.ministry-kicker {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card h3,
.ministry-card h3,
.feed-heading h3,
.event-info h3 {
  font-size: 1.4rem;
  line-height: 1.2;
  margin: 9px 0 8px;
}

.service-card p,
.ministry-card p,
.event-info p {
  margin: 0;
}

.visit-layout {
  background: #f1ece3;
}

.map-panel {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-panel iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.ministries {
  background: var(--paper);
}

.ministry-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.04);
  overflow: hidden;
}

.ministry-card img {
  aspect-ratio: 4 / 3;
  background: #f7f1e8;
  display: block;
  height: auto;
  object-fit: contain;
  padding: 8px;
  width: 100%;
}

.youtube-channel-frame {
  background: #101827;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.youtube-channel-frame iframe {
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  width: 100%;
}

.ministry-card div {
  padding: 24px;
}

.social-hub {
  background: #fff;
}

.connect-section {
  background:
    linear-gradient(135deg, rgba(16, 47, 87, 0.96), rgba(44, 25, 127, 0.92)),
    var(--blue);
  color: #fff;
}

.connect-section h2,
.connect-section .eyebrow {
  color: #f8d27b;
}

.connect-section .section-heading p:last-child {
  color: rgba(255, 255, 255, 0.78);
}

.connect-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1120px;
}

.connect-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  color: #fff;
  display: grid;
  gap: 8px;
  min-height: 180px;
  padding: 28px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.connect-card:hover,
.connect-card:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
  transform: translateY(-4px);
}

.connect-card > span:not(.social-logo) {
  color: #f8d27b;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.social-logo,
.mini-logo {
  align-items: center;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
}

.social-logo {
  font-size: 1.35rem;
  height: 48px;
  margin-bottom: 12px;
  width: 48px;
}

.mini-logo {
  font-size: 0.8rem;
  height: 22px;
  margin-right: 6px;
  width: 22px;
}

.facebook-logo {
  background: #1877f2;
  font-family: Arial, sans-serif;
}

.instagram-logo {
  background: radial-gradient(circle at 30% 110%, #feda75 0 18%, #fa7e1e 32%, #d62976 54%, #962fbf 76%, #4f5bd5 100%);
}

.youtube-logo {
  background: #ff0000;
}

.featured-reel {
  background: #fff;
}

.reel-layout {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(267px, 0.68fr) minmax(300px, 1fr);
  margin: 0 auto;
  max-width: 950px;
}

.facebook-reel-frame {
  background: #101827;
  border: 10px solid #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  justify-self: center;
  overflow: hidden;
  width: 287px;
}

.facebook-reel-frame iframe {
  height: 476px;
  width: 267px;
}

.reel-copy h3 {
  color: var(--blue);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 16px;
}

.reel-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.connect-card strong {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.connect-card small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.feed-block {
  margin: 0 auto 34px;
  max-width: 1120px;
}

.feed-block:last-child {
  margin-bottom: 0;
}

.feed-heading {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.feed-heading h3 {
  color: var(--blue);
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  margin: 0;
}

.feed-heading a,
.media-card-link,
.event-link {
  color: var(--red);
  font-weight: 900;
}

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

.reels-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.media-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.05);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-card:hover {
  box-shadow: 0 20px 42px rgba(17, 24, 39, 0.1);
  transform: translateY(-4px);
}

.media-thumb {
  aspect-ratio: 16 / 10;
  background: #e9eef4;
  display: block;
  overflow: hidden;
  position: relative;
}

.media-thumb iframe,
.media-thumb video {
  border: 0;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.reel-card .media-thumb {
  aspect-ratio: 9 / 16;
}

.video-card .media-thumb {
  aspect-ratio: 16 / 9;
}

.play-badge {
  align-items: center;
  background: rgba(17, 24, 39, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 1rem;
  height: 48px;
  justify-content: center;
  left: 50%;
  padding-left: 3px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
}

.media-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.media-meta {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.media-card h4 {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
  margin: 8px 0;
}

.media-card p {
  color: var(--muted);
  display: -webkit-box;
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0 0 16px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.media-card-link {
  margin-top: auto;
}

.feed-loading,
.feed-message {
  background: #f7f1e8;
  border: 1px dashed rgba(17, 24, 39, 0.18);
  border-radius: 14px;
  color: var(--muted);
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px;
}

.feed-message strong {
  color: var(--blue);
  display: block;
  margin-bottom: 6px;
}

.upcoming-events,
.previous-events {
  background: var(--paper);
}

.event-card {
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.04);
  display: grid;
  gap: 18px;
  grid-template-columns: 74px 1fr;
}

.event-date {
  align-items: center;
  background: var(--cream);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 74px;
}

.event-month {
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-day {
  color: var(--blue);
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
}

.event-tag {
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-time,
.event-desc {
  color: var(--muted);
}

.gallery-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(320px, 0.72fr) minmax(320px, 1.28fr);
  margin: 0 auto;
  max-width: 1120px;
}

.featured-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(17, 24, 39, 0.05);
  overflow: hidden;
}

.image-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: block;
  padding: 0;
  text-align: left;
  width: 100%;
}

.featured-image-wrapper {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.featured-content {
  padding: 24px;
}

.featured-tag {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-content h3 {
  color: var(--blue);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.12;
  margin: 8px 0;
}

.featured-date,
.featured-content p {
  color: var(--muted);
}

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

.gallery-item {
  aspect-ratio: 1;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
  overflow: hidden;
}

.contact {
  background: #fff;
}

.contact-card {
  box-shadow: var(--shadow);
}

.contact-card p {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 18px 0;
}

.contact-card p:first-child {
  padding-top: 0;
}

.contact-card p:last-of-type {
  border-bottom: 0;
}

.social-row a {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  padding: 10px 16px;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 24px clamp(18px, 4vw, 64px);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #f8d27b;
  font-weight: 900;
}

.lightbox {
  align-items: center;
  background: rgba(17, 24, 39, 0.94);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.2s ease;
  z-index: 200;
}

.lightbox:not([aria-hidden="true"]) {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  position: absolute;
}

.lightbox-close {
  font-size: 2rem;
  height: 48px;
  right: 22px;
  top: 22px;
  width: 48px;
}

.lightbox-prev,
.lightbox-next {
  font-size: 2.6rem;
  height: 58px;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.lightbox-content {
  max-height: 84vh;
  max-width: min(86vw, 1100px);
}

.lightbox-content img {
  border: 4px solid #fff;
  border-radius: 12px;
  max-height: 76vh;
  object-fit: contain;
  width: 100%;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.88);
  margin: 14px 0 0;
  text-align: center;
}

@media (max-width: 1040px) {
  .site-header {
    align-items: center;
    min-height: 72px;
  }

  .site-nav {
    background: rgba(251, 250, 247, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 18px;
    position: absolute;
    right: 0;
    top: 71px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    text-align: center;
    width: min(100%, 420px);
  }

  .nav-toggle {
    display: block;
  }

  .hero,
  .welcome-layout,
  .visit-layout,
  .contact,
  .gallery-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-media {
    min-height: 520px;
  }

  .service-grid,
  .ministry-grid,
  .events-grid,
  .connect-grid,
  .reel-layout,
  .media-grid,
  .reels-grid {
    grid-template-columns: 1fr;
  }

  .reel-card .media-thumb {
    aspect-ratio: 16 / 10;
  }

}

@media (max-width: 620px) {
  .site-header {
    padding: 10px 16px;
  }

  .section {
    padding: 56px 16px;
  }

  .brand-logo {
    height: 44px;
    width: 78px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    font-size: 0.7rem;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 15vw, 4.2rem);
  }

  .hero {
    gap: 30px;
    padding: 42px 16px 56px;
  }

  .hero-statement {
    font-size: 1.05rem;
  }

  .hero-media {
    min-height: 420px;
  }

  .hero-main {
    aspect-ratio: 4 / 3;
    inset: 0 0 auto 0;
  }

  .hero-float {
    bottom: 18px;
    left: 0;
    width: 46%;
  }

  .hero-info {
    bottom: 16px;
    right: 0;
    max-width: 58%;
    padding: 14px 16px;
  }

  .hero-info span {
    font-size: 1.05rem;
  }

  .hero-actions .button,
  .visit-actions .button,
  .welcome-actions .button {
    width: 100%;
  }

  .feed-heading {
    align-items: start;
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .facebook-reel-frame {
    border-width: 8px;
    max-width: 100%;
  }

  .connect-card {
    min-height: 156px;
    padding: 22px;
  }

  .lightbox-prev,
  .lightbox-next {
    height: 46px;
    width: 46px;
  }
}
