/*
Theme Name: Faithful 1 — Building Bridges to Hope
Template: twentytwentyfive
Version: 1.0.0
Description: Child theme for Faithful 1, Inc. Applies brand colors (navy #1B3A6B, gold #C9A84C) and typography refinements.
Author: Samuel Gbli Tetteh
*/

/* ── Global custom properties ── */
:root {
  --f1-navy: #1b3a6b;
  --f1-gold: #c9a84c;
  --f1-cream: #e8d5a3;
  --f1-light: #f4f6fa;
  --f1-white: #ffffff;
  --f1-text: #2a2a2a;
}

/* ── Body / base ── */
body {
  color: var(--f1-text);
}

/* ── Site header ── */
.wp-block-template-part[data-slug="header"],
header.wp-block-template-part {
  background-color: var(--f1-navy);
}

.wp-block-site-title a,
.wp-block-site-title {
  color: var(--f1-white) !important;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.wp-block-navigation a,
.wp-block-navigation .wp-block-navigation-item__content {
  color: var(--f1-white) !important;
}

.wp-block-navigation a:hover {
  color: var(--f1-gold) !important;
}

/* ── Primary buttons ── */
.wp-block-button .wp-element-button,
.wp-block-button__link {
  background-color: var(--f1-gold);
  color: var(--f1-navy);
  font-weight: 700;
  border-radius: 6px;
  border: none;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease;
}

.wp-block-button .wp-element-button:hover,
.wp-block-button__link:hover {
  background-color: #b8932e;
  transform: translateY(-1px);
}

/* ── Outlined buttons ── */
.wp-block-button.is-style-outline .wp-element-button,
.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent;
  color: var(--f1-navy);
  border: 2px solid var(--f1-navy);
}

.wp-block-button.is-style-outline .wp-element-button:hover {
  background-color: var(--f1-navy);
  color: var(--f1-white);
}

/* ── Headings ── */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--f1-navy);
}

/* ── Links ── */
a {
  color: var(--f1-navy);
}
a:hover {
  color: var(--f1-gold);
}

/* ── Separator / HR ── */
.wp-block-separator {
  border-color: var(--f1-gold);
  color: var(--f1-gold);
}

/* ── Card hover lift ── */
.wp-block-column[style*="border-radius"] {
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.wp-block-column[style*="border-radius"]:hover {
  box-shadow: 0 6px 24px rgba(27, 58, 107, 0.12);
  transform: translateY(-3px);
}

/* ── Details / FAQ accordion ── */
.wp-block-details {
  cursor: pointer;
}
.wp-block-details summary {
  color: var(--f1-navy);
  font-size: 1.05rem;
  font-weight: 700;
  list-style: none;
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wp-block-details summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--f1-gold);
  transition: transform 0.2s ease;
}
.wp-block-details[open] summary::after {
  transform: rotate(45deg);
}
.wp-block-details p {
  padding: 0 0 1.2rem;
  color: #444;
}

/* ── Footer ── */
.wp-block-template-part[data-slug="footer"] {
  background-color: var(--f1-navy);
  color: var(--f1-white);
}
.wp-block-template-part[data-slug="footer"] a {
  color: var(--f1-cream);
}
.wp-block-template-part[data-slug="footer"] a:hover {
  color: var(--f1-gold);
}

/* ── Responsive tweaks ── */
@media (max-width: 768px) {
  .wp-block-columns.alignwide {
    flex-direction: column;
  }
  .wp-block-column {
    flex-basis: 100% !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   FAITHFUL 1 — FOOTER STYLES
   ══════════════════════════════════════════════════════════════════ */

/* All four columns must start at the top — prevents col 4 from
   drifting down when WordPress stretches column heights */
.wp-block-template-part[data-slug="footer"] .wp-block-columns {
  align-items: flex-start;
}

/* Strip the default margin WordPress adds to the shortcode block
   wrapper inside col 4 — this was pushing "A Word of Hope" down */
.wp-block-template-part[data-slug="footer"] .wp-block-shortcode {
  margin: 0 !important;
  padding: 0 !important;
}

/* Footer link hover — gold on hover, smooth transition */
.wp-block-template-part[data-slug="footer"] a,
footer a {
  color: #e8d5a3;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wp-block-template-part[data-slug="footer"] a:hover,
footer a:hover {
  color: #c9a84c !important;
}

/* Override global link colour inside footer */
.wp-block-template-part[data-slug="footer"] p a {
  color: inherit;
}

/* Gold accent phone & email links */
.wp-block-template-part[data-slug="footer"] a[href^="tel:"],
.wp-block-template-part[data-slug="footer"] a[href^="mailto:"] {
  color: #c9a84c;
}

.wp-block-template-part[data-slug="footer"] a[href^="tel:"]:hover,
.wp-block-template-part[data-slug="footer"] a[href^="mailto:"]:hover {
  color: #e8d5a3 !important;
}

/* Donate button in footer — keep gold styling */
.wp-block-template-part[data-slug="footer"] .wp-block-button__link {
  background-color: #c9a84c;
  color: #1b3a6b;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease;
}

.wp-block-template-part[data-slug="footer"] .wp-block-button__link:hover {
  background-color: #b8932e;
  color: #1b3a6b !important;
  transform: translateY(-1px);
}

/* ── Word of Hope component ─────────────────────────────────────── */

/* Section label */
.f1-woh-label {
  display: block;
  color: #c9a84c;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

/* Fade transition — applied by JS when rotating */
#f1-word-of-hope .f1-woh-body {
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}
#f1-word-of-hope.f1-woh-fading .f1-woh-body {
  opacity: 0;
  transform: translateY(8px);
}

/* Gold left-border quote block */
.f1-woh-quote {
  padding: 0 0 0 1rem;
  border-left: 3px solid #c9a84c;
  margin-bottom: 1.5rem;
}

/* Opening quotation mark */
.f1-woh-open-quote {
  display: block;
  color: #c9a84c;
  font-size: 2.6rem;
  line-height: 0.6;
  margin-bottom: 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  opacity: 0.7;
}

/* Scripture body — white for maximum legibility on navy */
.f1-woh-text {
  color: #ffffff;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.8;
  margin: 0 0 0.75rem;
}

/* Bible reference */
.f1-woh-ref {
  color: #c9a84c;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
}

/* "We believe in a place called Hope" card */
.f1-woh-belief {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
}
.f1-woh-belief-title {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  line-height: 1.4;
}
.f1-woh-belief-sub {
  color: #c8d8ec;
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════
   FAITHFUL 1 — HERO SLIDESHOW
   Images live in: wp-content/uploads/faithful1-hero/
   ══════════════════════════════════════════════════════════════════ */

/* Each slide sits behind the overlay and inner content */
.f1-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  transition: opacity 2.5s ease-in-out;
  opacity: 0;
  z-index: 0;
}

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

/* Clip slides to the cover block boundary */
.wp-block-cover.alignfull.f1-hero-has-slideshow {
  overflow: hidden;
}

/* Reduce the dark overlay so photos are clearly visible
   while keeping the text fully readable */
.f1-hero-has-slideshow .wp-block-cover__background {
  opacity: 0.68 !important;
  z-index: 1;
}

/* Text and buttons always float above both slides and overlay */
.f1-hero-has-slideshow .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}

/* ══════════════════════════════════════════════════════════════════
   FAITHFUL 1 — LEADERSHIP PHOTO CARDS
   ══════════════════════════════════════════════════════════════════ */

/* Responsive 4-column grid */
.f1-leadership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 0 0 1rem;
}

/* ── 3-column portrait cards: large photo on top, text panel below ── */
.f1-leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 0;
}

/* Center the lone 7th card in column 2 */
.f1-leadership-grid .f1-leader-card:last-child:nth-child(3n + 1) {
  grid-column: 2;
}

/* Card shell */
.f1-leader-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(27, 58, 107, 0.1);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.f1-leader-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(27, 58, 107, 0.2);
}

/* Photo area — tall, face-cropped */
.f1-leader-photo-wrap {
  width: 100%;
  height: 320px;
  overflow: hidden;
  flex-shrink: 0;
}

.f1-leader-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.f1-leader-card:hover .f1-leader-photo {
  transform: scale(1.05);
}

/* Text panel — navy left border accent */
.f1-leader-info {
  padding: 1.5rem 1.6rem 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 4px solid #c9a84c;
}

/* Name */
.f1-leader-name {
  color: #1b3a6b;
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

/* Placeholder bio — replace via WP Admin > Pages > Leadership & Team */
.f1-leader-bio {
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 1.1rem;
  flex: 1;
}

/* Role title */
.f1-leader-title {
  display: inline-block;
  color: #1b3a6b;
  background: #f0f4ff;
  border: 1px solid #c9a84c;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  margin: 0;
  align-self: flex-start;
}

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .f1-leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .f1-leadership-grid .f1-leader-card:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }
  .f1-leadership-grid .f1-leader-card:last-child:nth-child(odd) {
    grid-column: 1 / 3;
    justify-self: center;
    width: calc(50% - 1rem);
  }
}

/* Mobile: single column */
@media (max-width: 520px) {
  .f1-leadership-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .f1-leadership-grid .f1-leader-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
    justify-self: auto;
  }
  .f1-leader-photo-wrap {
    height: 260px;
  }
}

/* Founder photo in the bio section */
.f1-founder-photo {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 8px 32px rgba(27, 58, 107, 0.18);
}

/* ══════════════════════════════════════════════════════════════════
   FAITHFUL 1 — NAVIGATION: ONE LINE + DROPDOWN
   ══════════════════════════════════════════════════════════════════ */

/* Force all top-level items onto a single line */
.wp-block-navigation > .wp-block-navigation__container {
  flex-wrap: nowrap !important;
  white-space: nowrap;
}

/* Tighten item padding so 8 labels fit comfortably */
.wp-block-navigation-item__content {
  padding-left: 0.65rem !important;
  padding-right: 0.65rem !important;
  font-size: 0.9rem !important;
  white-space: nowrap;
}

/* ── Dropdown submenu panel ── */
.wp-block-navigation .wp-block-navigation__submenu-container {
  background-color: #1b3a6b !important;
  border-top: 3px solid #c9a84c;
  border-radius: 0 0 8px 8px;
  min-width: 220px;
  padding: 0.4rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Submenu items */
.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  color: #e8d5a3 !important;
  font-size: 0.88rem !important;
  padding: 0.65rem 1.1rem !important;
  display: block;
  white-space: nowrap;
}

.wp-block-navigation__submenu-container
  .wp-block-navigation-item__content:hover {
  color: #c9a84c !important;
  background-color: rgba(255, 255, 255, 0.08);
}

/* "Programs" parent — show chevron */
.wp-block-navigation-item.has-child > .wp-block-navigation-item__content {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ══════════════════════════════════════════════════════════════════
   FAITHFUL 1 — MEDIA HUB (Photos & Videos landing page)
   ══════════════════════════════════════════════════════════════════ */

.f1-media-hub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 55vh;
}

.f1-media-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 5rem 4rem;
  position: relative;
  overflow: hidden;
  transition: filter 0.3s ease;
}

.f1-media-card:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

/* Photos card — dark navy */
.f1-media-card--photos {
  background: #1b3a6b;
  color: #ffffff;
}

.f1-media-card--photos .f1-media-card__bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.07) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
}

.f1-media-card--photos .f1-media-card__title {
  color: #ffffff;
}
.f1-media-card--photos .f1-media-card__desc {
  color: #c8d8ec;
}
.f1-media-card--photos .f1-media-card__btn {
  background: #c9a84c;
  color: #1b3a6b;
}
.f1-media-card--photos .f1-media-card__btn:hover {
  background: #b8932e;
}

/* Videos card — cream/light */
.f1-media-card--videos {
  background: #f4f6fa;
  color: #1b3a6b;
}

.f1-media-card--videos .f1-media-card__title {
  color: #1b3a6b;
}
.f1-media-card--videos .f1-media-card__desc {
  color: #4a5568;
}
.f1-media-card--videos .f1-media-card__btn {
  background: #1b3a6b;
  color: #ffffff;
}
.f1-media-card--videos .f1-media-card__btn:hover {
  background: #152e58;
}

/* Card inner layout */
.f1-media-card__inner {
  position: relative;
  z-index: 1;
  max-width: 380px;
  text-align: center;
}

.f1-media-card__icon {
  display: inline-flex;
  margin-bottom: 1.8rem;
  transition: transform 0.35s ease;
}

.f1-media-card:hover .f1-media-card__icon {
  transform: scale(1.1) translateY(-4px);
}

.f1-media-card__title {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.15;
  /* override global h2 colour */
  color: inherit;
}

.f1-media-card__desc {
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 2rem;
}

.f1-media-card__btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease;
}

.f1-media-card:hover .f1-media-card__btn {
  transform: translateX(4px);
}

@media (max-width: 700px) {
  .f1-media-hub {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .f1-media-card {
    padding: 4rem 2rem;
    min-height: 320px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   FAITHFUL 1 — PHOTO CAROUSEL
   ══════════════════════════════════════════════════════════════════ */

/* Carousel wrapper — full width, dark bg */
.f1-photo-carousel {
  width: 100%;
  user-select: none;
}

/* Stage: arrow + slides + arrow in a row */
.f1-gallery-stage {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

/* Arrow buttons */
.f1-gallery-arrow {
  flex-shrink: 0;
  width: 56px;
  background: rgba(201, 168, 76, 0.12);
  border: none;
  color: #c9a84c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  padding: 0;
}

.f1-gallery-arrow:hover {
  background: #c9a84c;
  color: #1b3a6b;
}

/* Slides viewport */
.f1-gallery-slides-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.f1-gallery-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual slide */
.f1-gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.f1-gallery-slide.f1-active {
  opacity: 1;
}

.f1-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* show full photo without cropping */
  display: block;
}

/* Counter + expand row */
.f1-gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.2rem;
  background: rgba(0, 0, 0, 0.35);
}

.f1-gallery-counter {
  color: #e8d5a3;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.f1-gallery-expand {
  background: transparent;
  border: none;
  color: #c9a84c;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.f1-gallery-expand:hover {
  color: #e8d5a3;
}

/* Thumbnail strip */
.f1-gallery-thumbs {
  display: flex;
  gap: 6px;
  padding: 12px 0 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c9a84c #1b3a6b;
}

.f1-gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}
.f1-gallery-thumbs::-webkit-scrollbar-track {
  background: #0d1f3d;
}
.f1-gallery-thumbs::-webkit-scrollbar-thumb {
  background: #c9a84c;
  border-radius: 2px;
}

.f1-gallery-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 56px;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: #0d1f3d;
  transition:
    border-color 0.2s ease,
    opacity 0.2s ease;
  opacity: 0.55;
}

.f1-gallery-thumb.f1-active,
.f1-gallery-thumb:hover {
  border-color: #c9a84c;
  opacity: 1;
}

.f1-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Empty state */
.f1-gallery-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #e8d5a3;
}

.f1-gallery-empty h3 {
  color: #c9a84c;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.f1-gallery-empty p {
  color: #9ab3d0;
  margin-bottom: 0.75rem;
}

.f1-gallery-empty code {
  background: rgba(201, 168, 76, 0.12);
  color: #c9a84c;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.88rem;
}

.f1-gallery-empty__tip {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: #7a9ab8;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  padding-top: 1.2rem;
}

@media (max-width: 600px) {
  .f1-gallery-arrow {
    width: 40px;
  }
  .f1-gallery-thumb {
    width: 60px;
    height: 44px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   FAITHFUL 1 — LIGHTBOX
   ══════════════════════════════════════════════════════════════════ */

.f1-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.f1-lightbox[hidden] {
  display: none;
}

.f1-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
}

/* Prevent body scroll while lightbox open */
body.f1-lb-open {
  overflow: hidden;
}

/* Close button */
.f1-lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.f1-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Prev / Next */
.f1-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.f1-lightbox__nav:hover {
  background: rgba(201, 168, 76, 0.5);
}
.f1-lightbox__prev {
  left: 1.5rem;
}
.f1-lightbox__next {
  right: 1.5rem;
}

/* Image */
.f1-lightbox__img-wrap {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1200px);
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.f1-lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

/* Counter */
.f1-lightbox__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #e8d5a3;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

@media (max-width: 600px) {
  .f1-lightbox__nav {
    width: 44px;
    height: 44px;
  }
  .f1-lightbox__prev {
    left: 0.5rem;
  }
  .f1-lightbox__next {
    right: 0.5rem;
  }
}

/* ══════════════════════════════════════════════════════════════════
   FAITHFUL 1 — VIDEO GALLERY
   ══════════════════════════════════════════════════════════════════ */

/* Category grouping wrapper */
.f1-video-gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.f1-video-category__heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  font-size: 0;
}

.f1-video-category__heading::before,
.f1-video-category__heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #d0d8e8;
}

.f1-video-category__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1b3a6b;
  white-space: nowrap;
  padding: 0 0.25rem;
}

.f1-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Video card */
.f1-video-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(27, 58, 107, 0.09);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.f1-video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(27, 58, 107, 0.18);
}

/* Thumbnail area — 16:9 */
.f1-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1b3a6b;
  cursor: pointer;
}

.f1-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.f1-video-card:hover .f1-video-thumb img {
  transform: scale(1.04);
}

/* Play icon overlay — decorative; whole card is the click target */
.f1-video-card--active { cursor: pointer; }

.f1-video-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
  transition: background-color 0.2s ease;
}

.f1-video-card--active:hover .f1-video-play-icon {
  background: rgba(0, 0, 0, 0.38);
}

.f1-video-play-icon svg {
  width: 62px;
  height: 62px;
  padding: 16px 14px 16px 18px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.92);
  transition: transform 0.25s ease, background-color 0.25s ease;
  flex-shrink: 0;
}

.f1-video-card--active:hover .f1-video-play-icon svg {
  transform: scale(1.12);
  background: #c9a84c;
}

/* Placeholder "Coming Soon" card */
.f1-video-card--placeholder .f1-video-thumb {
  cursor: default;
  background: linear-gradient(135deg, #1b3a6b 0%, #0d1f3d 100%);
}

.f1-video-soon-badge {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #c9a84c;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  gap: 0.25rem;
}

/* Loaded iframe */
.f1-video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Video info panel */
.f1-video-info {
  padding: 1.2rem 1.4rem 1.5rem;
  border-top: 3px solid #c9a84c;
}

.f1-video-title {
  color: #1b3a6b;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.f1-video-desc {
  color: #4a5568;
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 900px) {
  .f1-video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 560px) {
  .f1-video-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ══════════════════════════════════════════════════════════════════
   FAITHFUL 1 — VIDEO THEATER LIGHTBOX
   ══════════════════════════════════════════════════════════════════ */

.f1-video-lb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0 1rem; /* vertical only — nav buttons are absolute */
}

.f1-video-lb[hidden] { display: none; }

.f1-video-lb__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
}

.f1-video-lb__content {
  position: relative;
  z-index: 1;
  width: min(92vw, 1280px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.f1-video-lb__title {
  color: #e8d5a3;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  line-height: 1.3;
}

.f1-video-lb__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(82vh - 4rem); /* match photo lightbox 82vh, minus title/desc */
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.f1-video-lb__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.f1-video-lb__desc {
  color: #7a9ab8;
  font-size: 0.82rem;
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.f1-video-lb__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.f1-video-lb__close:hover { background: rgba(255, 255, 255, 0.22); }

.f1-video-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.f1-video-lb__nav:hover { background: rgba(201, 168, 76, 0.45); }
.f1-video-lb__prev { left: 1rem; }
.f1-video-lb__next { right: 1rem; }

.f1-video-lb__counter {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #e8d5a3;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
}

@media (max-width: 700px) {
  .f1-video-lb { padding: 1rem 0.5rem; }
  .f1-video-lb__nav { width: 40px; height: 40px; }
  .f1-video-lb__prev { left: 0.3rem; }
  .f1-video-lb__next { right: 0.3rem; }
}

/* Footer mobile: stack columns, center-align content */
@media (max-width: 768px) {
  .wp-block-template-part[data-slug="footer"] .wp-block-columns {
    flex-direction: column;
  }
  .wp-block-template-part[data-slug="footer"] .wp-block-column {
    flex-basis: 100% !important;
    text-align: left !important;
  }
  .wp-block-template-part[data-slug="footer"]
    .wp-block-column
    p.has-text-align-right {
    text-align: left !important;
  }
  /* Bottom bar stacks vertically on mobile */
  .wp-block-template-part[data-slug="footer"]
    .wp-block-group[style*="background-color:#132754"]
    .wp-block-columns {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ══════════════════════════════════════════════════════════════════
   FAITHFUL 1 — DESIGN REFRESH
   Editorial cards: no boxes, no shadows — a thin gold rule above
   each item and clean typography carry the structure.
   ══════════════════════════════════════════════════════════════════ */

/* Content cards built from column blocks (inline-styled in page content) */
.wp-block-column[style*="border-radius:10px"],
.wp-block-column[style*="border-radius:8px"] {
  background: transparent !important;
  border: 0 !important;
  border-top: 2px solid #c9a84c !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 1.5rem 0 0 !important;
}

.wp-block-column[style*="border-radius:10px"] h3 {
  margin-top: 0;
  letter-spacing: -0.01em;
}

.wp-block-column[style*="border-radius:10px"] p {
  color: #4a5568;
  line-height: 1.7;
}

/* Cards on navy backgrounds keep light text */
.wp-block-column[style*="border-radius:8px"] p {
  line-height: 1.7;
}

/* "Learn More" outline buttons → understated text links */
.wp-block-column[style*="border-radius:10px"] .wp-block-button.is-style-outline .wp-block-button__link {
  border: 0 !important;
  padding: 0 !important;
  background: none !important;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #c9a84c;
  text-underline-offset: 4px;
}

/* Leadership cards — flat, no lift or zoom */
.f1-leader-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transition: none;
}

.f1-leader-card:hover {
  transform: none;
  box-shadow: none;
}

.f1-leader-info {
  padding: 1.25rem 0 0;
  border-top: 0;
}

.f1-leader-title {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #8a6d1f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Gray placeholder until the correct portraits are supplied */
.f1-photo-placeholder {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: linear-gradient(180deg, #d9dce1 0%, #c4c8cf 100%);
}

.f1-photo-placeholder span {
  padding: 0.9rem 1rem;
  color: #5f6670;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.f1-photo-placeholder--founder {
  aspect-ratio: 4 / 5;
  min-height: 0;
}

/* Media hub — no icon, slightly tighter card */
.f1-media-card {
  padding: 4.5rem 4rem;
}

/* Media galleries — "coming soon" notice (see F1_MEDIA_COMING_SOON) */
.f1-coming-soon {
  max-width: 640px;
  margin: 2rem auto;
  padding: 3rem 0;
  border-top: 2px solid #c9a84c;
  border-bottom: 1px solid #e2e6ee;
  text-align: center;
}

.f1-coming-soon__eyebrow {
  margin: 0 0 0.75rem;
  color: #8a6d1f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.f1-coming-soon__title {
  margin: 0 0 1.25rem;
  color: #1b3a6b;
  font-size: 2rem;
  font-weight: 700;
}

.f1-coming-soon__text {
  margin: 0 auto 1rem;
  color: #4a5568;
  line-height: 1.75;
}

.f1-coming-soon__link {
  display: inline-block;
  margin-top: 1rem;
  color: #1b3a6b;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #c9a84c;
  text-underline-offset: 4px;
}

/* ══════════════════════════════════════════════════════════════════
   FAITHFUL 1 — PROFESSIONAL POLISH
   ══════════════════════════════════════════════════════════════════ */

/* ── Type scale: one consistent set of sizes across every page ── */
main p {
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Centered h3s are the large statistic numbers — leave those alone. */
main h3.wp-block-heading:not(.has-text-align-center) {
  font-size: 1.3rem !important;
  line-height: 1.3;
}

main .wp-block-column p {
  font-size: 1rem;
}

/* ── Header wordmark ── */
header .wp-block-site-title a {
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* ── Navigation: Donate as a button ── */
.wp-block-navigation .f1-nav-donate > a {
  background: #c9a84c;
  color: #1b3a6b !important;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: 4px;
}

.wp-block-navigation .f1-nav-donate > a:hover {
  background: #b8932e;
}

/* ── Programs & Services: headings and columns share one column width ── */
.f1-page-programs-and-services main .is-layout-constrained > .wp-block-heading,
.f1-page-programs-and-services main .is-layout-constrained > p,
.f1-page-programs-and-services main .is-layout-constrained > .wp-block-columns {
  max-width: 1080px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.f1-page-programs-and-services main .wp-block-columns {
  column-gap: 4rem;
  row-gap: 0.5rem;
}

/* ── Leadership grid: 6 cards in 2 even rows ── */
.f1-leadership-grid .f1-leader-card:last-child:nth-child(3n + 1) {
  grid-column: auto;
}

/* ── Hero without photos: solid navy instead of a tinted white ── */
.wp-block-cover:not(.f1-hero-has-slideshow) > .wp-block-cover__background {
  opacity: 1;
}

/* ── Founder placeholder: portrait proportions, not full column height ── */
.f1-photo-placeholder--founder {
  max-width: 360px;
}

/* ── No white strip between the header and each page's banner ── */
main > .wp-block-group.alignfull:first-child {
  padding-top: 0 !important;
}

/* ── Every page: in a section that has wide columns, the heading and intro
      line up with those columns instead of sitting in a narrower column ── */
main .is-layout-constrained:has(> .wp-block-columns.alignwide) > :is(.wp-block-heading:not(.has-text-align-center), p:not(.has-text-align-center)) {
  max-width: var(--wp--style--global--wide-size) !important;
}

/* Lists use the same size as paragraphs */
main li {
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ── Card photos (home "How We Help") ── */
.f1-card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: -1.5rem 0 1.5rem; /* sit above the gold rule */
}

/* With a photo, the gold rule moves below the image */
.wp-block-column:has(> .f1-card-photo) {
  border-top: 0 !important;
  padding-top: 0 !important;
}

.wp-block-column:has(> .f1-card-photo) > .f1-card-photo {
  margin: 0 0 1.25rem;
  border-bottom: 3px solid #c9a84c;
}

.wp-block-column > img.f1-card-photo {
  height: auto !important;
  max-height: none;
  aspect-ratio: 3 / 2 !important;
}

/* ══════════════════════════════════════════════════════════════════
   FAITHFUL 1 — ANIMATED HOME BANNER
   Slow zoom-and-drift on each photo (alternating directions), a gentle
   rise-in for the headline, and slideshow controls. All motion is
   switched off for visitors who ask their device to reduce motion.
   ══════════════════════════════════════════════════════════════════ */

.f1-hero-slide {
  transition: opacity 1.8s ease-in-out;
  will-change: opacity, transform;
}

.f1-hero-animate .f1-hero-slide.f1-active {
  animation: f1-drift-0 9s ease-out both;
}
.f1-hero-animate .f1-hero-slide.f1-drift-1.f1-active { animation-name: f1-drift-1; }
.f1-hero-animate .f1-hero-slide.f1-drift-2.f1-active { animation-name: f1-drift-2; }
.f1-hero-animate .f1-hero-slide.f1-drift-3.f1-active { animation-name: f1-drift-3; }

@keyframes f1-drift-0 { from { transform: scale(1.14) translate(-2%, 1%); }  to { transform: scale(1.02) translate(0, 0); } }
@keyframes f1-drift-1 { from { transform: scale(1.02) translate(0, 0); }     to { transform: scale(1.14) translate(2%, -1%); } }
@keyframes f1-drift-2 { from { transform: scale(1.14) translate(2%, -1%); }  to { transform: scale(1.02) translate(0, 0); } }
@keyframes f1-drift-3 { from { transform: scale(1.02) translate(0, 0); }     to { transform: scale(1.14) translate(-2%, 1%); } }

/* Headline, intro and buttons rise in one after another on page load */
.f1-hero-animate .wp-block-cover__inner-container > * {
  animation: f1-rise 1s cubic-bezier(.2, .7, .2, 1) both;
}
.f1-hero-animate .wp-block-cover__inner-container > :nth-child(2) { animation-delay: .2s; }
.f1-hero-animate .wp-block-cover__inner-container > :nth-child(3) { animation-delay: .4s; }

@keyframes f1-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ── Controls: ‹ ● ● ● › ❚❚ along the bottom of the banner ── */
.f1-hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.f1-hero-controls button {
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #ffffff;
  background: transparent;
  font: inherit;
  line-height: 1;
}

.f1-hero-controls button:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 3px;
}

.f1-hero-prev,
.f1-hero-next {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  font-size: 1.4rem !important;
  transition: background-color 0.2s ease;
}

.f1-hero-prev:hover,
.f1-hero-next:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

.f1-hero-dots {
  display: flex;
  gap: 0.5rem;
}

.f1-hero-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45) !important;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.f1-hero-dot[aria-current="true"] {
  width: 1.6rem;
  border-radius: 0.3rem;
  background: #c9a84c !important;
}

/* Pause button draws ❚❚, or ▶ when paused */
.f1-hero-pause {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: 0.25rem;
}

.f1-hero-pause::before,
.f1-hero-pause::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 3px;
  height: 12px;
  margin-top: -6px;
  background: #ffffff;
}

.f1-hero-pause::before { left: calc(50% - 5px); }
.f1-hero-pause::after  { left: calc(50% + 2px); }

.f1-hero-pause.is-paused::before {
  left: calc(50% - 3px);
  width: 0;
  height: 0;
  margin-top: -7px;
  background: none;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #ffffff;
}

.f1-hero-pause.is-paused::after {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .f1-hero-slide {
    transition: none;
  }
}

/* ── Phone menu button: white on the navy header ── */
.wp-block-navigation__responsive-container-open {
  color: #ffffff;
}
