:root {
  --color-primary: #0b5d3b;
  --color-primary-dark: #08482d;
  --color-secondary: #d7a72d;
  --color-text: #1d2939;
  --color-muted: #526071;
  --color-surface: #ffffff;
  --color-surface-alt: #f4f8f6;
  --color-border: #d8e1dc;
  --color-footer: #0f1720;
  --color-shadow: rgba(15, 23, 32, 0.08);
  --color-shadow-strong: rgba(15, 23, 32, 0.16);
  --shadow-soft: 0 14px 40px var(--color-shadow);
  --shadow-card: 0 18px 45px var(--color-shadow);
  --shadow-image: 0 22px 50px var(--color-shadow-strong);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background: linear-gradient(180deg, #fcfdfc 0%, #f7faf8 100%);
  line-height: 1.6;
}

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

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

iframe {
  border: 0;
  width: 100%;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216, 225, 220, 0.8);
  box-shadow: 0 8px 24px rgba(15, 23, 32, 0.04);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #158a58);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-soft);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text span {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-nav a {
  font-weight: 600;
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.25s ease;
}

.hero,
.page-hero {
  background:
    radial-gradient(circle at top left, rgba(215, 167, 45, 0.16), transparent 30%),
    linear-gradient(180deg, #eef6f1 0%, #ffffff 100%);
}

.hero {
  padding: 5rem 0 4.5rem;
}

.hero-refined {
  position: relative;
}

.page-hero {
  padding: 4.75rem 0 2.5rem;
}

.hero-grid,
.split-section,
.footer-grid {
  display: grid;
  gap: 2.5rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.split-section h2,
.cta-box h2 {
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  max-width: 13ch;
}

.hero-lead {
  font-size: 1.06rem;
  max-width: 58ch;
}

.page-hero h1,
.section-heading h2,
.split-section h2,
.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero-copy p,
.page-hero p,
.section-heading p,
.card p,
.split-section p,
.cta-box p,
.info-panel p,
.gallery-item figcaption {
  color: var(--color-muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-primary);
}

.centered-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.8rem 0 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.45rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 12px 30px rgba(11, 93, 59, 0.2);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-secondary,
.btn-light {
  background: #fff;
  color: var(--color-text);
  border: 1px solid rgba(216, 225, 220, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 32, 0.04);
}

.btn-light {
  white-space: nowrap;
}

.service-times,
.info-panel ul,
.contact-list,
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-times li,
.contact-list li,
.site-footer li {
  margin-bottom: 0.75rem;
}

.service-times-highlight {
  display: grid;
  gap: 0.9rem;
  max-width: 520px;
}

.service-times-highlight li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(216, 225, 220, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 32, 0.04);
}

.service-times-highlight span {
  color: var(--color-muted);
  text-align: right;
}

.hero-card,
.card,
.info-panel,
.cta-box,
.gallery-preview-card,
.gallery-featured {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.hero-card,
.polished-card,
.polished-panel,
.image-card,
.gallery-item,
.gallery-featured {
  border: 1px solid rgba(216, 225, 220, 0.85);
}

.hero-card {
  overflow: hidden;
}

.hero-card-image {
  min-height: 420px;
  background:
    linear-gradient(rgba(6, 34, 22, 0.14), rgba(6, 34, 22, 0.34)),
    url('../../home.webp') center/cover;
}

.hero-card-content {
  padding: 1.75rem;
}

.hero-card-content h2 {
  margin-bottom: 0.75rem;
}

.text-link {
  color: var(--color-primary);
  font-weight: 700;
}

.section {
  padding: 5rem 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(244, 248, 246, 0.7), rgba(255, 255, 255, 0));
}

.section-alt {
  background: var(--color-surface-alt);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 2.2rem;
}

.cards {
  display: grid;
  gap: 1.5rem;
}

.cards.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.info-panel {
  padding: 1.7rem;
  border: 1px solid rgba(216, 225, 220, 0.85);
}

.card h3,
.info-panel h3,
.site-footer h3,
.site-footer h4,
.gallery-item figcaption {
  margin-top: 0;
}

.feature-card,
.polished-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
}

.refined-split {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
  align-items: center;
}

.split-section {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.event-date,
.sermon-tag {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-weight: 800;
  color: var(--color-secondary);
}

.sermon-tag {
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: rgba(215, 167, 45, 0.14);
}

.sermon-card h3 {
  margin-bottom: 0.6rem;
}

.contact-panel,
.map-panel {
  min-height: 100%;
}

.map-embed-wrapper {
  margin-top: 1.25rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.map-embed-wrapper iframe {
  display: block;
  min-height: 320px;
}

.ministry-grid .card {
  min-height: 100%;
}

.ministry-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}

.ministry-card-featured {
  padding: 1.1rem;
}

.ministry-image,
.gallery-preview-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-image);
}

.gallery-preview-section {
  padding-top: 0;
}

.gallery-preview-card {
  padding: 1rem;
}

.gallery-showcase {
  display: grid;
  gap: 1.75rem;
}

.gallery-featured {
  padding: 1rem;
}

.gallery-featured img {
  width: 100%;
  height: min(68vw, 520px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-image);
}

.gallery-thumbnails {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cta-section {
  padding-top: 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--color-primary), #158a58);
  color: #fff;
  padding: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-box .eyebrow,
.cta-box p {
  color: rgba(255, 255, 255, 0.92);
}

.site-footer {
  background: var(--color-footer);
  color: rgba(255, 255, 255, 0.84);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  grid-template-columns: 1.3fr 0.7fr 0.8fr;
  padding-bottom: 1.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.84);
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
}

.gallery-section {
  padding-top: 0;
}

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

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover,
.gallery-item-active {
  transform: translateY(-4px);
  box-shadow: var(--shadow-image);
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item figcaption {
  padding: 0.9rem 1rem 1rem;
  font-weight: 600;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .hero-grid,
  .split-section,
  .footer-grid,
  .cards.three-up,
  .cards.two-up,
  .cta-box,
  .gallery-grid,
  .refined-split,
  .gallery-thumbnails {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.25rem;
  }

  .service-times-highlight li {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-times-highlight span {
    text-align: left;
  }

  .cta-box {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
  }

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

  .gallery-featured img {
    height: 320px;
  }
}
