/* ============================================================
   Centerville Faith Church — Custom Styles
   Built on top of Bootstrap 5
   ============================================================ */

/* ----- CSS Custom Properties ----- */
:root {
  --cfc-red: #c16260;
  --cfc-red-rgb: 193, 98, 96;
  --cfc-red-dark: #ad5351;
  --cfc-red-darker: #9c4a48;
  --cfc-dark: #1a1a2e;
  --cfc-hero-overlay: rgba(0, 0, 0, 0.55);
  --hero-min-height: 85vh;
}

/* ----- Button Theme Overrides ----- */
.btn-warning {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--cfc-red);
  --bs-btn-border-color: var(--cfc-red);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--cfc-red-dark);
  --bs-btn-hover-border-color: var(--cfc-red-dark);
  --bs-btn-focus-shadow-rgb: var(--cfc-red-rgb);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--cfc-red-darker);
  --bs-btn-active-border-color: var(--cfc-red-darker);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--cfc-red);
  --bs-btn-disabled-border-color: var(--cfc-red);
}

.btn-outline-warning {
  --bs-btn-color: var(--cfc-red);
  --bs-btn-border-color: var(--cfc-red);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--cfc-red);
  --bs-btn-hover-border-color: var(--cfc-red);
  --bs-btn-focus-shadow-rgb: var(--cfc-red-rgb);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--cfc-red-dark);
  --bs-btn-active-border-color: var(--cfc-red-dark);
  --bs-btn-disabled-color: var(--cfc-red);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--cfc-red);
}

/* ----- Global ----- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #333;
}

/* ----- Navbar ----- */
.navbar-brand {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

/* ----- Hero / Banner ----- */
.hero-section {
  min-height: var(--hero-min-height);
  background-color: #1a1a2e; /* fallback if image fails to load */
  background-image: url("../assets/images/hero-banner.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cfc-hero-overlay);
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

/* ----- Section Headings ----- */
section h2 {
  position: relative;
  display: inline-block;
}

section h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--cfc-red);
  margin: 0.4rem auto 0;
}

/* Prevent underline override for left-aligned headings */
.text-start h2::after,
.text-md-start h2::after {
  margin-left: 0;
}

/* ----- Service Cards ----- */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

/* ----- Staff Subsection ----- */
.staff-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08) !important;
}

.staff-headshot {
  width: 256px;
  height: 256px;
  object-fit: cover;
  border-radius: 999px;
  border: 4px solid rgba(193, 98, 96, 0.25);
}

/* ----- Directions Map Placeholder ----- */
.map-placeholder {
  min-height: 280px;
  background-color: #6c757d;
}

/* Replace this block once you embed a real Google Maps iframe */
.map-placeholder iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 0.375rem;
}

/* ----- Pastor Bio Modal ----- */
.modal-headshot {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 999px;
  border: 4px solid rgba(193, 98, 96, 0.3);
}

@media (max-width: 575.98px) {
  .modal-headshot {
    width: 112px;
    height: 112px;
  }
}

/* ----- Council Directory Cards ----- */
.council-card {
  border-left: 3px solid var(--cfc-red);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.council-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.council-role {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cfc-red);
  margin-bottom: 0.25rem;
}

.role-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cfc-red);
  background-color: rgba(193, 98, 96, 0.1);
  border: 1px solid rgba(193, 98, 96, 0.28);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  margin: 0.1rem 0.1rem;
}

.council-group-heading {
  color: #444;
  letter-spacing: 0.03em;
}

.council-headshot {
  width: 176px;
  height: 176px;
  object-fit: cover;
  border-radius: 999px;
  border: 3px solid rgba(193, 98, 96, 0.3);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.council-link {
  color: #555;
  text-decoration: none;
  word-break: break-all;
}

.council-link:hover {
  color: var(--cfc-red);
  text-decoration: underline;
}

/* ----- Statement of Faith ----- */
.faith-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cfc-red);
  line-height: 1.1;
  flex-shrink: 0;
  min-width: 2.25rem;
  opacity: 0.8;
}

/* ----- Footer Links ----- */
.footer-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--cfc-red);
  text-decoration: none;
}

/* ----- Utility: Accent Text Color ----- */
.text-cfc-red {
  color: var(--cfc-red) !important;
}

/* ----- Responsive Tweaks ----- */
@media (max-width: 575.98px) {
  .hero-section {
    min-height: 70vh;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .map-placeholder {
    min-height: 220px;
  }

  .staff-headshot {
    width: 224px;
    height: 224px;
  }
}
