/* ==========================================================================
   Emmanoel Sacramento — Editorial Pastoral Design System
   Inspired by arnoldfamini.com (warm paper, deep navy, editorial serif italics)
   ========================================================================== */

:root {
  --afe-paper: #f5f4f1;
  --afe-paper-elevated: #faf9f7;
  --afe-surface: #eceae5;
  --afe-surface-strong: #e2dfd8;
  --afe-ink: #141414;
  --afe-prose: #2a2926;
  --afe-muted: #55534e;
  --afe-meta: #69665f;
  --afe-navy: #1f2c50;
  --afe-navy-hover: #304374;
  --afe-navy-soft: rgba(31, 44, 80, 0.08);
  --afe-focus: #526baa;
  --afe-border: rgba(20, 20, 20, 0.13);
  --afe-border-strong: rgba(20, 20, 20, 0.22);
  --afe-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --afe-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --afe-radius: 8px;
  --afe-pill: 999px;
  --afe-wrap-max: 1240px;
  --afe-gutter: clamp(20px, 5vw, 48px);
  --afe-section-space: clamp(68px, 8.5vw, 116px);
  --afe-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--afe-paper);
  color: var(--afe-ink);
}

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

body {
  margin: 0;
  font-family: var(--afe-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--afe-prose);
  background-color: var(--afe-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--afe-focus);
  outline-offset: 4px;
  border-radius: 4px;
}

.afe-skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: var(--afe-pill);
  background: var(--afe-navy);
  color: #ffffff;
  font-weight: 500;
}

.afe-skip-link:focus {
  left: var(--afe-gutter);
}

.afe-wrap {
  width: 100%;
  max-width: calc(var(--afe-wrap-max) + (var(--afe-gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--afe-gutter);
}

.afe-wrap--narrow {
  max-width: calc(780px + (var(--afe-gutter) * 2));
}

/* Editorial Italic Emphasis inside Headings */
h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--afe-ink);
  font-weight: 500;
}

h1 em,
h2 em,
.afe-serif-accent {
  font-family: var(--afe-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-right: 0.05em;
}

h1 em {
  color: var(--afe-navy);
}

/* ==========================================================================
   Sticky Header & Navigation
   ========================================================================== */

.afe-site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(245, 244, 241, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--afe-border);
}

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

.afe-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
}

.afe-brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--afe-ink);
  line-height: 1.2;
}

.afe-brand-role {
  font-size: 12px;
  font-weight: 500;
  color: var(--afe-meta);
  letter-spacing: 0.01em;
}

.afe-nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.afe-nav-link {
  font-size: 15px;
  font-weight: 400;
  color: var(--afe-prose);
  padding-block: 6px;
  position: relative;
  transition: color 180ms ease;
}

.afe-nav-link:hover {
  color: var(--afe-navy);
  text-decoration: underline;
  text-underline-offset: 0.26em;
  text-decoration-thickness: 1px;
}

.afe-nav-link[aria-current="page"] {
  font-weight: 600;
  color: var(--afe-navy);
}

.afe-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.afe-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--afe-pill);
  border: 1px solid var(--afe-border-strong);
  background: transparent;
  color: var(--afe-ink);
  font-family: var(--afe-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.afe-icon-btn:hover {
  background: var(--afe-surface);
  border-color: var(--afe-ink);
}

.afe-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--afe-ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer (exact arnoldfamini.com hairline list + bottom navy pill) */
.afe-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--afe-paper);
  display: flex;
  flex-direction: column;
  padding-inline: var(--afe-gutter);
  padding-bottom: 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 260ms var(--afe-ease), transform 260ms var(--afe-ease), visibility 260ms;
  overflow-y: auto;
}

.afe-mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.afe-mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--afe-border);
}

.afe-mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.afe-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 2px;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--afe-prose);
  border-bottom: 1px solid var(--afe-border);
  transition: color 180ms ease, padding-left 180ms ease;
}

.afe-mobile-link[aria-current="page"] {
  font-weight: 600;
  color: var(--afe-navy);
}

.afe-mobile-link:hover {
  color: var(--afe-navy);
  padding-left: 6px;
}

.afe-mobile-drawer-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   Buttons & Pills
   ========================================================================== */

.afe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--afe-pill);
  font-family: var(--afe-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.afe-btn--primary {
  background: var(--afe-navy);
  color: #ffffff;
  border-color: var(--afe-navy);
}

.afe-btn--primary:hover {
  background: var(--afe-navy-hover);
  border-color: var(--afe-navy-hover);
}

.afe-btn--outline {
  background: transparent;
  color: var(--afe-ink);
  border-color: var(--afe-border-strong);
}

.afe-btn--outline:hover {
  background: var(--afe-surface);
  border-color: var(--afe-ink);
}

.afe-btn--light {
  background: #ffffff;
  color: var(--afe-ink);
  border-color: #ffffff;
}

.afe-btn--light:hover {
  background: #e9e8e4;
  border-color: #e9e8e4;
}

.afe-btn--full {
  width: 100%;
}

.afe-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--afe-navy);
  transition: gap 200ms var(--afe-ease), color 200ms ease;
}

.afe-arrow-link:hover {
  gap: 10px;
  color: var(--afe-navy-hover);
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

/* ==========================================================================
   Hero Section (Home & Subpages)
   ========================================================================== */

.afe-hero--home {
  padding-top: clamp(40px, 5.5vw, 76px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.afe-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.afe-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--afe-navy);
  letter-spacing: -0.005em;
}

.afe-kicker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--afe-navy);
  opacity: 0.7;
}

.afe-hero-title {
  font-size: clamp(44px, 5.9vw, 84px);
  font-weight: 500;
  line-height: 1.01;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.afe-hero-deck {
  margin: 0 0 32px;
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.58;
  color: var(--afe-muted);
  max-width: 540px;
}

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

.afe-portrait-card {
  position: relative;
  max-width: 470px;
  margin-left: auto;
  width: 100%;
}

.afe-portrait-frame {
  border-radius: var(--afe-radius);
  overflow: hidden;
  background: linear-gradient(180deg, #f3f2ef 0%, #e7e5e0 100%);
  border: 1px solid var(--afe-border);
  aspect-ratio: 1 / 1.04;
}

.afe-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.afe-portrait-caption {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--afe-meta);
}

/* Subpage Header */
.afe-page-hero {
  padding-top: clamp(44px, 6vw, 84px);
  padding-bottom: clamp(36px, 4.5vw, 56px);
  border-bottom: 1px solid var(--afe-border);
}

.afe-page-title {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

.afe-page-deck {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.58;
  color: var(--afe-muted);
  max-width: 640px;
}

/* ==========================================================================
   Section Rhythm & Headers
   ========================================================================== */

.afe-section {
  padding-block: var(--afe-section-space);
}

.afe-section--bordered {
  border-top: 1px solid var(--afe-border);
}

.afe-section--surface {
  background: var(--afe-surface);
  border-top: 1px solid var(--afe-border);
  border-bottom: 1px solid var(--afe-border);
}

.afe-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 3.8vw, 44px);
  flex-wrap: wrap;
}

.afe-section-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--afe-navy);
  margin-bottom: 10px;
}

.afe-section-title {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.afe-section-sub {
  margin: 10px 0 0;
  font-size: 16.5px;
  color: var(--afe-muted);
  max-width: 580px;
}

/* ==========================================================================
   Featured Message Banner (arnoldfamini.com signature full-bleed card)
   ========================================================================== */

.afe-feature-wrap {
  padding-bottom: clamp(32px, 4vw, 52px);
}

.afe-feature {
  position: relative;
  border-radius: var(--afe-radius);
  overflow: hidden;
  min-height: clamp(440px, 52vw, 580px);
  background-color: #232019;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 5vw, 56px);
  color: #ffffff;
}

.afe-feature-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--afe-ease);
}

.afe-feature:hover .afe-feature-bg {
  transform: scale(1.025);
}

.afe-feature-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(16, 15, 12, 0.9) 0%,
    rgba(16, 15, 12, 0.56) 48%,
    rgba(16, 15, 12, 0.16) 88%
  );
}

.afe-feature-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.afe-feature-meta {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.01em;
}

.afe-feature-title {
  font-family: var(--afe-serif);
  font-weight: 400;
  font-size: clamp(54px, 8.2vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 18px;
}

.afe-feature-excerpt {
  margin: 0 0 28px;
  font-size: clamp(16.5px, 1.45vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
}

/* ==========================================================================
   4 Caminhos Diretos (jesusfaztudonovo.com outreach blended into editorial)
   ========================================================================== */

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

.afe-path-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 24px;
  border-radius: var(--afe-radius);
  background: var(--afe-paper-elevated);
  border: 1px solid var(--afe-border);
  transition: transform 280ms var(--afe-ease), border-color 240ms ease, box-shadow 280ms var(--afe-ease);
}

.afe-path-card:hover {
  transform: translateY(-3px);
  border-color: var(--afe-navy);
  box-shadow: 0 14px 30px rgba(20, 20, 20, 0.06);
}

.afe-path-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--afe-navy-soft);
  color: var(--afe-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.afe-path-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.afe-path-desc {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--afe-muted);
}

.afe-path-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--afe-navy);
}

/* ==========================================================================
   3-Column Editorial Content Cards (Sermões, Estudos, Artigos)
   ========================================================================== */

.afe-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.8vw, 34px);
}

.afe-card {
  display: flex;
  flex-direction: column;
}

.afe-card-media {
  border-radius: var(--afe-radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--afe-surface);
  border: 1px solid var(--afe-border);
  margin-bottom: 16px;
}

.afe-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms var(--afe-ease);
}

.afe-card:hover .afe-card-media img {
  transform: scale(1.038);
}

.afe-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--afe-meta);
  margin-bottom: 8px;
}

.afe-card-tag {
  font-weight: 500;
  color: var(--afe-navy);
}

.afe-card-title {
  font-size: 22px;
  line-height: 1.24;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.afe-card:hover .afe-card-title {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}

.afe-card-excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.58;
  color: var(--afe-muted);
}

/* Editorial Callout Banner (e.g. Sermons in Review notice) */
.afe-editorial-note {
  padding: 24px 28px;
  border-radius: var(--afe-radius);
  background: var(--afe-surface);
  border: 1px solid var(--afe-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.afe-editorial-note p {
  margin: 0;
  max-width: 680px;
  font-size: 15.5px;
  color: var(--afe-prose);
}

/* ==========================================================================
   Churches Grid (Distrito do Lajeado — Cotia, SP)
   ========================================================================== */

.afe-churches-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.afe-church-card {
  padding: 28px;
  border-radius: var(--afe-radius);
  background: var(--afe-paper-elevated);
  border: 1px solid var(--afe-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.afe-church-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--afe-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--afe-navy-soft);
  color: var(--afe-navy);
  margin-bottom: 12px;
}

.afe-church-name {
  font-size: 23px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.afe-church-address {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--afe-muted);
}

.afe-church-times {
  list-style: none;
  padding: 14px 0 0;
  margin: 0;
  border-top: 1px solid var(--afe-border);
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--afe-prose);
}

.afe-church-times strong {
  font-weight: 600;
  color: var(--afe-ink);
}

.afe-church-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.afe-btn--sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

/* ==========================================================================
   FAQ Accordion (Inspired by jesusfaztudonovo.com)
   ========================================================================== */

.afe-faq-list {
  border-top: 1px solid var(--afe-border);
}

.afe-faq-item {
  border-bottom: 1px solid var(--afe-border);
}

.afe-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--afe-sans);
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--afe-ink);
  cursor: pointer;
  transition: color 180ms ease;
}

.afe-faq-question:hover {
  color: var(--afe-navy);
}

.afe-faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--afe-border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: var(--afe-navy);
  transition: transform 240ms var(--afe-ease), background-color 200ms ease;
}

.afe-faq-item[open] .afe-faq-icon {
  transform: rotate(45deg);
  background: var(--afe-navy);
  border-color: var(--afe-navy);
  color: #ffffff;
}

.afe-faq-answer {
  padding: 0 4px 24px;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--afe-muted);
}

.afe-faq-answer p {
  margin: 0;
}

/* ==========================================================================
   Featured Free Resource & Adventist Initiatives
   ========================================================================== */

.afe-resource-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.afe-resource-highlight {
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--afe-radius);
  background: var(--afe-navy);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.afe-resource-highlight h3 {
  color: #ffffff;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.afe-resource-highlight h3 em {
  font-family: var(--afe-serif);
  font-style: italic;
  font-weight: 400;
}

.afe-resource-highlight p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.6;
}

.afe-initiatives-box {
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--afe-radius);
  background: var(--afe-paper-elevated);
  border: 1px solid var(--afe-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.afe-initiatives-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.afe-initiative-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--afe-radius);
  border: 1px solid var(--afe-border);
  background: var(--afe-paper);
  font-size: 14px;
  font-weight: 500;
  color: var(--afe-ink);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.afe-initiative-pill:hover {
  border-color: var(--afe-navy);
  background: #ffffff;
  color: var(--afe-navy);
}

/* ==========================================================================
   About Teaser & Credentials Timeline
   ========================================================================== */

.afe-bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.afe-prose {
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--afe-prose);
}

.afe-prose p {
  margin: 0 0 20px;
}

.afe-prose h2 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.025em;
  margin: 40px 0 16px;
}

.afe-prose h3 {
  font-size: 21px;
  letter-spacing: -0.015em;
  margin: 28px 0 12px;
}

.afe-prose blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--afe-navy);
  background: var(--afe-surface);
  border-radius: 0 var(--afe-radius) var(--afe-radius) 0;
  font-family: var(--afe-serif);
  font-style: italic;
  font-size: 23px;
  line-height: 1.4;
  color: var(--afe-ink);
}

.afe-credentials-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.afe-credential-card {
  padding: 22px 24px;
  border-radius: var(--afe-radius);
  background: var(--afe-paper-elevated);
  border: 1px solid var(--afe-border);
}

.afe-credential-inst {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--afe-navy);
  margin-bottom: 4px;
}

.afe-credential-degree {
  font-size: 18px;
  font-weight: 500;
  color: var(--afe-ink);
  margin-bottom: 6px;
}

.afe-credential-detail {
  margin: 0;
  font-size: 14.5px;
  color: var(--afe-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Newsletter Banner (arnoldfamini.com deep navy card)
   ========================================================================== */

.afe-newsletter-section {
  padding-block: clamp(40px, 5vw, 72px);
}

.afe-newsletter {
  border-radius: var(--afe-radius);
  background: var(--afe-navy);
  color: #ffffff;
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}

.afe-newsletter h2 {
  color: #ffffff;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.afe-newsletter p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.afe-newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.afe-pill-input {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--afe-pill);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: var(--afe-sans);
  font-size: 15px;
}

.afe-pill-input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.afe-pill-input:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.16);
}

.afe-form-feedback {
  width: 100%;
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

/* ==========================================================================
   Footer (Hairline top border + inline search)
   ========================================================================== */

.afe-footer {
  padding-top: 36px;
  padding-bottom: 52px;
  border-top: 1px solid var(--afe-border);
  font-size: 14px;
  color: var(--afe-meta);
}

.afe-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.afe-footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.afe-footer-links a:hover {
  color: var(--afe-navy);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.afe-footer-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.afe-footer-search input {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--afe-pill);
  border: 1px solid var(--afe-border-strong);
  background: var(--afe-paper-elevated);
  color: var(--afe-ink);
  font-family: var(--afe-sans);
  font-size: 14px;
  width: 200px;
}

.afe-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--afe-border);
}

/* ==========================================================================
   Search Modal
   ========================================================================== */

.afe-search-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(20, 20, 20, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 7vh, 80px) var(--afe-gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.afe-search-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.afe-search-dialog {
  width: 100%;
  max-width: 680px;
  border-radius: 12px;
  background: var(--afe-paper);
  border: 1px solid var(--afe-border-strong);
  box-shadow: 0 24px 64px rgba(20, 20, 20, 0.2);
  overflow: hidden;
}

.afe-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--afe-border);
}

.afe-search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--afe-sans);
  font-size: 18px;
  color: var(--afe-ink);
  outline: none;
}

.afe-search-results {
  max-height: 60vh;
  overflow-y: auto;
  padding: 12px;
}

.afe-search-hit {
  display: block;
  padding: 14px 16px;
  border-radius: var(--afe-radius);
  transition: background-color 150ms ease;
}

.afe-search-hit:hover {
  background: var(--afe-surface);
}

.afe-search-hit-cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--afe-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.afe-search-hit-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--afe-ink);
  margin: 2px 0 4px;
}

.afe-search-hit-desc {
  margin: 0;
  font-size: 14px;
  color: var(--afe-muted);
}

/* ==========================================================================
   Scroll Reveal
   ========================================================================== */

.afe-reveal-pending {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 680ms var(--afe-ease), transform 680ms var(--afe-ease);
}

.afe-reveal-pending.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .afe-reveal-pending {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 980px) {
  .afe-paths-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .afe-resource-split,
  .afe-bio-grid,
  .afe-newsletter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .afe-nav-desktop,
  .afe-header-actions .afe-search-trigger-label {
    display: none;
  }

  .afe-menu-toggle {
    display: inline-flex;
  }

  .afe-hero-grid {
    grid-template-columns: 1fr;
  }

  .afe-portrait-card {
    margin-inline: 0;
    max-width: 420px;
  }

  .afe-churches-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .afe-paths-grid,
  .afe-grid-3,
  .afe-initiatives-grid {
    grid-template-columns: 1fr;
  }

  .afe-header-inner {
    min-height: 76px;
  }

  .afe-hero-actions .afe-btn {
    width: 100%;
  }

  .afe-footer-search {
    width: 100%;
  }

  .afe-footer-search input {
    flex: 1;
  }
}
