/* ============================================================
   Church of God Saviour King — Main Stylesheet
   ============================================================ */

:root {
  --navy:   #1b2d4f;
  --gold:   #c9a84c;
  --gold-lt:#e8c96a;
  --white:  #ffffff;
  --light:  #f7f8fc;
  --grey:   #6b7280;
  --dark:   #111827;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.10);
  --trans:  .25s ease;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--dark); background: var(--white); line-height: 1.7; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ----- Typography ----- */
h1,h2,h3,h4 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { margin-bottom: 1rem; }

/* ----- Container ----- */
.container { width: 92%; max-width: 1200px; margin: 0 auto; }

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 0;
  gap: 1.5rem;
}

/* Logo block */
.header-brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.header-brand img { height: 60px; width: auto; object-fit: contain; }
.header-brand h1 {
  font-size: clamp(.9rem, 1.5vw, 1.2rem);
  color: var(--white);
  font-family: Georgia, serif;
  line-height: 1.2;
  max-width: 240px;
}

/* Nav */
#main-nav { flex-shrink: 0; }
#main-nav ul {
  display: flex; flex-wrap: nowrap; align-items: center;
  gap: .15rem; white-space: nowrap;
}
#main-nav ul li a {
  display: block; padding: .45rem .65rem;
  color: rgba(255,255,255,.88);
  font-size: .82rem; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--trans), color var(--trans);
}
#main-nav ul li a:hover,
#main-nav ul li a.active {
  background: var(--gold);
  color: var(--navy);
}

/* Hamburger (mobile) */
#nav-toggle {
  display: none; flex-direction: column; justify-content: space-between;
  width: 26px; height: 20px; cursor: pointer; flex-shrink: 0;
}
#nav-toggle span {
  display: block; height: 3px; background: var(--white); border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { margin-top: 5rem; }

/* Gold accent line at top */
.footer-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 50%, var(--gold) 100%);
}

/* Main body */
.footer-main {
  background: #0f1e35;
  padding: 4rem 0 3rem;
  color: rgba(255,255,255,.75);
}

/* 4-column grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

/* ---- Brand column ---- */
.footer-col--brand { padding-right: 1rem; }

.footer-logo-link {
  display: flex; align-items: center; gap: .85rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
}
.footer-logo-link img {
  height: 52px; width: auto; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.footer-logo-link div {
  display: flex; flex-direction: column; line-height: 1.2;
}
.footer-logo-link strong {
  font-family: Georgia, serif; font-size: 1.1rem; color: var(--white); font-weight: 700;
}
.footer-logo-link span {
  font-family: Georgia, serif; font-size: .95rem; color: var(--gold); font-weight: 400;
}

.footer-tagline {
  font-size: .875rem; line-height: 1.75;
  color: rgba(255,255,255,.58);
  margin-bottom: .85rem;
  border-left: 2px solid var(--gold);
  padding-left: .9rem;
}
.footer-npo {
  font-size: .75rem; letter-spacing: .04em;
  color: rgba(255,255,255,.3);
  font-family: monospace;
}

/* ---- Column heading ---- */
.footer-heading {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(201,168,76,.25);
}

/* ---- Quick links ---- */
.footer-links {
  display: flex; flex-direction: column; gap: .45rem;
}
.footer-links a {
  font-size: .875rem; color: rgba(255,255,255,.62);
  display: flex; align-items: center; gap: .45rem;
  transition: color var(--trans), padding-left var(--trans);
}
.footer-links a::before {
  content: '';
  display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: var(--gold);
  opacity: 0; flex-shrink: 0;
  transition: opacity var(--trans);
}
.footer-links a:hover { color: var(--white); padding-left: .3rem; }
.footer-links a:hover::before { opacity: 1; }

/* ---- Service times ---- */
.footer-times {
  display: flex; flex-direction: column; gap: 1.1rem;
}
.footer-times li {
  display: flex; flex-direction: column; gap: .12rem;
}
.ft-day {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--gold);
}
.ft-time {
  font-size: .92rem; color: var(--white); font-weight: 600;
}
.ft-label {
  font-size: .78rem; color: rgba(255,255,255,.45); font-style: italic;
}

/* ---- Contact list ---- */
.footer-contact {
  display: flex; flex-direction: column; gap: 1.1rem;
}
.footer-contact li {
  display: flex; align-items: flex-start; gap: .75rem;
}
.fc-icon {
  width: 16px; height: 16px; flex-shrink: 0;
  color: var(--gold); margin-top: .18rem;
  stroke: var(--gold);
}
.footer-contact address,
.footer-contact a,
.footer-contact p {
  font-size: .875rem; font-style: normal; line-height: 1.65;
  color: rgba(255,255,255,.62);
  transition: color var(--trans);
}
.footer-contact a:hover { color: var(--gold); }

/* ---- Bottom bar ---- */
.footer-bottom {
  background: #08121f;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .75rem;
}
.footer-bottom p {
  font-size: .8rem; color: rgba(255,255,255,.38); margin: 0;
}
.footer-bottom-nav {
  display: flex; gap: 1.5rem;
}
.footer-bottom-nav a {
  font-size: .78rem; color: rgba(255,255,255,.38);
  transition: color var(--trans); text-transform: uppercase; letter-spacing: .06em;
}
.footer-bottom-nav a:hover { color: var(--gold); }

/* Responsive footer */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-bottom-nav { justify-content: center; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .38;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 700px; padding: 4rem 0;
}
.hero-content .tag {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .85rem; border-radius: 20px; margin-bottom: 1.25rem;
}
.hero-content h2 {
  font-size: clamp(2rem, 5vw, 3.4rem); color: var(--white);
  margin-bottom: 1.25rem; line-height: 1.15;
}
.hero-content p {
  font-size: 1.1rem; color: rgba(255,255,255,.88); margin-bottom: 2rem;
}
.btn {
  display: inline-block; padding: .8rem 2rem;
  border-radius: var(--radius); font-weight: 700; font-size: .92rem;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
  cursor: pointer; border: 2px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,.4); }
.btn-outline { border-color: var(--white); color: var(--white); margin-left: .75rem; }
.btn-outline:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }

/* ============================================================
   SECTION COMMONS
   ============================================================ */
section { padding: 5rem 0; }
.section-label {
  display: inline-block; color: var(--gold); font-size: .8rem;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: .5rem;
}
.section-title { margin-bottom: 1rem; color: var(--navy); }
.section-sub  { color: var(--grey); max-width: 620px; margin-bottom: 2.5rem; }
.section-light { background: var(--light); }
.text-center  { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }
.divider { width: 56px; height: 4px; background: var(--gold); border-radius: 2px; margin: 1rem 0 2rem; }
.divider-center { margin-left: auto; margin-right: auto; }

/* ----- Cards ----- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; }
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,.14); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-body h3 { color: var(--navy); margin-bottom: .5rem; }
.card-body p  { color: var(--grey); font-size: .93rem; margin-bottom: 0; }
.card-icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 26px; height: 26px; fill: var(--navy); }

/* ----- Two-col split ----- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-img img { width: 100%; height: 400px; object-fit: cover; }
.split-reverse .split-img { order: 2; }
.split-reverse .split-text { order: 1; }

/* ----- Verse banner ----- */
.verse-banner {
  background: var(--navy); color: var(--white);
  padding: 4rem 0; text-align: center;
}
.verse-banner blockquote {
  font-family: Georgia, serif; font-size: clamp(1.2rem, 3vw, 1.9rem);
  font-style: italic; max-width: 800px; margin: 0 auto 1rem;
  line-height: 1.5;
}
.verse-banner cite { color: var(--gold); font-size: .9rem; font-style: normal; font-weight: 700; }

/* ----- Page hero (inner pages) ----- */
.page-hero {
  background: var(--navy); padding: 4rem 0 3.5rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto; }
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.5); margin-bottom: .75rem; }
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }

/* ----- Stats row ----- */
.stats { background: var(--gold); padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; text-align: center; }
.stat-item strong { display: block; font-size: 2.4rem; color: var(--navy); font-family: Georgia, serif; }
.stat-item span  { font-size: .88rem; color: var(--navy); font-weight: 600; opacity: .8; }

/* ----- Team cards ----- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.75rem; }
.team-card { text-align: center; }
.team-card img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1rem; }
.team-card h3 { color: var(--navy); font-size: 1.1rem; }
.team-card span { color: var(--gold); font-size: .85rem; font-weight: 600; }

/* ----- Event list ----- */
.event-list { display: flex; flex-direction: column; gap: 1.25rem; }
.event-item {
  display: flex; gap: 1.5rem; align-items: flex-start;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem;
  transition: transform var(--trans);
}
.event-item:hover { transform: translateX(4px); }
.event-date {
  flex-shrink: 0; width: 64px; text-align: center;
  background: var(--navy); color: var(--white); border-radius: var(--radius); padding: .6rem .5rem;
}
.event-date strong { display: block; font-size: 1.6rem; font-family: Georgia, serif; line-height: 1; }
.event-date span   { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.event-info h3 { color: var(--navy); margin-bottom: .3rem; }
.event-info p  { color: var(--grey); font-size: .9rem; margin: 0; }
.event-meta    { font-size: .8rem; color: var(--gold); font-weight: 700; margin-top: .3rem; }

/* ----- Gallery grid ----- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-item { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery-item img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ----- Beliefs accordion ----- */
.belief-list { display: flex; flex-direction: column; gap: 1rem; }
.belief-item {
  border-left: 4px solid var(--gold); padding: 1.25rem 1.5rem;
  background: var(--white); border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.belief-item h3 { color: var(--navy); margin-bottom: .4rem; font-size: 1.05rem; }
.belief-item p  { color: var(--grey); font-size: .92rem; margin: 0; }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.contact-info-card {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 2.5rem; box-shadow: var(--shadow);
}
.contact-info-card h3 { color: var(--gold); margin-bottom: 1.5rem; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.info-row .icon { color: var(--gold); flex-shrink: 0; margin-top: .2rem; font-size: 1.1rem; }
.info-row p { margin: 0; font-size: .92rem; line-height: 1.6; }
.contact-form-card { background: var(--white); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); }
.contact-form-card h3 { color: var(--navy); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .7rem 1rem;
  border: 1.5px solid #d1d5db; border-radius: var(--radius);
  font-size: .95rem; color: var(--dark);
  transition: border-color var(--trans);
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-success { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; display: none; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 3rem; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ----- Mission page specifics ----- */
.mission-intro { font-size: 1.18rem; color: var(--navy); font-style: italic; border-left: 4px solid var(--gold); padding-left: 1.25rem; margin-bottom: 2rem; }
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin: 2.5rem 0; }
.pillar {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow);
}
.pillar .num { font-size: 2.5rem; font-family: Georgia, serif; color: var(--gold); font-weight: 700; }
.pillar h3  { color: var(--white); margin: .5rem 0; }
.pillar p   { color: rgba(255,255,255,.78); font-size: .9rem; margin: 0; }

/* ----- Community page ----- */
.program-card {
  display: flex; gap: 1.5rem; align-items: flex-start;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; margin-bottom: 1.5rem;
}
.program-card img { width: 180px; height: 130px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.program-card h3 { color: var(--navy); margin-bottom: .4rem; }
.program-card p  { color: var(--grey); font-size: .92rem; margin: 0; }

/* ============================================================
   UTILITY
   ============================================================ */
.mt1 { margin-top: 1rem; }  .mt2 { margin-top: 2rem; }  .mt3 { margin-top: 3rem; }
.mb1 { margin-bottom: 1rem; } .mb2 { margin-bottom: 2rem; }
.gold  { color: var(--gold); }
.navy  { color: var(--navy); }
.fw700 { font-weight: 700; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-img, .split-reverse .split-img { order: 0; }
  .split-reverse .split-text { order: 0; }
  .split-img img { height: 280px; }
  .program-card { flex-direction: column; }
  .program-card img { width: 100%; }
}

@media (max-width: 768px) {
  #nav-toggle { display: flex; }
  #main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); border-top: 1px solid rgba(255,255,255,.1);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  #main-nav.open { max-height: 500px; }
  #main-nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1rem 1.25rem; gap: .3rem; }
  #main-nav ul li a { font-size: .9rem; padding: .6rem .9rem; }
  .hero { min-height: 70vh; }
  .form-row { grid-template-columns: 1fr; }
  .header-brand h1 { font-size: .82rem; max-width: 160px; }
}
