/* =========================================================
   Sections below the hero.
   Reuses .btn (teal #35697a) + fonts already set in hero.css.
   ========================================================= */

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 32px;
  margin: 0 0 16px;
}

/* Responsive 16:9 video wrapper */
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 8px;
  overflow: hidden;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Section 1: Service Times ---- */
.service-times { background: #ffffff; text-align: center; padding: 64px 0; }
.service-times .section-title { color: rgb(57, 57, 58); }
.service-line   { font-family: 'Lato', sans-serif; font-size: 20px; margin: 4px 0; color: #39393a; }
.service-address{ font-family: 'Lato', sans-serif; font-size: 16px; margin: 16px 0 24px; color: #555; }
.section-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---- Section 2: Welcome (single centered column, big video below) ---- */
.welcome {
  background: rgb(230, 235, 238);
  padding: 72px 0;
  margin: 30px 30px 0;            /* inset from side walls; joins What Shapes Us below */
  border-radius: 10px 10px 0 0;   /* rounded top only */
  overflow: hidden;
}
.welcome .container { max-width: 880px; margin: 0 auto; text-align: center; }
.welcome .section-title { color: #000; margin-bottom: 20px; }
.welcome-text p { font-family: 'Lato', sans-serif; font-size: 18px; line-height: 1.6; color: #333; margin: 0 auto 24px; max-width: 720px; }
.btn-text {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  border-bottom: 2px solid #000;
  padding-bottom: 2px;
  margin-bottom: 36px;
}
.btn-text:hover { opacity: .75; text-decoration: none; }
.welcome-video { max-width: 880px; margin: 0 auto; }
.video-caption { display: none; }   /* original shows caption inside the video frame */

/* ---- Section 2.5: What Shapes Us (accordion) ---- */
.shapes {
  background: rgb(230, 235, 238);
  padding: 72px 0;
  margin: 0 30px 15px;            /* completes the joined card with Welcome above */
  border-radius: 0 0 10px 10px;   /* rounded bottom only */
}
.shapes-title { text-align: center; color: #000; }
.shapes-intro { text-align: center; font-family: 'Lato', sans-serif; font-size: 18px; color: #333; margin: 0 auto 36px; max-width: 720px; }

.accordion { max-width: 900px; margin: 0 auto; }
.acc-item { margin-bottom: 18px; }
.acc-head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff;
  border: none;
  border-radius: 10px;
  padding: 22px 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 17px; color: #39393a;
  text-align: left; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
}
.acc-icon { font-size: 22px; transition: transform .2s; }
.acc-item:not(.open) .acc-icon { transform: rotate(45deg); }   /* X -> + when closed */
.acc-body { padding: 14px 24px 4px; }
.acc-body p { font-family: 'Lato', sans-serif; font-size: 16px; color: #444; margin: 0; }
.acc-item:not(.open) .acc-body { display: none; }

/* ---- Section 3: Latest Message (own rounded inset band) ---- */
.latest-message {
  position: relative;
  margin: 0 31px;
  border-radius: 10px;
  overflow: hidden;
  background-image: url('img/sermon-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;   /* parallax: image stays put while content scrolls */
  padding: 64px 24px;
  color: #fff;
  text-align: center;
}
/* same cinematic overlay as the hero: vignette + top/bottom darkening + teal tint */
.latest-message::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(0,0,0,0) 48%, rgba(0,0,0,.35) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,.08) 45%, rgba(0,0,0,.45) 100%),
    linear-gradient(rgba(18,52,64,.18), rgba(18,52,64,.18));
}
/* matching film-grain layer (below the content, above the overlay) */
.latest-message::after {
  content: ""; position: absolute; inset: 0;
  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;
}
.latest-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.latest-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 50px; margin: 0 0 8px; color: #fff; }
.latest-subtitle { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 24px; margin: 0 0 24px; color: #fff; }
.latest-content p { font-family: 'Lato', sans-serif; font-size: 18px; line-height: 1.6; margin: 0 0 16px; }
.latest-content .video-embed { margin: 24px 0 28px; }

/* ---- Section 4: We're a Generous People ---- */
.generous {
  background: #ffffff;
  margin: 30px 30px 15px;
  border-radius: 10px;
  overflow: hidden;
  padding: 48px 0;
}
.generous-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;   /* text left, image right */
  gap: 56px;
  align-items: center;
}
.generous-text { text-align: left; }
.generous-image img { width: 100%; height: auto; border-radius: 10px; display: block; }
.generous-text .section-title { color: #39393a; margin-bottom: 16px; text-align: left; }
.generous-text p { font-family: 'Lato', sans-serif; font-size: 17px; line-height: 1.6; color: #333; margin: 0 0 16px; }
.generous-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

/* ---- Section 5: Get Connected at God's Way ---- */
.connected {
  background: #ffffff;
  margin: 30px 30px 15px;
  border-radius: 10px;
  overflow: hidden;
  padding: 48px 60px;
}
.connected-head { margin-bottom: 40px; }
.connected-head .section-title { color: #39393a; margin-bottom: 16px; }

.connect-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}
.connect-block:last-child { margin-bottom: 0; }
.connect-block.reverse .connect-image { order: 2; }   /* image on right */
.connect-image img { width: 100%; height: auto; border-radius: 10px; display: block; }

.connect-text h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 28px; color: #39393a; margin: 0 0 14px; }
.connect-text p { font-family: 'Lato', sans-serif; font-size: 17px; line-height: 1.6; color: #444; margin: 0 0 20px; }
.connect-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.link-teal { color: #35697a; font-family: 'Lato', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 14px; text-decoration: none; }
.link-teal:hover { text-decoration: underline; }

/* ---- Footer ---- */
.site-footer {
  background: #35697a;
  color: #fff;
  padding: 60px 24px 30px;
  text-align: center;
  font-family: 'Lato', sans-serif;
}
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: 1200px; margin: 0 auto 40px; }
.footer-icon { color: #fff; opacity: .95; }
.footer-icon svg { width: 26px; height: 26px; margin: 0 auto; }
.footer-col h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 18px; color: #fff; margin: 10px 0 14px; }
.footer-col a, .footer-col p { color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.6; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col p { margin: 0 0 16px; }
.footer-col strong { color: #fff; }

.footer-social { display: flex; justify-content: center; gap: 22px; margin: 10px 0 24px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; }
.footer-social a:hover { background: rgba(255,255,255,.28); }
.footer-social svg { width: 20px; height: 20px; }

.footer-links { display: flex; justify-content: center; gap: 28px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.8); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-copy   { font-size: 14px; color: rgba(255,255,255,.85); margin: 0 0 8px; }
.footer-credit { font-size: 12px; color: rgba(255,255,255,.45); margin: 0; }

/* ---- Responsive ---- */
/* ---- Tablet (≤900px) ---- */
@media (max-width: 900px) {
  /* footer 4 cols -> 2 so columns aren't cramped */
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  /* ease the two-column content sections */
  .generous-inner { gap: 36px; }
  .connect-block { gap: 36px; }
  .connected { padding: 44px 40px; }
}

@media (max-width: 768px) {
  .welcome-grid { grid-template-columns: 1fr; gap: 28px; }
  .latest-title { font-size: 34px; }
  .section-title { font-size: 26px; }
  .service-times { padding: 48px 0; }
  .welcome { padding: 48px 0; margin: 16px 16px 0; }
  .shapes { padding: 48px 0; margin: 0 16px 16px; }
  .latest-message { margin: 0 14px; padding: 48px 20px; background-attachment: scroll; }
  .generous { margin: 16px; }
  .generous-inner { grid-template-columns: 1fr; gap: 28px; }
  .connected { margin: 16px; padding: 36px 24px; }
  .connect-block, .connect-block.reverse { grid-template-columns: 1fr; gap: 24px; }
  .connect-block.reverse .connect-image { order: 0; }   /* image on top on mobile */
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}
