/* Faith Christian Church — Good Steward Media demo */
:root {
  --cream: #faf6ef;
  --cream-deep: #f3ecdd;
  --navy: #1f3a5f;
  --navy-dark: #16294a;
  --gold: #c9972f;
  --gold-soft: #e8d5a4;
  --ink: #33302a;
  --muted: #6f675c;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(31, 58, 95, 0.10);
  --shadow-lg: 0 12px 40px rgba(31, 58, 95, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1em; }

a { color: var(--navy); }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

/* ---------- layout ---------- */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section.block { padding: 3.5rem 0; }
section.block.tint { background: var(--cream-deep); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: 0.3px;
}
.brand small {
  display: block;
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.98rem;
  transition: background 0.15s ease;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: var(--gold-soft);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  line-height: 1;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--navy-dark);
}
.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* desktop: bias toward the top so faces stay in frame */
  object-position: 50% 18%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22,41,74,0.88) 0%, rgba(22,41,74,0.35) 55%, rgba(22,41,74,0.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 3rem;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}
.hero-content h1 { color: #fff; margin-bottom: 0.3em; }
.hero-content .mission {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--gold-soft);
  margin-bottom: 1.4rem;
  max-width: 34em;
}

.service-banner {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  padding: 0.9rem 1.4rem;
  font-size: 1.02rem;
}
.service-banner strong { color: var(--gold-soft); }

.hero-cta { margin-top: 1.5rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 4px 14px rgba(201,151,47,0.35);
}
.btn:hover { background: #b3861f; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,151,47,0.45); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-light {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
}
.btn-light:hover { color: var(--gold); }

.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1.25rem;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d8dee9; max-width: 36em; margin: 0 auto 1.6rem; }

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card img { width: 100%; height: 210px; object-fit: cover; }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 0.4em; }
.card-body p { color: var(--muted); flex: 1; }
.card-meta {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5em;
}

/* ---------- page hero (interior) ---------- */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 3.2rem 0 2.6rem;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 0.25em; }
.page-hero p { color: #cdd6e4; max-width: 40em; margin: 0 auto; font-size: 1.08rem; }
.page-hero .rule {
  width: 64px; height: 4px; background: var(--gold);
  border-radius: 2px; margin: 1.2rem auto 0;
}

/* ---------- demo badge ---------- */
.demo-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: #fff7e2;
  color: #8a6d1c;
  border: 1px dashed var(--gold);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1rem;
}

/* ---------- info rows ---------- */
.info-list { list-style: none; margin: 1.2rem 0; }
.info-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid #e7ddc9;
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}
.info-list li:last-child { border-bottom: none; }
.info-list .label {
  font-weight: 700;
  color: var(--navy);
  min-width: 9.5em;
  flex-shrink: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.flyer {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}

/* standalone event picture: centered, capped width, sits between title and text */
.event-picture {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto 1.6rem;
}

/* ---------- embedded map ---------- */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 1.2rem 0;
  border: 1px solid #e7ddc9;
}
.map-wrap iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

/* ---------- devotionals ---------- */
.devotional {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem;
  margin-bottom: 2rem;
  border-top: 5px solid var(--gold);
}
.devotional .dev-date {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4em;
}
.devotional h2 { margin-bottom: 0.8em; }
.devotional .scripture {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--navy);
  border-left: 3px solid var(--gold-soft);
  padding-left: 1rem;
  margin: 1.2rem 0;
}
.devotional .signoff {
  margin-top: 1.4rem;
  font-family: Georgia, serif;
  color: var(--navy);
}

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}
.gallery img {
  border-radius: 10px;
  height: 200px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}
.gallery img:hover { transform: scale(1.03); }
/* portrait shots: anchor to the top so faces don't get cropped */
.gallery img.portrait { object-position: 50% 0%; }
.gallery-caption {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin-top: 1rem;
}

/* ---------- gallery accordion ---------- */
.gallery-accordion {
  margin: 1.8rem 0;
  border: 1px solid #e7ddc9;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.gallery-accordion summary {
  cursor: pointer;
  padding: 1rem 1.4rem;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}
.gallery-accordion summary::-webkit-details-marker { display: none; }
.gallery-accordion summary::marker { content: ""; }
.gallery-accordion summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold);
  font-weight: 700;
  margin-left: 1rem;
}
.gallery-accordion[open] summary::after { content: "\2013"; }
.gallery-accordion .gallery { margin-top: 0; padding: 0.4rem 1.4rem 0; }
.gallery-accordion .gallery-caption { margin-top: 0.8rem; padding: 0 1.4rem 1.2rem; }

/* ---------- video ---------- */
.video-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 1.2rem;
}
.video-wrap video { width: 100%; display: block; background: #000; }

/* ---------- sermon YouTube embeds ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
  margin-top: 1.6rem;
}
.yt-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: #0f2440;
}
.yt-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-title {
  font-weight: 700;
  margin: 0.9rem 0 0.15rem;
}
.video-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- pastor cards ---------- */
.pastor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  margin-top: 1.8rem;
}
.pastor-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  text-align: center;
}
.pastor-photo-placeholder {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--cream-deep);
  border: 2px dashed var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: var(--gold);
}
.pastor-card .role {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pastor-note {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.8rem;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #cdd6e4;
  padding: 2.8rem 0 2rem;
  margin-top: 0;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 0.7em; }
.site-footer a { color: var(--gold-soft); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.4rem;
  text-align: center;
  font-size: 0.88rem;
  color: #9aa7bd;
}

/* ---------- one-page demo: anchor offset for sticky header ---------- */
.page-section { scroll-margin-top: 70px; }
#home { scroll-margin-top: 64px; }

/* one-page demo: breathing room between sections — the page background
   shows through so each section reads as its own page */
.page-section { margin-top: 2.5rem; }

/* ---------- responsive nav ---------- */
@media (max-width: 820px) {
  .hamburger { display: block; min-width: 44px; min-height: 44px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 0.6rem 1.25rem 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.8rem 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-links a:last-child { border-bottom: none; }
  section.block { padding: 2.5rem 0; }
}

/* ---------- mobile-first refinements (phone is the grade) ---------- */
.btn, .btn-light, .btn-outline { min-height: 44px; }

.video-wrap video { max-width: 100%; height: auto; }

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 240px; }
  /* compact hero: headline + times + CTA all fit on the first screen */
  .hero { min-height: 0; }
  .page-section { margin-top: 2rem; }
  .hero img.hero-bg { object-position: 50% 50%; }
  .hero::after {
    background: linear-gradient(to top, rgba(22,41,74,0.92) 0%, rgba(22,41,74,0.5) 55%, rgba(22,41,74,0.25) 100%);
  }
  .hero-content { padding: 2.2rem 0 1.8rem; }
  .hero-content h1 { font-size: 1.85rem; margin-bottom: 0.25em; }
  .hero-content .mission { font-size: 1.02rem; margin-bottom: 1rem; }
  .service-banner { font-size: 0.92rem; padding: 0.7rem 1rem; gap: 0.4rem 1rem; }
  .hero-cta { margin-top: 1.1rem; }
  .hero-cta .btn { display: block; text-align: center; padding: 0.9rem 1rem; }
  .devotional { padding: 1.5rem 1.25rem; }
  .info-list li { flex-direction: column; gap: 0.1rem; }
  .info-list .label { min-width: 0; }
  .cta-band { padding: 2.6rem 1.25rem; }
}
