/* =============================================
   VICTORY CHURCH — Global Styles
   Light theme inspired by calvarymd.com
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;900&display=swap');

:root {
  /* Light backgrounds */
  --bg:        #ffffff;
  --bg2:       #f5f6f8;
  --bg3:       #eef0f4;
  --surface:   #ffffff;

  /* Dark sections (header, footer, strips) */
  --dark:      #0a1628;
  --dark2:     #0f1e38;

  /* Accent — gold as default, overridden per page */
  --accent:    #b08a2e;
  --accent-rgb: 176,138,46;
  --accent-lt: #d4aa50;
  --accent-dk: #8a6a1a;

  /* Text */
  --text:      #1a1a2e;
  --muted:     #6b7280;
  --text-on-dark:      #f0f0f0;
  --muted-on-dark:     rgba(240,240,240,0.6);

  /* Borders */
  --border:    rgba(0,0,0,0.09);
  --border-dark: rgba(255,255,255,0.1);

  --radius:    10px;
  --max-w:     1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- HEADER / NAV ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.logo-icon {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.logo-full {
  height: 52px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.hero-logo {
  width: min(420px, 80vw);
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.4));
}

nav { display: flex; align-items: center; gap: 0.15rem; }

nav a {
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted-on-dark);
  transition: color 0.2s, background 0.2s;
}

nav a:hover { color: #ffffff; background: rgba(255,255,255,0.08); }
nav a.active { color: var(--accent-lt); background: rgba(255,255,255,0.06); }

.btn-give {
  margin-left: 0.75rem;
  padding: 0.45rem 1.1rem;
  background: var(--accent);
  color: #ffffff !important;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}

.btn-give:hover { background: var(--accent-lt) !important; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 4rem 1.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('Media/Photos/IMG_0876.JPG');
  background-size: cover;
  background-position: center 30%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,14,28,0.52) 0%, rgba(8,14,28,0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-lt);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.72);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: none;
}

.btn-primary:hover { background: var(--accent-lt); transform: translateY(-1px); }

.btn-outline {
  border: 2px solid rgba(255,255,255,0.55);
  color: #ffffff;
  background: transparent;
}

.btn-outline:hover { border-color: #ffffff; background: rgba(255,255,255,0.1); }

/* Outline button on light bg */
.btn-outline-dark {
  border: 2px solid rgba(var(--accent-rgb),0.5);
  color: var(--text);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline-dark:hover { border-color: var(--accent); color: var(--accent); }

/* ---- SECTION WRAPPERS ---- */
section { padding: 5rem 1.5rem; }
.section-alt { background: var(--bg2); }
.section-dark {
  background: var(--dark);
  color: var(--text-on-dark);
}
.section-dark .section-label { color: var(--accent-lt); }
.section-dark .section-title { color: #ffffff; }
.section-dark .section-sub { color: var(--muted-on-dark); }

.container { max-width: var(--max-w); margin: 0 auto; }

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

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-sub {
  color: var(--muted);
  max-width: 560px;
  font-size: 1rem;
}

/* ---- CARDS ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.12); transform: translateY(-3px); }
a.card { display: block; color: inherit; cursor: pointer; }

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(var(--accent-rgb),0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.card p  { color: var(--muted); font-size: 0.93rem; }

/* ---- SVG ICONS ---- */
.card-icon svg, .cc-card .icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

/* ---- TIMES STRIP ---- */
.times-strip {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
}

.times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.time-item {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.time-day  { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; }
.time-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--text); }
.time-hour { color: var(--muted); font-size: 0.88rem; }

/* ---- MISSION BANNER ---- */
.mission-banner {
  background: var(--dark);
  padding: 5rem 1.5rem;
  text-align: center;
}

.mission-banner blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.4;
  color: #ffffff;
}

.mission-banner .section-sub { color: var(--muted-on-dark); margin: 0 auto; }
.mission-banner .section-label { color: var(--accent-lt); }

/* ---- STAFF GRID ---- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.staff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.staff-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.12); transform: translateY(-2px); }

.staff-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
}

.staff-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); }
.staff-card .role { font-size: 0.85rem; color: var(--accent); margin-top: 0.25rem; font-weight: 500; }

/* Wide card for couple photo */
.staff-card-wide {
  grid-column: 1 / -1;
  display: flex;
  gap: 2rem;
  align-items: center;
  text-align: left;
}

.staff-photo-wide {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
}

.staff-photo-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.staff-card-wide-info { flex: 1; }

.staff-name-pair {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.staff-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .staff-card-wide { flex-direction: column; text-align: center; }
  .staff-photo-wide { width: 100%; height: 220px; }
  .staff-name-pair { justify-content: center; }
}

.staff-avatar-photo {
  background: none;
  overflow: hidden;
  padding: 0;
}

.staff-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

/* ---- BELIEFS ---- */
.beliefs-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.5rem; }

.belief-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.belief-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--text); }
.belief-item p  { color: var(--muted); font-size: 0.92rem; }
.scripture-ref  { font-size: 0.78rem; font-style: italic; color: var(--accent); margin-top: 0.6rem; }

/* ---- EVENTS ---- */
.events-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.5rem; }

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}

.event-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }

.event-date {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  background: rgba(var(--accent-rgb),0.1);
  border-radius: 10px;
  padding: 0.5rem 0.25rem;
}

.event-month { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.event-day   { font-size: 0.95rem; font-weight: 700; line-height: 1.2; color: var(--text); }

.event-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--text); }
.event-info p  { color: var(--muted); font-size: 0.9rem; }

/* ---- VISIT / MAP ---- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (max-width: 700px) { .visit-grid { grid-template-columns: 1fr; } }

.visit-info-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.visit-info-block h3 { font-size: 1rem; font-weight: 700; color: var(--accent); margin-bottom: 0.75rem; }
.visit-info-block p, .visit-info-block li { color: var(--muted); font-size: 0.93rem; line-height: 1.7; }
.visit-info-block ul { padding-left: 1.1rem; }

.map-placeholder {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.map-placeholder iframe { width: 100%; height: 100%; min-height: 300px; border: 0; }

/* ---- CHURCH CENTER ---- */
.cc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.cc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.cc-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.12); transform: translateY(-3px); }
.cc-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.cc-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.cc-card p  { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: 7rem 1.5rem 5rem;
  text-align: center;
  background: var(--dark);
  border-bottom: 1px solid var(--border-dark);
}

.page-hero.has-photo {
  background-size: cover;
  background-position: center 35%;
  position: relative;
  border-bottom: none;
}

.page-hero.has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,14,28,0.45) 0%, rgba(8,14,28,0.68) 100%);
}

.page-hero.has-photo > * { position: relative; z-index: 1; }

.page-hero .section-label { display: block; margin-bottom: 0.6rem; color: var(--accent-lt); }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
  color: #ffffff;
}
.page-hero p { color: rgba(255,255,255,0.72); max-width: 520px; margin: 0 auto; }

/* ---- MISSION BANNER with photo ---- */
.mission-banner.has-photo {
  background-size: cover;
  background-position: center;
  position: relative;
}

.mission-banner.has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8,14,28,0.72);
}

.mission-banner.has-photo > * { position: relative; z-index: 1; }

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border-dark);
  padding: 3.5rem 1.5rem 2rem;
  color: var(--text-on-dark);
}

/* ── Announcement Banner ── */
.announcement-banner {
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  flex-wrap: wrap;
  text-align: center;
}
.announce-btn {
  background: rgba(0,0,0,0.2);
  color: #fff;
  padding: 0.25em 0.75em;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}
.announce-close {
  background: none; border: none; color: rgba(255,255,255,0.6);
  cursor: pointer; font-size: 1rem; margin-left: auto; padding: 0 0.25rem;
}

/* ── Dynamic event cards ── */
.event-card-dyn {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem; margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.event-tag-dyn {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 0.2em 0.6em; border-radius: 4px; margin-bottom: 0.6rem;
}
.event-date-dyn { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.4rem; }
.event-title-dyn { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.event-desc-dyn { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.75rem; }
.btn-sm-outline {
  display: inline-block; border: 1px solid var(--border); color: var(--text);
  padding: 0.4em 1em; border-radius: 7px; font-size: 0.84rem; transition: border-color 0.2s;
}
.btn-sm-outline:hover { border-color: var(--accent); color: var(--accent); }
.no-events-msg { color: var(--muted); text-align: center; padding: 2.5rem 0; font-size: 0.9rem; }

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand .logo { margin-bottom: 0.75rem; }
.footer-brand p { color: var(--muted-on-dark); font-size: 0.88rem; }

footer h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-lt); margin-bottom: 0.9rem; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
footer ul li a { color: var(--muted-on-dark); font-size: 0.9rem; transition: color 0.2s; }
footer ul li a:hover { color: #ffffff; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p { color: var(--muted-on-dark); font-size: 0.82rem; }

.footer-contact { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.footer-contact p { color: var(--muted-on-dark); font-size: 0.85rem; line-height: 1.5; }
.footer-contact a { color: var(--muted-on-dark); transition: color 0.2s; }
.footer-contact a:hover { color: #ffffff; }

.footer-socials { display: flex; gap: 0.75rem; align-items: center; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-on-dark);
  transition: color 0.2s, border-color 0.2s;
}
.footer-socials a:hover { color: #ffffff; border-color: #ffffff; }
.footer-socials svg { width: 16px; height: 16px; }

/* ---- HAMBURGER TOGGLE ---- */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  color: #ffffff;
  line-height: 0;
}

.nav-toggle svg { display: block; width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--dark);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.15rem;
    z-index: 99;
  }

  nav.open { display: flex; }

  nav a {
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
    border-radius: 8px;
  }

  .btn-give { margin-left: 0; margin-top: 0.5rem; text-align: center; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .hero { min-height: 75vh; }
  .hero h1 { font-size: 2.6rem; }
}
