/*
Theme Name: Redimir
Theme URI: https://example.com/redimir
Author: Ministério Redimir
Description: Tema institucional para igrejas, com agenda, transmissão ao vivo e caminhos de participação.
Version: 0.4.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: redimir
*/

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,600&display=swap");

:root {
  --redimir-green: #183a32;
  --redimir-green-dark: #0b2a23;
  --redimir-cream: #f4efe5;
  --redimir-paper: #fffdf9;
  --redimir-terracotta: #c76545;
  --redimir-gold: #d6a84b;
  --redimir-ink: #17332c;
  --redimir-muted: #5d6a65;
  --redimir-border: rgba(23, 51, 44, 0.14);
  --redimir-shadow: 0 16px 45px rgba(11, 42, 35, 0.1);
  --redimir-container: 1400px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--redimir-ink);
  background: var(--redimir-paper);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

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

.skip-link:focus {
  z-index: 9999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  clip: auto;
  color: var(--redimir-green-dark);
  background: #fff;
}

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  color: #fff;
}

.header-inner {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 36px;
}

.site-branding,
.custom-logo-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.custom-logo {
  width: auto;
  max-width: 230px;
  height: 72px;
  object-fit: contain;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 58px;
  border: 2px solid var(--redimir-gold);
  border-radius: 24px 24px 3px 3px;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  background: #fff;
}

.brand-mark::before {
  top: 13px;
  left: 20px;
  width: 2px;
  height: 27px;
}

.brand-mark::after {
  top: 22px;
  left: 12px;
  width: 18px;
  height: 2px;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy small {
  margin-bottom: 7px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.32em;
}

.brand-copy strong {
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.primary-navigation {
  display: flex;
  flex: 1;
  justify-content: center;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 42px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation a {
  position: relative;
  display: block;
  padding: 11px 0;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.primary-navigation a::after {
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 2px;
  content: "";
  background: var(--redimir-gold);
  transition: width 180ms ease;
}

.primary-navigation a:hover::after,
.primary-navigation a:focus-visible::after,
.primary-navigation .current-menu-item a::after {
  width: 100%;
}

.button,
.header-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.header-cta:focus-visible,
.primary-navigation a:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid var(--redimir-gold);
  outline-offset: 3px;
}

.header-cta {
  flex: 0 0 auto;
  color: #fff;
  background: var(--redimir-terracotta);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 1.3rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: 680px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background-color: var(--redimir-green-dark);
  background-position: center;
  background-size: cover;
}

.hero-carousel {
  display: block;
}

.hero-carousel::before {
  display: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  min-height: 680px;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  background-color: var(--redimir-green-dark);
  background-position: center;
  background-size: cover;
  transition: opacity 550ms ease, visibility 550ms ease;
  pointer-events: none;
}

.hero-slide::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 43, 34, 0.98) 0%, rgba(8, 43, 34, 0.9) 27%, rgba(8, 43, 34, 0.38) 55%, rgba(8, 43, 34, 0.1) 100%),
    linear-gradient(0deg, rgba(8, 43, 34, 0.14), rgba(8, 43, 34, 0.14));
}

.hero-slide.is-active {
  position: relative;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.hero-slide .site-shell {
  position: relative;
  z-index: 2;
}

.hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 43, 34, 0.98) 0%, rgba(8, 43, 34, 0.9) 27%, rgba(8, 43, 34, 0.38) 55%, rgba(8, 43, 34, 0.1) 100%),
    linear-gradient(0deg, rgba(8, 43, 34, 0.14), rgba(8, 43, 34, 0.14));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(540px, 48%);
  padding-top: 118px;
  padding-bottom: 50px;
}

.hero h1,
.hero h2,
.section-title,
.event-card h3 {
  font-family: "Newsreader", Georgia, serif;
}

.hero h1,
.hero h2 {
  max-width: 530px;
  margin: 0 0 18px;
  font-size: clamp(3rem, 5vw, 5.15rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 em {
  color: var(--redimir-gold);
  font-style: normal;
}

.hero-intro {
  max-width: 490px;
  margin: 0 0 22px;
  font-size: clamp(1.06rem, 1.35vw, 1.28rem);
}

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

.hero-carousel-controls {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 24px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.hero-carousel-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 43, 34, 0.58);
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
}

.hero-carousel-controls button:hover,
.hero-carousel-controls button:focus-visible {
  border-color: var(--redimir-gold);
  background: var(--redimir-green-dark);
  outline: none;
}

.hero-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline: 3px;
}

.hero-carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
}

.hero-carousel-dots button[aria-selected="true"] {
  width: 28px;
  border-radius: 999px;
  background: var(--redimir-gold);
}

.button-outline {
  min-height: 54px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(8, 43, 34, 0.35);
}

.button-outline:hover {
  background: rgba(8, 43, 34, 0.75);
}

.service-card {
  display: grid;
  max-width: 380px;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 7px;
  background: rgba(8, 43, 34, 0.5);
  backdrop-filter: blur(8px);
}

.service-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  color: var(--redimir-gold);
  background: rgba(0, 0, 0, 0.16);
  font-size: 1.45rem;
}

.service-card small {
  display: block;
  color: var(--redimir-gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.service-card strong {
  display: block;
  margin: 1px 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.45rem;
}

.service-card span {
  font-size: 0.86rem;
}

.pathways {
  position: relative;
  z-index: 4;
  padding: 18px 0;
  background: var(--redimir-paper);
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pathway-card {
  display: grid;
  min-height: 106px;
  grid-template-columns: 68px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 15px 24px;
  border: 1px solid var(--redimir-border);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(11, 42, 35, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pathway-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--redimir-shadow);
}

.pathway-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  color: var(--redimir-gold);
  background: var(--redimir-green);
  font-size: 1.65rem;
}

.pathway-card h2 {
  margin: 0 0 2px;
  font-size: 1rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.pathway-card p {
  margin: 0;
  color: var(--redimir-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.pathway-arrow {
  font-size: 1.45rem;
}

.weekly {
  padding: 28px 0 80px;
  background: var(--redimir-cream);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-title {
  position: relative;
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.025em;
}

.section-title::after {
  display: block;
  width: 94px;
  height: 3px;
  margin-top: 7px;
  content: "";
  background: var(--redimir-gold);
}

.section-link {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.event-card {
  overflow: hidden;
  border: 1px solid var(--redimir-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11, 42, 35, 0.06);
}

.event-image {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  background: linear-gradient(135deg, var(--redimir-green), var(--redimir-gold));
}

.event-content {
  padding: 20px 22px 24px;
}

.event-meta {
  margin: 0 0 6px;
  color: #a56c13;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-card h3 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.event-card p {
  margin: 0;
  color: var(--redimir-muted);
  font-size: 0.9rem;
}

.event-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.7fr);
  gap: clamp(38px, 7vw, 90px);
  align-items: start;
}

.event-detail-grid .feature-image {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--redimir-shadow);
}

.event-detail-grid .prose-content {
  font-size: 1.04rem;
  line-height: 1.8;
}

.event-gallery-section {
  padding: 78px 0;
  background: var(--redimir-cream);
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.event-gallery a {
  grid-column: span 4;
  overflow: hidden;
  border-radius: 7px;
  background: var(--redimir-green);
}

.event-gallery a:nth-child(5n + 1),
.event-gallery a:nth-child(5n + 5) {
  grid-column: span 6;
}

.event-gallery img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  max-height: 390px;
  object-fit: cover;
  transition: transform 240ms ease;
}

.event-gallery a:hover img {
  transform: scale(1.025);
}

.site-footer {
  padding: 48px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--redimir-green-dark);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
}

.content-area {
  width: min(calc(100% - 48px), 880px);
  min-height: 60vh;
  padding: 150px 0 80px;
  margin-inline: auto;
}

.content-area h1 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.content-header {
  position: relative;
  color: #fff;
  background: var(--redimir-green-dark);
}

.inner-hero {
  padding: 168px 0 78px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(11, 42, 35, 0.98), rgba(24, 58, 50, 0.88)),
    var(--redimir-green);
}

.inner-hero .eyebrow,
.media-eyebrow {
  margin: 0 0 8px;
  color: var(--redimir-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.inner-hero h1 {
  max-width: 850px;
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.02;
}

.inner-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 1.15rem;
}

.section-block {
  padding: 80px 0;
}

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

.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.prose {
  font-size: 1.08rem;
}

.prose h2,
.contact-panel h2 {
  margin-top: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.1;
}

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

.value-list li {
  padding: 18px 20px;
  border-left: 3px solid var(--redimir-gold);
  background: #fff;
  box-shadow: 0 8px 24px rgba(11, 42, 35, 0.06);
}

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

.content-card {
  overflow: hidden;
  border: 1px solid var(--redimir-border);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(11, 42, 35, 0.07);
}

.content-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, var(--redimir-green), var(--redimir-gold));
}

.content-card-body {
  padding: 24px;
}

.content-card h2,
.content-card h3 {
  margin: 4px 0 9px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.18;
}

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

.card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--redimir-terracotta);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.broadcast-section {
  padding: 78px 0;
  color: #fff;
  background: var(--redimir-green-dark);
}

.broadcast-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1.2fr);
  gap: clamp(38px, 7vw, 100px);
  align-items: center;
}

.broadcast-section h2 {
  margin: 0 0 14px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
}

.broadcast-section p {
  color: rgba(255, 255, 255, 0.76);
}

.broadcast-frame {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: #071c17;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.broadcast-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.broadcast-placeholder {
  display: grid;
  min-height: 290px;
  place-items: center;
  padding: 30px;
  text-align: center;
}

.media-sections {
  padding: 78px 0;
}

.media-group + .media-group {
  margin-top: 70px;
}

.media-meta {
  color: #a56c13;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.video-embed {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--redimir-green-dark);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(40px, 8vw, 110px);
}

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

.contact-list a {
  color: var(--redimir-terracotta);
}

.prayer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--redimir-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--redimir-shadow);
}

.form-field {
  display: grid;
  gap: 7px;
}

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

.form-field label {
  font-size: 0.8rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(23, 51, 44, 0.28);
  border-radius: 5px;
  color: var(--redimir-ink);
  background: #fff;
  font: inherit;
}

.form-field textarea {
  min-height: 170px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--redimir-gold);
  outline: 3px solid rgba(214, 168, 75, 0.22);
}

.form-consent {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
}

.form-consent input {
  margin-top: 4px;
}

.button-solid {
  color: #fff;
  background: var(--redimir-terracotta);
}

.form-notice {
  grid-column: 1 / -1;
  padding: 13px 15px;
  border-radius: 5px;
}

.form-notice-success {
  color: #0b4a34;
  background: #dff4e9;
}

.form-notice-error {
  color: #7c251d;
  background: #fbe5e1;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px dashed var(--redimir-border);
  color: var(--redimir-muted);
  text-align: center;
}

.pagination {
  margin-top: 38px;
}

.faith-paths {
  padding: 76px 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 42, 35, 0.98), rgba(24, 58, 50, 0.92)),
    var(--redimir-green-dark);
}

.faith-paths .section-title {
  color: #fff;
}

.faith-paths .section-heading {
  align-items: start;
}

.faith-paths .section-heading > p {
  max-width: 560px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.faith-path-card {
  position: relative;
  min-height: 220px;
  padding: 30px 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 180ms ease, background-color 180ms ease;
}

.faith-path-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
}

.faith-path-number {
  display: block;
  margin-bottom: 24px;
  color: var(--redimir-gold);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.15rem;
}

.faith-path-card h3 {
  margin: 0 0 8px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.55rem;
}

.faith-path-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.faith-path-card .card-link {
  position: absolute;
  right: 26px;
  bottom: 24px;
  left: 26px;
  color: var(--redimir-gold);
}

.belief-section {
  padding: 82px 0;
  background: var(--redimir-paper);
}

.belief-intro {
  max-width: 880px;
  margin: 0 auto 44px;
  text-align: center;
}

.belief-intro h2 {
  margin: 0 0 16px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
}

.belief-intro p {
  color: var(--redimir-muted);
  font-size: 1.08rem;
}

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

.belief-pillar {
  padding: 30px;
  border-top: 3px solid var(--redimir-gold);
  background: var(--redimir-cream);
}

.belief-pillar h3 {
  margin: 0 0 9px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.45rem;
}

.belief-pillar p {
  margin: 0;
  color: var(--redimir-muted);
}

.pastoral-preview {
  padding: 80px 0;
  background: var(--redimir-paper);
}

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

.pastor-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--redimir-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(11, 42, 35, 0.08);
}

.pastor-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(214, 168, 75, 0.25), rgba(24, 58, 50, 0.42)),
    var(--redimir-cream);
}

.pastor-portrait::after {
  position: absolute;
  inset: 14px;
  content: "";
  border: 1px solid rgba(214, 168, 75, 0.65);
  pointer-events: none;
}

.pastor-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82);
}

.pastor-card-body {
  padding: 24px;
  text-align: center;
}

.pastor-role {
  display: block;
  margin-bottom: 5px;
  color: #9a6b1c;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pastor-card h2,
.pastor-card h3 {
  margin: 0 0 7px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.75rem;
}

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

.pastor-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 15px;
  font-size: 0.78rem;
  font-weight: 700;
}

.pastor-section + .pastor-section {
  margin-top: 70px;
}

.pastor-section-heading {
  padding-bottom: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--redimir-border);
}

.pastor-section-heading h2 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.pastor-profile {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(38px, 8vw, 110px);
  align-items: start;
}

.pastor-profile .pastor-portrait {
  border-radius: 8px;
}

@media (max-width: 1100px) {
  .primary-navigation ul {
    gap: 18px;
  }

  .header-inner {
    gap: 20px;
  }

  .pathway-grid,
  .events-grid {
    gap: 16px;
  }

  .pathway-card {
    grid-template-columns: 54px 1fr auto;
    padding-inline: 16px;
  }

  .pathway-icon {
    width: 52px;
    height: 52px;
  }

  .faith-path-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .site-shell {
    width: min(calc(100% - 32px), var(--redimir-container));
  }

  .header-inner {
    min-height: 90px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .primary-navigation {
    position: absolute;
    top: 82px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 18px;
    border-radius: 8px;
    background: var(--redimir-green-dark);
    box-shadow: var(--redimir-shadow);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .primary-navigation a {
    padding: 12px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 720px;
    background-position: 62% center;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(8, 43, 34, 0.97), rgba(8, 43, 34, 0.67));
  }

  .hero-content {
    width: min(590px, 88%);
    padding-top: 100px;
  }

  .pathway-grid,
  .events-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .broadcast-grid,
  .contact-grid,
  .prose-grid,
  .pastor-profile,
  .event-detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    min-height: 720px;
    background-position: 62% center;
  }

  .hero-slide::before {
    background: linear-gradient(90deg, rgba(8, 43, 34, 0.97), rgba(8, 43, 34, 0.67));
  }

  .belief-pillars,
  .pastor-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    display: grid;
    grid-template-columns: minmax(180px, 38%) 1fr;
  }

  .event-image {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 600px) {
  .brand-copy strong {
    font-size: 1.18rem;
  }

  .brand-mark {
    width: 38px;
    height: 50px;
  }

  .brand-mark::before {
    top: 11px;
    left: 17px;
    height: 24px;
  }

  .brand-mark::after {
    top: 19px;
    left: 10px;
    width: 16px;
  }

  .hero {
    min-height: 700px;
    background-position: 68% center;
  }

  .hero-slide {
    min-height: 700px;
    background-position: 68% center;
  }

  .hero-slide::before {
    background: rgba(8, 43, 34, 0.82);
  }

  .hero::before {
    background: rgba(8, 43, 34, 0.82);
  }

  .hero-content {
    width: 100%;
    padding-top: 110px;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .button-outline {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-carousel-controls {
    bottom: 14px;
  }

  .hero-carousel-pause {
    margin-left: auto;
  }

  .service-card {
    width: 100%;
  }

  .pathway-card {
    grid-template-columns: 52px 1fr;
  }

  .pathway-arrow {
    display: none;
  }

  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-card {
    display: block;
  }

  .prayer-form {
    grid-template-columns: 1fr;
  }

  .faith-path-grid {
    grid-template-columns: 1fr;
  }

  .event-image {
    aspect-ratio: 16 / 9;
  }

  .event-gallery a,
  .event-gallery a:nth-child(5n + 1),
  .event-gallery a:nth-child(5n + 5) {
    grid-column: 1 / -1;
  }
}

@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;
  }
}
