/* ============================
   MNPC — Marshallese New Pentecostal Church
   Fonts: Libre Baskerville (serif) + Manrope (sans)
   Navy: #123982 | Gold: #cb7e26 | BG: #f0f8ff
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Manrope:wght@400;600;700&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Variables ---------- */
:root {
  --navy: #123982;
  --gold: #cb7e26;
  --white: #f5f7f5;
  --bg: #f0f8ff;
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'Manrope', Arial, sans-serif;
  --max: 1200px;
}

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(18,57,130,0.08);
}

.site-header .logo img {
  height: 72px;
  width: auto;
}

/* ---------- Hamburger button ---------- */
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--navy);
}

/* ---------- Nav Drawer ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,57,130,0.4);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 90vw;
  background: var(--bg);
  z-index: 201;
  padding: 32px 28px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
.nav-open .nav-drawer { transform: translateX(0); }

.nav-drawer .close-btn {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-bottom: 24px;
}
.nav-drawer .close-btn svg { width: 28px; height: 28px; fill: var(--navy); }

.nav-drawer img.drawer-logo {
  width: 160px;
  margin: 0 auto 36px;
  display: block;
}

.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.nav-drawer ul a {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  display: block;
  padding: 14px 0;
}

.nav-drawer ul a.active {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 6px;
}

.nav-drawer ul a:hover { color: var(--gold); }

.nav-drawer .drawer-info {
  margin-top: 40px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--navy);
  line-height: 2;
  text-align: center;
}

.nav-drawer .drawer-info .drawer-label {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: var(--serif);
}

.nav-drawer .drawer-info a { display: block; }

/* ---------- Hero Section ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 48px;
  gap: 60px;
}

.hero-text .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}

.hero-text h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 24px;
}

.hero-text .body-copy {
  font-size: 16px;
  line-height: 1.9;
  color: var(--navy);
  margin-bottom: 32px;
}

.schedule-block {
  border-left: 3px solid var(--navy);
  padding-left: 16px;
}

.schedule-block p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2;
}

.schedule-block .schedule-label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
}

.hero-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* ---------- Mission Section ---------- */
.mission {
  position: relative;
  width: 100%;
  min-height: 520px;
  background-image: url('../images/mission-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

.mission::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18,57,130,0.75);
}

.mission-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 48px;
  text-align: center;
  color: var(--white);
}

.mission-inner .eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}

.mission-inner h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--white);
}

/* ---------- Mission donate text (inside mission section) ---------- */
.mission-donate-text {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(245,247,245,0.25);
}

.mission-donate-text h3 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.mission-donate-text p {
  color: var(--white);
  margin-bottom: 4px;
}

.mission-donate-text a { font-weight: 700; color: var(--white); text-decoration: underline; }

/* ---------- Donation embed — overlaps mission section ---------- */
.donation-embed-wrap {
  max-width: 760px;
  margin: -80px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

/* ---------- Direct link below embed ---------- */
.direct-link {
  text-align: center;
  padding: 16px 24px 16px;
  color: var(--navy);
}

.direct-link p {
  margin-bottom: 12px;
  font-family: var(--sans);
}

.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 28px;
  margin-top: 12px;
  transition: background 0.2s;
}

.btn-primary:hover { background: #0e2d6a; }

/* ---------- Pastor Nick ---------- */
.direct-link + .pastor { padding-top: 32px; }

.pastor {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.pastor-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: top;
}

.pastor-text h2 {
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--navy);
}

.pastor-text p {
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- Service Schedule ---------- */
.schedule {
  background: var(--navy);
  padding: 80px 48px;
}

.schedule-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.schedule-title {
  color: var(--white);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  grid-column: 1;
  align-self: center;
  padding-right: 16px;
}

.schedule-card {
  background: linear-gradient(180deg, #ffffff 0%, #b8d4f0 100%);
  border: 1px solid rgba(18,57,130,0.12);
  padding: 32px 24px;
  text-align: center;
  min-height: 160px;
}

.schedule-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.schedule-card .service-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.schedule-card .service-time {
  font-size: 15px;
  color: var(--navy);
  margin-top: 4px;
}

/* ---------- Youth Section ---------- */
.youth {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.youth-text h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.youth-text p {
  font-size: 16px;
  line-height: 1.7;
}

.youth-text p + p { margin-top: 16px; }

.youth-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
}

/* ---------- Worship / Gallery Preview ---------- */
.worship-preview {
  padding: 60px 48px 80px;
  text-align: center;
  background: var(--bg);
}

.worship-preview h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.worship-preview p {
  color: var(--navy);
  margin-bottom: 28px;
}

.worship-preview .btn-primary {
  margin-bottom: 40px;
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 28px;
  margin-bottom: 40px;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.6fr;
  grid-template-rows: repeat(2, 240px);
  gap: 8px;
  max-width: var(--max);
  margin: 0 auto;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.photo-grid img:nth-child(4) {
  grid-row: span 2;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 60px 48px 40px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245,247,245,0.2);
}

.footer-logo img { width: 100px; height: auto; filter: brightness(0) invert(1); }

.footer-col h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  text-transform: none;
}

.footer-col p,
.footer-col a {
  font-size: 15px;
  color: rgba(245,247,245,0.85);
  line-height: 2;
  display: block;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max);
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(245,247,245,0.6);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(245,247,245,0.3);
  color: var(--white);
  font-size: 16px;
  transition: background 0.2s;
}

.social-links a:hover { background: rgba(245,247,245,0.15); }

.social-links svg { width: 18px; height: 18px; fill: var(--white); }

/* =====================
   GALLERY PAGE
   ===================== */

.page-hero {
  text-align: center;
  padding: 72px 48px 48px;
  background: var(--bg);
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  color: var(--navy);
}

/* Video section */
.video-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px 64px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.video-grid video,
.video-grid iframe {
  width: 100%;
  aspect-ratio: 9/16;
  background: #000;
  display: block;
  border: none;
}

.video-grid-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.video-grid-bottom video,
.video-grid-bottom iframe {
  width: 100%;
  aspect-ratio: 9/16;
  background: #000;
  border: none;
  display: block;
}

/* Photo gallery grid */
.gallery-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
}

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

.gallery-grid a:hover img { transform: scale(1.04); }

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: white;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 16px;
  line-height: 1;
  opacity: 0.7;
}
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 48px 24px; gap: 32px; }
  .hero-text h1 { font-size: 30px; }
  .hero-image img { height: 360px; }

  .mission-inner h2 { font-size: 26px; }
  .mission-inner { padding: 60px 24px; }

  .donation-embed-wrap { margin-top: -48px; padding: 0 16px; }

  .pastor { grid-template-columns: 1fr; padding: 48px 24px; gap: 32px; }
  .direct-link + .pastor { padding-top: 24px; }
  .pastor-image img { height: 480px; }

  .schedule-inner { grid-template-columns: 1fr; }
  .schedule-title { grid-column: 1; padding-bottom: 16px; }
  .schedule { padding: 48px 24px; }

  .youth { grid-template-columns: 1fr; padding: 48px 24px; gap: 32px; }
  .youth-image { order: -1; }
  .youth-image img { height: 340px; }

  .worship-preview { padding: 48px 24px; }
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }
  .photo-grid img { height: 200px; border-radius: 10px; }
  .photo-grid img:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 3;
    height: 380px;
  }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding: 48px 24px 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .page-hero { padding: 48px 24px 32px; }
  .page-hero h1 { font-size: 32px; }
  .video-section { padding: 0 24px 48px; }
  .video-grid { grid-template-columns: 1fr; }
  .video-grid-bottom { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); padding: 0 24px 48px; }
}

@media (max-width: 480px) {
  .site-header { padding: 10px 16px; }
  .site-header .logo img { height: 52px; }
  .hero { padding: 32px 16px; }
  .photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .photo-grid img {
    aspect-ratio: 1;
    height: auto;
  }
  .photo-grid img:nth-child(4),
  .photo-grid img:nth-child(5),
  .photo-grid img:nth-child(6),
  .photo-grid img:nth-child(7) {
    display: none;
  }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
}
