:root {
  color-scheme: light;
  --ink: #0c1211;
  --ink-2: #1a2824;
  --muted: #5d6963;
  --paper: #fbf8f0;
  --paper-2: #f1eadf;
  --white: #ffffff;
  --green: #123f35;
  --green-2: #23745f;
  --gold: #dfa236;
  --rose: #bd5948;
  --sky: #dceff2;
  --line: rgba(16, 20, 20, 0.13);
  --shadow: 0 34px 90px rgba(15, 22, 20, 0.14);
  --shadow-soft: 0 18px 44px rgba(15, 22, 20, 0.09);
  --shadow-glow: 0 28px 90px rgba(35, 116, 95, 0.18);
  --radius: 24px;
  --radius-sm: 16px;
  --radius-xl: 36px;
  --shell: 1220px;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(223, 162, 54, 0.12), transparent 26rem),
    radial-gradient(circle at 92% 22%, rgba(35, 116, 95, 0.12), transparent 30rem),
    radial-gradient(circle at 42% 52%, rgba(220, 239, 242, 0.28), transparent 34rem),
    linear-gradient(180deg, #fffcf5 0%, var(--paper) 42%, #fffdf8 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  max-width: 100%;
  min-width: 320px;
  overflow-x: hidden;
  width: 100%;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

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

section {
  scroll-margin-top: 5.5rem;
}

svg:not(.svg-sprite) {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

[hidden] {
  display: none !important;
}

.svg-sprite {
  display: none;
}

.skip-link {
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  left: 1rem;
  padding: 0.65rem 0.9rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-160%);
  z-index: 200;
}

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

.site-header {
  align-items: center;
  background: rgba(255, 253, 247, 0.98);
  border-bottom: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr auto;
  left: 50%;
  max-width: var(--shell);
  padding: 0.72rem 0.9rem;
  position: fixed;
  top: 1rem;
  transform: translateX(-50%);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
  width: min(calc(100% - 2rem), var(--shell));
  z-index: 100;
  box-shadow: 0 22px 70px rgba(16, 20, 20, 0.1);
}

.site-header.is-scrolled {
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  background: rgba(223, 162, 54, 0.82);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 22px 70px rgba(148, 93, 14, 0.24);
  color: var(--white);
}

body.admin-mode .site-header {
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  background: rgba(9, 31, 27, 0.62);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 70px rgba(3, 7, 6, 0.24);
  color: var(--white);
}

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

.brand__mark {
  background: currentColor;
  display: inline-block;
  flex: 0 0 auto;
  height: 2.15rem;
  mask: url("assets/brand/siloe-mark.svg") center / contain no-repeat;
  -webkit-mask: url("assets/brand/siloe-mark.svg") center / contain no-repeat;
  width: 2.15rem;
}

.brand__mark-img {
  display: inline-block;
  flex: 0 0 auto;
  filter: brightness(0);
  height: 2.15rem;
  object-fit: contain;
  transition: filter 180ms ease;
  width: 2.15rem;
}

.site-header.is-scrolled .brand__mark-img,
body.admin-mode .site-header .brand__mark-img {
  filter: brightness(0) invert(1);
}

.brand__text {
  display: block;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
}

.brand__text strong {
  font-size: inherit;
  font-weight: 850;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 1.35rem;
  justify-content: center;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 750;
  opacity: 0.82;
  position: relative;
  transition:
    color 140ms ease,
    opacity 140ms ease;
}

.site-nav a::after {
  background: var(--gold);
  border-radius: 999px;
  bottom: -0.45rem;
  content: "";
  height: 0.16rem;
  left: 50%;
  opacity: 0;
  position: absolute;
  transform: translateX(-50%) scaleX(0.4);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  width: 1.15rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--green);
  opacity: 1;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible,
body.admin-mode .site-header .site-nav a:hover,
body.admin-mode .site-header .site-nav a:focus-visible {
  color: var(--gold);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

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

.icon-button,
.menu-button,
.button {
  align-items: center;
  border: 0;
  display: inline-flex;
  font-weight: 800;
  gap: 0.55rem;
  justify-content: center;
  min-height: 2.7rem;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.icon-button:hover,
.menu-button:hover,
.button:hover {
  transform: translateY(-1px);
}

.icon-button svg,
.menu-button svg,
.button svg {
  height: 1.1rem;
  width: 1.1rem;
}

.icon-button,
.menu-button {
  background: rgba(18, 63, 53, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: currentColor;
  padding: 0 0.9rem;
}

.site-header.is-scrolled .icon-button,
.site-header.is-scrolled .menu-button,
body.admin-mode .icon-button,
body.admin-mode .menu-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.menu-button {
  display: none;
}

.mobile-menu {
  background: rgba(250, 248, 242, 0.98);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: var(--shadow);
  color: var(--ink);
  display: grid;
  gap: 0.35rem;
  left: 0;
  max-height: 100dvh;
  overflow-y: auto;
  padding: 5.3rem 1rem 1rem;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 90;
}

.mobile-menu a,
.mobile-menu button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  display: flex;
  font-weight: 850;
  gap: 0.55rem;
  padding: 1rem;
  text-align: left;
}

.mobile-menu a:hover,
.mobile-menu button:hover {
  background: rgba(20, 60, 53, 0.08);
}

.mobile-menu svg {
  height: 1.1rem;
  width: 1.1rem;
}

.section-shell {
  margin-inline: auto;
  max-width: var(--shell);
  padding-inline: 1.25rem;
  width: 100%;
}

.hero {
  align-items: center;
  background: var(--ink);
  border-radius: 0 0 clamp(2rem, 5vw, 5.25rem) clamp(2rem, 5vw, 5.25rem);
  color: var(--white);
  display: grid;
  justify-items: center;
  min-height: 92svh;
  overflow: hidden;
  padding: 8.5rem max(1.25rem, calc((100vw - var(--shell)) / 2)) 6rem;
  position: relative;
}

.hero__video,
.hero__shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero__video {
  object-fit: cover;
  opacity: 0.82;
  transform: scale(1.02);
  animation: heroBreath 14s ease-in-out infinite alternate;
}

.hero__shade {
  background:
    radial-gradient(circle at 50% 52%, rgba(217, 155, 48, 0.16), transparent 28%),
    radial-gradient(circle at 50% 55%, rgba(30, 109, 87, 0.3), transparent 48%),
    linear-gradient(90deg, rgba(8, 13, 12, 0.82), rgba(8, 13, 12, 0.38), rgba(8, 13, 12, 0.82)),
    linear-gradient(0deg, rgba(8, 13, 12, 0.86), rgba(8, 13, 12, 0.12) 58%, rgba(8, 13, 12, 0.68));
}

.hero__content {
  margin-inline: auto;
  max-width: 1120px;
  position: relative;
  text-align: center;
  z-index: 1;
  animation: heroIntro 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero .eyebrow {
  font-size: 0.9rem;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--green-2);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(4.8rem, 8.5vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}

.admin-hero h1 {
  font-family: var(--font-heading);
  font-size: 5.5rem;
  font-weight: 400;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}

.hero__lead {
  font-size: 1.95rem;
  font-weight: 830;
  margin: 1.15rem 0 0;
  max-width: 940px;
  text-wrap: balance;
}

.hero__copy {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.2rem;
  margin: 1rem auto 0;
  max-width: 760px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2.25rem;
}

.hero__actions .button {
  font-size: 1rem;
  min-height: 3.05rem;
  padding-inline: 1.22rem;
}

.button {
  border-radius: 999px;
  font-size: 0.92rem;
  padding: 0.78rem 1.08rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(16, 20, 20, 0.08);
}

.button::after {
  background: rgba(255, 255, 255, 0.32);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 180ms ease;
}

.button:hover::after {
  opacity: 1;
}

.button--primary {
  background: var(--gold);
  color: var(--ink);
}

.button--gold {
  background: linear-gradient(135deg, #eeb34a, var(--gold));
  color: var(--ink);
}

.button--secondary {
  background: var(--green);
  color: var(--white);
}

.button--light {
  background: var(--white);
  color: var(--ink);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.button--ghost-dark {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.button--danger {
  background: #8b2d2d;
  color: var(--white);
}

.next-band {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(241, 234, 223, 0.86)),
    var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0 2rem;
}

.next-band__grid {
  align-items: center;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 0.9fr 1.1fr;
}

.next-band h2 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
}

.quick-times,
.channel-card {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.channel-card {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(220, 239, 242, 0.72)),
    var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  gap: 1rem;
  grid-template-columns: 1fr auto;
  padding: 1.15rem;
}

.channel-card strong {
  display: block;
  font-size: 1.04rem;
  margin-bottom: 0.25rem;
}

.channel-card p {
  color: var(--muted);
  margin: 0;
}

.quick-time {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.quick-time strong {
  display: block;
  margin-bottom: 0.28rem;
}

.quick-time span {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
}

.section {
  padding: 7rem 0;
}

.section--light {
  background:
    radial-gradient(circle at 16% 8%, rgba(220, 239, 242, 0.42), transparent 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 248, 240, 0.78)),
    #fffdf8;
}

.section--ink {
  background:
    radial-gradient(circle at 70% 18%, rgba(35, 116, 95, 0.32), transparent 26rem),
    linear-gradient(180deg, #09100f, #12312c 56%, #0a0f0e),
    var(--ink);
  color: var(--white);
}

.section--warm {
  background: var(--paper-2);
}

.section--values {
  background:
    radial-gradient(circle at 14% 22%, rgba(217, 155, 48, 0.28), transparent 32rem),
    radial-gradient(circle at 82% 76%, rgba(220, 239, 242, 0.14), transparent 28rem),
    linear-gradient(135deg, #07100e 0%, #143c35 48%, #07100e 100%);
  color: var(--white);
  overflow: hidden;
  padding: 8rem 0;
  position: relative;
}

.section--values::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.section--values::after {
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
  inset: 0;
  mask-image: radial-gradient(circle at 62% 44%, black, transparent 68%);
  opacity: 0.42;
  pointer-events: none;
  position: absolute;
}

.section--values .eyebrow {
  color: var(--gold);
}

.section--values .values-layout h2 {
  color: var(--white);
}

.section--values .section-shell {
  position: relative;
  z-index: 1;
}

.section-heading {
  margin-bottom: 2.6rem;
}

.section-heading h2,
.story-content h2,
.giving-layout h2,
.values-layout h2 {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 5.5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  max-width: 780px;
  text-wrap: balance;
}

.section-heading p,
.story-content p,
.giving-layout p {
  color: var(--muted);
  font-size: 1.04rem;
  margin: 1rem 0 0;
  max-width: 680px;
}

.section--ink .section-heading p,
.giving-layout p {
  color: rgba(255, 255, 255, 0.74);
}

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

.location-card,
.event-card,
.encounter-card,
.project-card,
.admin-item {
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    box-shadow 220ms ease,
    transform 220ms ease,
    border-color 220ms ease;
}

.location-card:hover,
.event-card:hover,
.encounter-card:hover,
.project-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.location-card {
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: var(--shadow-soft);
}

.location-card__image {
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
}

.location-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.location-card:hover .location-card__image img,
.event-card:hover .event-card__image img,
.encounter-card:hover > img {
  transform: scale(1.055);
}

.location-card__body {
  align-content: start;
  display: grid;
  gap: 0.85rem;
  padding: 1.35rem;
}

.location-card__tools {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
  padding-top: 0.75rem;
}

.location-pix {
  align-items: center;
  background: rgba(20, 60, 53, 0.045);
  border: 1px solid rgba(20, 60, 53, 0.1);
  border-radius: 18px;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: auto 1fr auto;
  padding: 0.55rem 0.58rem 0.55rem 0.7rem;
}

.location-pix span {
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 900;
  margin-right: 0.15rem;
  text-transform: uppercase;
}

.location-pix strong {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.copy-chip,
.social-chip {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 0.4rem;
  min-height: 1.95rem;
  padding: 0 0.58rem;
}

.copy-chip {
  background: #eef5f7;
  border: 1px solid var(--line);
  color: var(--ink);
}

.copy-chip svg,
.social-chip svg {
  height: 0.95rem;
  width: 0.95rem;
}

.location-socials {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 1fr;
}

.social-chip {
  background: rgba(20, 60, 53, 0.08);
  border: 1px solid rgba(20, 60, 53, 0.12);
  color: var(--green);
  justify-content: center;
  width: 100%;
}

.social-chip--instagram {
  background: rgba(255, 255, 255, 0.58);
}

.social-chip--whatsapp {
  background: var(--green);
  border-color: transparent;
  color: var(--white);
}

.location-card h3,
.event-card h3,
.encounter-card h3,
.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
}

.location-card p,
.event-card p,
.encounter-card p,
.project-card p {
  color: var(--muted);
  margin: 0;
}

.location-card ul,
.value-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.location-card li {
  align-items: start;
  color: var(--ink-2);
  display: flex;
  font-weight: 740;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.location-card li::before {
  background: var(--gold);
  border-radius: 999px;
  content: "";
  flex: 0 0 0.45rem;
  height: 0.45rem;
  margin-top: 0.48rem;
}

.agenda-section {
  position: relative;
}

.agenda-section::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.section-shell.agenda-toolbar {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  margin-left: 0;
  margin-right: auto;
}

.filter-tabs button,
.admin-tabs button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-weight: 830;
  min-height: 2.45rem;
  padding: 0 0.9rem;
}

.filter-tabs button {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
}

.filter-tabs button.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.spotlight {
  margin-bottom: 1rem;
}

.next-event-card {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(236, 246, 248, 0.94)),
    var(--paper);
  border-radius: var(--radius);
  color: var(--ink);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(320px, 0.45fr) 1fr auto;
  min-height: 0;
  overflow: hidden;
  padding: 1.1rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
}

.next-event-card__image {
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 6px);
  min-height: 0;
  overflow: hidden;
}

.next-event-card__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.next-event-card__body {
  align-content: center;
  display: grid;
  padding: 1.6rem 1.4rem;
}

.next-event-card__body h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

.next-event-card__body p {
  color: var(--muted);
  margin: 0.45rem 0 0;
}

.next-event-card > .button {
  align-self: center;
  margin-right: 0;
}

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

.event-card {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(246, 241, 232, 0.98)),
    #f8f5ed;
  color: var(--ink);
  container-type: inline-size;
  display: grid;
  min-height: 100%;
  box-shadow: 0 20px 54px rgba(3, 7, 6, 0.18);
}

.event-card.is-hidden {
  display: none;
}

.event-card.is-past {
  opacity: 0.62;
}

.event-card__image {
  aspect-ratio: 16 / 9;
  background: var(--green);
  overflow: hidden;
  position: relative;
}

.event-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.event-card__date {
  background: var(--white);
  border-radius: 18px;
  display: grid;
  left: 0.75rem;
  min-width: 4.4rem;
  padding: 0.55rem;
  position: absolute;
  text-align: center;
  top: 0.75rem;
}

.event-card__date strong {
  font-size: 1.4rem;
  line-height: 1;
}

.event-card__date span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.event-card__body {
  display: grid;
  gap: 0.7rem;
  padding: 1.1rem;
}

.event-card__signup {
  justify-self: start;
}

.event-meta {
  color: var(--green);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.83rem;
  font-weight: 850;
  gap: 0.45rem;
}

.event-meta span {
  background: rgba(30, 109, 87, 0.1);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
}

.empty-state {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  margin: 1.5rem 0 0;
  text-align: center;
}

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

.encounter-card {
  background: var(--ink);
  color: var(--white);
  display: grid;
  min-height: 25.5rem;
  overflow: hidden;
  padding: 1.25rem;
  position: relative;
  box-shadow: 0 24px 64px rgba(16, 20, 20, 0.15);
}

.encounter-card::before {
  background:
    linear-gradient(180deg, rgba(8, 13, 12, 0.55) 0%, rgba(8, 13, 12, 0.05) 30%, rgba(8, 13, 12, 0.35) 55%, rgba(8, 13, 12, 0.94) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.encounter-card > img {
  filter: grayscale(1) contrast(1.08) brightness(0.9);
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0.85;
  position: absolute;
  transition:
    transform 820ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 600ms ease;
  width: 100%;
}

.encounter-card:hover > img {
  filter: grayscale(0) contrast(1) brightness(0.85);
}

.encounter-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  position: relative;
  z-index: 2;
}

.encounter-card__logo {
  align-items: center;
  display: flex;
  height: 3.4rem;
  margin-bottom: auto;
  width: auto;
}

.encounter-card__logo img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  max-height: 100%;
  max-width: 9rem;
  object-fit: contain;
}

.encounter-card__logo .brand__mark {
  color: var(--white);
  height: 3rem;
  width: 3rem;
}

.encounter-card p {
  color: rgba(255, 255, 255, 0.78);
}

.encounter-card small {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.encounter-card small + h3 {
  margin-top: -0.2rem;
}

.encounter-card p + small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 0.6rem;
  margin-top: 0.2rem;
}

.encounter-card__instagram {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 850;
  align-self: flex-start;
  justify-self: start;
  min-height: 2.15rem;
  padding: 0 0.72rem;
}

.story-section {
  background:
    radial-gradient(circle at 78% 16%, rgba(217, 155, 48, 0.12), transparent 28rem),
    linear-gradient(180deg, #fffdf8, var(--paper));
  padding: 7rem 0;
}

.story-layout {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.88fr 1.12fr;
}

.story-media {
  align-self: start;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glow);
  min-height: 34rem;
  max-height: 42rem;
  overflow: hidden;
  position: relative;
}

.story-media img {
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  position: absolute;
  width: 100%;
}

.story-dots {
  align-items: center;
  bottom: 1.05rem;
  display: flex;
  gap: 0.4rem;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 2;
}

.story-dots span {
  background: rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(16, 20, 20, 0.18);
  display: block;
  height: 0.46rem;
  width: 0.46rem;
}

.story-content {
  max-width: 720px;
}

.pastor-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.pastor-filters button {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 850;
  min-height: 2.4rem;
  padding: 0 0.95rem;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.pastor-filters button:hover,
.pastor-filters button:focus-visible {
  transform: translateY(-1px);
}

.pastor-filters button.is-active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.pastor-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.85rem;
}

.pastor-list article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 248, 242, 0.92)),
    var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  padding: 0.9rem;
  box-shadow: var(--shadow-soft);
}

.pastor-list article.is-hidden {
  display: none;
}

.pastor-photo {
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  border-radius: 50%;
  display: block;
  height: auto;
  margin: 0 auto 0.9rem;
  box-shadow: 0 0 0 1px rgba(16, 20, 20, 0.08), 0 10px 24px rgba(16, 20, 20, 0.08);
  max-width: 11rem;
  object-fit: cover;
  object-position: center;
  width: 70%;
}

.pastor-list span {
  color: var(--green-2);
  display: block;
  font-size: 0.73rem;
  font-weight: 900;
  margin-bottom: 0.18rem;
  text-transform: uppercase;
}

.pastor-list strong {
  display: block;
  font-size: 1rem;
}

.pastor-list p {
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

.pastor-instagram {
  align-items: center;
  color: var(--green);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 850;
  gap: 0.38rem;
  margin-top: 0.7rem;
}

.pastor-instagram svg {
  height: 1rem;
  width: 1rem;
}

.values-layout {
  align-items: center;
  display: grid;
  gap: 4rem;
  grid-template-columns: minmax(320px, 0.78fr) 1fr;
}

.value-list {
  align-items: stretch;
  display: grid;
  gap: 1.05rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.value-item {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 245, 242, 0.9)),
    var(--white);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: calc(var(--radius) + 4px);
  display: grid;
  gap: 0.7rem;
  grid-template-rows: auto auto 1fr auto;
  min-height: 15.5rem;
  overflow: hidden;
  padding: 1.25rem;
  position: relative;
  box-shadow: 0 22px 54px rgba(3, 7, 6, 0.22);
  transition:
    box-shadow 220ms ease,
    transform 220ms ease;
}

.value-item::before {
  background: linear-gradient(180deg, var(--gold), rgba(217, 155, 48, 0.28));
  content: "";
  inset: 0 auto 0 0;
  opacity: 0.8;
  position: absolute;
  width: 5px;
}

.value-item:first-child {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(220, 239, 242, 0.8)),
    var(--white);
  color: var(--ink);
  grid-column: auto;
}

.value-item:first-child p {
  color: var(--muted);
}

.value-item:first-child .value-item__icon {
  background: rgba(20, 60, 53, 0.1);
  border-color: rgba(20, 60, 53, 0.12);
  color: var(--green);
}

.value-item:first-child .value-item__action {
  background: transparent;
  border-color: rgba(16, 20, 20, 0.15);
  color: var(--ink);
}

.value-item:hover {
  box-shadow: 0 30px 70px rgba(3, 7, 6, 0.28);
  transform: translateY(-3px);
}

.section--values .value-item {
  color: var(--ink);
}

.section--values .value-item p {
  color: var(--muted);
}

.value-item h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
}

.value-item p {
  color: var(--muted);
  margin: 0;
}

.value-item__icon {
  align-items: center;
  background: rgba(20, 60, 53, 0.1);
  border: 1px solid rgba(20, 60, 53, 0.12);
  border-radius: 999px;
  color: var(--green);
  display: grid;
  height: 2.5rem;
  justify-items: center;
  width: 2.5rem;
}

.value-item__icon svg {
  height: 1.1rem;
  width: 1.1rem;
}

.value-item__action {
  justify-self: start;
  margin-top: 0.4rem;
}

.serve-section {
  background:
    radial-gradient(circle at 16% 20%, rgba(223, 162, 54, 0.22), transparent 24rem),
    radial-gradient(circle at 82% 24%, rgba(35, 116, 95, 0.18), transparent 28rem),
    linear-gradient(180deg, #fffdf8, #f2eadc);
  padding: 6.5rem 0;
}

.serve-layout {
  align-items: stretch;
  display: grid;
  gap: 1.15rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.serve-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  display: grid;
  gap: 1rem;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  position: relative;
  box-shadow: var(--shadow-soft);
  transition:
    box-shadow 220ms ease,
    transform 220ms ease;
}

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

.serve-card::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 42%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.serve-card--primary {
  background:
    radial-gradient(circle at 18% 18%, rgba(223, 162, 54, 0.26), transparent 34%),
    linear-gradient(135deg, #123f35, #0c1916 72%);
  color: var(--white);
  min-height: 25rem;
}

.serve-card--youtube {
  align-content: end;
  background:
    radial-gradient(circle at 72% 12%, rgba(189, 89, 72, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(220, 239, 242, 0.72));
}

.serve-card h2,
.serve-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
  max-width: 780px;
  text-wrap: balance;
}

.serve-card h3 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.serve-card p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
  margin: 0;
  max-width: 660px;
}

.serve-card--youtube p:not(.eyebrow) {
  color: var(--muted);
}

.serve-card .button {
  justify-self: start;
  margin-top: 0.4rem;
}

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

.project-card {
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(251, 248, 240, 0.96)),
    var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.78rem;
  min-height: 16.5rem;
  padding: 1.55rem;
  box-shadow: var(--shadow-soft);
}

.project-card__button {
  justify-self: start;
  margin-top: auto;
}

.project-card__tag {
  color: var(--rose);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-mark {
  align-items: center;
  border: 1px solid rgba(16, 20, 20, 0.1);
  border-radius: 18px;
  color: var(--white);
  display: inline-grid;
  height: 4.25rem;
  justify-items: center;
  padding: 0.7rem;
  width: 9rem;
  box-shadow: 0 12px 26px rgba(16, 20, 20, 0.08);
}

.project-mark img {
  grid-area: 1 / 1;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  width: 100%;
}

.project-mark__fallback {
  display: none;
  font-size: 0.82rem;
  font-weight: 900;
  grid-area: 1 / 1;
  line-height: 1.05;
  text-align: center;
}

.project-mark svg {
  height: 1.28rem;
  width: 1.28rem;
}

.giving-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(223, 162, 54, 0.18), transparent 26rem),
    linear-gradient(135deg, #0b1513, #123f35 56%, #0b1513);
  color: var(--white);
  padding: 6.5rem 0;
}

.giving-layout {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 0.8fr;
}

.giving-actions {
  display: grid;
  gap: 1rem;
}

.giving-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.98rem;
  font-weight: 720;
  margin-top: 0.45rem;
}

.pix-card,
.bank-list {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  display: grid;
  gap: 0.6rem;
  padding: 1.15rem;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.pix-card {
  background:
    linear-gradient(135deg, rgba(217, 155, 48, 0.96), rgba(244, 209, 127, 0.92));
  color: var(--ink);
  padding: 1.45rem;
}

.pix-card:hover,
.bank-list:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
}

.pix-card:hover {
  background:
    linear-gradient(135deg, rgba(230, 169, 57, 1), rgba(255, 225, 150, 0.96));
}

.pix-card span,
.bank-list span {
  color: rgba(255, 255, 255, 0.68);
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pix-card span {
  color: rgba(16, 20, 20, 0.62);
}

.pix-card strong {
  font-size: clamp(1.15rem, 7.4vw, 2rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.pix-card p {
  color: rgba(16, 20, 20, 0.7);
  margin: 0;
}

.bank-list strong {
  overflow-wrap: anywhere;
}

.bank-list .button,
.pix-card .button {
  justify-self: start;
  margin-top: 0.35rem;
}

.site-footer {
  background:
    linear-gradient(180deg, #070909, #030505),
    #070909;
  color: var(--white);
  padding: 3.4rem 0 1.2rem;
}

.site-footer__grid {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.7fr 0.75fr;
}

.site-footer__brand {
  align-items: flex-start;
  display: flex;
  gap: 0.9rem;
}

.site-footer__brand .brand__mark {
  height: 2.7rem;
  width: 2.7rem;
}

.site-footer__brand .brand__mark-img {
  height: 2.7rem;
  width: 2.7rem;
}

.site-footer__brand strong {
  display: block;
  font-size: 1.28rem;
  margin-bottom: 0.35rem;
}

.site-footer__brand p,
.site-footer__bottom,
.site-footer__contact span {
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}

.site-footer__nav,
.site-footer__contact {
  display: grid;
  gap: 0.6rem;
}

.site-footer__nav a,
.site-footer__contact a {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 820;
}

.site-footer__nav a:hover,
.site-footer__contact a:hover {
  color: var(--gold);
}

.site-footer__panel {
  justify-self: start;
  margin-top: 0.45rem;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  justify-items: center;
  margin-top: 2.4rem;
  max-width: none;
  padding-top: 1rem;
  text-align: center;
  width: 100%;
}

.admin {
  background: var(--paper);
  min-height: 100svh;
  padding: 7rem 1.25rem 4rem;
}

.admin-hero,
.admin-shell {
  margin-inline: auto;
  max-width: var(--shell);
}

.admin-hero {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.admin-hero h1 {
  color: var(--ink);
  font-size: 3.6rem;
}

.admin-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.admin-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-tabs {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem;
}

.admin-tabs button {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.admin-tabs button.is-active {
  background: var(--ink);
  color: var(--white);
}

.admin-panel {
  display: none;
  gap: 1.5rem;
  grid-template-columns: minmax(320px, 0.9fr) 1.1fr;
  padding: 1rem;
}

.admin-panel.is-active {
  display: grid;
}

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

.editor-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.editor-form h2 {
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
  margin: 0.5rem 0 0;
  padding-top: 1rem;
}

.editor-form h2:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.content-form {
  max-width: 100%;
}

.editor-form label,
.login-card label {
  display: grid;
  gap: 0.35rem;
}

.editor-form label span,
.login-card label span {
  color: var(--ink-2);
  font-size: 0.83rem;
  font-weight: 850;
}

.editor-form input,
.editor-form select,
.editor-form textarea,
.login-card input,
.json-preview {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  min-height: 2.8rem;
  outline: 0;
  padding: 0.72rem 0.8rem;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.editor-form textarea,
.json-preview {
  resize: vertical;
}

.editor-form input:focus,
.editor-form select:focus,
.editor-form textarea:focus,
.login-card input:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(30, 109, 87, 0.16);
}

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

.check-row {
  align-items: center;
  display: flex !important;
  gap: 0.55rem;
}

.check-row input {
  min-height: auto;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.admin-list {
  display: grid;
  gap: 0.75rem;
}

.admin-item {
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr auto;
  padding: 1rem;
}

.admin-item h3 {
  font-size: 1rem;
  margin: 0 0 0.3rem;
}

.admin-item p {
  color: var(--muted);
  margin: 0;
}

.admin-item__meta {
  color: var(--green-2);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8rem;
  font-weight: 850;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.admin-item__actions {
  align-items: start;
  display: flex;
  gap: 0.35rem;
}

.admin-item__actions button {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: grid;
  height: 2.35rem;
  justify-items: center;
  width: 2.35rem;
}

.admin-item__actions svg {
  height: 1rem;
  width: 1rem;
}

.data-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  grid-column: 1 / -1;
}

.file-drop {
  align-items: center;
  background: var(--paper);
  border: 1px dashed rgba(20, 60, 53, 0.45);
  border-radius: var(--radius);
  color: var(--green);
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  gap: 0.5rem;
  min-height: 2.8rem;
  padding: 0 0.9rem;
}

.file-drop input {
  display: none;
}

.mini-upload {
  align-items: center;
  background: rgba(18, 63, 53, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  cursor: pointer;
  display: inline-flex !important;
  font-size: 0.82rem;
  font-weight: 850;
  gap: 0.4rem;
  justify-self: start;
  min-height: 2.2rem;
  padding: 0 0.75rem;
}

.mini-upload input {
  display: none;
}

.mini-upload svg {
  height: 0.95rem;
  width: 0.95rem;
}

.file-drop svg {
  height: 1.05rem;
  width: 1.05rem;
}

.json-preview {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  grid-column: 1 / -1;
  min-height: 28rem;
  width: 100%;
}

.login-dialog {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: min(92vw, 420px);
  padding: 0;
  width: 100%;
}

.login-dialog::backdrop {
  background: rgba(16, 20, 20, 0.64);
  backdrop-filter: blur(8px);
}

.login-card {
  background: var(--paper);
  display: grid;
  gap: 1rem;
  padding: 1.3rem;
}

.login-card__mark {
  background: var(--green);
  height: 3rem;
  width: 3rem;
}

.login-card h2 {
  font-size: 1.7rem;
  line-height: 1.1;
  margin: 0;
}

.form-error {
  color: #9f1d1d;
  font-weight: 850;
  margin: 0;
}

.toast {
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  bottom: 1rem;
  box-shadow: var(--shadow);
  color: var(--white);
  font-weight: 830;
  left: 50%;
  padding: 0.8rem 1rem;
  position: fixed;
  transform: translateX(-50%);
  z-index: 220;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 680ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal:not(.is-visible) {
  opacity: 1;
  transform: none;
}

@keyframes heroIntro {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes heroBreath {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.06);
  }
}

.story-media img.is-active {
  opacity: 1;
  transition: opacity 900ms ease;
}

.story-media img {
  transition: opacity 900ms ease;
}

.story-dots span.is-active {
  background: var(--white);
  width: 1.3rem;
}

.story-dots span {
  transition:
    width 300ms ease,
    background 300ms ease;
}

.location-card__image {
  position: relative;
}

.location-card__anim {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 250ms ease;
  width: 100%;
}

.location-card__image.is-ready.is-scrubbing .location-card__anim {
  opacity: 1;
}

.location-card__image[data-scrub="on"] {
  touch-action: pan-y;
}

.location-card:hover .location-card__image[data-scrub="on"] img {
  transform: none;
}

@media (max-width: 980px) {
  .site-nav,
  .icon-button span {
    display: none;
  }

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

  .menu-button {
    display: inline-flex;
  }

  .hero h1 {
    font-size: 4.85rem;
  }

  .hero__lead {
    font-size: 1.52rem;
  }

  .next-band__grid,
  .values-layout,
  .serve-layout,
  .giving-layout,
  .story-layout,
  .admin-panel {
    grid-template-columns: 1fr;
  }

  .quick-times,
  .location-grid,
  .event-grid,
  .encounter-grid,
  .project-grid,
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-media {
    aspect-ratio: 16 / 10;
    min-height: 22rem;
    max-height: 30rem;
  }
}

@media (max-width: 720px) {
  .site-header {
    left: 1rem;
    max-width: calc(100vw - 2rem);
    padding: 0.75rem 1rem;
    right: 1rem;
    transform: none;
    width: auto;
  }

  .brand__text {
    font-size: 0.88rem;
  }

  .hero {
    max-width: 100%;
    min-height: 88svh;
    padding-bottom: 1.25rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 7rem;
    width: 100%;
  }

  .hero h1,
  .admin-hero h1 {
    font-size: clamp(2.85rem, 13vw, 3.2rem);
    overflow-wrap: break-word;
  }

  .hero__content {
    max-width: 100%;
    overflow: hidden;
    width: 100%;
  }

  .hero__copy,
  .section-heading p,
  .story-content p,
  .giving-layout p {
    font-size: 1rem;
  }

  .quick-times,
  .channel-card,
  .serve-layout,
  .location-grid,
  .event-grid,
  .encounter-grid,
  .project-grid,
  .site-footer__grid,
  .pastor-list,
  .form-grid,
  .next-event-card {
    grid-template-columns: 1fr;
  }

  .channel-card {
    align-items: stretch;
  }

  .channel-card .button,
  .next-event-card > .button {
    width: 100%;
  }

  .next-event-card > .button {
    margin: 0;
  }

  .next-event-card__image {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .pastor-list article {
    overflow: hidden;
    word-break: break-word;
  }

  .pastor-list {
    max-width: 100%;
  }

  .hero,
  .section,
  .section-shell,
  .story-layout,
  .story-content,
  .story-media,
  .pastor-list {
    min-width: 0;
  }

  .story-media {
    aspect-ratio: 4 / 3;
    max-height: none;
    min-height: 0;
  }

  .value-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .section-heading h2,
  .story-content h2,
  .giving-layout h2,
  .values-layout h2 {
    font-size: 2.2rem;
    overflow-wrap: break-word;
  }

  .agenda-toolbar,
  .admin-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-hero__actions,
  .form-actions,
  .data-tools {
    justify-content: stretch;
  }

  .admin-hero__actions .button,
  .form-actions .button,
  .data-tools .button,
  .file-drop {
    width: 100%;
  }

  .admin {
    padding-inline: 0.75rem;
  }

  .admin-tabs {
    overflow-x: auto;
  }

  .admin-item {
    grid-template-columns: 1fr;
  }

  .admin-item__actions {
    justify-content: flex-start;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .hero__video {
    display: none;
  }

  .story-media img {
    animation: none;
    opacity: 0;
  }

  .story-media img:first-child {
    opacity: 1;
  }

  .story-dots span {
    animation: none;
  }

  .story-dots span:first-child {
    background: var(--white);
    width: 1.45rem;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.encounter-card__logo img[src*="tarja"] {
  max-height: 2.3rem;
}

/* Cartões das unidades: mesma altura, botões alinhados na base */
.location-card__body {
  align-content: normal;
  display: flex;
  flex-direction: column;
}

.location-card__tools {
  margin-top: auto;
}

.location-card__body > ul {
  margin-bottom: 0.85rem;
}

@media (min-width: 721px) {
  .location-card__body > p {
    min-height: 3.4em;
  }
}

/* Horários em etiquetas compactas (menos espaço vazio) */
.location-card__body > ul {
  align-content: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  min-height: 5.1rem;
}

.location-card__body > ul li {
  background: rgba(20, 60, 53, 0.06);
  border-radius: 999px;
  font-size: 0.88rem;
  margin-top: 0;
  padding: 0.38rem 0.8rem 0.38rem 0.65rem;
  align-items: center;
}

.location-card__body > ul li::before {
  margin-top: 0;
}

@media (min-width: 721px) {
  .location-card__body > p:not(.location-times) {
    min-height: 3.2em;
  }
}

@media (max-width: 720px) {
  .location-card__body > ul {
    min-height: 0;
  }
}

/* Horários em uma linha só */
.location-card__body > p.location-times {
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  min-height: 0;
  white-space: nowrap;
}

.location-card__body > p.location-times::before {
  background: var(--gold);
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 0.45rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  width: 0.45rem;
}

/* Coluna lateral: YouTube + Flickr */
.serve-side {
  display: grid;
  gap: 1.15rem;
  grid-template-rows: 1fr 1fr;
}

.serve-side .serve-card {
  align-content: center;
  gap: 0.7rem;
}

.serve-side .serve-card h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.serve-card--flickr {
  background:
    radial-gradient(circle at 78% 12%, rgba(223, 162, 54, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 236, 214, 0.78));
}

.serve-card--flickr p:not(.eyebrow) {
  color: var(--muted);
}

/* Cartão YouTube: identidade da marca (preto + vermelho) */
.serve-card--youtube {
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 0, 0, 0.42), transparent 46%),
    linear-gradient(135deg, #1c1c1c, #0f0f0f 78%);
  border-color: #2a2a2a;
  color: #fff;
}

.serve-card--youtube h3 {
  color: #fff;
}

.serve-card--youtube .eyebrow {
  color: #ff4e45;
}

.serve-card--youtube p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.serve-card--youtube::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Crect width='68' height='48' rx='13' fill='%23f00'/%3E%3Cpath d='M27 14v20l18-10z' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
  height: 2.2rem;
  position: absolute;
  right: 1.4rem;
  top: 1.4rem;
  width: 3.1rem;
}

.serve-card--youtube::before {
  background: none;
}

.button--youtube {
  background: #f00;
  border-color: #f00;
  color: #fff;
}

.button--youtube:hover {
  background: #cc0000;
  border-color: #cc0000;
}

/* Cartão Flickr: identidade da marca (azul + rosa) */
.serve-card--flickr {
  background: #fff;
  border-color: rgba(0, 99, 220, 0.22);
}

.serve-card--flickr::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Ccircle cx='15' cy='15' r='15' fill='%230063dc'/%3E%3Ccircle cx='45' cy='15' r='15' fill='%23ff0084'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
  height: 1.6rem;
  position: absolute;
  right: 1.4rem;
  top: 1.4rem;
  width: 3.2rem;
}

.serve-card--flickr .eyebrow {
  color: #0063dc;
}

.serve-card--flickr h3 {
  color: #1f2230;
}

.button--flickr {
  background: #0063dc;
  border-color: #0063dc;
  color: #fff;
}

.button--flickr:hover {
  background: #ff0084;
  border-color: #ff0084;
}

.button--flickr svg circle {
  stroke: none;
}

.location-pix strong.is-long {
  font-size: 0.74rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Fotos das unidades sempre do mesmo tamanho: a coluna interna do cartão
   não cresce com textos longos (ex.: horários de Piçarras) */
.location-card {
  grid-template-columns: minmax(0, 1fr);
}

.location-card__body {
  min-width: 0;
}

.location-card__body > p.location-times {
  white-space: normal;
}
