/* Shepherd Church – static replica of shepherdchurch.co */

:root {
  --white: #ffffff;
  --black: #000000;
  --gray: #cbd5e0;
  --navy: #000321;
  --dark: #1c1f26;
  --sage: #6f8d81;
  --muted: #8893a8;
  --body-muted: #565a7c;
  --soft: #f6f6ff;
  --accent: #ff6240;
  --headline: "Montserrat", system-ui, sans-serif;
  --body: "Lato", system-ui, sans-serif;
  --max: 1170px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

p {
  margin: 0 0 0.75em;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  font-family: var(--headline);
  font-weight: 700;
  margin: 0;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.container-narrow {
  max-width: 1000px;
}

.section {
  position: relative;
  overflow: hidden;
}

.section-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.text-center {
  text-align: center;
}

.desktop-only {
  display: initial;
}

.mobile-only {
  display: none;
}

/* Preserve intended display types on desktop-only flex containers */
.hero-actions.desktop-only {
  display: flex;
}

.hero-social.desktop-only {
  display: flex;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--headline);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 10px;
  border: 1px solid var(--white);
  transition: opacity 0.2s ease, transform 0.15s ease;
  text-align: center;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: scale(0.98);
}

.btn-give {
  background: var(--white);
  color: var(--dark);
  padding: 5px 20px;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 10px 40px;
}

/* Eyebrows / labels */
.eyebrow,
.eyebrow-light {
  font-family: var(--body);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 2em;
  margin: 0 0 0.25em;
}

.eyebrow {
  color: var(--muted);
}

.eyebrow-light {
  color: var(--white);
}

/* Section titles */
.section-title {
  font-family: var(--headline);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2em;
  margin: 0 0 0.5em;
}

.section-title-dark {
  color: var(--dark);
  font-size: 56px;
  text-align: center;
}

.section-title-navy {
  color: var(--navy);
  font-size: 56px;
}

.section-title-light {
  color: var(--white);
  font-size: 46px;
}

/* ========== HERO ========== */
.section-hero {
  background-color: var(--dark);
  padding: 20px 0 100px;
  min-height: 70vh;
  display: flex;
  align-items: stretch;
}

.section-bg-hero {
  background-image: url("../assets/hero-bg.jpg");
  background-image: image-set(
    url("../assets/hero-bg.webp") type("image/webp"),
    url("../assets/hero-bg.jpg") type("image/jpeg")
  );
  opacity: 1;
}

/* Lighter overlay so the hero background stays visible */
.section-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 31, 38, 0.25) 0%,
    rgba(28, 31, 38, 0.4) 50%,
    rgba(28, 31, 38, 0.55) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 0 20px;
}

.hero-logo img {
  width: 200px;
  height: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-left: auto;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-social a {
  display: block;
  line-height: 0;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.hero-social a:hover {
  opacity: 1;
}

.hero-social img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.hero-content {
  text-align: center;
  padding: 48px 0 40px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  color: var(--white);
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1em;
  margin: 10px 0 16px;
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  color: var(--gray);
  font-size: 20px;
  font-weight: 400;
  margin: 20px 0 0;
}

/* Directions: match live spacing (subtitle → 20px → button row with padding) */
.hero-cta {
  margin: 20px auto 0;
  padding: 10px 5px;
  width: 65%;
  max-width: 420px;
}

.hero-cta .btn-outline {
  display: inline-block;
}

/* ========== SERVICE BAR ========== */
.section-service-bar {
  background-color: var(--sage);
  padding: 0;
}

.service-bar-content {
  text-align: center;
  color: var(--white);
  padding: 15px 0;
  font-size: 24px;
  line-height: 1.5;
}

.service-bar-content p {
  margin: 0.1em 0;
}

/* ========== WHY ========== */
.section-why {
  background-color: var(--white);
  padding: 40px 0 20px;
}

.section-bg-why {
  background-image: url("../assets/why-bg.jpeg");
  opacity: 0.12;
}

.why-copy {
  max-width: 100%;
  margin: 0 auto 20px;
  padding: 20px 20px 0;
  text-align: center;
}

.why-copy .quote {
  color: var(--body-muted);
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 1.25em;
}

.why-copy .story {
  color: var(--dark);
  font-size: 32px;
  line-height: 1.5;
  letter-spacing: -1px;
  max-width: 900px;
  margin: 0 auto;
}

.why-copy .story strong {
  font-weight: 700;
}

/* ========== PASTORS ========== */
.section-pastors {
  background-color: var(--dark);
  padding: 40px 0 20px;
}

.pastors-grid {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 40px auto 20px;
}

.pastors-photo {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  padding: 10px 20px;
}

.pastors-photo img {
  width: 450px;
  max-width: 100%;
  border-radius: 5px;
}

.pastors-bio {
  flex: 1 1 55%;
  padding: 10px 40px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.pastors-bio .eyebrow-light {
  color: var(--muted);
  text-align: left;
}

.pastors-name {
  text-align: left;
  margin-bottom: 0.75em;
}

.pastors-bio p:last-child {
  color: var(--muted);
}

/* ========== WHAT TO EXPECT ========== */
.section-expect {
  background-color: var(--white);
  background-image: url("../assets/expect-bg.jpg");
  background-image: image-set(
    url("../assets/expect-bg.webp") type("image/webp"),
    url("../assets/expect-bg.jpg") type("image/jpeg")
  );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 40px 0 100px;
}

/* Full-opacity layer so the washed worship photo shows like the live site */
.section-bg-expect {
  background-image: url("../assets/expect-bg.jpg");
  background-image: image-set(
    url("../assets/expect-bg.webp") type("image/webp"),
    url("../assets/expect-bg.jpg") type("image/jpeg")
  );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
}

.section-expect .section-title {
  margin-top: 20px;
  margin-bottom: 24px;
}

.video-wrap {
  width: 74%;
  max-width: 900px;
  margin: 0 auto 32px;
}

.video-player {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--black);
}

.video-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  z-index: 2;
  transition: opacity 0.2s ease;
}

.video-player.is-playing .video-play-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.85);
  position: relative;
}

.play-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent #fff;
}

.enable-sound-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid hsla(0, 0%, 100%, 0.4);
  border-radius: 12px;
  color: #fff;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
}

.enable-sound-btn[hidden] {
  display: none !important;
}

.expect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 75%;
  max-width: 900px;
  margin: 0 auto;
  padding: 15px 0;
}

.expect-card {
  background: var(--white);
  border: 1px solid var(--dark);
  padding: 20px 24px;
  text-align: left;
}

.expect-card h3 {
  font-family: var(--body);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px;
  line-height: 1.5;
}

.expect-card p {
  font-size: 18px;
  color: var(--body-muted);
  line-height: 1.5;
  margin: 0;
}

/* ========== CORE BELIEFS ========== */
.section-beliefs {
  background-color: var(--dark);
  padding: 40px 0 40px;
}

.section-beliefs .eyebrow-light {
  margin-bottom: 0;
}

.section-beliefs .section-title {
  margin-bottom: 16px;
}

.beliefs-intro {
  color: var(--muted);
  font-size: 18px;
  text-align: center;
  max-width: 850px;
  margin: 0 auto 28px;
  line-height: 1.5;
  padding: 0 10px;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 85%;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border: 1.5px solid var(--body-muted);
  border-radius: 10px;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--dark);
  color: var(--white);
  padding: 16px 18px;
  text-align: left;
  font-family: var(--headline);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-trigger .faq-icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-trigger {
  background: var(--soft);
  color: var(--dark);
  border-radius: 10px 10px 0 0;
}

.faq-item.is-open .faq-trigger .faq-icon {
  transform: rotate(180deg);
}

.faq-panel {
  display: none;
  background: var(--dark);
  color: var(--white);
  padding: 15px 18px 18px;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  border-radius: 0 0 10px 10px;
}

.faq-item.is-open .faq-panel {
  display: block;
}

.faq-panel p {
  margin: 0;
}

/* ========== FOOTER ========== */
.section-footer {
  background-color: var(--dark);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  width: 80%;
  max-width: 900px;
  margin: 0 auto;
  padding: 15px 0;
}

.footer-logo img {
  width: 150px;
  margin: 0 auto;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer-social a {
  display: block;
  line-height: 0;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-social a:hover {
  opacity: 1;
}

.footer-social img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.footer-copy {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.3;
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 900px) {
  .hero-title {
    font-size: 48px;
  }

  .section-title-dark,
  .section-title-navy {
    font-size: 40px;
  }

  .section-title-light {
    font-size: 36px;
  }

  .why-copy .story {
    font-size: 24px;
  }

  .video-wrap {
    width: 92%;
  }

  .expect-grid {
    width: 92%;
  }

  .faq {
    width: 95%;
  }

  .pastors-bio {
    padding: 10px 20px;
  }
}

@media screen and (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .section-hero {
    padding: 16px 0 40px;
    min-height: auto;
  }

  .hero-top {
    justify-content: center;
    flex-direction: column;
    gap: 16px;
  }

  .hero-logo {
    text-align: center;
  }

  .hero-logo img {
    margin: 0 auto;
    width: 180px;
  }

  .hero-actions {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .hero-content {
    padding: 28px 0 24px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.2em;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-top: 16px;
  }

  .hero-cta {
    width: 100%;
    max-width: none;
    margin-top: 16px;
    padding: 8px 0;
  }

  .eyebrow,
  .eyebrow-light {
    font-size: 12px;
  }

  .service-bar-content {
    font-size: 24px;
    padding: 18px 10px;
  }

  .section-title-dark,
  .section-title-navy,
  .section-title-light {
    font-size: 32px;
  }

  .why-copy {
    padding: 10px 0 0;
  }

  .why-copy .quote {
    font-size: 16px;
  }

  .why-copy .story {
    font-size: 20px;
  }

  .pastors-grid {
    flex-direction: column;
    margin-top: 20px;
  }

  .pastors-photo,
  .pastors-bio {
    width: 100%;
    flex: none;
    padding: 10px;
  }

  .pastors-bio .eyebrow-light,
  .pastors-name {
    text-align: center;
  }

  .pastors-bio {
    text-align: center;
    font-size: 16px;
  }

  .section-expect {
    padding-bottom: 60px;
  }

  .video-wrap {
    width: 100%;
  }

  .expect-grid {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 16px;
  }

  .expect-card {
    margin-top: 0;
  }

  .expect-card h3,
  .expect-card p {
    font-size: 16px;
  }

  .beliefs-intro {
    font-size: 16px;
  }

  .faq {
    width: 100%;
  }

  .faq-trigger {
    font-size: 15px;
    padding: 14px 14px;
  }

  .faq-panel {
    font-size: 15px;
  }

  .footer-inner {
    width: 100%;
  }

  .btn {
    font-size: 18px;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 32px;
  }

  .btn-outline {
    padding: 10px 28px;
  }

  .play-icon {
    width: 64px;
    height: 64px;
  }

  .play-icon::before {
    border-width: 11px 0 11px 18px;
  }
}
