/* ==========================================================================
   TNGC Website Rebuild — Global Styles
   Brand: Deep Purple #1A0E33 | Royal Gold #C8A951 | Cream #FAF7F2
   Fonts: Cinzel (display) | Cormorant Garamond (body)
   ========================================================================== */

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

:root {
  --deep-purple: #1A0E33;
  --royal-gold: #C8A951;
  --cream: #FAF7F2;
  --cream-dark: #F0E9E0;
  --text-dark: #1A0E33;
  --text-light: #FAF7F2;
  --text-muted: #6B6178;
  --gold-hover: #B8973E;
  --purple-light: #2D1B4E;
  --border-gold: rgba(200, 169, 81, 0.3);
  --shadow-soft: 0 4px 24px rgba(26, 14, 51, 0.12);
  --shadow-deep: 0 12px 48px rgba(26, 14, 51, 0.25);
  --radius: 8px;
  --max-width: 1280px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--deep-purple);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--royal-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--gold-hover);
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--royal-gold);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility classes */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-purple {
  background-color: var(--deep-purple);
  color: var(--text-light);
}

.section-purple h1,
.section-purple h2,
.section-purple h3,
.section-purple h4 {
  color: var(--cream);
}

.section-cream {
  background-color: var(--cream);
}

.section-gold {
  background-color: var(--royal-gold);
  color: var(--deep-purple);
}

.section-gold h1,
.section-gold h2,
.section-gold h3 {
  color: var(--deep-purple);
}

.text-center { text-align: center; }
.text-gold { color: var(--royal-gold); }
.text-cream { color: var(--cream); }
.text-muted { color: var(--text-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--royal-gold);
  outline-offset: 3px;
}

.btn-gold {
  background-color: var(--royal-gold);
  color: var(--deep-purple);
  border-color: var(--royal-gold);
}

.btn-gold:hover,
.btn-gold:focus {
  background-color: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--deep-purple);
  text-decoration: none;
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--royal-gold);
  border-color: var(--royal-gold);
}

.btn-outline-gold:hover,
.btn-outline-gold:focus {
  background-color: var(--royal-gold);
  color: var(--deep-purple);
  text-decoration: none;
}

.btn-outline-light {
  background-color: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: var(--cream);
  color: var(--deep-purple);
  text-decoration: none;
}

.btn-purple {
  background-color: var(--deep-purple);
  color: var(--cream);
  border-color: var(--deep-purple);
}

.btn-purple:hover,
.btn-purple:focus {
  background-color: var(--purple-light);
  border-color: var(--purple-light);
  color: var(--cream);
  text-decoration: none;
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--deep-purple);
  border-color: var(--deep-purple);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background-color: var(--deep-purple);
  color: var(--cream);
  text-decoration: none;
}

/* Section header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.section-purple .section-header p {
  color: rgba(250, 247, 242, 0.8);
}

/* Diamond ornament */
.diamond-ornament {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--royal-gold);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
}

.diamond-ornament::before,
.diamond-ornament::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: currentColor;
}

.diamond-icon {
  width: 12px;
  height: 12px;
  background: currentColor;
  transform: rotate(45deg);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--header-height);
  background: rgba(26, 14, 51, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-gold);
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Cinzel', serif;
  color: var(--cream);
  line-height: 1.2;
  flex-shrink: 0;
  max-width: 280px;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
}

.logo-subtitle {
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--royal-gold);
  text-transform: uppercase;
  line-height: 1.3;
  max-width: 220px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--royal-gold);
  text-decoration: none;
}

.nav-cta {
  background-color: var(--royal-gold);
  color: var(--deep-purple) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-align: center;
  line-height: 1.2;
}

.nav-cta:hover,
.nav-cta:focus {
  background-color: var(--gold-hover);
  color: var(--deep-purple) !important;
}

/* Dropdown navigation */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item > .nav-link {
  padding-right: 0.25rem;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: var(--cream);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: -0.25rem;
  line-height: 1;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
  color: var(--royal-gold);
}

.dropdown-toggle:focus-visible {
  outline: 2px solid var(--royal-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  min-width: 220px;
  background: var(--deep-purple);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  list-style: none;
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -0.75rem;
  left: 0;
  right: 0;
  height: 0.75rem;
}

.nav-item:hover .dropdown-menu,
.nav-item.open .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--cream);
  font-size: 0.8rem;
  white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: var(--purple-light);
  color: var(--royal-gold);
  text-decoration: none;
}

.dropdown-section strong {
  display: block;
  padding: 0.75rem 1.25rem 0.25rem;
  color: var(--royal-gold);
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Nested submenu */
.has-submenu {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.has-submenu > .submenu-link {
  flex: 1;
  display: block;
  padding: 0.625rem 0 0.625rem 1.25rem;
  color: var(--cream);
  font-size: 0.8rem;
}

.has-submenu > .submenu-link:hover,
.has-submenu > .submenu-link:focus {
  color: var(--royal-gold);
  background: var(--purple-light);
  text-decoration: none;
}

.submenu-toggle {
  background: none;
  border: none;
  color: var(--royal-gold);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  line-height: 1;
}

.submenu-toggle:hover,
.submenu-toggle:focus {
  color: var(--cream);
}

.submenu-toggle:focus-visible {
  outline: 2px solid var(--royal-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.submenu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 280px;
  background: var(--deep-purple);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  list-style: none;
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1002;
}

.has-submenu:hover > .submenu,
.has-submenu.open > .submenu,
.has-submenu:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.submenu li {
  margin: 0;
}

.submenu a {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--cream);
  font-size: 0.8rem;
  white-space: nowrap;
}

.submenu a:hover,
.submenu a:focus {
  background: var(--purple-light);
  color: var(--royal-gold);
  text-decoration: none;
}

.ministries-dropdown .dropdown-menu {
  min-width: 260px;
  columns: 2;
  column-gap: 0;
}

.ministries-dropdown .dropdown-menu li {
  break-inside: avoid;
}

.ministries-dropdown .dropdown-section strong {
  column-span: all;
}

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

/* Hero */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  background: var(--deep-purple);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 14, 51, 0.92) 0%, rgba(45, 27, 78, 0.88) 100%);
  z-index: 1;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8a951' fill-opacity='0.05'%3E%3Cpath d='M30 0l30 30-30 30L0 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
}

.hero h1 {
  color: var(--cream);
  margin-bottom: 1rem;
}

.hero h2,
.hero h3 {
  color: var(--royal-gold);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-subtitle {
  color: var(--royal-gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Service times bar */
.service-bar {
  background-color: var(--cream);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-gold);
}

.service-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.service-bar-item {
  padding: 1.5rem;
  position: relative;
}

.service-bar-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1rem;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-gold);
}

.service-bar-item h3,
.service-bar-item h4 {
  color: var(--deep-purple);
  margin-bottom: 0.5rem;
}

.service-bar-item p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 1.05rem;
}

.service-bar-item .time {
  font-family: 'Cinzel', serif;
  color: var(--royal-gold);
  font-size: 1.25rem;
  font-weight: 600;
}

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

.card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}

.card-image {
  aspect-ratio: 16 / 10;
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--royal-gold);
  font-family: 'Cinzel', serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-body {
  padding: 1.75rem;
}

.card-body h3 {
  margin-bottom: 0.75rem;
}

.card-body p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Pillar cards */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.pillar-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.pillar-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--royal-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-purple);
  font-size: 1.5rem;
}

/* Accordion */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid var(--border-gold);
}

.accordion-toggle {
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--deep-purple);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-toggle::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--royal-gold);
}

.accordion-item.active .accordion-toggle::after {
  content: "−";
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-panel {
  max-height: 500px;
}

.accordion-panel p {
  padding-bottom: 1.25rem;
  color: var(--text-muted);
}

/* Two column layouts */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-column.reverse {
  direction: rtl;
}

.two-column.reverse > * {
  direction: ltr;
}

.media-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--purple-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--royal-gold);
  font-family: 'Cinzel', serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Ministry grid */
.ministry-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.ministry-card img,
.ministry-card .ministry-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ministry-card .ministry-image {
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--royal-gold);
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
}

.ministry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 14, 51, 0.95) 0%, rgba(26, 14, 51, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  color: var(--cream);
}

.ministry-overlay h3 {
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.ministry-overlay p {
  color: rgba(250, 247, 242, 0.85);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.band-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--royal-gold);
  color: var(--deep-purple);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
}

/* Sermon / video cards */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.video-card {
  aspect-ratio: 16 / 9;
  background: var(--purple-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: 'Cinzel', serif;
  text-align: center;
  padding: 1rem;
}

/* Event cards */
.event-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--royal-gold);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 1rem;
  background: var(--deep-purple);
  color: var(--cream);
  border-radius: var(--radius);
  text-align: center;
}

.event-date .month {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--royal-gold);
}

.event-date .day {
  font-family: 'Cinzel', serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.event-details h3 {
  margin-bottom: 0.5rem;
}

.event-details p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

/* Giving page */
.giving-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.giving-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.giving-card h3 {
  margin-bottom: 1rem;
}

.giving-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--deep-purple);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 3px solid var(--royal-gold);
  outline-offset: 2px;
  border-color: var(--royal-gold);
}

.form-group.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-group.checkbox input {
  width: auto;
  margin-top: 0.35rem;
}

/* Footer */
.site-footer {
  background: var(--deep-purple);
  color: var(--cream);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-gold);
}

.footer-brand h2 {
  color: var(--cream);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: rgba(250, 247, 242, 0.8);
  font-size: 1rem;
}

.footer-greeting {
  text-align: center;
  padding: 2rem 0;
}

.footer-greeting h3 {
  color: var(--royal-gold);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.footer-links h4 {
  color: var(--royal-gold);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(250, 247, 242, 0.85);
  font-size: 1rem;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--royal-gold);
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(250, 247, 242, 0.7);
}

/* Breadcrumb */
.breadcrumb {
  background: var(--cream-dark);
  padding: 1rem 0;
  font-size: 0.9rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  color: var(--royal-gold);
}

/* Page hero (interior) */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  background: var(--deep-purple);
  color: var(--cream);
  text-align: center;
}

.page-hero h1 {
  color: var(--cream);
}

.page-hero p {
  color: var(--royal-gold);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 1rem auto 0;
}

/* Leadership grid */
.leadership-grid {
  display: grid;
  /* min(240px, 100%) keeps a track from ever exceeding the container
     width on narrow screens (which would clip under overflow-x:hidden). */
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 2rem;
}

/* Long role/name/heading strings wrap instead of running past the window */
.leader-card h3,
.leader-card .role,
.section-header h2,
.section-header p,
#profile-name,
#profile-role,
#profile-group {
  overflow-wrap: break-word;
  word-break: break-word;
}

.leader-card {
  text-align: center;
}

.leader-photo {
  width: 180px;
  height: 240px;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius);
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--royal-gold);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.leader-card h3 {
  margin-bottom: 0.25rem;
}

.leader-card .role {
  color: var(--royal-gold);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.leader-card-link {
  display: block;
  color: inherit;
}

.leader-card-link:hover .leader-card,
.leader-card-link:focus .leader-card {
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}

.leader-card-link:focus-visible {
  outline: 3px solid var(--royal-gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Organizational Tree */
.org-tree {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  overflow-x: auto;
}

.org-tree ul {
  padding-top: 24px;
  position: relative;
  transition: all 0.5s;
  display: flex;
  justify-content: center;
}

.org-tree li {
  float: left;
  text-align: center;
  list-style-type: none;
  position: relative;
  padding: 24px 12px 0 12px;
  transition: all 0.5s;
}

/* Connectors */
.org-tree li::before,
.org-tree li::after {
  content: '';
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 2px solid var(--border-gold);
  width: 50%;
  height: 24px;
}

.org-tree li::after {
  right: auto;
  left: 50%;
  border-left: 2px solid var(--border-gold);
}

.org-tree li:only-child::after,
.org-tree li:only-child::before {
  display: none;
}

.org-tree li:only-child {
  padding-top: 0;
}

.org-tree li:first-child::before,
.org-tree li:last-child::after {
  border: 0 none;
}

.org-tree li:last-child::before {
  border-right: 2px solid var(--border-gold);
  border-radius: 0 8px 0 0;
}

.org-tree li:first-child::after {
  border-radius: 8px 0 0 0;
}

.org-tree ul ul::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 2px solid var(--border-gold);
  width: 0;
  height: 24px;
}

.org-node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  max-width: 220px;
  padding: 1rem 1.25rem;
  background: var(--deep-purple);
  color: var(--cream);
  border: 2px solid var(--royal-gold);
  border-radius: var(--radius);
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: all 0.25s ease;
  cursor: pointer;
}

.org-node:hover,
.org-node:focus {
  background: var(--royal-gold);
  color: var(--deep-purple);
  transform: translateY(-3px);
  box-shadow: var(--shadow-deep);
  outline: none;
}

.org-node:focus-visible {
  outline: 3px solid var(--royal-gold);
  outline-offset: 3px;
}

.org-node .role-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--royal-gold);
  margin-top: 0.25rem;
}

.org-node:hover .role-title,
.org-node:focus .role-title {
  color: var(--deep-purple);
}

.org-node.root {
  background: var(--royal-gold);
  color: var(--deep-purple);
  font-size: 1rem;
}

.org-node.root .role-title {
  color: var(--deep-purple);
  opacity: 0.8;
}

/* Social Sidebar — Connect With Us */
.social-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  pointer-events: auto;
}

.sidebar-inner {
  background: linear-gradient(135deg, rgba(45, 27, 78, 0.95), rgba(26, 14, 51, 0.98));
  border: 1px solid var(--border-gold);
  border-right: none;
  border-radius: 12px 0 0 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 62px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
}

.sidebar-inner.expanded {
  width: 260px;
  padding: 22px 20px;
  align-items: stretch;
  cursor: default;
}

.sidebar-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--royal-gold);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  margin-bottom: 8px;
  white-space: nowrap;
  transition: all 0.45s;
  cursor: pointer;
}

.sidebar-inner.expanded .sidebar-heading {
  writing-mode: horizontal-tb;
  transform: none;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-gold);
  width: 100%;
  text-align: center;
}

.sidebar-divider {
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--royal-gold), transparent);
  opacity: 0.35;
  margin: 4px 0;
}

.sidebar-inner.expanded .sidebar-divider {
  display: none;
}

.sidebar-link {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  transition: all 0.35s;
  color: rgba(250, 247, 242, 0.6);
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-link:hover,
.sidebar-link:focus {
  border-color: var(--royal-gold);
  background: rgba(200, 169, 81, 0.12);
  color: var(--royal-gold);
  outline: none;
}

.sidebar-link:focus-visible {
  outline: 3px solid var(--royal-gold);
  outline-offset: 2px;
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
  min-width: 18px;
}

.link-label {
  font-family: 'Inter', sans-serif;
  font-size: 0;
  font-weight: 600;
  color: var(--cream);
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-inner.expanded .sidebar-link {
  width: 100%;
  height: 46px;
  justify-content: flex-start;
  padding: 0 16px;
  gap: 14px;
  border-radius: 8px;
  background: rgba(200, 169, 81, 0.04);
}

.sidebar-inner.expanded .sidebar-link svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
}

.sidebar-inner.expanded .link-label {
  font-size: 0.82rem;
  opacity: 1;
  max-width: 180px;
}

.sidebar-inner.expanded .sidebar-link:hover,
.sidebar-inner.expanded .sidebar-link:focus {
  background: rgba(200, 169, 81, 0.14);
  transform: translateX(-4px);
}

.sidebar-inner.expanded .sidebar-link:hover .link-label,
.sidebar-inner.expanded .sidebar-link:focus .link-label {
  color: var(--royal-gold);
}

.sidebar-toggle {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  color: rgba(200, 169, 81, 0.5);
  transition: all 0.3s;
  cursor: pointer;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  background: transparent;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus {
  color: var(--royal-gold);
  border-color: var(--royal-gold);
}

.sidebar-toggle:focus-visible {
  outline: 3px solid var(--royal-gold);
  outline-offset: 2px;
}

.sidebar-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.4s;
}

.sidebar-inner.expanded .sidebar-toggle svg {
  transform: rotate(180deg);
}

.sidebar-link .tip {
  position: absolute;
  right: 52px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--deep-purple);
  border: 1px solid var(--border-gold);
  color: var(--royal-gold);
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}

.sidebar-link .tip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--deep-purple);
  border-right: 1px solid var(--border-gold);
  border-top: 1px solid var(--border-gold);
}

.sidebar-link:hover .tip,
.sidebar-link:focus .tip {
  opacity: 1;
  right: 56px;
}

.sidebar-inner.expanded .tip {
  display: none;
}

/* Responsive */
@media (max-width: 1200px) {
  .main-nav {
    gap: 1rem;
  }

  .main-nav a {
    font-size: 0.75rem;
  }

  .nav-cta {
    padding: 0.5rem 0.875rem;
  }

  .logo-title {
    font-size: 1rem;
  }

  .logo-subtitle {
    font-size: 0.55rem;
  }
}

@media (max-width: 1024px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .giving-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
  :root { --header-height: 70px; }

  /* backdrop-filter on the header makes it the containing block + clip
     region for the fixed drawer below, collapsing it to the header's
     height. Drop it on mobile (header bg is already near-opaque). */
  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--deep-purple);
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--deep-purple);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 0.75rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-y: auto;
    flex-wrap: nowrap;
    z-index: 1001;
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: block;
  }

  .main-nav > a {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-gold);
    font-size: 1rem;
  }

  .nav-cta {
    width: auto;
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
  }

  .nav-item {
    flex-wrap: wrap;
    width: 100%;
  }

  .nav-item > .nav-link {
    flex: 1;
    padding-right: 0;
  }

  .dropdown-toggle {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
  }

  .dropdown-toggle span {
    display: inline-block;
    transition: transform 0.2s ease;
  }

  .nav-item.open .dropdown-toggle span {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--royal-gold);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.03);
    padding: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease, visibility 0.2s ease;
  }

  .nav-item.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 1500px;
    padding: 0.5rem 0;
  }

  .dropdown-menu a {
    padding-left: 1.5rem;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .has-submenu {
    flex-wrap: wrap;
  }

  .has-submenu > .submenu-link {
    flex: 1;
    padding-left: 1.5rem;
  }

  .submenu-toggle {
    padding: 0.75rem;
    font-size: 1rem;
  }

  .submenu-toggle span {
    display: inline-block;
    transition: transform 0.2s ease;
  }

  .has-submenu.open .submenu-toggle span {
    transform: rotate(90deg);
  }

  .submenu {
    position: static;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--royal-gold);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease, visibility 0.2s ease;
  }

  .has-submenu.open .submenu {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    padding: 0.5rem 0;
  }

  .submenu a {
    padding-left: 2rem;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .ministries-dropdown .dropdown-menu {
    columns: 1;
    min-width: 100%;
  }

  .ministries-dropdown .dropdown-section strong {
    column-span: none;
  }

  .social-sidebar {
    position: fixed;
    right: auto;
    left: 0;
    top: auto;
    bottom: 0;
    transform: none;
    width: 100%;
  }

  .sidebar-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--border-gold);
    padding: 6px;
    justify-content: center;
    align-items: center;
    gap: 3px;
    width: 100%;
  }

  .sidebar-inner.expanded {
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    padding: 16px 20px;
  }

  .sidebar-heading {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 0.4rem;
    letter-spacing: 0.08em;
    margin-bottom: 0;
    margin-right: 2px;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar-inner.expanded .sidebar-heading {
    font-size: 0.7rem;
    margin-bottom: 10px;
    margin-right: 0;
    overflow: visible;
  }

  .sidebar-divider {
    width: 1px;
    height: 16px;
    margin: 0 2px;
    flex-shrink: 0;
  }

  .sidebar-link {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .sidebar-link svg {
    width: 14px;
    height: 14px;
    min-width: 14px;
  }

  .sidebar-link .tip {
    display: none;
  }

  .sidebar-toggle {
    width: 24px;
    height: 24px;
    margin-top: 0;
  }

  .sidebar-toggle svg {
    transform: rotate(90deg);
  }

  .sidebar-inner.expanded .sidebar-toggle svg {
    transform: rotate(-90deg);
  }

  body {
    padding-bottom: 56px;
  }

  .org-tree {
    justify-content: flex-start;
    padding: 1rem;
  }

  .org-tree ul {
    padding-top: 16px;
  }

  .org-tree li {
    padding: 16px 6px 0 6px;
  }

  .org-tree li::before,
  .org-tree li::after {
    height: 16px;
  }

  .org-tree ul ul::before {
    height: 16px;
  }

  .org-node {
    min-width: 120px;
    max-width: 160px;
    padding: 0.75rem 0.75rem;
    font-size: 0.75rem;
  }

  .org-node .role-title {
    font-size: 0.7rem;
  }

}

@media (max-width: 768px) {
  .service-bar-grid { grid-template-columns: 1fr; }
  .service-bar-item:not(:last-child)::after { display: none; }

  .pillar-grid { grid-template-columns: 1fr; }
  .two-column { grid-template-columns: 1fr; gap: 2rem; }
  .video-grid { grid-template-columns: 1fr; }
  .giving-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; }

  .logo-title {
    font-size: 0.95rem;
  }

  .logo-subtitle {
    font-size: 0.5rem;
    max-width: 180px;
  }

  .logo-img {
    width: 40px;
    height: 40px;
  }

  .main-nav {
    padding: 1rem 1.5rem;
  }

  .org-tree {
    justify-content: flex-start;
    padding: 1rem 0;
  }

  .org-tree ul {
    padding-top: 16px;
  }

  .org-tree li {
    padding: 16px 6px 0 6px;
  }

  .org-tree li::before,
  .org-tree li::after {
    height: 16px;
  }

  .org-tree ul ul::before {
    height: 16px;
  }

  .org-node {
    min-width: 120px;
    max-width: 160px;
    padding: 0.75rem 0.75rem;
    font-size: 0.75rem;
  }

  .org-node .role-title {
    font-size: 0.7rem;
  }
}
