/* Resurrection Church: Burnsville, MN — Modern Editorial Design System
   Colors derived directly from resurrectionmn.org's slate-blue, deep navy,
   ice tint, and warm sand palette. */

:root {
  --navy-950: #141d2e;
  --navy-900: #1c273e;
  --navy-800: #253150;
  --slate-700: #345072;
  --brand-600: #435c77;
  --brand-500: #506882;
  --blue-600: #3d6696;
  --blue-500: #4b77ab;
  --blue-400: #688fba;
  --blue-300: #83a1c6;
  --blue-200: #90a2b6;
  --sand-600: #9c8456;
  --sand-400: #d9c392;
  --sand-300: #ecdaaf;
  --sand-100: #f8f4ea;
  --white: #ffffff;
  --ice-50: #f7fbff;
  --ice-100: #eef3f9;
  --ice-200: #e3e8f2;
  --ink-900: #182233;
  --ink-700: #354256;
  --ink-500: #5c6a7d;
  --border-light: #d8e1ec;
  --border-dark: rgba(255, 255, 255, 0.14);
  --danger-700: #9b1c1c;
  --danger-50: #fef2f2;
  --success-700: #166534;
  --success-50: #f0fdf4;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(20, 29, 46, 0.06), 0 1px 2px rgba(20, 29, 46, 0.04);
  --shadow-md: 0 18px 36px -14px rgba(20, 29, 46, 0.16);
  --shadow-lg: 0 28px 60px -18px rgba(10, 16, 28, 0.55);
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.14;
  margin-top: 0;
}

h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-top: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue-500);
  color: var(--white);
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

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

.inline-link {
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(75, 119, 171, 0.45);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.inline-link:hover {
  color: var(--navy-800);
  text-decoration-color: var(--navy-800);
}

.section-dark .inline-link,
.hero .inline-link {
  color: var(--sand-300);
  text-decoration-color: rgba(236, 218, 175, 0.45);
}

.section-dark .inline-link:hover,
.hero .inline-link:hover {
  color: var(--white);
  text-decoration-color: var(--white);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(20, 29, 46, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  flex-shrink: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
}

.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  color: var(--white);
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand-300);
  margin-top: 0.18rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.nav-link,
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.87rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-dropdown-trigger:hover,
.nav-dropdown.is-open .nav-dropdown-trigger {
  color: var(--white);
  background: rgba(118, 144, 173, 0.28);
}

.nav-link.is-active,
.nav-dropdown-trigger.is-active {
  color: var(--white);
  background: var(--blue-500);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger svg {
  transition: transform 0.16s ease;
}

.nav-dropdown.is-open .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 224px;
  padding: 0.45rem;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  z-index: 70;
}

.nav-dropdown-menu[hidden] {
  display: none;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.56rem 0.82rem;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.is-active {
  background: rgba(104, 143, 186, 0.25);
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  cursor: pointer;
}

.mobile-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--navy-900);
  padding: 1rem 0 1.45rem;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--sand-300);
  padding: 0.75rem 0.5rem 0.25rem;
}

.mobile-nav-inner a:not(.btn) {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
}

.mobile-nav-inner a:not(.btn):hover,
.mobile-nav-inner a:not(.btn).is-active {
  background: rgba(104, 143, 186, 0.25);
  color: var(--white);
}

.mobile-nav-inner .btn {
  margin-top: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.38rem;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 0.52rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 1.65rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--blue-400);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(75, 119, 171, 0.65);
}

.btn-primary:hover {
  background: var(--blue-500);
  color: var(--white);
}

.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--slate-700);
  color: var(--white);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.26);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.44);
}

.btn-outline {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--border-light);
}

.btn-outline:hover {
  border-color: var(--brand-500);
  background: var(--ice-50);
  color: var(--slate-700);
}

.btn-sand {
  background: var(--sand-300);
  color: var(--navy-950);
}

.btn-sand:hover {
  background: var(--sand-400);
  color: var(--navy-950);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-slate {
  background: var(--ice-200);
  color: var(--slate-700);
}

.badge-blue {
  background: rgba(75, 119, 171, 0.14);
  color: var(--blue-600);
}

.badge-sand {
  background: var(--sand-100);
  color: var(--sand-600);
  border: 1px solid rgba(156, 132, 86, 0.25);
}

.badge-dark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--sand-300);
}

/* Hero (Homepage) */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  color: var(--white);
  padding: 4.5rem 0 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.34;
  filter: saturate(0.85) contrast(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 22%, rgba(104, 143, 186, 0.28), transparent 48%),
    linear-gradient(110deg, rgba(20, 29, 46, 0.94) 0%, rgba(28, 39, 62, 0.84) 55%, rgba(37, 49, 80, 0.72) 100%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--sand-300);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sand-300);
}

.hero h1 {
  font-size: clamp(2.85rem, 5.4vw, 4.35rem);
  line-height: 1.04;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero h1 span {
  color: var(--sand-300);
  font-style: italic;
  font-weight: 500;
}

.hero-lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 54ch;
  margin: 0 0 1.65rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.9rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-meta svg {
  color: var(--sand-300);
  flex-shrink: 0;
}

/* Glassmorphic Sunday Quick-Hub */
.hub-shell {
  background: rgba(20, 29, 46, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.35rem;
  color: var(--white);
}

.hub-topbar {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1rem;
}

.hub-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hub-identity img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.hub-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.15;
}

.hub-sub {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.04em;
}

.hub-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.28rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.hub-tab {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.hub-tab:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hub-tab.is-active {
  background: var(--blue-400);
  color: var(--white);
}

.hub-panel[hidden] {
  display: none;
}

.hub-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-md);
  padding: 1rem 1.05rem;
}

.hub-card + .hub-card {
  margin-top: 0.75rem;
}

.hub-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.hub-card p {
  margin: 0;
  font-size: 0.89rem;
  color: rgba(255, 255, 255, 0.8);
}

.hub-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.hub-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hub-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.78rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hub-link-item:hover {
  background: rgba(104, 143, 186, 0.24);
  border-color: rgba(255, 255, 255, 0.24);
}

.hub-link-item small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.hub-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Subpage Hero */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, var(--navy-950) 0%, var(--navy-800) 60%, var(--slate-700) 100%);
  color: var(--white);
  padding: 3.5rem 0 3.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20, 29, 46, 0.92) 0%, rgba(37, 49, 80, 0.82) 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sand-300);
  margin-bottom: 0.85rem;
}

.breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
}

.breadcrumb span[aria-hidden="true"] {
  opacity: 0.55;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 4.4vw, 3.35rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1.07rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 62ch;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-light {
  background: var(--white);
}

.section-ice {
  background: var(--ice-50);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-tinted {
  background: var(--ice-200);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-dark {
  background: var(--navy-900);
  color: var(--white);
}

.section-header {
  max-width: 680px;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.section-header-left {
  margin-left: 0;
  text-align: left;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.35rem;
}

.section-header-row .section-header {
  margin: 0;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 0.5rem;
}

.section-dark .section-eyebrow {
  color: var(--sand-300);
}

.section-header h2 {
  font-size: clamp(1.95rem, 3.6vw, 2.75rem);
  color: var(--navy-800);
  margin-bottom: 0.65rem;
}

.section-dark .section-header h2 {
  color: var(--white);
}

.section-header p {
  margin: 0;
  color: var(--ink-500);
  font-size: 1.03rem;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.78);
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}

.split-layout-top {
  align-items: start;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.card-hover {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-300);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ice-100);
  color: var(--slate-700);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.card h3 {
  font-size: 1.2rem;
  color: var(--navy-800);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--ink-700);
  margin: 0 0 1rem;
  font-size: 0.96rem;
}

.card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Visual Feature Cards */
.feature-card {
  padding: 0;
  overflow: hidden;
}

.feature-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-900);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.feature-card:hover .feature-media img {
  transform: scale(1.04);
}

.feature-body {
  padding: 1.45rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Framed Photos */
.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  background: var(--navy-900);
}

.media-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.media-caption {
  padding: 0.75rem 1rem;
  background: var(--ice-50);
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--ink-500);
}

/* City Mission Banner */
.city-banner {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  color: var(--white);
  padding: 5.5rem 0;
}

.city-banner-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.city-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.32;
}

.city-banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 29, 46, 0.92) 0%, rgba(52, 80, 114, 0.78) 100%);
}

.city-banner-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.city-banner h2 {
  font-size: clamp(2.15rem, 4vw, 3.1rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.city-banner p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.75rem;
}

/* Audio Player */
.audio-player {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  accent-color: var(--blue-500);
}

.sermon-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.sermon-art {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-900);
  aspect-ratio: 16 / 9;
}

.sermon-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sermons Filter & List */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-pill {
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--ink-700);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--blue-400);
  color: var(--navy-800);
}

.filter-pill.is-active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

.search-input-wrap {
  position: relative;
  min-width: 260px;
  flex: 0 1 320px;
}

.search-input-wrap svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-500);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.62rem 0.9rem 0.62rem 2.45rem;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--ink-900);
  background: var(--white);
}

.sermon-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sermon-row {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(240px, 340px);
  gap: 1.25rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.sermon-row[hidden] {
  display: none;
}

.sermon-date-box {
  background: var(--ice-100);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  text-align: center;
}

.sermon-date-month {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-600);
}

.sermon-date-day {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy-800);
}

.sermon-date-year {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-500);
}

.sermon-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-top: 0.25rem;
}

.sermon-audio-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sermon-audio-links {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  font-size: 0.8rem;
}

/* Liturgical / Numbered Steps */
.liturgy-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.liturgy-step {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--navy-800);
  color: var(--sand-300);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Quote & Covenant Prose */
.prose-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  box-shadow: var(--shadow-md);
  max-width: 860px;
  margin: 0 auto;
}

.covenant-prose p {
  font-family: var(--font-serif);
  font-size: 1.16rem;
  line-height: 1.78;
  color: var(--ink-900);
  margin: 0 0 1.25rem;
}

.covenant-prose p:last-child {
  margin-bottom: 0;
  font-style: italic;
  color: var(--slate-700);
}

.quote-block {
  border-left: 4px solid var(--brand-500);
  padding: 0.85rem 1.35rem;
  background: var(--ice-50);
  border-radius: 0 12px 12px 0;
  margin: 1.25rem 0;
}

.quote-block blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--navy-800);
}

/* Beliefs Jump Bar & Articles */
.jump-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.jump-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background-color 0.15s ease;
}

.jump-pill:hover {
  background: var(--blue-400);
}

.article-card {
  scroll-margin-top: 96px;
}

.article-num {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 0.35rem;
}

/* Leadership Cards */
.leader-card {
  padding: 0;
  overflow: hidden;
}

.leader-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ice-200);
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.leader-body {
  padding: 1.45rem 1.55rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.leader-role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.28rem;
}

.leader-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--navy-800);
  margin-bottom: 0.65rem;
}

.leader-details {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}

.leader-details summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--blue-600);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.leader-details summary::-webkit-details-marker {
  display: none;
}

.leader-family-photo {
  margin-top: 0.85rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.leader-family-photo img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  object-position: center 25%;
}

/* History Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.timeline-year {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand-600);
  background: var(--sand-100);
  border: 1px solid rgba(156, 132, 86, 0.28);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

/* Safety & Alert Callouts */
.callout-box {
  border-radius: var(--radius-md);
  padding: 1.5rem 1.65rem;
  border: 1px solid var(--border-light);
  background: var(--ice-50);
}

.callout-urgent {
  background: var(--sand-100);
  border-color: rgba(156, 132, 86, 0.45);
  border-left: 5px solid var(--sand-600);
}

.callout-box h3 {
  color: var(--navy-800);
  margin-bottom: 0.45rem;
}

/* Event Cards */
.event-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.event-date-pill {
  background: var(--navy-800);
  color: var(--white);
  border-radius: 14px;
  padding: 0.8rem 0.6rem;
  text-align: center;
}

.event-date-pill .month {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand-300);
}

.event-date-pill .day {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.1;
}

/* Info List & Map */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--ice-50);
  border: 1px solid var(--border-light);
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  color: var(--navy-800);
  margin-bottom: 0.15rem;
}

.info-item p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.94rem;
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  background: var(--ice-100);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

/* Forms (YetiPages /forms compatible) */
.form-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group textarea {
  min-height: 128px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(75, 119, 171, 0.16);
}

.form-footer {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-status {
  padding: 0.78rem 0.95rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-status.is-error {
  background: var(--danger-50);
  color: var(--danger-700);
  border: 1px solid rgba(155, 28, 28, 0.25);
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-success {
  text-align: center;
  padding: 1.5rem 0.75rem;
}

.form-success[hidden],
form[hidden] {
  display: none;
}

.form-success-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--success-50);
  color: var(--success-700);
  border: 1px solid rgba(22, 101, 52, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--navy-800);
  margin-bottom: 0.4rem;
}

.form-success p {
  color: var(--ink-500);
  margin: 0 0 1.25rem;
}

/* Footer */
.site-footer {
  background: var(--brand-500);
  color: var(--white);
  padding: 4rem 0 2.25rem;
  border-top: 4px solid var(--navy-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.91rem;
  margin: 0.9rem 0 1.2rem;
  max-width: 32ch;
}

.footer-social {
  display: flex;
  gap: 0.55rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(20, 29, 46, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.footer-social a:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
}

.footer-col h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sand-300);
  margin-bottom: 0.95rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-layout,
  .split-layout,
  .sermon-spotlight,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sermon-row {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .sermon-audio-wrap {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .section {
    padding: 3.25rem 0;
  }

  .hero {
    padding: 3.25rem 0 3.75rem;
  }

  .header-actions .btn {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .liturgy-list,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sermon-row,
  .event-card {
    grid-template-columns: 1fr;
  }

  .sermon-date-box {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    text-align: left;
  }

  .sermon-date-day {
    font-size: 1.2rem;
  }

  .event-date-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.45rem 0.9rem;
  }

  .event-date-pill .day {
    font-size: 1.25rem;
  }
}
