/* ==========================================================================
   Pentecost Faith Ministries — Stylesheet
   Type: Playfair Display (display/headings) + Inter (body)
   ========================================================================== */

:root {
  /* Client palette */
  --bg-light: #EEF5FF;
  --white: #FFFFFF;
  --primary-btn: #2F80ED;
  --btn-hover: #4A90FF;
  --faith-text: #4A7DFF;
  --main-text: #1F2937;
  --secondary-text: #6B7280;
  --input-border: #E5E7EB;
  --input-bg: #F8FAFC;
  --icon-gray: #9CA3AF;
  --logo-black: #000000;

  /* Signature accents (added to complement the client palette) */
  --gold-accent: #C9A227;
  /* used sparingly: dividers, quote marks, small icon fills */
  --gold-soft: #E8D9A8;
  /* faint gold for hairlines on light backgrounds */
  --navy-deep: #12233F;
  /* footer / deep sections, richer than logo-black */
  --navy-deep-2: #1A2F52;
  /* gradient partner for navy-deep */

  /* Semantic */
  --shadow-sm: 0 2px 8px rgba(18, 35, 63, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 35, 63, 0.10);
  --shadow-lg: 0 20px 48px rgba(18, 35, 63, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1280px;
  --nav-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--main-text);
  background: var(--bg-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--navy-deep);
  margin: 0 0 16px;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--secondary-text);
  margin: 0 0 16px;
}

.church-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-accent);
  display: inline-block;
}

/* ---------- Signature element: verse ribbon divider ---------- */
.verse-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 8px auto 48px;
  color: var(--gold-accent);
  opacity: 0.9;
}

.verse-ribbon .line {
  height: 1px;
  width: 72px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}

.verse-ribbon .line.right {
  background: linear-gradient(270deg, transparent, var(--gold-soft));
}

.verse-ribbon svg {
  width: 22px;
  height: 22px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-btn);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold-accent);
  color: var(--navy-deep);
}

.btn-gold:hover {
  background: #DDBB3E;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-block {
  width: 100%;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  order: 1;
  flex-shrink: 0;
}

.brand img {
  height: 46px;
  width: 46px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.28rem;
  color: var(--logo-black);
  white-space: nowrap;
}

.brand-name span {
  color: var(--faith-text);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.2vw, 32px);
  order: 2;
  flex: 1;
  flex-wrap: nowrap;
  margin-right: 0;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--main-text);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--primary-btn);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--primary-btn);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary-btn);
  font-weight: 600;
}


.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  order: 3;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--main-text);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: clamp(380px, 58vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--nav-height) + 20px);
  padding-bottom: 50px;
  background-color: var(--navy-deep);
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 35, 63, 0.38), rgba(18, 35, 63, 0.55));
  z-index: 1;
}

/* ---------- Giving page ---------- */
.giving-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.payment-details-panel,
.scanner-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 35, 63, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  backdrop-filter: blur(8px);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head h3 {
  margin-bottom: 0;
}

.panel-meta {
  font-size: 0.86rem;
  color: var(--secondary-text);
  text-align: right;
}

.payment-details-list {
  display: grid;
  gap: 16px;
}

.payment-detail-card {
  background: linear-gradient(180deg, rgba(238, 245, 255, 0.92), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(47, 128, 237, 0.10);
  border-radius: var(--radius-md);
  padding: 18px;
}

.payment-detail-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.payment-detail-header h3 {
  margin-bottom: 0;
  font-size: 1.28rem;
}

.payment-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.14);
  color: var(--navy-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.payment-hint {
  font-size: 0.82rem;
  color: var(--secondary-text);
  white-space: nowrap;
}

.copy-list {
  display: grid;
  gap: 10px;
}

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(18, 35, 63, 0.08);
}

.copy-row-label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary-text);
  margin-bottom: 2px;
}

.copy-row strong {
  display: block;
  color: var(--navy-deep);
  word-break: break-word;
}

.copy-btn {
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(47, 128, 237, 0.18);
  background: rgba(47, 128, 237, 0.08);
  color: var(--primary-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
  transform: translateY(-1px);
  background: rgba(47, 128, 237, 0.15);
}

.copy-btn.is-copied {
  background: rgba(46, 125, 50, 0.14);
  color: #2e7d32;
  border-color: rgba(46, 125, 50, 0.22);
}

.empty-payment-state {
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(18, 35, 63, 0.18);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.empty-payment-state h3 {
  margin-bottom: 8px;
}

.scanner-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}

.scanner-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(18, 35, 63, 0.08);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.scanner-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: linear-gradient(180deg, rgba(238, 245, 255, 0.8), rgba(255, 255, 255, 0.95));
}

.scanner-caption {
  margin-bottom: 0;
  font-size: 0.96rem;
}

@media (max-width: 960px) {
  .giving-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {

  .payment-details-panel,
  .scanner-panel {
    padding: 18px;
  }

  .panel-head,
  .payment-detail-header,
  .copy-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .copy-btn {
    width: 100%;
  }

  .panel-meta,
  .payment-hint {
    text-align: left;
    white-space: normal;
  }
}

.hero-inner {
  max-width: 780px;
  padding: 40px 24px;
  position: relative;
  z-index: 2;
}

/* Hero background slideshow (fade transition, not continuous scroll) */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero .eyebrow {
  color: var(--gold-soft);
}

.hero .eyebrow::before {
  background: var(--gold-soft);
}

.hero h1 {
  color: var(--white);
}

.hero p.lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero.hero-sub {
  min-height: clamp(240px, 32vh, 350px);
  padding-top: calc(var(--nav-height) + 24px);
  padding-bottom: 36px;
  background-size: 100% 100%;
  background-position: center center;
}

/* Home image carousel */
.home-carousel-section {
  padding-top: 72px;
}

.photo-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(238, 245, 255, 0.96));
  box-shadow: var(--shadow-lg);
}

.photo-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(201, 162, 39, 0.10), transparent 42%), radial-gradient(circle at bottom right, rgba(74, 125, 255, 0.10), transparent 38%);
  pointer-events: none;
}

.photo-carousel-track {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  width: max-content;
  animation: photo-scroll 34s linear infinite;
}

.photo-carousel:hover .photo-carousel-track {
  animation-play-state: paused;
}

.photo-carousel-item {
  width: clamp(240px, 22vw, 340px);
  aspect-ratio: 3 / 4;
  flex: 0 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.photo-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-carousel-section .section-head {
  margin-bottom: 30px;
}

.home-carousel-section .photo-carousel {
  padding: 22px;
}

@keyframes photo-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Sections ---------- */
section {
  padding: 96px 0;
}

.section-alt {
  background: var(--white);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head p {
  margin-bottom: 0;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 34px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(74, 125, 255, 0.08);
}

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

.grid {
  display: grid;
  gap: 30px;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Mission & Vision */
.mv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary-btn);
}

.mv-card.vision {
  border-top-color: var(--gold-accent);
}

.mv-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-btn);
}

.mv-card.vision .mv-icon {
  color: var(--gold-accent);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--faith-text);
  display: block;
}

.stat-label {
  color: var(--secondary-text);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

/* Core values grid */
.value-list {
  display: grid;
  gap: 18px;
}

.value-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.value-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-light);
  color: var(--primary-btn);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-card h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--main-text);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.value-card p {
  margin: 0;
  font-size: 0.92rem;
}

/* Foundation table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

table.foundation-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

table.foundation-table th,
table.foundation-table td {
  text-align: left;
  padding: 18px 24px;
  border-bottom: 1px solid var(--input-border);
  font-size: 0.96rem;
}

table.foundation-table th {
  width: 35%;
  color: var(--faith-text);
  font-weight: 600;
  background: var(--bg-light);
}

table.foundation-table tr:last-child td,
table.foundation-table tr:last-child th {
  border-bottom: none;
}

/* Leadership */
.leader-card {
  text-align: center;
}

.leader-card.no-photo {
  padding-top: 34px;
}

.leader-photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bg-light);
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-card h4 {
  margin-bottom: 2px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--main-text);
}

.leader-role {
  color: var(--faith-text);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.leader-card p {
  font-size: 0.92rem;
}

/* Ministries */
.ministry-card {
  text-align: center;
}

.ministry-thumb {
  width: 100%;
  height: 190px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  overflow: hidden;
  margin-bottom: 20px;
}

.ministry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sermons */
.sermon-card {
  padding: 0;
  overflow: hidden;
}

.sermon-thumb {
  position: relative;
  height: 200px;
  background: var(--navy-deep);
  overflow: hidden;
}

.sermon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-badge span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-btn);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease;
}

.sermon-card:hover .play-badge span {
  transform: scale(1.1);
}

.sermon-body {
  padding: 26px;
}

.sermon-meta {
  font-size: 0.82rem;
  color: var(--faith-text);
  font-weight: 600;
  margin-bottom: 8px;
}

.sermon-body h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.sermon-date {
  font-size: 0.82rem;
  color: var(--icon-gray);
}

/* Schedule list */
.schedule-list {
  display: grid;
  gap: 18px;
}

.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 28px;
  box-shadow: 0 4px 16px rgba(18, 35, 63, 0.06);
  border: 1px solid rgba(47, 128, 237, 0.14);
  border-left: 4px solid #2F80ED;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.schedule-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47, 128, 237, 0.12);
}

.schedule-item .name {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: #12233F;
  margin-bottom: 4px;
}

.schedule-item .time {
  color: #2F80ED;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.schedule-item .sub {
  color: #6B7280;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
}

/* Map */
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: none;
  width: 100%;
  height: 420px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1/1;
  background: var(--bg-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(18, 35, 63, 0.45));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 35, 63, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 32px;
  color: var(--white);
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
}

/* Forms */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--main-text);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--input-border);
  background: var(--input-bg);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--main-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-btn);
  box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.14);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--icon-gray);
  margin-top: 14px;
}

.form-success {
  display: none;
  background: #EAF7EE;
  color: #1E7A3C;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 18px;
  font-weight: 500;
}

.form-success.show {
  display: block;
}

/* Contact info blocks */
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-info-item .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-light);
  color: var(--primary-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item h4 {
  margin: 0 0 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--main-text);
}

.contact-info-item p {
  margin: 0;
  font-size: 0.92rem;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy-deep-2));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: var(--white);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 auto 30px;
}

.cta-banner .btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img {
  height: 42px;
  width: 42px;
}

.footer-brand span {
  font-size: 1.2rem;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.92rem;
  max-width: 260px;
}

.footer-col h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--gold-accent);
}

.footer-col p {
  font-size: 0.92rem;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.78);
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.social-icons a:hover {
  background: var(--gold-accent);
  color: var(--navy-deep);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-40 {
  margin-top: 40px;
}

.mb-0 {
  margin-bottom: 0 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 22px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  section {
    padding: 64px 0;
  }

  .cta-banner {
    padding: 44px 26px;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

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

  .form-card {
    padding: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ── Event announcement popup ── */
.event-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.event-popup.open {
  opacity: 1;
  visibility: visible;
}

.event-popup-card {
  position: relative;
  max-width: min(720px, 96vw);
  width: 100%;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.event-popup.open .event-popup-card {
  transform: translateY(0) scale(1);
}

.event-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-popup-close:hover {
  background: rgba(0, 0, 0, 0.75);
}

.event-popup-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  background: #f8fafc;
}

.event-popup-label {
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--faith-text);
  text-align: center;
  border-top: 1px solid #eef2f7;
}


/* Footer Address Single Line */
.footer-service-time,
.footer-address {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .footer-address {
    white-space: normal;
  }
}

/* ---------- Slogan Banner ---------- */
.slogan-banner {
  text-align: center;
  margin-top: 0;
  padding: 12px 0;
}

.slogan-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #12233f 0%, #2f80ed 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  line-height: 1.3;
}

.twinkle-star {
  color: #d4af37;
  -webkit-text-fill-color: #d4af37;
  font-size: 1.3rem;
  font-style: normal;
  display: inline-block;
  animation: twinkle 2s ease-in-out infinite alternate;
}

.twinkle-star:last-child {
  animation-delay: 1s;
}

@keyframes twinkle {
  0% {
    opacity: 0.35;
    transform: scale(0.85) rotate(0deg);
    filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.4));
  }

  50% {
    opacity: 1;
    transform: scale(1.35) rotate(15deg);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.95));
  }

  100% {
    opacity: 0.45;
    transform: scale(0.9) rotate(0deg);
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.5));
  }
}

.slogan-section {
  padding: 32px 0;
  background: transparent;
  border-top: none;
  border-bottom: none;
}

/* ---------- Black Framed Pastor Banner ---------- */
.pastor-banner-section {
  padding: 48px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  overflow: hidden;
}

.rainbow-frame-wrap,
.black-frame-wrap {
  display: inline-block;
  position: relative;
  padding: 10px;
  border-radius: 20px;
  background: #0b0f19; /* Classic Deep Black Photo Frame */
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px #1a2333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rainbow-frame-wrap:hover,
.black-frame-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -10px rgba(0, 0, 0, 0.55);
}

.rainbow-frame,
.black-frame {
  width: min(340px, 85vw);
  height: min(340px, 85vw);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  position: relative;
  border: 4px solid #ffffff; /* Clean white inner photo matting */
}

.rainbow-frame img,
.black-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}

.rainbow-frame:hover img,
.black-frame:hover img {
  transform: scale(1.04);
}

.pastor-title-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 4.2vw, 1.9rem);
  color: #0b1329;
  margin: 0;
  letter-spacing: 0.02em;
}

/* Senior Pastor photo frame on About page */
.leader-card:first-child .leader-photo {
  border: 5px solid #0b0f19;
  padding: 3px;
  background: #ffffff;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.35);
  border-radius: 18px;
}

/* ---------- Enhanced Universal Mobile & Tablet Responsiveness ---------- */
@media (max-width: 576px) {
  .brand-name {
    font-size: 1.15rem;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
  }

  .hero p.lead {
    font-size: 0.96rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }

  .rainbow-frame {
    width: min(280px, 80vw);
    height: min(280px, 80vw);
  }

  .value-card {
    flex-direction: column;
    padding: 20px;
  }

  .form-card {
    padding: 20px 16px;
  }

  .slogan-text {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
    gap: 8px;
  }
}