/* Core Variables & Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
  --bg-color: #0a0a1a; /* Dark navy */
  --accent-color: #d4a574; /* Gold */
  --text-color: #e8e0d4; /* Soft white */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--accent-color);
  font-weight: 400;
  margin-top: 0;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}

a:hover {
  opacity: 1;
  color: #fff;
  text-shadow: 0 0 8px rgba(212, 165, 116, 0.6), 0 0 20px rgba(212, 165, 116, 0.3);
}

/* ============================================
   PAGE NAVIGATION (sub-page links)
   ============================================ */
.church-page-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 5%;
  background: rgba(10, 10, 26, 0.95);
  border-bottom: 1px solid rgba(212, 165, 116, 0.15);
  position: relative;
  overflow: hidden;
}
.church-page-nav a {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 600;
  color: #d4a574;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.church-page-nav a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(212, 165, 116, 0.5);
}
.church-page-nav a.page-active {
  color: #fff;
  opacity: 1;
}
.church-page-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color, #d4a574), transparent);
  animation: nav-scan 4s linear infinite;
}
@keyframes nav-scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@media (max-width: 600px) {
  .church-page-nav {
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
  }
}

/* Header & Footer Container */
.mm-header, .mm-footer {
  padding: 1.5rem 5%;
  background-color: rgba(10, 10, 26, 0.95);
  border-bottom: 1px solid rgba(212, 165, 116, 0.2);
  backdrop-filter: blur(10px);
}

.mm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mm-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.mm-logo {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.4rem;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.mm-logo img {
  flex-shrink: 0;
  height: 32px;
  width: auto;
}

.mm-links {
  display: flex;
  gap: 0.6rem 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.mm-links a {
  font-size: 0.8rem;
}

.mm-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Page Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 5%;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 0;
  animation: fadeIn 1.5s ease-in;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(212, 165, 116, 0.3);
}

.hero-img-container {
  margin: 2rem auto;
  border-radius: 8px;
  border: 1px solid rgba(212, 165, 116, 0.3);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(212, 165, 116, 0.1);
}

.hero-img-container img {
  width: 100%;
  height: auto;
  display: block;
}

.quote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-color);
  margin: 3rem auto;
  padding: 1.5rem;
  border-left: 2px solid var(--accent-color);
  border-right: 2px solid var(--accent-color);
  max-width: 800px;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.05), transparent);
}

/* Grid Cards */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 165, 116, 0.15);
  padding: 2rem;
  border-radius: 8px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 10px 30px rgba(212, 165, 116, 0.25),
    0 0 40px rgba(212, 165, 116, 0.15),
    inset 0 0 15px rgba(212, 165, 116, 0.05);
  border-color: rgba(212, 165, 116, 0.6);
}

/* Footer layout */
.mm-footer {
  border-top: 1px solid rgba(212, 165, 116, 0.2);
  border-bottom: none;
  margin-top: 4rem;
}

.mm-footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.mm-footer-col h4 {
  margin-bottom: 1rem;
}

.mm-footer-col a {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.mm-footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.condemnation-block {
  margin-top: 3rem;
  padding: 1.5rem;
  background: rgba(10, 10, 26, 0.8);
  border: 1px solid rgba(255, 50, 50, 0.2);
  border-left: 4px solid #d4a574;
  font-size: 0.95rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dropdown Navigation */
.mm-dropdown {
  position: relative;
  display: inline-block;
}
.mm-dropdown-toggle {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.mm-dropdown-toggle:hover,
.mm-dropdown.active .mm-dropdown-toggle {
  opacity: 1;
}
.mm-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 26, 0.98);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 160px;
  z-index: 1001;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mm-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
}
.mm-dropdown:hover .mm-dropdown-menu,
.mm-dropdown.open .mm-dropdown-menu {
  display: flex;
  flex-direction: column;
}
.mm-dropdown-menu a {
  padding: 0.5rem 1.2rem;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s, background 0.3s;
}
.mm-dropdown-menu a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}
.mm-ecosystem-link {
  opacity: 0.6;
  font-size: 0.85em;
}
.mm-ecosystem-link:hover {
  opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .mm-links { display: none; }
  .mm-menu-toggle { display: block; }
  .hero h1 { font-size: 2.5rem; }
  .mm-links.active, .mm-links[style*="flex"] {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 26, 0.98);
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
  }
  .mm-dropdown {
    width: 100%;
  }
  .mm-dropdown-toggle {
    display: none;
  }
  .mm-dropdown-menu {
    display: flex !important;
    flex-direction: column;
    position: static;
    transform: none;
    background: none;
    border: none;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    min-width: auto;
  }
  .mm-dropdown-menu a {
    padding: 0.75rem 1rem;
  }
}
