:root {
  --background: #ffffff;
  --foreground: #102033;
  --blue: #1da1f2;
  --blue-strong: #0577bd;
  --blue-deep: #063b64;
  --blue-soft: #e8f6ff;
  --blue-faint: #f5fbff;
  --aqua: #49d8ff;
  --ink-soft: #53687b;
  --line: #d8ecfb;
  --shadow: 0 24px 70px rgba(6, 59, 100, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(232, 246, 255, 0.8), rgba(255, 255, 255, 0) 520px),
    var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

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

a:focus-visible {
  outline: 3px solid rgba(29, 161, 242, 0.42);
  outline-offset: 4px;
}

main {
  overflow-x: hidden;
  padding-top: 96px;
}

.site-header {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 1000;
  display: flex;
  width: min(1160px, calc(100% - 28px));
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 8px 12px 8px 14px;
  border: 1px solid rgba(216, 236, 251, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(6, 59, 100, 0.1);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.brand small {
  color: var(--ink-soft);
  font-size: 12px;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
  font-size: 12px;
  font-weight: 800;
}

.main-nav a {
  border-radius: 999px;
  padding: 8px 10px;
  color: #294154;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--blue-soft);
  color: var(--blue-strong);
  transform: translateY(-1px);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100svh - 90px);
  margin: 0 auto;
  padding: clamp(52px, 8vw, 92px) 0 clamp(42px, 6vw, 82px);
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(31px, 4.5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 20px;
  line-height: 1.18;
}

.hero-text {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(29, 161, 242, 0.24);
}

.secondary-button {
  border: 1px solid rgba(29, 161, 242, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-strong);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  min-height: 590px;
  border: 1px solid rgba(29, 161, 242, 0.32);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: var(--shadow);
}

.hero-photo {
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(6, 59, 100, 0.08), rgba(6, 59, 100, 0.32)),
    url("imagens/hero.jpg");
  background-position: center;
  background-size: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.hero-visual:hover .hero-photo {
  transform: scale(1.025);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto clamp(18px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 50px rgba(6, 59, 100, 0.08);
}

.metric-card {
  min-height: 218px;
  padding: clamp(26px, 4vw, 42px);
  border-right: 1px solid var(--line);
}

.metric-card:last-child {
  border-right: 0;
}

.metric-card span,
.department-card span {
  display: inline-grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-weight: 900;
}

.intro-band p,
.department-card p,
.info-panel p,
.site-footer p {
  color: var(--ink-soft);
  line-height: 1.65;
}

.photo-story {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px) 0 clamp(22px, 4vw, 42px);
}

.story-card {
  position: relative;
  min-height: 440px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--blue-soft);
  box-shadow: 0 18px 54px rgba(6, 59, 100, 0.1);
}

.story-large {
  min-height: 560px;
}

.story-card img,
.program-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.story-card:hover img,
.program-photo:hover img {
  transform: scale(1.025);
}

.story-card::after,
.program-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(6, 59, 100, 0.68));
  content: "";
}

.story-card figcaption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 1;
  color: #ffffff;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.05;
}

.content-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(66px, 9vw, 118px) 0;
  scroll-margin-top: 112px;
}

.section-heading {
  max-width: 780px;
}

.section-text {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.info-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 44px rgba(6, 59, 100, 0.07);
}

.contribution-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 28px);
  background:
    linear-gradient(145deg, rgba(232, 246, 255, 0.88), rgba(255, 255, 255, 0.9)),
    #ffffff;
  box-shadow: 0 14px 44px rgba(6, 59, 100, 0.07);
}

.bank-details {
  display: grid;
  gap: 12px;
}

.detail-row,
.pix-key {
  border: 1px solid rgba(216, 236, 251, 0.92);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.86);
}

.detail-row span,
.pix-key span {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.detail-row strong,
.pix-key strong {
  display: block;
  margin-top: 5px;
  color: var(--blue-deep);
  overflow-wrap: anywhere;
}

.pix-key {
  border-color: rgba(29, 161, 242, 0.44);
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.pix-key strong {
  font-size: clamp(22px, 3vw, 28px);
}

.pix-key small {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 900;
}

.pix-key:hover,
.pix-key:focus-visible {
  border-color: rgba(29, 161, 242, 0.74);
  box-shadow: 0 14px 30px rgba(6, 59, 100, 0.1);
  transform: translateY(-1px);
}

.qr-card {
  display: grid;
  align-content: start;
  gap: 12px;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  text-align: center;
}

.qr-card img {
  width: 100%;
  max-width: 260px;
  height: auto;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  image-rendering: crisp-edges;
}

.qr-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue-strong);
  font-weight: 900;
}

.blue-section,
.leadership-section {
  position: relative;
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
}

.blue-section {
  background:
    radial-gradient(circle at 18% 22%, rgba(73, 216, 255, 0.3), transparent 28%),
    linear-gradient(180deg, var(--blue-faint), var(--blue-soft));
}

.department-carousel {
  position: relative;
  margin-top: 34px;
}

.carousel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}

.carousel-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(29, 161, 242, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue-deep);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  border-color: rgba(29, 161, 242, 0.64);
  background: #ffffff;
  transform: translateY(-1px);
}

.department-track {
  display: grid;
  grid-auto-columns: minmax(300px, 360px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(29, 161, 242, 0.45) transparent;
}

.department-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid rgba(216, 236, 251, 0.92);
  border-radius: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(6, 59, 100, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.department-card:hover,
.schedule-item:hover {
  border-color: rgba(29, 161, 242, 0.48);
  box-shadow: 0 22px 54px rgba(6, 59, 100, 0.12);
  transform: translateY(-3px);
}

.department-card h3 {
  margin: 18px 24px 8px;
}

.department-card p {
  flex: 1;
  margin: 0 24px 24px;
  line-height: 1.6;
}

.department-card span {
  margin: 24px 24px 0;
}

.department-photo-card img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms ease, filter 420ms ease;
}

.department-photo-card:hover img {
  transform: scale(1.025);
}

.department-ucp img {
  object-position: center 34%;
}

.department-casais img {
  object-position: center;
}

.department-photo-placeholder {
  display: grid;
  height: 210px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(29, 161, 242, 0.22), rgba(73, 216, 255, 0.16)),
    url("imagens/biblia.jpg");
  background-position: center;
  background-size: cover;
  color: #ffffff;
  font-size: 42px;
  font-weight: 900;
  isolation: isolate;
  position: relative;
}

.department-photo-placeholder::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 59, 100, 0.52);
  content: "";
}

.lgpd-section {
  align-items: center;
}

.schedule-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.program-photo {
  position: relative;
  height: min(62vw, 520px);
  min-height: 340px;
  margin: 26px 0 30px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--blue-soft);
  box-shadow: 0 18px 54px rgba(6, 59, 100, 0.1);
}

.program-photo img {
  object-position: center 42%;
}

.program-photo::after {
  background: linear-gradient(90deg, rgba(6, 59, 100, 0.2), rgba(6, 59, 100, 0));
}

.schedule-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 100px;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
  background: #ffffff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.schedule-item span {
  color: var(--blue-strong);
  font-weight: 900;
}

.schedule-item h3 {
  margin: 0;
}

.schedule-item strong {
  justify-self: end;
  color: var(--blue-deep);
  font-size: 22px;
}

.leadership-section {
  background: #f7fbff;
}

.leadership-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: 18px;
  margin-top: 34px;
}

.pastor-card,
.leader-list-card {
  border: 1px solid rgba(216, 236, 251, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(6, 59, 100, 0.06);
}

.pastor-card {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
}

.pastor-photo-placeholder {
  display: grid;
  min-height: 230px;
  place-items: center;
  border: 1px dashed rgba(29, 161, 242, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(29, 161, 242, 0.15), rgba(73, 216, 255, 0.08)),
    #ffffff;
  color: var(--blue-strong);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.pastor-photo-placeholder img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 420ms ease, filter 420ms ease;
}

.pastor-photo-placeholder:hover img {
  transform: scale(1.025);
}

.leader-label {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.pastor-card h3 {
  margin-bottom: 8px;
  color: var(--blue-deep);
  font-size: clamp(28px, 4vw, 40px);
}

.pastor-card a {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--foreground);
  font-size: 20px;
  font-weight: 800;
}

.pastor-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.pastor-curriculum {
  grid-column: 3;
  grid-row: span 2;
  border: 1px solid rgba(216, 236, 251, 0.96);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 246, 255, 0.74)),
    #ffffff;
  box-shadow: 0 14px 34px rgba(6, 59, 100, 0.06);
}

.curriculum-columns {
  columns: auto;
}

.pastor-curriculum p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  break-inside: avoid;
}

.pastor-curriculum p:last-child {
  margin-bottom: 0;
}

.leader-list-card {
  padding: 24px;
}

.leader-list-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leader-list-card li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  color: var(--foreground);
  font-size: 18px;
  font-weight: 800;
}

.leader-list-card li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(66px, 9vw, 118px) 0;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.social-card {
  display: flex;
  min-height: 104px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(6, 59, 100, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.social-card:hover,
.social-card:focus-visible {
  border-color: rgba(29, 161, 242, 0.48);
  box-shadow: 0 22px 54px rgba(6, 59, 100, 0.12);
  transform: translateY(-3px);
}

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

.social-card small {
  margin-top: 4px;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.social-icon {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
}

.social-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.social-icon path,
.social-icon rect,
.social-icon circle {
  vector-effect: non-scaling-stroke;
}

.youtube-icon svg path:last-child,
.facebook-icon svg path {
  fill: currentColor;
  stroke: none;
}

.instagram-icon {
  background: linear-gradient(135deg, #f58529, #dd2a7b 48%, #8134af);
}

.youtube-icon {
  background: #ff0033;
}

.facebook-icon {
  background: #1877f2;
}

.whatsapp-icon {
  background: #25d366;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: 34px max(20px, calc((100% - 1180px) / 2));
  background:
    linear-gradient(90deg, rgba(6, 59, 100, 0.94), rgba(6, 59, 100, 0.84)),
    url("imagens/cruz.jpg");
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.footer-content {
  display: grid;
  gap: 10px;
}

.site-footer strong {
  display: block;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.address-link {
  width: fit-content;
  color: #ffffff;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 4px;
}

.map-frame {
  width: min(720px, 100%);
  height: 260px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

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

.site-footer > a {
  align-self: start;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 900;
}

.reveal {
  animation: reveal 680ms ease both;
}

.hero-visual.reveal {
  animation-delay: 120ms;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-visual:hover .hero-photo,
  .story-card:hover img,
  .program-photo:hover img,
  .department-photo-card:hover img,
  .pastor-photo-placeholder:hover img {
    transform: none;
  }
}

@media (max-width: 980px) {
  main {
    padding-top: 150px;
  }

  .site-header {
    top: 8px;
    padding: 9px 10px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 8px;
  }

  .brand {
    justify-content: flex-start;
    text-align: left;
  }

  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero-section,
  .split-section,
  .intro-band,
  .photo-story,
  .leadership-layout {
    grid-template-columns: 1fr;
  }

  .pastor-card,
  .pastor-curriculum {
    grid-column: auto;
    grid-row: auto;
  }

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

  .pastor-card {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-visual {
    min-height: 460px;
  }

  .metric-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-card:last-child {
    border-bottom: 0;
  }

  .story-card,
  .story-large {
    min-height: 420px;
  }

  .schedule-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .schedule-item strong {
    justify-self: start;
  }

  .contribution-panel {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer > a {
    width: fit-content;
  }
}

@media (max-width: 620px) {
  main {
    padding-top: 138px;
  }

  .site-header,
  .hero-section,
  .intro-band,
  .photo-story,
  .contact-section,
  .content-section {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    padding: 8px;
    gap: 6px;
  }

  .brand {
    align-items: center;
    gap: 8px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand strong {
    font-size: 13px;
    line-height: 1.2;
  }

  .main-nav {
    display: flex;
    margin-inline: -2px;
    gap: 2px;
  }

  .main-nav a {
    display: flex;
    justify-content: center;
    padding: 8px 9px;
    text-align: center;
  }

  .department-track {
    grid-auto-columns: minmax(260px, 86vw);
  }

  .carousel-actions {
    justify-content: flex-start;
  }

  h1 {
    font-size: 39px;
    line-height: 1.02;
  }

  h2 {
    font-size: 34px;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-visual {
    min-height: 390px;
  }

  .story-card,
  .story-large,
  .program-photo {
    min-height: 330px;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .map-frame {
    height: 230px;
  }

  .department-card,
  .leader-list-card,
  .pastor-card,
  .info-panel,
  .social-card,
  .schedule-item {
    padding: 20px;
  }

  .department-card {
    padding: 0;
  }
}

@media (max-width: 390px) {
  main {
    padding-top: 154px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 30px;
  }
}
