/* ==========================================================================
   THE CONTINENTAL FELLOWSHIP OF BISHOPS AND APOSTLES (CFBA)
   Master CSS Stylesheet (Pure CSS)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800;900&family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  --color-bg-dark: #090212;
  --color-bg-surface: #140321;
  --color-bg-card: rgba(24, 7, 40, 0.75);
  --color-bg-card-hover: rgba(43, 13, 71, 0.9);
  
  --color-purple-primary: #3b1054;
  --color-purple-deep: #220638;
  --color-purple-light: #8b2bc4;

  --color-gold-metallic: #d4af37;
  --color-gold-bright: #f7d774;
  --color-gold-dark: #997a15;
  --color-gold-light: #fffbeb;

  --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', 'Inter', -apple-system, sans-serif;
  
  --shadow-gold-glow: 0 0 30px rgba(212, 175, 55, 0.3);
  --shadow-purple-glow: 0 0 40px rgba(139, 43, 196, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg-dark);
  color: #e2e8f0;
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(88, 28, 135, 0.45) 0%, transparent 70%),
    radial-gradient(circle at 100% 100%, rgba(180, 83, 9, 0.2) 0%, transparent 60%),
    radial-gradient(circle at 0% 50%, rgba(53, 10, 84, 0.35) 0%, transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--font-heading);
}

.text-gold-gradient {
  background: linear-gradient(135deg, #fffbeb 0%, #f7d774 30%, #d4af37 70%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #f7d774 0%, #d4af37 50%, #997a15 100%);
  color: #140321;
}

.bg-gold-gradient:hover {
  background: linear-gradient(135deg, #fffbeb 0%, #f7d774 50%, #d4af37 100%);
}

.glass-panel {
  background: var(--color-bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 24px;
}

.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
  background: var(--color-bg-card-hover);
  border-color: rgba(247, 215, 116, 0.55);
  box-shadow: var(--shadow-gold-glow), var(--shadow-purple-glow);
  transform: translateY(-5px);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(14, 3, 26, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 10px 30px rgba(9, 2, 18, 0.9);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-gold-metallic);
  object-fit: cover;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold-bright);
  letter-spacing: 0.05em;
  display: block;
}

.brand-subtitle {
  font-size: 0.65rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.35rem;
  background: rgba(26, 7, 43, 0.65);
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

@media (min-width: 768px) {
  .desktop-nav { display: flex; }
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-gold-bright);
  background: rgba(53, 10, 84, 0.7);
}

.header-cta-group {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .header-cta-group { display: flex; }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: rgba(53, 10, 84, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--color-gold-bright);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(88, 28, 135, 0.8);
  border-color: var(--color-gold-bright);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, #f7d774 0%, #d4af37 50%, #997a15 100%);
  color: #140321;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.6);
}

.mobile-menu-btn {
  display: flex;
  background: none;
  border: none;
  color: var(--color-gold-bright);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(14, 3, 26, 0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
}

.mobile-drawer.active {
  display: flex;
}

/* Dimmed Cathedral Church Background for Hero & Page Headers */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 5rem 0;
  text-align: center;
  overflow: hidden;
}

/* Dimmed background overlay image with Cathedral architecture aesthetic */
.church-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to bottom, rgba(9, 2, 18, 0.75) 0%, rgba(20, 3, 33, 0.85) 60%, rgba(9, 2, 18, 0.98) 100%),
    radial-gradient(circle at 50% 30%, rgba(88, 28, 135, 0.4) 0%, rgba(9, 2, 18, 0.9) 75%),
    url('assets/cfba-flyer.jpeg');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.4) contrast(1.1) saturate(1.2);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-emblem {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 4px solid var(--color-gold-metallic);
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.5), 0 0 100px rgba(139, 43, 196, 0.3);
  object-fit: cover;
  margin: 0 auto 2rem auto;
  animation: floatAnim 6s ease-in-out infinite;
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
}

@media (min-width: 640px) {
  .hero-emblem { width: 260px; height: 260px; }
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero-title { font-size: 3.25rem; }
}

.hero-motto {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--color-gold-bright);
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-motto { font-size: 1.75rem; }
}

.hero-lead {
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.05rem;
  color: #cbd5e1;
  font-weight: 300;
}

.scripture-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 3rem auto;
  text-align: left;
}

@media (min-width: 768px) {
  .scripture-grid { grid-template-columns: 1fr 1fr; }
}

.scripture-card {
  padding: 1.25rem;
  background: rgba(26, 7, 43, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
}

.scripture-ref {
  color: var(--color-gold-bright);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: block;
}

.scripture-text {
  font-size: 0.875rem;
  font-style: italic;
  color: #e2e8f0;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Page Header Banner for Subpages */
.page-banner {
  position: relative;
  padding: 8rem 0 4rem 0;
  text-align: center;
  background: linear-gradient(180deg, #140321 0%, #090212 100%);
  border-b: 1px solid rgba(212, 175, 55, 0.25);
  overflow: hidden;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(88, 28, 135, 0.4) 0%, rgba(9, 2, 18, 0.95) 80%),
    url('assets/cfba-flyer.jpeg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.3) saturate(1.1);
  opacity: 0.4;
  pointer-events: none;
}

.page-banner-content {
  position: relative;
  z-index: 2;
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 768px;
  margin: 0 auto 3.5rem auto;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--color-gold-bright);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #f8fafc;
}

@media (min-width: 640px) {
  .section-title { font-size: 3rem; }
}

.section-divider {
  width: 6rem;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold-bright), var(--color-gold-metallic));
  margin: 1rem auto 0 auto;
  border-radius: 9999px;
}

/* Vision & Mission Grid */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .vision-grid { grid-template-columns: 1fr 1fr; }
}

.card-title {
  font-size: 1.75rem;
  color: var(--color-gold-bright);
  margin-bottom: 1rem;
}

.pillars-box {
  background: linear-gradient(135deg, #1b062d 0%, #24083c 50%, #170326 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 24px;
  padding: 2.5rem 2rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .pillars-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(4, 1fr); }
}

.pillar-item {
  background: rgba(20, 3, 33, 0.75);
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(139, 43, 196, 0.35);
}

.pillar-item h5 {
  color: var(--color-gold-bright);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.pillar-item p {
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* Objectives Tabs */
.objectives-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  background: rgba(26, 7, 43, 0.7);
  border: 1px solid rgba(139, 43, 196, 0.4);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
  background: linear-gradient(135deg, #f7d774 0%, #d4af37 50%, #997a15 100%);
  color: #140321;
  border-color: var(--color-gold-bright);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.objective-display-card {
  padding: 2.5rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.obj-number-bg {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 900;
  color: rgba(212, 175, 55, 0.15);
  line-height: 1;
}

.obj-key-list {
  margin-top: 1.25rem;
  list-style: none;
}

.obj-key-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.obj-key-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-gold-bright);
  font-weight: bold;
}

/* Leadership Grid */
.leaders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .leaders-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .leaders-grid { grid-template-columns: repeat(3, 1fr); }
}

.leader-card {
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
}

.leader-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-purple-deep);
}

.leader-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.leader-card:hover .leader-img-wrapper img {
  transform: scale(1.05);
}

.leader-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--color-gold-bright);
  color: #140321;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.leader-info {
  padding: 1.5rem;
}

.leader-name {
  font-size: 1.35rem;
  color: var(--color-gold-bright);
  margin-bottom: 0.25rem;
}

.leader-role {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
}

/* Modal Popup Styles */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #180529;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(53, 10, 84, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--color-gold-bright);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

/* Membership Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gold-bright);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  background: rgba(20, 3, 33, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: #f8fafc;
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-gold-bright);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

/* Footer Section */
.site-footer {
  background: #070110;
  border-top: 1px solid rgba(139, 43, 196, 0.35);
  padding: 5rem 0 2rem 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 5fr 7fr; }
}
