/* =========================================================
   GRACEWAY BAPTIST CHURCH — Main Stylesheet
   Brand: #729071 | #4e6e52 | #3a4d39 | #8c8889 | #394d38
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  --green-sage:     #729071;
  --green-mid:      #4e6e52;
  --green-dark:     #3a4d39;
  --green-darkest:  #394d38;
  --warm-gray:      #8c8889;
  --cream:          #f8f7f4;
  --cream-dark:     #f0ede8;
  --white:          #ffffff;
  --text-dark:      #1e2a1e;
  --text-body:      #3d3d3d;
  --text-muted:     #6b6b6b;
  --border:         #e2ddd8;

  --shadow-sm:   0 2px 8px rgba(58, 77, 57, 0.08);
  --shadow-md:   0 4px 20px rgba(58, 77, 57, 0.12);
  --shadow-lg:   0 8px 40px rgba(58, 77, 57, 0.18);
  --shadow-xl:   0 16px 60px rgba(58, 77, 57, 0.22);

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', -apple-system, sans-serif;

  --container: 1180px;
  --nav-height: 80px;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; font-family: var(--font-sans); font-weight: 600; }
p  { line-height: 1.8; color: var(--text-body); }

/* ── Utility ────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding { padding: 90px 0; }
.section-padding-sm { padding: 60px 0; }

.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-sage);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn-outline-dark:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 10px 22px; font-size: 0.8rem; }
.btn-lg { padding: 18px 42px; font-size: 1rem; }

/* ── Top Bar ────────────────────────────────────────────── */
.top-bar {
  background: var(--green-darkest);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.top-bar a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.top-bar a:hover { color: var(--white); }
.top-bar-right { display: flex; align-items: center; gap: 20px; }
.top-bar-social { display: flex; gap: 12px; }
.top-bar-social a { display: flex; align-items: center; font-size: 0.9rem; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  background: var(--green-dark);
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  transition: background var(--transition);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links li a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,0.88);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-cta { margin-left: 12px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--green-darkest);
  padding: 24px;
  z-index: 999;
  box-shadow: var(--shadow-xl);
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; }
.nav-mobile ul li a {
  display: block;
  padding: 14px 0;
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile ul li:last-child a { border-bottom: none; }
.nav-mobile .btn { margin-top: 20px; width: 100%; justify-content: center; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-darkest);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; }

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-slide.active .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 42, 30, 0.82) 0%,
    rgba(57, 77, 56, 0.6) 60%,
    rgba(58, 77, 57, 0.45) 100%
  );
}

/* Animated gradient fallback when no image */
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(114, 144, 113, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(78, 110, 82, 0.25) 0%, transparent 50%),
    linear-gradient(135deg, #1e2a1e 0%, #2d3e2d 40%, #394d38 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 0;
}
.hero-content .container {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-sage);
  margin-bottom: 20px;
  display: block;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

.hero-indicators {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  padding: 0;
}
.hero-dot.active {
  background: var(--white);
  width: 24px;
  border-radius: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  animation: scrollLine 1.5s ease infinite;
}

/* ── Services Strip ──────────────────────────────────────── */
.services-strip {
  background: var(--white);
  padding: 0;
  position: relative;
  z-index: 10;
}

.services-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: -40px 0 0;
  position: relative;
}

.services-card {
  background: var(--white);
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  transition: var(--transition);
}
.services-card:last-child { border-right: none; }
.services-card:hover { background: var(--cream); }

.services-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--green-sage), var(--green-mid));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
  font-size: 1.2rem;
}

.services-card h3 {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.services-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.services-card strong { color: var(--text-dark); font-weight: 600; }

/* ── Welcome Section ─────────────────────────────────────── */
.welcome {
  background: var(--white);
  padding: 110px 0 80px;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.welcome-text .section-label { color: var(--green-sage); }
.welcome-text h2 { color: var(--text-dark); margin-bottom: 24px; }
.welcome-text p { margin-bottom: 20px; color: var(--text-body); }
.welcome-text .btn { margin-top: 12px; }

.welcome-image {
  position: relative;
}
.welcome-image-main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}
.welcome-image-accent {
  position: absolute;
  bottom: -24px;
  left: -24px;
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, var(--green-sage), var(--green-mid));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.welcome-image-accent h4 {
  font-size: 2.5rem;
  color: var(--white);
  font-family: var(--font-serif);
  line-height: 1;
  margin-bottom: 4px;
}
.welcome-image-accent p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Latest Sermon ───────────────────────────────────────── */
.latest-sermon {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-darkest) 100%);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.latest-sermon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(114,144,113,0.15) 0%, transparent 60%);
}

.latest-sermon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.sermon-video-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #000;
  aspect-ratio: 16/9;
}
.sermon-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.sermon-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.sermon-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  transition: var(--transition);
}
.sermon-play-btn:hover { background: rgba(0,0,0,0.5); }
.sermon-play-btn svg {
  width: 72px;
  height: 72px;
  fill: var(--white);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.sermon-info .section-label { color: var(--green-sage); }
.sermon-info h2 { color: var(--white); margin-bottom: 12px; }
.sermon-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.sermon-meta span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sermon-meta svg { width: 14px; height: 14px; }
.sermon-info p { color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.sermon-info .sermon-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Events ──────────────────────────────────────────────── */
.events { background: var(--cream); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.event-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  position: relative;
  overflow: hidden;
}
.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-card-date {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  text-align: center;
  min-width: 56px;
  box-shadow: var(--shadow-md);
}
.event-card-date .month {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-mid);
}
.event-card-date .day {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--text-dark);
  line-height: 1;
}

.event-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.event-card-body h3 { font-size: 1.1rem; margin-bottom: 10px; }
.event-card-body p { font-size: 0.9rem; color: var(--text-muted); flex: 1; }
.event-card-footer {
  padding: 0 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.event-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.events-placeholder {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  grid-column: 1/-1;
}

/* ── About Strip ─────────────────────────────────────────── */
.about-strip { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 5/4;
  background: linear-gradient(135deg, var(--green-sage), var(--green-dark));
  box-shadow: var(--shadow-xl);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(30,42,30,0.8));
  color: var(--white);
  padding: 40px 24px 24px;
  font-size: 0.875rem;
  opacity: 0.9;
}

.about-text { }
.about-text blockquote {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--green-dark);
  border-left: 4px solid var(--green-sage);
  padding-left: 24px;
  margin: 24px 0;
  line-height: 1.5;
}
.about-text p { margin-bottom: 20px; }

/* ── Ministries ──────────────────────────────────────────── */
.ministries { background: var(--cream); }

.ministries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.ministry-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 2px solid transparent;
}
.ministry-card:hover {
  border-color: var(--green-sage);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ministry-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--green-sage), var(--green-mid));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--white);
}

.ministry-card h3 {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ministry-card p { font-size: 0.875rem; color: var(--text-muted); }

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--green-mid) 0%, var(--green-dark) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 70%);
}
.cta-banner .section-label { color: rgba(255,255,255,0.65); }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 500px; margin: 0 auto 36px; }
.cta-banner .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--green-darkest);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.6); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--green-mid);
  color: var(--white);
}

.footer-col h4 {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  align-items: flex-start;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 3px; color: var(--green-sage); }
.footer-contact-item a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--white); }

.footer-bottom {
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ── Page Hero ───────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-darkest) 100%);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(114,144,113,0.2) 0%, transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.5); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.75); margin-top: 16px; max-width: 600px; font-size: 1.1rem; }

/* ── Sermons Page ────────────────────────────────────────── */
.sermons-filters {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.search-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  background: var(--white);
}
.search-input:focus {
  outline: none;
  border-color: var(--green-sage);
}
.filter-select {
  padding: 12px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background: var(--white);
  cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--green-sage); }

.sermons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.sermon-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}
.sermon-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.sermon-card-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  position: relative;
  overflow: hidden;
}
.sermon-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sermon-card-thumb .play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.sermon-card:hover .play-overlay { opacity: 1; }
.play-overlay svg { width: 52px; height: 52px; fill: var(--white); }

.sermon-card-body { padding: 22px; }
.sermon-card-series {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 8px;
}
.sermon-card-body h3 { font-size: 1.05rem; margin-bottom: 8px; line-height: 1.35; }
.sermon-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.sermon-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sermon-modal.open { display: flex; }
.sermon-modal-inner {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.sermon-modal-video { aspect-ratio: 16/9; background: #000; }
.sermon-modal-video iframe { width: 100%; height: 100%; border: none; }
.sermon-modal-body { padding: 32px; overflow-y: auto; }
.sermon-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Contact Form ────────────────────────────────────────── */
.contact-form {
  max-width: 640px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--text-dark); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  background: var(--white);
  color: var(--text-body);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-sage);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-full { grid-column: 1/-1; }

.form-success {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: none;
}
.form-error {
  background: #fdecea;
  color: #c62828;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: none;
}

/* ── Plan Your Visit ─────────────────────────────────────── */
.visit-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}
.visit-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--green-mid);
}
.visit-card h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--green-dark); }

/* ── Map ─────────────────────────────────────────────────── */
.map-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ── Giving ──────────────────────────────────────────────── */
.giving-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.giving-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.giving-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.giving-card-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}
.giving-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.giving-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}
.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover { border-color: var(--green-mid); color: var(--green-mid); }
.page-btn.active { background: var(--green-mid); border-color: var(--green-mid); color: var(--white); }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Loading spinner ─────────────────────────────────────── */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--green-mid);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ministries-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 68px; }

  .top-bar-left { display: none; }

  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .hero-label { display: none; }
  .hero-scroll { display: none; }

  .services-strip-inner {
    grid-template-columns: 1fr;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .services-card { border-right: none; border-bottom: 1px solid var(--border); }
  .services-card:last-child { border-bottom: none; }

  .welcome-grid,
  .about-grid,
  .latest-sermon-grid { grid-template-columns: 1fr; gap: 40px; }

  .welcome-image-accent { display: none; }

  .events-grid { grid-template-columns: 1fr; }
  .sermons-grid { grid-template-columns: repeat(2, 1fr); }
  .ministries-grid { grid-template-columns: repeat(2, 1fr); }
  .visit-info-grid { grid-template-columns: 1fr; }
  .giving-methods { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1/-1; }

  .section-padding { padding: 60px 0; }
}

@media (max-width: 480px) {
  .sermons-grid { grid-template-columns: 1fr; }
  .ministries-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
}
