@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --blue-950: #061d45;
  --blue-900: #082a62;
  --blue-800: #0b3f8f;
  --blue-700: #1155b7;
  --blue-100: #e9f1ff;
  --blue-50: #f4f8ff;
  --gold: #d3a026;
  --gold-light: #f2d27b;
  --ink: #17243a;
  --muted: #637087;
  --line: #dfe5ee;
  --paper: #ffffff;
  --cream: #f7f5ef;
  --shadow-sm: 0 12px 30px rgba(7, 35, 79, 0.08);
  --shadow-lg: 0 28px 70px rgba(4, 28, 67, 0.16);
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --container: 1180px;
  --header-height: 88px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
.display-font {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
}

h2 {
  font-size: clamp(2.15rem, 4.5vw, 3.7rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  color: #fff;
  background: var(--blue-700);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(78px, 10vw, 128px);
}

.section-sm {
  padding-block: clamp(56px, 7vw, 82px);
}

.section-blue {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-800));
}

.section-blue::before,
.section-blue::after {
  position: absolute;
  content: '';
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.section-blue::before {
  width: 540px;
  height: 540px;
  top: -300px;
  right: -120px;
}

.section-blue::after {
  width: 360px;
  height: 360px;
  bottom: -250px;
  left: 8%;
}

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

.section-soft {
  background: var(--blue-50);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--blue-700);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  content: '';
  background: var(--gold);
}

.section-blue .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow,
.ministry-hero .eyebrow {
  color: var(--gold-light);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 50px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading.center .eyebrow {
  justify-content: center;
}

.section-heading h2 {
  margin-bottom: 18px;
  color: var(--blue-950);
}

.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-blue .section-heading h2,
.section-blue .section-heading p {
  color: #fff;
}

.text-light {
  color: #fff !important;
}

.text-light-muted {
  color: rgba(255, 255, 255, 0.72) !important;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-700);
  font-weight: 700;
}

.text-link::after {
  content: '→';
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(5px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button-row.centered {
  justify-content: center;
  margin-top: 36px;
}

.button-row.spaced-top {
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--blue-700);
  box-shadow: 0 14px 30px rgba(17, 85, 183, 0.22);
}

.btn-primary:hover {
  background: var(--blue-800);
}

.btn-gold {
  color: var(--blue-950);
  background: linear-gradient(135deg, #e5bb54, var(--gold));
  box-shadow: 0 14px 30px rgba(211, 160, 38, 0.22);
}

.btn-outline {
  color: var(--blue-900);
  border-color: rgba(8, 42, 98, 0.24);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--blue-700);
  background: var(--blue-50);
}

.btn-white {
  color: var(--blue-950);
  background: #fff;
}

.btn-ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  border-radius: 8px;
  background: var(--blue-900);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: var(--header-height);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--blue-700) 0 72%, var(--gold) 72% 100%) 1;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 5px 24px rgba(6, 29, 69, 0.07);
  backdrop-filter: blur(16px);
}

.site-header.scrolled {
  box-shadow: 0 8px 28px rgba(6, 29, 69, 0.12);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: block;
  flex: 0 1 330px;
  min-width: 210px;
}

.brand img {
  width: 100%;
  max-width: 320px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link,
.nav-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 11px;
  color: #30415c;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active,
.nav-trigger:hover,
.nav-item.active > .nav-trigger {
  color: var(--blue-700);
}

.nav-link.active,
.nav-item.active > .nav-trigger {
  position: relative;
}

.nav-link.active::after,
.nav-item.active > .nav-trigger::after {
  position: absolute;
  right: 12px;
  bottom: 3px;
  left: 12px;
  height: 2px;
  content: '';
  background: var(--gold);
}

.nav-item {
  position: relative;
}

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform 180ms ease;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  display: grid;
  width: min(690px, 80vw);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 18px;
  visibility: hidden;
  border: 1px solid rgba(8, 42, 98, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.dropdown a {
  padding: 10px 12px;
  color: #30415c;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.dropdown a:hover,
.dropdown a.active {
  color: var(--blue-700);
  background: var(--blue-50);
}

.header-cta {
  min-height: 44px;
  padding: 10px 17px;
  font-size: 0.84rem;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: var(--blue-900);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  content: '';
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

.nav-toggle[aria-expanded='true'] span {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(790px, calc(100vh - var(--header-height)));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--blue-950);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(3, 21, 54, 0.94) 0%, rgba(4, 29, 70, 0.78) 43%, rgba(4, 29, 70, 0.18) 78%), linear-gradient(0deg, rgba(3, 21, 54, 0.46), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-block: 105px;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--gold-light);
}

.hero .lead {
  max-width: 630px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.91rem;
}

.hero-note::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  content: '';
  border-radius: 50%;
  background: #56d38b;
  box-shadow: 0 0 0 7px rgba(86, 211, 139, 0.16);
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  right: max(30px, calc((100vw - var(--container)) / 2));
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-scroll::after {
  width: 1px;
  height: 56px;
  content: '';
  background: linear-gradient(var(--gold-light), transparent);
}

.quick-strip {
  position: relative;
  z-index: 3;
  margin-top: -42px;
}

.quick-grid {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(8, 42, 98, 0.08);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.quick-item {
  position: relative;
  display: flex;
  min-height: 120px;
  align-items: center;
  gap: 18px;
  padding: 26px 28px;
}

.quick-item + .quick-item {
  border-left: 1px solid var(--line);
}

.icon-box {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--blue-700);
  border-radius: 14px;
  background: var(--blue-50);
}

.icon-box svg {
  width: 23px;
  height: 23px;
}

.quick-item strong,
.quick-item small {
  display: block;
}

.quick-item strong {
  margin-bottom: 2px;
  color: var(--blue-950);
  font-size: 1rem;
}

.quick-item small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Layout blocks */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 96px);
}

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

.split-content h2 {
  margin-bottom: 24px;
  color: var(--blue-950);
}

.split-content p {
  color: var(--muted);
}

.split-content .button-row {
  margin-top: 28px;
}

.image-frame {
  position: relative;
}

.image-frame::before {
  position: absolute;
  z-index: 0;
  top: -18px;
  right: -18px;
  width: 52%;
  height: 55%;
  content: '';
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold), #f0ce75);
}

.image-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.image-frame-portrait {
  width: min(100%, 500px);
  justify-self: center;
}

.image-frame-portrait img {
  height: clamp(620px, 55vw, 760px);
  aspect-ratio: auto;
  object-position: center 55%;
}

.image-frame-members img {
  object-position: center 42%;
}

.image-badge {
  position: absolute;
  z-index: 2;
  right: -24px;
  bottom: -24px;
  max-width: 190px;
  padding: 20px;
  color: #fff;
  border-radius: 16px;
  background: var(--blue-900);
  box-shadow: var(--shadow-sm);
}

.image-badge strong {
  display: block;
  color: var(--gold-light);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
}

.image-badge span {
  font-size: 0.82rem;
}

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

.feature-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease, border 180ms ease;
}

.feature-card:hover {
  border-color: rgba(17, 85, 183, 0.25);
  box-shadow: var(--shadow-sm);
  transform: translateY(-5px);
}

.feature-card .icon-box {
  margin-bottom: 22px;
}

.feature-card h3 {
  margin-bottom: 12px;
  color: var(--blue-950);
}

.feature-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Schedule */
.schedule-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: stretch;
  gap: 24px;
}

.next-service {
  position: relative;
  overflow: hidden;
  padding: 38px;
  color: #fff;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--blue-900), var(--blue-700));
  box-shadow: var(--shadow-lg);
}

.next-service::after {
  position: absolute;
  right: -80px;
  bottom: -130px;
  width: 260px;
  height: 260px;
  content: '';
  border: 45px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.next-service-label {
  margin-bottom: 42px;
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.next-service h3 {
  margin-bottom: 6px;
  color: #fff;
  font-size: 2rem;
}

.next-service-time {
  display: block;
  margin-bottom: 20px;
  color: var(--gold-light);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
}

.next-service p {
  max-width: 390px;
  color: rgba(255, 255, 255, 0.76);
}

.schedule-card {
  padding: 16px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.schedule-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 24px;
  padding-block: 20px;
}

.schedule-row + .schedule-row {
  border-top: 1px solid var(--line);
}

.schedule-day {
  color: var(--blue-900);
  font-weight: 700;
}

.schedule-name {
  color: var(--muted);
  font-size: 0.94rem;
}

.schedule-time {
  color: var(--blue-950);
  font-weight: 700;
}

/* Ministries */
.ministries-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ministry-card {
  position: relative;
  min-height: 300px;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  color: #fff;
  border-radius: var(--radius-md);
  background: var(--card-bg, linear-gradient(150deg, #0b3f8f, #061d45));
  isolation: isolate;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.ministry-card::before {
  position: absolute;
  z-index: -1;
  top: -55px;
  right: -45px;
  width: 190px;
  height: 190px;
  content: '';
  border: 34px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.ministry-card::after {
  position: absolute;
  z-index: -1;
  right: 28px;
  bottom: 85px;
  width: 56px;
  height: 2px;
  content: '';
  background: var(--gold-light);
  transform: rotate(-35deg);
}

.ministry-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.ministry-card:nth-child(1) { --card-bg: linear-gradient(150deg, #1c74b8, #0b3c75); }
.ministry-card:nth-child(2) { --card-bg: linear-gradient(150deg, #7d4f9f, #3f2465); }
.ministry-card:nth-child(3) { --card-bg: linear-gradient(150deg, #c66d73, #763740); }
.ministry-card:nth-child(4) { --card-bg: linear-gradient(150deg, #b67c2b, #6f4311); }
.ministry-card:nth-child(5) { --card-bg: linear-gradient(150deg, #237e68, #0a493b); }
.ministry-card:nth-child(6) { --card-bg: linear-gradient(150deg, #3558bd, #172b74); }
.ministry-card:nth-child(7) { --card-bg: linear-gradient(150deg, #556273, #252f3b); }
.ministry-card:nth-child(8) { --card-bg: linear-gradient(150deg, #b8503e, #70271d); }

.ministry-number {
  position: absolute;
  top: 20px;
  left: 24px;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.9rem;
}

.ministry-card h3 {
  margin-bottom: 9px;
  color: #fff;
  font-size: 1.45rem;
}

.ministry-card p {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.55;
}

.ministry-card .text-link {
  color: var(--gold-light);
  font-size: 0.86rem;
}

/* CTA and social */
.cta-panel {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: 1.2fr auto;
  align-items: center;
  gap: 36px;
  padding: clamp(38px, 6vw, 68px);
  color: #fff;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-950), var(--blue-700));
  box-shadow: var(--shadow-lg);
}

.cta-panel::after {
  position: absolute;
  top: -70%;
  right: -10%;
  width: 430px;
  height: 430px;
  content: '';
  border: 60px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.cta-panel p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.74);
}

/* Internal pages */
.page-hero {
  position: relative;
  display: grid;
  min-height: 440px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, var(--blue-950), var(--blue-800));
}

.page-hero::before,
.page-hero::after {
  position: absolute;
  content: '';
  border-radius: 50%;
}

.page-hero::before {
  width: 480px;
  height: 480px;
  top: -260px;
  right: -80px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-hero::after {
  width: 180px;
  height: 180px;
  right: 18%;
  bottom: -130px;
  border: 30px solid rgba(211, 160, 38, 0.16);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding-block: 80px;
}

.page-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.page-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.8rem;
  font-weight: 600;
}

.breadcrumbs a:hover {
  color: var(--gold-light);
}

.breadcrumbs span::before {
  margin-right: 8px;
  content: '/';
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 68px;
}

.prose {
  max-width: 780px;
}

.prose h2,
.prose h3 {
  color: var(--blue-950);
}

.prose h2 {
  margin-top: 50px;
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3.5vw, 2.65rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.prose p,
.prose li {
  color: #4f5d72;
}

.prose a:not(.btn) {
  color: var(--blue-700);
  text-decoration: underline;
  text-decoration-color: rgba(17, 85, 183, 0.3);
  text-underline-offset: 3px;
}

.prose blockquote {
  margin: 36px 0;
  padding: 28px 30px;
  color: var(--blue-900);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--cream);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
}

.sidebar-card {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.sidebar-card + .sidebar-card {
  margin-top: 20px;
}

.sidebar-card h3 {
  margin-bottom: 18px;
  color: var(--blue-950);
  font-size: 1.28rem;
}

.sidebar-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.sidebar-list a::after {
  content: '›';
  color: var(--gold);
  font-size: 1.2rem;
}

.sidebar-list a:hover,
.sidebar-list a.active {
  color: var(--blue-700);
}

/* History */
.history-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.about-intro {
  max-width: 860px;
}

.about-intro h2 {
  margin-bottom: 24px;
  color: var(--blue-950);
}

.about-intro p {
  color: var(--muted);
}

.about-intro .button-row {
  margin-top: 28px;
}

.history-gallery figure {
  margin: 0;
}

.history-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.history-gallery figcaption {
  padding: 12px 4px 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.timeline {
  position: relative;
  max-width: 830px;
  margin-inline: auto;
}

.timeline::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 100px;
  width: 1px;
  content: '';
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 56px;
  padding-block: 28px;
}

.timeline-year {
  color: var(--blue-700);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  text-align: right;
}

.timeline-content::before {
  position: absolute;
  top: 38px;
  left: 94px;
  width: 13px;
  height: 13px;
  content: '';
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.timeline-content h3 {
  margin-bottom: 9px;
  color: var(--blue-950);
}

.timeline-content p {
  color: var(--muted);
}

/* Ministry detail */
.ministry-hero {
  position: relative;
  min-height: 510px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--ministry-gradient, linear-gradient(135deg, #082a62, #1155b7));
}

.ministry-theme-infantil { --ministry-gradient: linear-gradient(135deg, #0b3c75, #1c74b8); }
.ministry-theme-mensageiras { --ministry-gradient: linear-gradient(135deg, #3f2465, #7d4f9f); }
.ministry-theme-mocas { --ministry-gradient: linear-gradient(135deg, #763740, #c66d73); }
.ministry-theme-mulheres { --ministry-gradient: linear-gradient(135deg, #6f4311, #b67c2b); }
.ministry-theme-embaixadores { --ministry-gradient: linear-gradient(135deg, #0a493b, #237e68); }
.ministry-theme-jovens { --ministry-gradient: linear-gradient(135deg, #172b74, #3558bd); }
.ministry-theme-homens { --ministry-gradient: linear-gradient(135deg, #252f3b, #556273); }
.ministry-theme-louvor { --ministry-gradient: linear-gradient(135deg, #70271d, #b8503e); }

.media-illustration {
  display: grid;
  place-items: center;
}

.media-illustration svg {
  width: 100%;
  max-width: 430px;
}

.not-found {
  min-height: 100vh;
  text-align: center;
}

.not-found .page-hero-content {
  margin: auto;
}

.not-found p {
  margin-inline: auto;
}

.not-found .button-row {
  justify-content: center;
}

.ministry-hero::after {
  position: absolute;
  right: 7%;
  width: min(34vw, 390px);
  height: min(34vw, 390px);
  content: attr(data-mark);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.08);
  border: 48px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700;
  line-height: 1;
}

.ministry-hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding-block: 85px;
}

.ministry-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.9rem, 6vw, 5rem);
}

.ministry-hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.12rem;
}

.ministry-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.ministry-fact {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.ministry-fact span,
.ministry-fact strong {
  display: block;
}

.ministry-fact span {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ministry-fact strong {
  color: #fff;
  font-size: 0.94rem;
}

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

.value-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--blue-50);
}

.value-card b {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--blue-700);
  font-size: 0.8rem;
}

.value-card h3 {
  margin-bottom: 10px;
  color: var(--blue-950);
}

.value-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Doctrine */
.source-notice {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 36px;
  padding: 22px 24px;
  border: 1px solid #d8e5f8;
  border-radius: 16px;
  background: var(--blue-50);
}

.source-notice .icon-box {
  background: #fff;
}

.source-notice p {
  margin: 0;
  color: #4f5d72;
  font-size: 0.92rem;
}

.doctrine-intro {
  margin-bottom: 36px;
  padding: 32px;
  border-left: 4px solid var(--gold);
  background: var(--cream);
}

.doctrine-intro h2 {
  margin-bottom: 12px;
  color: var(--blue-950);
  font-size: 1.8rem;
}

.doctrine-list {
  display: grid;
  gap: 12px;
}

.doctrine-list details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.doctrine-list summary {
  position: relative;
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 16px;
  padding: 18px 52px 18px 20px;
  cursor: pointer;
  color: var(--blue-950);
  font-weight: 700;
  list-style: none;
}

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

.doctrine-list summary::after {
  position: absolute;
  right: 22px;
  content: '+';
  color: var(--blue-700);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 180ms ease;
}

.doctrine-list details[open] summary::after {
  transform: rotate(45deg);
}

.doctrine-index {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--blue-700);
  border-radius: 50%;
  background: var(--blue-50);
  font-size: 0.74rem;
}

.doctrine-body {
  padding: 0 28px 28px 72px;
  color: #4f5d72;
}

.doctrine-body h4 {
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--blue-900);
  font-family: 'DM Sans', sans-serif;
}

.doctrine-body .references {
  color: #78859a;
  font-size: 0.84rem;
}

.doctrine-source h4,
.doctrine-source p {
  margin-bottom: 14px;
  color: #4f5d72;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
}

.doctrine-source h4:has(strong),
.doctrine-source p:has(strong) {
  margin-top: 36px;
  color: var(--blue-950);
  font-size: 1.25rem;
}

.doctrine-source > h4:first-child {
  margin-top: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
}

.contact-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.contact-card h2 {
  margin-bottom: 24px;
  color: var(--blue-950);
  font-size: 2rem;
}

.contact-list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-list .icon-box {
  width: 42px;
  height: 42px;
}

.contact-list strong,
.contact-list span,
.contact-list a {
  display: block;
}

.contact-list strong {
  margin-bottom: 2px;
  color: var(--blue-950);
}

.contact-list span,
.contact-list a {
  color: var(--muted);
  font-size: 0.92rem;
}

.pix-card {
  margin-top: 26px;
  padding: 22px;
  color: #fff;
  border-radius: 16px;
  background: var(--blue-900);
}

.pix-card small,
.pix-card strong {
  display: block;
}

.pix-card small {
  color: rgba(255, 255, 255, 0.6);
}

.pix-card strong {
  margin-block: 4px 14px;
  font-size: 1.18rem;
}

.copy-button {
  padding: 8px 13px;
  color: var(--blue-950);
  border: 0;
  border-radius: 999px;
  background: var(--gold-light);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.map-frame {
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}

.location-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.location-heading .section-heading {
  margin-bottom: 0;
}

.location-heading .btn {
  flex: 0 0 auto;
}

.location-address {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.home-map,
.home-map iframe {
  min-height: 480px;
}

/* Footer */
.site-footer {
  color: rgba(255, 255, 255, 0.74);
  background: #041a3d;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.95fr 0.8fr;
  gap: 54px;
  padding-block: 76px 56px;
}

.footer-brand img {
  width: 270px;
  max-height: 70px;
  margin-bottom: 22px;
  object-fit: contain;
  object-position: left;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.footer-title {
  margin-bottom: 20px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-address {
  font-style: normal;
  font-size: 0.88rem;
}

.footer-address a,
.footer-address span {
  display: block;
  margin-bottom: 8px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-links a {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.social-links a:hover {
  color: var(--blue-950);
  border-color: var(--gold-light);
  background: var(--gold-light);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.partner-logos {
  display: grid;
  gap: 12px;
}

.partner-logos a {
  display: grid;
  min-height: 64px;
  place-items: center;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
}

.partner-logos img {
  max-width: 150px;
  max-height: 43px;
  object-fit: contain;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
}

.footer-credit strong {
  color: #51a4ff;
  font-weight: 700;
}

.floating-whatsapp,
.back-to-top {
  position: fixed;
  z-index: 900;
  right: 22px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(4, 26, 61, 0.2);
  transition: transform 180ms ease, opacity 180ms ease;
}

.floating-whatsapp {
  bottom: 24px;
  background: #20b965;
}

.floating-whatsapp:hover,
.back-to-top:hover {
  transform: translateY(-4px);
}

.floating-whatsapp svg,
.back-to-top svg {
  width: 23px;
  height: 23px;
}

.back-to-top {
  bottom: 88px;
  visibility: hidden;
  background: var(--blue-900);
  opacity: 0;
}

.back-to-top.visible {
  visibility: visible;
  opacity: 1;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  :root { --header-height: 80px; }
  .brand { flex-basis: 275px; }
  .brand img { height: 54px; }
  .nav-link, .nav-trigger { padding-inline: 8px; font-size: 0.82rem; }
  .header-cta { display: none; }
  .ministries-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1.4fr 0.7fr 1fr; }
  .footer-partners { grid-column: 1 / -1; }
  .partner-logos { grid-template-columns: repeat(2, minmax(0, 190px)); }
}

@media (max-width: 860px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .nav-toggle { display: grid; }
  .main-nav {
    position: fixed;
    z-index: 1001;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    overflow-y: auto;
    padding: 24px 20px 40px;
    visibility: hidden;
    background: #fff;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }
  .main-nav.open { visibility: visible; opacity: 1; transform: translateY(0); }
  .nav-list { display: grid; align-items: stretch; }
  .nav-link, .nav-trigger { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 1rem; }
  .nav-link.active::after, .nav-item.active > .nav-trigger::after { right: auto; bottom: 7px; left: 8px; width: 30px; }
  .dropdown { position: static; width: 100%; grid-template-columns: 1fr; padding: 4px 0 10px 14px; visibility: visible; border: 0; box-shadow: none; opacity: 1; transform: none; }
  .dropdown a { padding-block: 8px; }
  .hero { min-height: 690px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(3, 21, 54, 0.94), rgba(4, 29, 70, 0.72)), linear-gradient(0deg, rgba(3, 21, 54, 0.45), transparent); }
  .hero-content { padding-block: 90px 120px; }
  .hero-scroll { display: none; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-item { min-height: 100px; }
  .quick-item + .quick-item { border-top: 1px solid var(--line); border-left: 0; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .location-heading { align-items: flex-start; flex-direction: column; }
  .image-frame { order: -1; }
  .image-badge { right: 14px; }
  .feature-grid, .value-grid { grid-template-columns: 1fr; }
  .schedule-layout { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; gap: 42px; }
  .sidebar-card { position: static; }
  .cta-panel { grid-template-columns: 1fr; }
  .ministry-hero::after { right: -10%; width: 280px; height: 280px; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .footer-partners { grid-column: auto; }
  .partner-logos { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --header-height: 74px; }
  body { font-size: 15px; }
  .section { padding-block: 72px; }
  .brand { flex-basis: 230px; min-width: 0; }
  .brand img { max-width: 225px; height: 48px; }
  .hero { min-height: 670px; }
  .hero h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .hero-content { padding-block: 70px 120px; }
  .button-row { align-items: stretch; flex-direction: column; }
  .button-row .btn { width: 100%; }
  .quick-strip { margin-top: -34px; }
  .quick-item { padding: 21px; }
  .image-frame::before { top: -10px; right: -10px; }
  .image-frame-portrait img { height: 540px; }
  .image-badge { right: 10px; bottom: -22px; }
  .schedule-row { grid-template-columns: 1fr auto; gap: 6px 14px; }
  .schedule-day { grid-column: 1; }
  .schedule-name { grid-column: 1 / -1; }
  .schedule-time { grid-column: 2; grid-row: 1; }
  .ministries-grid { grid-template-columns: 1fr; }
  .ministry-card { min-height: 260px; }
  .history-gallery { grid-template-columns: 1fr; }
  .timeline::before { left: 12px; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; padding-left: 42px; }
  .timeline-year { text-align: left; }
  .timeline-content::before { top: 36px; left: 6px; }
  .ministry-facts { grid-template-columns: 1fr; }
  .ministry-hero { min-height: 630px; }
  .ministry-hero::after { display: none; }
  .doctrine-body { padding: 0 20px 24px; }
  .doctrine-list summary { padding-left: 16px; }
  .doctrine-index { display: none; }
  .source-notice { flex-direction: column; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; padding-block: 62px 42px; }
  .partner-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .floating-whatsapp, .back-to-top { right: 14px; width: 48px; height: 48px; }
  .floating-whatsapp { bottom: 16px; }
  .back-to-top { bottom: 74px; }
}
