/* =========================================================
   HERO — floating "church-float" card:
   a rounded, inset card with a 4-slide cross-fade carousel,
   cinematic overlay, overlaid top bar + hamburger, and
   left-aligned vertically-centered content.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&family=Lato:wght@300;400;700;800&display=swap');

:root { --teal: #35697a; --teal-dark: #264a56; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; font-family: 'Lato', sans-serif; }

/* ---------- Floating card ---------- */
.hero {
  position: relative;
  min-height: 748px;
  margin: 30px 30px 15px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- Background carousel ---------- */
.hero-carousel { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  /* cinematic color grade — applies equally to every slide */
  filter: contrast(1.08) saturate(0.9) brightness(0.9);
}
.hero-slide.is-active { opacity: 1; }

/* placeholder slide backgrounds (swap for real God's Way photos) */
.hero-slide.ph1 { background-image: linear-gradient(135deg, #1d2a30, #35697a); }
.hero-slide.ph2 { background-image: linear-gradient(135deg, #264a56, #7296a2); }
.hero-slide.ph3 { background-image: linear-gradient(135deg, #2b3b33, #35697a); }
.hero-slide.ph4 { background-image: linear-gradient(135deg, #31414a, #264a56); }

/* dark tint overlay */
/* cinematic overlay: vignette + top/bottom darkening + subtle teal tint */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(0,0,0,0) 48%, rgba(0,0,0,.50) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.22) 42%, rgba(0,0,0,.62) 100%),
    linear-gradient(rgba(18,52,64,.22), rgba(18,52,64,.22));
}

/* fine film grain over the hero (above image+overlay, below text/nav) */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.hero-topbar,
.hero-content { position: relative; z-index: 2; }

/* ---------- Top bar ---------- */
.hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
}
/* dark-text logo over a dark hero → sits in a clean white chip */
.hero-logo {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  background: #fff;
  padding: 9px 15px;
  border-radius: 8px;
}
.hero-logo img { height: 46px; width: auto; }

.hero-nav { display: flex; align-items: center; gap: 32px; }
.hero-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.hero-nav a {
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}
.hero-nav a:hover { opacity: .8; }
.hero-search {
  font-size: 18px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.hero-search:hover { opacity: .8; }

/* hamburger (hidden on desktop) */
.hero-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hero-burger span { width: 26px; height: 3px; background: #fff; border-radius: 2px; }

/* ---------- Content ---------- */
.hero-content { display: block; padding: 350px 0 70px; }
.hero-container { max-width: 1400px; width: 100%; margin: 0 auto; padding: 0 60px; }

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 1.2;
  color: #fff;
  margin: 0;
  max-width: 760px;
}
.hero-subtitle {
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: #fff;
  margin: 16px 0 16px;
}

/* ---------- Buttons (solid teal fill) ---------- */
.hero-buttons { display: flex; gap: 16px; margin-top: 16px; }
.btn {
  display: inline-block;
  padding: 16px 28px;
  border: 2px solid var(--teal);
  border-radius: 5px;
  background: var(--teal);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

/* ---------- Tablet (≤1024px) ---------- */
@media (max-width: 1024px) {
  .hero-nav, .hero-nav ul { gap: 22px; }
  .hero-content { padding: 240px 0 60px; }
  .hero-container { padding: 0 40px; }
  .hero-title { font-size: 46px; max-width: 600px; }
  .hero-subtitle { font-size: 24px; }
}

/* ---------- Mobile (≤768px) ---------- */
@media (max-width: 768px) {
  .hero { min-height: 600px; margin: 14px 14px 10px; }
  .hero-topbar { padding: 18px 22px; position: relative; }
  .hero-logo img { height: 44px; }

  .hero-nav { display: none; }
  .hero-burger { display: flex; }

  /* opened mobile menu panel */
  .hero-nav.open {
    display: flex;
    position: absolute;
    top: 86px; left: 22px; right: 22px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(0, 0, 0, 0.92);
    border-radius: 6px;
    padding: 8px 14px 16px;
    z-index: 5;
  }
  .hero-nav.open ul { flex-direction: column; gap: 0; width: 100%; }
  .hero-nav.open a { display: block; padding: 14px 4px; }

  .hero-content { padding: 160px 0 48px; }
  .hero-container { padding: 0 24px; }
  .hero-title { font-size: 34px; line-height: 1.18; max-width: 100%; }
  .hero-subtitle { font-size: 19px; margin: 14px 0 22px; }

  .hero-buttons { flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn { width: 100%; max-width: 280px; text-align: center; padding: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
