/* ============================================================
   TBAPM — The Believers Assembly Pentecostal Mission
   bapmission.org | style.css
   ============================================================ */

/* ── Google Fonts loaded in header.php ── */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1B2459;
  --navy-dk: #111840;
  --gold:    #C9922A;
  --gold-lt: #F0C878;
  --cream:   #F9F7F4;
  --white:   #FFFFFF;
  --text:    #2C2C2C;
  --text-lt: #6B6B6B;
  --border:  #E0DDD8;
  --shadow:  0 4px 24px rgba(27,36,89,0.10);
  --radius:  8px;
  --transition: 0.25s ease;
  --max-w:   1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

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

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-alt { background: var(--cream); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 40px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary   { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-primary:hover { background: #a87520; border-color: #a87520; color: var(--white); }
.btn-outline   { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ── NAVIGATION ── */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; max-width: var(--max-w); margin: 0 auto; height: 128px;
}
.logo-wrap { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-wrap img { height: 112px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-text .name {
  font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 700;
  color: var(--white); line-height: 1.2;
}
.logo-text .abbr {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  color: var(--gold-lt); text-transform: uppercase;
}

/* Desktop nav */
.main-nav { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-nav a {
  display: block; padding: 10px 14px;
  color: rgba(255,255,255,0.88); font-size: 0.88rem; font-weight: 600;
  border-radius: var(--radius); transition: all var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--white); background: rgba(255,255,255,0.10); }
.nav-cta { margin-left: 12px; padding: 9px 22px !important; background: var(--gold) !important; border-radius: 40px !important; color: var(--white) !important; }
.nav-cta:hover { background: #a87520 !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  position: relative; min-height: 580px; display: flex; align-items: center;
  background: var(--navy-dk); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.35; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27,36,89,0.85) 0%, rgba(17,24,64,0.60) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero .tagline { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-style: italic; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 100%);
  padding: 64px 0; text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero p  { color: rgba(255,255,255,0.75); font-size: 1.05rem; }
.breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: var(--gold-lt); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep::before { content: '›'; }

/* ── CARDS ── */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(27,36,89,0.15); }
.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 24px; }
.card-meta { font-size: 0.8rem; color: var(--text-lt); margin-bottom: 6px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p  { font-size: 0.93rem; color: var(--text-lt); }

/* ── SCRIPTURE BANNER ── */
.scripture-banner { background: var(--navy); color: var(--white); text-align: center; padding: 56px 0; }
.scripture-banner blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-style: italic; max-width: 800px; margin: 0 auto 1rem; line-height: 1.5; color: var(--gold-lt);
}
.scripture-banner cite { font-size: 0.88rem; color: rgba(255,255,255,0.65); font-style: normal; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ── SECTION HEADING ── */
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 { margin-bottom: 0.5rem; }
.section-head p { color: var(--text-lt); max-width: 560px; margin: 0 auto; }

/* ── SERVICE TIMES ── */
.service-times-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-time-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; transition: border-color var(--transition), box-shadow var(--transition);
}
.service-time-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.service-time-card .day { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.service-time-card .time { font-size: 1.5rem; font-weight: 700; color: var(--gold); }
.service-time-card .service-name { font-size: 0.82rem; color: var(--text-lt); margin-top: 4px; }

/* ── BELIEFS ── */
.belief-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.belief-item { display: flex; gap: 20px; }
.belief-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: rgba(201,146,42,0.12); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.belief-item h4 { margin-bottom: 6px; }
.belief-item p  { font-size: 0.93rem; color: var(--text-lt); }

/* ── LOCATION CARDS ── */
.location-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.location-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: all var(--transition);
}
.location-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-3px); }
.location-card .loc-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.location-card .loc-state { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.location-card .loc-pastor { font-size: 0.9rem; color: var(--text-lt); margin-bottom: 6px; }
.location-card .loc-addr  { font-size: 0.88rem; color: var(--text-lt); margin-bottom: 16px; }
.location-card a.view-link { font-size: 0.82rem; font-weight: 700; color: var(--navy); letter-spacing: 0.05em; text-transform: uppercase; border-bottom: 2px solid var(--gold); padding-bottom: 1px; }
.location-card a.view-link:hover { color: var(--gold); }

/* ── BRANCH DETAIL ── */
.branch-detail { display: grid; grid-template-columns: 1fr 360px; gap: 48px; }
.branch-img-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.branch-img-gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.branch-img-gallery img.full-width { grid-column: 1 / -1; aspect-ratio: 16/7; }
.branch-info-box { background: var(--cream); border-radius: var(--radius); padding: 32px 28px; position: sticky; top: 88px; }
.branch-info-box h3 { font-size: 1.3rem; margin-bottom: 20px; color: var(--navy); }
.info-row { display: flex; gap: 14px; margin-bottom: 18px; }
.info-row .ico { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.info-row .label { font-size: 0.78rem; font-weight: 700; color: var(--text-lt); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.info-row .val  { font-size: 0.95rem; color: var(--text); }
.service-schedule { margin-top: 8px; }
.service-schedule .srow { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.service-schedule .srow:last-child { border-bottom: none; }
.service-schedule .srow .day-name { font-weight: 600; color: var(--navy); }
.service-schedule .srow .svc-time { color: var(--gold); font-weight: 700; }

/* ── NETWORK DIRECTORY ── */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.biz-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all var(--transition); }
.biz-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.biz-card h4 { color: var(--navy); margin-bottom: 6px; }
.biz-card .biz-type { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.biz-card p { font-size: 0.9rem; color: var(--text-lt); }

/* ── CONTACT ── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.contact-detail { display: flex; gap: 16px; margin-bottom: 20px; }
.contact-detail .ico { color: var(--gold); font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.contact-detail .label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; color: var(--text-lt); margin-bottom: 2px; letter-spacing: 0.06em; }
.contact-detail .val  { font-size: 0.95rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: 'Open Sans', sans-serif; font-size: 0.95rem; color: var(--text);
  background: var(--white); transition: border-color var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--navy); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.93rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── NEWS / EVENTS ── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.event-highlight {
  background: var(--navy); border-radius: var(--radius); padding: 40px; color: var(--white);
  margin-bottom: 48px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.event-highlight h3 { color: var(--gold-lt); font-size: 1.5rem; margin-bottom: 8px; }
.event-highlight p  { color: rgba(255,255,255,0.78); }
.event-date-box { text-align: center; background: var(--gold); border-radius: var(--radius); padding: 20px 28px; }
.event-date-box .month { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.85); }
.event-date-box .day   { font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--white); }
.event-date-box .year  { font-size: 0.8rem; color: rgba(255,255,255,0.75); }

/* ── FOOTER ── */
#site-footer { background: var(--navy-dk); color: rgba(255,255,255,0.75); }
.footer-main { display: grid; grid-template-columns: 2fr 1.2fr 1.5fr; gap: 48px; padding: 64px 0 48px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; margin-top: 16px; }
.footer-col h5 { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); display: inline-block; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.footer-links a:hover { color: var(--gold-lt); }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 12px; font-size: 0.88rem; }
.footer-contact-item .ico { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.10); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--gold-lt); }

/* ── STATS BAR ── */
.stats-bar { background: var(--gold); padding: 40px 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: var(--white); line-height: 1; }
.stat-label { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.85); margin-top: 4px; }

/* ── LEADERSHIP ── */
.leadership-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.leadership-grid .leader-card { width: 260px; }
.leader-card { text-align: center; }
.leader-card img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 4px solid var(--gold); }
.leader-card h4 { margin-bottom: 4px; }
.leader-card .title { font-size: 0.85rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── MOBILE ── */
/* ── PHOTO WALL ── */
.photo-wall {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 8px;
}
.photo-wall img {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 4px;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: brightness(0.92);
}
.photo-wall img:hover { transform: scale(1.02); filter: brightness(1); }
.photo-wall .pw-tall { grid-row: 1 / 3; }

/* ── PARALLAX ── */
.parallax-section {
  position: relative; overflow: hidden;
}
.parallax-bg {
  position: absolute; inset: -40px 0;
  background-size: cover; background-position: center;
  will-change: transform;
}
.parallax-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(17,24,64,0.82) 0%, rgba(27,36,89,0.70) 100%);
}
.parallax-content { position: relative; z-index: 2; }

/* ── FULL-BLEED IMAGE CTA ── */
.bleed-cta {
  min-height: 340px; display: flex; align-items: center;
}

/* ── ABOUT IMAGE ── */
.about-img-wrap { position: relative; }
.about-img-wrap img {
  border-radius: 12px; width: 100%; height: 400px; object-fit: cover;
  box-shadow: 0 20px 60px rgba(27,36,89,0.20);
}
.about-img-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gold); color: #fff;
  padding: 20px 24px; border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow);
}
.about-img-badge .badge-num { font-family: 'Playfair Display',serif; font-size: 2rem; font-weight: 700; line-height: 1; }
.about-img-badge .badge-lbl { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.9; }

@media (max-width: 768px) {
  .photo-wall { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px 160px; }
  .photo-wall .pw-tall { grid-row: auto; }
  .about-img-badge { bottom: 10px; right: 10px; }
}
@media (max-width: 500px) {
  .photo-wall { grid-template-columns: 1fr; grid-template-rows: repeat(5, 180px); }
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  nav#main-nav { display: none; position: fixed; inset: 0; top: 72px; background: var(--navy-dk); padding: 32px 24px; z-index: 999; flex-direction: column; }
  nav#main-nav.open { display: flex; }
  .main-nav { flex-direction: column; gap: 4px; width: 100%; }
  .main-nav a { font-size: 1.1rem; padding: 14px 20px; }
  .nav-cta { margin-left: 0; margin-top: 16px; text-align: center; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .branch-detail { grid-template-columns: 1fr; }
  .branch-info-box { position: static; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .news-grid, .biz-grid, .location-grid, .service-times-grid, .belief-grid, .contact-wrap { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr 1fr; }
  .event-highlight { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 32px; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 440px; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .leadership-grid { grid-template-columns: 1fr 1fr; }
  .branch-img-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .location-grid { grid-template-columns: 1fr; }
  .leadership-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
