/* =============================================
   BLESSED HOPE BAPTIST CHURCH — style.css
   ============================================= */

/* --- VARIABLES --- */
:root {
  --navy:       #1B4265;
  --navy-dark:  #122d47;
  --navy-deep:  #0d1f2d;
  --silver:     #B3B3B3;
  --smoke:      #767676;
  --dust:       #A19586;
  --white:      #ffffff;
  --off-white:  #F7F6F4;
  --text-dark:  #1a1a1a;
  --text-mid:   #444444;

  --font-head:  'Poppins', sans-serif;
  --font-body:  'Crimson Text', serif;

  --max-w: 1160px;
  --nav-h: 80px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* --- UTILITY --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
}
.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-primary-light {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--white);
}
.btn-primary-light:hover {
  background: var(--off-white);
}
.btn-salvation {
  background: var(--white);
  color: var(--navy-deep);
  border: 2px solid var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 40px;
  flex-shrink: 0;
}
.btn-salvation:hover {
  background: var(--off-white);
}

/* --- SECTION TYPOGRAPHY --- */
.section-eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 16px;
}
.section-eyebrow.light { color: rgba(255,255,255,0.6); }
.section-heading {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 24px;
}
.section-heading.light { color: var(--white); }
.body-text {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 32px;
}
.body-text.light { color: rgba(255,255,255,0.8); }

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay { transition-delay: 0.15s; }

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: var(--navy-deep);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 48px;
  width: 100%;
}
.nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links > a,
.nav-dropdown-toggle {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}
.nav-links > a:hover,
.nav-dropdown-toggle:hover { color: var(--white); }
.nav-links > a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--silver);
  transition: width 0.2s var(--ease);
}
.nav-links > a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--white);
  color: var(--navy) !important;
  padding: 10px 22px;
  border-radius: 2px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover {
  background: var(--off-white) !important;
  transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }
.nav-event {
  background: transparent;
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 2px;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.5);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.nav-event:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: var(--white);
  transform: translateY(-1px);
}
.nav-event::after { display: none !important; }

/* Dropdown */
.nav-dropdown { position: relative; }
.chevron {
  display: inline-block;
  transition: transform 0.25s var(--ease);
  font-style: normal;
  font-size: 14px;
  margin-left: 2px;
}
.nav-dropdown.open .chevron,
.nav-dropdown:hover .chevron {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--navy-deep);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
/* Bridge gap between toggle and menu so mouse doesn't lose hover */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown-menu a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: all 0.25s ease;
  transform-origin: center center;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/batavia_ny.png');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 35, 0.55) 0%,
    rgba(10, 22, 35, 0.70) 50%,
    rgba(10, 22, 35, 0.80) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-rule {
  width: 120px;
  height: 1px;
  background: var(--silver);
  margin: 0 auto 28px;
  opacity: 0.7;
  animation: fadeIn 0.8s var(--ease) 0.2s both;
}
.hero-heading {
  font-family: var(--font-head);
  font-size: clamp(40px, 8vw, 112px);
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  animation: fadeIn 0.9s var(--ease) 0.35s both;
  text-shadow: 0 2px 32px rgba(0,0,0,0.4);
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 18px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 48px;
  animation: fadeIn 0.8s var(--ease) 0.55s both;
  white-space: nowrap;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeIn 0.8s var(--ease) 0.7s both;
}
.hero-scroll-indicator { display: none; }
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeIn 0.8s var(--ease) 0.7s both;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: fadeIn 0.8s var(--ease) 1s both;
}
.hero-scroll-indicator span {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* =============================================
   TIMES STRIP
   ============================================= */
.times-strip {
  background: var(--navy-deep);
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.times-grid {
  display: flex;
  align-items: stretch;
}
.time-item {
  flex: 1;
  padding: 36px 32px;
  text-align: center;
  transition: background 0.2s;
}
.time-item:hover { background: rgba(255,255,255,0.03); }
.time-divider {
  width: 1px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.time-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 8px;
}
.time-value {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.time-desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.45);
}

/* =============================================
   WELCOME SECTION
   ============================================= */
.welcome-section {
  padding: 120px 0;
  background: var(--white);
}
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.welcome-text { max-width: 480px; }
.welcome-photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.15);
}
.welcome-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* =============================================
   SERMON SECTION
   ============================================= */
.sermon-section {
  padding: 120px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.sermon-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/images/pulpit_area.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}
.sermon-header {
  text-align: center;
  margin-bottom: 56px;
}
.sermon-header .body-text { max-width: 480px; margin: 0 auto 32px; }
.sermon-embed { margin-bottom: 48px; }
.youtube-wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.youtube-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.sermon-cta { text-align: center; }

/* =============================================
   VISIT SECTION
   ============================================= */
.visit-section {
  padding: 120px 0;
  background: var(--off-white);
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.visit-photo {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}
.visit-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.visit-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.visit-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.visit-detail-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.visit-detail-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.visit-detail-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 4px;
}
.visit-detail-value {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--text-dark);
}

/* =============================================
   SALVATION BANNER
   ============================================= */
.salvation-banner {
  background: var(--navy-deep);
  padding: 80px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.salvation-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  justify-content: space-between;
}
.salvation-eyebrow {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 14px;
}
.salvation-heading {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}
.salvation-sub {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--navy-deep);
  padding-top: 80px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 2fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo { height: 80px; width: auto; margin-bottom: 20px; }
.footer-tagline {
  font-family: var(--font-body);
  font-size: 17px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 24px;
  white-space: nowrap;
}
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-socials a:hover { color: var(--white); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-heading {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 8px;
}
.footer-col a {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-time, .footer-address {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}
.footer-time strong {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}
.footer-address { margin-top: 8px; }
.footer-bottom {
  padding: 24px 0;
}
.footer-bottom p {
  font-family: var(--font-head);
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
  text-align: center;
}

/* =============================================
   MAP SECTION
   ============================================= */
.map-section {
  padding: 100px 0 0;
  background: var(--white);
}
.map-header {
  text-align: center;
  margin-bottom: 40px;
}
.map-address {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--smoke);
  margin-top: -8px;
}
.map-embed {
  width: 100%;
  line-height: 0;
  box-shadow: 0 -4px 40px rgba(0,0,0,0.08);
}
.map-embed iframe { display: block; width: 100%; }
.map-cta {
  text-align: center;
  padding: 40px 0 100px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .welcome-grid,
  .visit-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .times-grid { flex-wrap: wrap; }
  .time-item { flex: 1 1 calc(50% - 1px); }
  .time-divider { display: none; }
  .salvation-inner { flex-direction: column; gap: 32px; text-align: center; }
  .visit-photo { order: -1; }
  .welcome-img { height: 300px; }
  .visit-img { height: 300px; }
}

@media (max-width: 680px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .hero-content { padding: 0 24px; padding-top: var(--nav-h); }
  .nav-links { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--navy-deep);
    justify-content: flex-start;
    align-items: center;
    padding: 80px 0 60px;
    gap: 0;
    z-index: 99;
    overflow-y: auto;
    animation: mobileNavIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  @keyframes mobileNavIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ALL nav items centered */
  .nav-links.open > *,
  .nav-links.open > a,
  .nav-links.open > .nav-dropdown {
    width: 100%;
    text-align: center;
  }
  .nav-links.open > a {
    display: block;
    font-family: var(--font-head);
    font-size: 17px !important;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9) !important;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-align: center !important;
    background: none !important;
    border-radius: 0 !important;
  }

  /* Dropdown toggles */
  .nav-links.open .nav-dropdown-toggle {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    padding: 18px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
  }

  /* Dropdown submenus */
  .nav-links.open .nav-dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: all;
    background: rgba(255,255,255,0.04);
    border: none;
    box-shadow: none;
    border-radius: 0;
    min-width: 100%;
    padding: 4px 0;
    display: none;
  }
  .nav-links.open .nav-dropdown.open .nav-dropdown-menu {
    display: block;
    animation: dropIn 0.2s ease both;
  }
  @keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-links.open .nav-dropdown-menu a {
    display: block;
    padding: 12px 0;
    font-size: 13px !important;
    text-align: center !important;
    color: rgba(255,255,255,0.65) !important;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    letter-spacing: 0.06em;
    background: none !important;
  }
  .nav-links.open .nav-dropdown-menu a:last-child { border-bottom: none; }

  /* The Gospel CTA button */
  .nav-links.open .nav-cta {
    background: transparent !important;
    border: 2px solid rgba(255,255,255,0.7) !important;
    border-radius: 2px !important;
    color: var(--white) !important;
    padding: 12px 32px !important;
    margin: 12px auto 4px !important;
    width: auto !important;
    display: inline-block !important;
    font-size: 13px !important;
    letter-spacing: 0.15em;
  }

  /* VBS event button */
  .nav-links.open .nav-event {
    border: 2px solid rgba(255,255,255,0.5) !important;
    border-radius: 2px !important;
    color: var(--white) !important;
    padding: 12px 32px !important;
    margin: 4px auto 12px !important;
    width: auto !important;
    display: inline-block !important;
    font-size: 13px !important;
    letter-spacing: 0.15em;
    background: transparent !important;
  }

  .nav-hamburger { display: flex; position: relative; z-index: 101; }
  .welcome-section,
  .sermon-section,
  .visit-section { padding: 80px 0; }
  .salvation-banner { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .time-item { flex: 1 1 100%; }
  .hero-heading { font-size: clamp(32px, 10vw, 64px); }
  .hero-sub { white-space: normal !important; font-size: 15px; }
}

/* Hamburger animates to X when open */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
