/* Modern footer. Loaded only when $footerStyle = 'modern' in includes/footer.php (set it to 'classic' to revert). */

.fm-footer {
  position: relative;
  margin-top: 0;
  color: rgba(255, 255, 255, .78);
  background: linear-gradient(170deg, #12302b 0%, #16322e 45%, #0f2421 100%);
  overflow: hidden;
  isolation: isolate;
  font-family: var(--font-body, 'Source Sans 3', sans-serif);
}
/* gradient accent line on top */
.fm-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #f57450, #ffd0a8 35%, #3fb7a3 70%, #4aa3df);
}
.fm-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}
.fm-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.fm-glow-1 { width: 380px; height: 380px; top: -120px; right: -100px; background: #f57450; opacity: .16; }
.fm-glow-2 { width: 360px; height: 360px; bottom: -140px; left: -110px; background: #3fb7a3; opacity: .16; }

.fm-wrap { max-width: 1180px; margin: 0 auto; padding: 3.2rem 1.5rem 1.6rem; }

/* ---------- CTA band ---------- */
.fm-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 1.8rem;
  margin-bottom: 3rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(245, 116, 80, .22), rgba(63, 183, 163, .16));
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}
.fm-cta h3 { margin: 0 0 .25rem; font-family: var(--font-display, 'Playfair Display', serif); font-size: 1.6rem; color: #fff; }
.fm-cta p { margin: 0; color: rgba(255, 255, 255, .8); }
.fm-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.fm-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.fm-btn:hover, .fm-btn:focus-visible { transform: translateY(-2px); outline: none; }
.fm-btn-primary { background: linear-gradient(135deg, #f57450, #e8431e); color: #fff; box-shadow: 0 8px 20px rgba(245, 116, 80, .4); }
.fm-btn-primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(245, 116, 80, .55); }
.fm-btn-glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #fff; }
.fm-btn-glass:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.fm-btn-sm { padding: .65rem 1.15rem; font-size: .85rem; }
.fm-btn .fa-arrow-right { font-size: .72rem; transition: transform .2s ease; }
.fm-btn:hover .fa-arrow-right { transform: translateX(3px); }

/* ---------- grid ---------- */
.fm-grid { display: grid; grid-template-columns: 1.15fr .7fr 1.35fr 1fr; gap: 2.4rem; }
.fm-title {
  position: relative;
  margin: 0 0 1.2rem;
  padding-bottom: .6rem;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.fm-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #f57450, #ffd0a8); }

.fm-logo img { display: block; height: 78px; width: auto; margin-bottom: 1rem; }
.fm-about { margin: 0 0 1.2rem; font-size: .95rem; line-height: 1.7; color: rgba(255, 255, 255, .72); max-width: 340px; }

.fm-social { display: flex; gap: .65rem; }
.fm-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.fm-social a:hover, .fm-social a:focus-visible { transform: translateY(-3px); background: #f57450; border-color: #f57450; color: #fff; outline: none; }

.fm-links, .fm-info, .fm-contact { list-style: none; margin: 0; padding: 0; }
.fm-links { display: grid; gap: .55rem; }
.fm-links a {
  display: inline-block;
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  font-size: .95rem;
  transition: color .2s ease, transform .2s ease;
}
.fm-links a:hover, .fm-links a:focus-visible { color: #ffb199; transform: translateX(4px); outline: none; }

.fm-info { display: grid; gap: 1rem; }
.fm-info li { display: flex; gap: .85rem; align-items: flex-start; }
.fm-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f57450, #e8431e);
  color: #fff;
  font-size: .95rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .2);
}
.fm-info li > span:last-child { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.fm-info small { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.fm-info strong { font-size: .95rem; font-weight: 700; color: #fff; }
.fm-inline-link { margin-top: .25rem; font-size: .82rem; font-weight: 700; color: #ffb199; text-decoration: none; }
.fm-inline-link:hover { color: #fff; }
.fm-inline-link .fa-arrow-right { font-size: .68rem; }

.fm-news {
  padding: 1.1rem 1.1rem 1.15rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
}
.fm-news-ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: .7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  color: #ffb199;
  font-size: 1.1rem;
}
.fm-news p { margin: 0 0 .9rem; font-size: .9rem; line-height: 1.55; color: rgba(255, 255, 255, .8); }

.fm-contact { display: grid; gap: .55rem; }
.fm-contact a { display: inline-flex; align-items: center; gap: .65rem; color: rgba(255, 255, 255, .85); text-decoration: none; font-size: .93rem; word-break: break-word; }
.fm-contact a i { width: 18px; text-align: center; color: #ff9b7a; }
.fm-contact a:hover { color: #fff; }

/* ---------- Join Us church cards ---------- */
.fm-cards { display: grid; gap: .9rem; }
.fm-church-card {
  display: flex;
  flex-direction: column;
  padding: .95rem 1.05rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}
.fm-church-name {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .65rem;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
}
.fm-church-meta { list-style: none; margin: 0 0 .85rem; padding: 0; display: grid; gap: .5rem; }
.fm-church-meta li { display: flex; align-items: flex-start; gap: .65rem; font-size: .9rem; line-height: 1.4; color: rgba(255, 255, 255, .85); }
.fm-church-meta i { flex-shrink: 0; width: 16px; margin-top: .2rem; text-align: center; color: #ff9b7a; }
.fm-church-meta strong { color: #fff; }
.fm-directions {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f57450, #e8431e);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(245, 116, 80, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fm-directions:hover, .fm-directions:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(245, 116, 80, .5); color: #fff; outline: none; }
.fm-directions .fa-arrow-right { font-size: .7rem; }

/* ---------- family of churches ---------- */
.fm-family {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .9rem 1.2rem;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.fm-family-label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.fm-family-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.fm-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.fm-chip:hover, .fm-chip:focus-visible { transform: translateY(-2px); background: rgba(255, 255, 255, .16); border-color: #ffb199; color: #fff; outline: none; }
.fm-chip .fa-circle-nodes { color: #ff9b7a; }
.fm-dot { width: 9px; height: 9px; border-radius: 50%; }
.fm-dot-green { background: #3fb7a3; box-shadow: 0 0 0 3px rgba(63, 183, 163, .25); }
.fm-dot-coral { background: #f57450; box-shadow: 0 0 0 3px rgba(245, 116, 80, .28); }

/* ---------- bottom bar ---------- */
.fm-bottom { background: rgba(0, 0, 0, .22); border-top: 1px solid rgba(255, 255, 255, .08); }
.fm-bottom-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .7rem 1.5rem;
}
.fm-bottom p { margin: 0; font-size: .86rem; color: rgba(255, 255, 255, .6); }
.fm-bottom-links { display: flex; flex-wrap: wrap; gap: .4rem 0; }
.fm-bottom-links a {
  padding: 0 .9rem;
  font-size: .86rem;
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  border-left: 1px solid rgba(255, 255, 255, .2);
  transition: color .2s ease;
}
.fm-bottom-links a:first-child { border-left: 0; padding-left: 0; }
.fm-bottom-links a:hover, .fm-bottom-links a:focus-visible { color: #ffb199; outline: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .fm-grid { grid-template-columns: 1fr 1fr; gap: 2.2rem 2rem; }
  .fm-brand { grid-column: 1 / -1; }
  .fm-about { max-width: 560px; }
}

@media (max-width: 640px) {
  .fm-wrap { padding: 2.4rem 1.2rem 1.2rem; }
  .fm-cta { flex-direction: column; align-items: flex-start; padding: 1.3rem 1.2rem; margin-bottom: 2.2rem; }
  .fm-cta-actions { width: 100%; }
  .fm-cta-actions .fm-btn { flex: 1 1 100%; justify-content: center; }
  .fm-grid { grid-template-columns: 1fr; gap: 2rem; }
  .fm-links { grid-template-columns: 1fr 1fr; }
  .fm-family { flex-direction: column; }
  .fm-bottom-inner { flex-direction: column; align-items: flex-start; padding: 1rem 1.2rem; }
  .fm-bottom-links a { padding: 0 .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fm-btn, .fm-chip, .fm-social a, .fm-links a { transition: none !important; }
}
