/* ============================================================
   HKBP PANONDANG NYC — style.css v1.0
   Mobile-first. One file. Increment ?v= on every change.
   Colors: Navy #1B2A4A  Gold #C9A84C  White #FFFFFF
   ============================================================ */

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

:root {
  --navy:       #1B2A4A;
  --navy-dark:  #111D33;
  --navy-light: #2C3F6B;
  --gold:       #C9A84C;
  --gold-light: #E2C97E;
  --gold-dark:  #A8872E;
  --white:      #FFFFFF;
  --off-white:  #F7F5F0;
  --gray-100:   #F0EDE8;
  --gray-200:   #D8D4CC;
  --gray-400:   #9B9690;
  --gray-600:   #5C5850;
  --gray-800:   #2E2C28;
  --text:       #1E1C18;
  --text-muted: #5C5850;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'Courier New', monospace;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.10);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.16);

  --nav-height: 68px;
  --max-width:  1100px;
  --section-pad: 4rem 1.25rem;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem,  3vw, 2.1rem);  }
h3 { font-size: clamp(1.1rem,  2vw, 1.5rem);  }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--gray-800); }
p:last-child { margin-bottom: 0; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 0.5rem;
}

/* ── NAVIGATION ───────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 52px;
  width: auto;
  flex-shrink: 0;
  /*
    Gold_Logo_transparent.png has a genuinely transparent background
    (processed from the original flattened-white PNG) — no blend-mode
    trick needed here. If the logo is ever swapped again, make sure the
    replacement file also has real alpha transparency outside its edges,
    not a baked-in white/solid background.
  */
}
.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  flex-shrink: 0;
}
.nav-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}
.nav-logo-sub {
  font-size: 0.65rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Desktop nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: 0.15rem;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-200);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

/* Give CTA in nav */
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.45rem 0.85rem !important;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--navy) !important;
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
#mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.75rem 1.25rem 1.25rem;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-200);
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  transition: color 0.2s;
}
#mobile-menu a:last-child { border-bottom: none; }
#mobile-menu a:hover { color: var(--gold); }
#mobile-menu .mob-cta {
  margin-top: 0.75rem;
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  border-radius: var(--radius-sm);
  padding: 0.7rem !important;
  border-bottom: none !important;
}

@media (min-width: 960px) {
  .nav-links    { display: flex; }
  .nav-hamburger { display: none; }
  #mobile-menu  { display: none !important; }
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 1.25rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(201,168,76,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero .section-label { color: var(--gold-light); }
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero p  { color: var(--gray-200); max-width: 560px; margin: 0 auto 2rem; }

/* ── HERO PHOTO SLIDER ────────────────────────────────────── */
.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 520px;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 2;
}
.hero-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
}
.hero-slider-dot.active { background: var(--gold); }

/* ── PAGE HERO (inner pages) ──────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 3rem 1.25rem 2.5rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero p  { color: var(--gray-200); max-width: 520px; margin: 0 auto; }
.page-hero .section-label { color: var(--gold-light); }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white);
}

/* ── SECTIONS ─────────────────────────────────────────────── */
section { padding: var(--section-pad); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p  { color: var(--text-muted); max-width: 520px; margin: 0 auto; }

.bg-off-white { background: var(--off-white); }
.bg-navy      { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p    { color: var(--gray-200); }

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: 0.5rem; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ── ANNOUNCEMENT BANNER ──────────────────────────────────── */
.announcement-bar {
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.announcement-bar a { color: var(--navy); text-decoration: underline; }

/* ── MINISTRY CARD (active vs coming soon) ────────────────── */
.ministry-card { position: relative; }
.ministry-card.coming-soon { opacity: 0.65; }
.ministry-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  margin-bottom: 0.5rem;
}
.badge-active { background: #E6F4EC; color: #1D6B35; }
.badge-soon   { background: var(--gray-100); color: var(--gray-600); }

/* ── SERMON CARD ──────────────────────────────────────────── */
.sermon-card { display: flex; gap: 1rem; align-items: flex-start; }
.sermon-thumb {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--gray-100);
}
.sermon-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.sermon-title { font-weight: 700; color: var(--navy); font-size: 0.95rem; line-height: 1.3; }

/* ── EVENT CARD ───────────────────────────────────────────── */
.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  min-width: 52px;
  flex-shrink: 0;
}
.event-date-badge .month {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.event-date-badge .day {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

/* ── FORMS ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.required-note { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.form-success {
  background: #E6F4EC;
  border: 1px solid #A8D5B8;
  color: #1D6B35;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: none;
}

/* ── PHOTO GRID ───────────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 600px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.2s;
}
.photo-grid img:hover { opacity: 0.88; }

/* ── YOUTUBE EMBED ────────────────────────────────────────── */
.yt-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--navy-dark);
}
.yt-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── FOOTER ───────────────────────────────────────────────── */
#site-footer {
  background: var(--navy-dark);
  color: var(--gray-200);
  padding: 3rem 1.25rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto 2rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
.footer-brand h3 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.85rem; color: var(--gray-400); line-height: 1.6; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-200);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── UTILITY ──────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-gold    { color: var(--gold-dark); }
.text-navy    { color: var(--navy); }
.text-muted   { color: var(--text-muted); }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.divider {
  border: none;
  border-top: 1px solid var(--gray-100);
  margin: 2rem 0;
}
