/* =========================================================
   WMC Fil-Am Adventist Church — Shared Stylesheet
   Brand theme: deep forest green + lime green + gold flame,
   matching the church's shirt/banner branding.
   Edit the variables below to change colors/fonts sitewide.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,500&family=Nunito+Sans:wght@400;600;700;800&family=Dancing+Script:wght@600;700&display=swap');

:root {
  /* Colors */
  --color-primary: #12503b;       /* deep forest green - header, buttons, hero */
  --color-primary-dark: #0b3327;  /* darker green - hover states, footer */
  --color-accent: #a4d65e;        /* lime green - "WMC" wordmark color, highlights */
  --color-accent-dark: #7fb53f;   /* darker lime - hover */
  --color-gold: #eab949;          /* flame gold - small highlights, eyebrow text on dark */
  --color-cream: #f8faf3;         /* page background - warm off-white with a green whisper */
  --color-cream-alt: #eef3e3;     /* section background alt - soft sage */
  --color-white: #ffffff;
  --color-text: #1c2b22;          /* main body text - deep green-black */
  --color-text-light: #55685c;    /* secondary text */
  --color-border: #dbe6cd;

  /* Type */
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script: 'Dancing Script', cursive;

  /* Layout */
  --max-width: 1180px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(18, 60, 42, 0.10);
  --shadow-lg: 0 12px 40px rgba(18, 60, 42, 0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.25;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-accent-dark);
  margin-bottom: 0.6em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--alt { background: var(--color-cream-alt); }
.section--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
}
.section--primary h1, .section--primary h2, .section--primary h3 { color: var(--color-white); }
.section-head { max-width: 680px; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--color-text-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-accent); color: var(--color-primary-dark); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; border-color: currentColor; color: inherit; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline-dark:hover { background: var(--color-primary); color: var(--color-white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-mark-sm {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark-sm img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-text .brand-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--color-primary-dark);
}
.brand-text .brand-tagline {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
}
.tagline-script {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--color-gold);
}
.tagline-script.on-light { color: var(--color-accent-dark); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 9px 11px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  color: var(--color-text);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--color-cream-alt); }
.nav-links a.is-active { background: var(--color-primary); color: var(--color-white); }
.nav-cta { margin-left: 6px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-primary-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 20px;
    gap: 4px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin-left: 0; margin-top: 6px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 80px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,164,88,0.35) 0%, rgba(224,164,88,0) 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1, .hero h2, .hero h3 { color: var(--color-white); }
.hero-inner { max-width: 720px; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.88); max-width: 560px; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}
.hero-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-hero {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  text-align: center;
}
.page-hero h1, .page-hero h2, .page-hero h3 { color: var(--color-white); }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 620px; margin: 0 auto; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--color-cream-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; }
.card p:last-child { margin-bottom: 0; }

.placeholder-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: rgba(224,164,88,0.15);
  border: 1px dashed var(--color-accent-dark);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- Info strip ---------- */
.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  text-align: center;
}
.info-strip .info-item { flex: 1 1 220px; }
.info-strip .info-item .icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-cream-alt); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.info-strip .info-item .icon svg { width: 26px; height: 26px; }

/* ---------- Inline icons (badges, footer contact list, socials) ---------- */
.badge-icon { width: 18px; height: 18px; flex-shrink: 0; }
.li-icon { width: 15px; height: 15px; flex-shrink: 0; margin-right: 7px; vertical-align: -3px; }
.social-icon { width: 16px; height: 16px; }

/* ---------- Schedule table ---------- */
.schedule {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--color-border);
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row .name { font-weight: 700; color: var(--color-primary-dark); }
.schedule-row .time { font-family: var(--font-heading); font-size: 1.1rem; color: var(--color-primary); font-weight: 700; }
.schedule-row .desc { color: var(--color-text-light); font-size: 0.92rem; }
.schedule-row .time-wrap { text-align: right; flex-shrink: 0; }
.schedule-row .day {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 2px;
}
.schedule-row .via {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-cream-alt);
  border-radius: 999px;
  padding: 3px 10px;
}
@media (max-width: 560px) {
  .schedule-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .schedule-row .time-wrap { text-align: left; }
}

/* ---------- Quote / mission ---------- */
.mission-quote {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--color-primary-dark);
}

/* ---------- Map ---------- */
.map-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-frame iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--color-primary-dark);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-text);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-cream-alt);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
@media (max-width: 600px) { .cta-band { padding: 32px 22px; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--color-accent);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--color-accent); }
.footer-links li { margin-bottom: 8px; }
.footer-social { display: flex; gap: 12px; margin-top: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--color-accent); color: var(--color-primary-dark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255,255,255,0.6);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 2.5rem; }
.note-box {
  background: rgba(224,164,88,0.12);
  border: 1px dashed var(--color-accent-dark);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.95rem;
  color: var(--color-text-light);
}
.note-box strong { color: var(--color-primary-dark); }

.video-embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ---------- History page ---------- */
.history-content { max-width: 760px; margin: 0 auto; }
.history-content > p { color: var(--color-text-light); }
.history-section { margin-top: 3rem; }
.history-section h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.history-section h3::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.history-section p { color: var(--color-text-light); }
.history-section p strong { color: var(--color-primary-dark); }

.scripture-box {
  border-left: 4px solid var(--color-accent);
  background: var(--color-cream-alt);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-primary-dark);
  margin: 1.5rem 0;
}
.scripture-box cite {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--color-accent-dark);
}

.timeline-list { margin: 0.5rem 0 0; }
.timeline-list li {
  padding: 12px 0 12px 18px;
  border-left: 2px solid var(--color-border);
  position: relative;
  color: var(--color-text-light);
}
.timeline-list li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
}
.timeline-list li:last-child { border-left-color: transparent; }
.timeline-list li strong { color: var(--color-primary-dark); }

.featured-event {
  display: flex;
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.featured-event::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,164,88,0.25) 0%, rgba(224,164,88,0) 70%);
}
.featured-event-date {
  flex-shrink: 0;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 16px 22px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.featured-event-date .month {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-gold);
}
.featured-event-date .days {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  white-space: nowrap;
}
.featured-event-body { position: relative; z-index: 1; }
.featured-event-body .eyebrow { color: var(--color-gold); margin-bottom: 0.35em; }
.featured-event-body h3 { color: var(--color-white); font-size: 1.5rem; margin-bottom: 0.4em; }
.featured-event-body p { color: rgba(255,255,255,0.88); margin-bottom: 0; }
@media (max-width: 600px) {
  .featured-event { flex-direction: column; align-items: flex-start; padding: 26px; }
}

.founders-note {
  font-size: 0.92rem;
  color: var(--color-text-light);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 1rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
.gallery-grid figure { margin: 0; }
.gallery-grid .photo-frame {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--color-cream-alt);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-align: center;
}

/* ---------- Empty state (used by Gallery + Pastor's Corner until real content is added) ---------- */
.empty-state {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 36px;
}
.empty-state .icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--color-cream-alt); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.empty-state .icon svg { width: 28px; height: 28px; }
.empty-state h3 { margin-bottom: 0.5em; }
.empty-state p { color: var(--color-text-light); }

/* ---------- Pastor's Corner / posts ---------- */
.post-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--color-text-light);
}
.post-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-accent);
  padding: 3px 10px;
  border-radius: 999px;
}
.post-card h3 { margin-bottom: 0; }
.post-card p { color: var(--color-text-light); margin-bottom: 0; }
.post-card .read-more { font-weight: 700; color: var(--color-primary); margin-top: 4px; }
