/*
 * TPFC 2026 — Complete Design System
 * CAAVD-inspired layout + Indigenous cultural styling
 * ────────────────────────────────────────
 */

/* ═══════════════════════════════════════
   LAYER 0: CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════ */
:root {
  /* ─── Backgrounds ─── */
  --tpfc-bg: #FFFFFF;
  --tpfc-bg-alt: #f8f6f3;
  --tpfc-bg-warm: #faf8f5;
  --tpfc-bg-dark: #1a1a2e;
  --tpfc-bg-card: #FFFFFF;

  /* ─── Accent Colors ─── */
  --tpfc-accent: #D4663A;
  --tpfc-accent-hover: #B5512B;
  --tpfc-accent-light: rgba(212, 102, 58, 0.1);
  --tpfc-deep: #1a1a2e;
  --tpfc-deep-light: #232342;
  --tpfc-gold: #C8973E;
  --tpfc-gold-light: rgba(200, 151, 62, 0.15);
  --tpfc-turquoise: #2a9d8f;
  --tpfc-turquoise-hover: #21867a;
  --tpfc-turquoise-light: rgba(42, 157, 143, 0.1);
  --tpfc-ochre: #C4883A;
  --tpfc-brown: #5A3E2B;

  /* ─── Drawer ─── */
  --tpfc-drawer-bg: #1a1a2e;
  --tpfc-drawer-ink: #f0ede8;

  /* ─── Text ─── */
  --tpfc-ink: #1A1412;
  --tpfc-ink-soft: #4a4a5a;
  --tpfc-ink-muted: #8a8a9a;
  --tpfc-ink-on-dark: #f0ede8;

  --tpfc-hover-text-light: #f0ede8;
  --tpfc-hover-text-dark: #111827;
  --tpfc-adaptive-hover-color: var(--tpfc-hover-text-dark);

  /* ─── Lines ─── */
  --tpfc-line: rgba(26, 26, 46, 0.08);
  --tpfc-line-warm: #eae0d9;

  /* ─── Typography ─── */
  --tpfc-font-heading: 'Josefin Sans', 'Playfair Display', serif;
  --tpfc-font-body: 'DM Sans', 'Roboto', sans-serif;

  --tpfc-font-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --tpfc-font-sm: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
  --tpfc-font-base: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  --tpfc-font-lg: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  --tpfc-font-xl: clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem);
  --tpfc-font-2xl: clamp(1.6rem, 1.4rem + 0.8vw, 2.2rem);
  --tpfc-font-3xl: clamp(2rem, 1.6rem + 1.4vw, 3rem);
  --tpfc-font-4xl: clamp(2.4rem, 1.8rem + 2vw, 3.8rem);

  /* ─── Spacing ─── */
  --tpfc-space-xs: clamp(0.25rem, 0.2rem + 0.1vw, 0.35rem);
  --tpfc-space-sm: clamp(0.5rem, 0.4rem + 0.2vw, 0.75rem);
  --tpfc-space-md: clamp(1rem, 0.8rem + 0.5vw, 1.25rem);
  --tpfc-space-lg: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --tpfc-space-xl: clamp(2.5rem, 2rem + 1.5vw, 3.5rem);
  --tpfc-space-2xl: clamp(4rem, 3rem + 2.5vw, 5rem);
  --tpfc-space-3xl: clamp(6rem, 4rem + 4vw, 8rem);
  --tpfc-section-pad: clamp(3rem, 2.5rem + 3vw, 6rem);

  /* ─── Layout ─── */
  --tpfc-container: calc(100vw - 6vw);
  --tpfc-container-wide: calc(100vw - 4vw);
  --tpfc-radius: 8px;
  --tpfc-radius-lg: 16px;
  --tpfc-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --tpfc-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
  --tpfc-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --tpfc-duration: 300ms;

  --fluentform-primary: #D4663A;
}

/* ═══════════════════════════════════════
   LAYER 1: GLOBAL RESET
   ═══════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--tpfc-font-body);
  font-size: var(--tpfc-font-base);
  line-height: 1.7;
  color: var(--tpfc-ink);
  background: var(--tpfc-bg);
}

a {
  color: var(--tpfc-accent);
  text-decoration: none;
  -webkit-transition: color var(--tpfc-duration) var(--tpfc-ease), background-color var(--tpfc-duration) var(--tpfc-ease), opacity var(--tpfc-duration) var(--tpfc-ease), -webkit-transform var(--tpfc-duration) var(--tpfc-ease);
  transition: color var(--tpfc-duration) var(--tpfc-ease), background-color var(--tpfc-duration) var(--tpfc-ease), opacity var(--tpfc-duration) var(--tpfc-ease), transform var(--tpfc-duration) var(--tpfc-ease);
}

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

ul,
ol {
  list-style: none;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--tpfc-font-heading) !important;
  font-weight: 700 !important;
  color: var(--tpfc-deep);
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--tpfc-font-4xl);
}

h2 {
  font-size: var(--tpfc-font-3xl);
}

h3 {
  font-size: var(--tpfc-font-2xl);
}

h4 {
  font-size: var(--tpfc-font-xl);
}

p {
  margin-bottom: 1rem;
  color: var(--tpfc-ink-soft);
  text-align: left;
  hyphens: auto;
}

/* Justify long-form body copy only (not every paragraph). */
.tpfc-main .entry-content > p,
.tpfc-main .entry-content .wp-block-paragraph,
.tpfc-main .tpfc-content-section p,
.tpfc-main .tpfc-about-content p,
.tpfc-main .tpfc-donate-content p,
.tpfc-main .tpfc-mission-block p,
.tpfc-main .tpfc-home-video__copy p,
.tpfc-main .tpfc-home-news__feature-card p,
.tpfc-main .tpfc-home-cta__panel p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ═══════════════════════════════════════
   LAYER 2: CONTAINERS
   ═══════════════════════════════════════ */
.tpfc-container {
  width: var(--tpfc-container);
  margin: 0 auto;
  max-width: 100%;
}

.tpfc-container--wide {
  width: var(--tpfc-container-wide);
  margin: 0 auto;
  max-width: 100%;
}

.tpfc-container--full {
  width: 100%;
  max-width: 100% !important;
  margin: 0;
  padding: 0 4vw;
}

.tpfc-site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.tpfc-main {
  flex: 1;
}

/* Splash screen shown before transitions start */
.tpfc-splash {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090d15;
  /* Keep splash visual-only so it never blocks nav interactions. */
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  -webkit-transition: opacity 420ms var(--tpfc-ease), visibility 420ms var(--tpfc-ease);
  transition: opacity 420ms var(--tpfc-ease), visibility 420ms var(--tpfc-ease);
}

.tpfc-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tpfc-splash__logo-wrap {
  display: grid;
  place-items: center;
}

.tpfc-splash__logo {
  width: clamp(132px, 13vw, 192px);
  height: auto;
  object-fit: contain;
  -webkit-filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.28)) drop-shadow(0 0 34px rgba(212, 102, 58, 0.48));
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.28)) drop-shadow(0 0 34px rgba(212, 102, 58, 0.48));
  -webkit-animation: tpfc-splash-logo-glow 2.2s ease-in-out infinite;
  animation: tpfc-splash-logo-glow 2.2s ease-in-out infinite;
}

.tpfc-splash__logo-fallback {
  font-family: var(--tpfc-font-heading);
  font-size: clamp(1.45rem, 1.2rem + 0.95vw, 2.15rem);
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.34), 0 0 26px rgba(212, 102, 58, 0.45);
  -webkit-animation: tpfc-splash-logo-glow-fallback 2.2s ease-in-out infinite;
  animation: tpfc-splash-logo-glow-fallback 2.2s ease-in-out infinite;
}

@-webkit-keyframes tpfc-splash-logo-glow {
  0%,
  100% {
    -webkit-filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2)) drop-shadow(0 0 20px rgba(212, 102, 58, 0.32));
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2)) drop-shadow(0 0 20px rgba(212, 102, 58, 0.32));
    -webkit-transform: scale(0.99);
    transform: scale(0.99);
  }
  50% {
    -webkit-filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.32)) drop-shadow(0 0 38px rgba(212, 102, 58, 0.58));
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.32)) drop-shadow(0 0 38px rgba(212, 102, 58, 0.58));
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
  }
}

@keyframes tpfc-splash-logo-glow {
  0%,
  100% {
    -webkit-filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2)) drop-shadow(0 0 20px rgba(212, 102, 58, 0.32));
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2)) drop-shadow(0 0 20px rgba(212, 102, 58, 0.32));
    -webkit-transform: scale(0.99);
    transform: scale(0.99);
  }
  50% {
    -webkit-filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.32)) drop-shadow(0 0 38px rgba(212, 102, 58, 0.58));
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.32)) drop-shadow(0 0 38px rgba(212, 102, 58, 0.58));
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
  }
}

@-webkit-keyframes tpfc-splash-logo-glow-fallback {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.22), 0 0 20px rgba(212, 102, 58, 0.35);
  }
  50% {
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.34), 0 0 30px rgba(212, 102, 58, 0.55);
  }
}

@keyframes tpfc-splash-logo-glow-fallback {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.22), 0 0 20px rgba(212, 102, 58, 0.35);
  }
  50% {
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.34), 0 0 30px rgba(212, 102, 58, 0.55);
  }
}

/* GeneratePress overrides */
.site.grid-container,
.site-content,
.site-main,
.inside-article {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.entry-content>* {
  max-width: 100% !important;
}

.alignfull {
  max-width: 100% !important;
  width: 100vw !important;
  margin-left: calc(50% - 50vw);
}

/* Standard White Text Over Images */
.is-on-image,
.tpfc-section--dark,
.tpfc-hero,
.tpfc-page-hero,
.tpfc-home-news__feature-card {
  color: #F2F3D9 !important;
}

.is-on-image h1,
.is-on-image h2,
.is-on-image h3,
.tpfc-section--dark h1,
.tpfc-section--dark h2,
.tpfc-section--dark h3,
.tpfc-hero h1,
.tpfc-hero h2,
.tpfc-hero h3,
.tpfc-page-hero h1,
.tpfc-page-hero h2 {
  color: #F2F3D9 !important;
}

.is-on-image p,
.tpfc-section--dark p,
.tpfc-hero p,
.tpfc-page-hero p {
  color: #F2F3D9 !important;
}

.is-on-image .tpfc-eyebrow,
.tpfc-section--dark .tpfc-eyebrow,
.tpfc-hero .tpfc-eyebrow,
.tpfc-page-hero .tpfc-eyebrow {
  color: var(--tpfc-gold) !important;
}

.tpfc-hero,
.tpfc-page-hero {
  text-align: center;
}

.tpfc-hero .tpfc-action-row,
.tpfc-page-hero .tpfc-action-row {
  justify-content: center;
}

.tpfc-hero p,
.tpfc-page-hero p {
  margin: 0 auto 1.5rem;
  text-align: center !important;
  max-width: 800px;
}

/* ═══════════════════════════════════════
   LAYER 3: HEADER
   ═══════════════════════════════════════ */
.tpfc-topbar {
  display: none !important;
}

.tpfc-header__main {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid rgba(228, 144, 111, 0.08);
  overflow: visible;
  -webkit-transition: border-color 0.35s var(--tpfc-ease);
  transition: border-color 0.35s var(--tpfc-ease);
  /* CRITICAL — allows logo to bleed below navbar */
}

.tpfc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  gap: 1rem;
  overflow: visible;
  /* CRITICAL — allows logo to bleed below navbar */
}

/* ── Brand (logo + title, pinned to left at 20px) ── */
.tpfc-brand {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  min-height: 50px;
  /* guarantees vertical flow */
}

.tpfc-brand__mark {
  position: absolute;
  top: -10px;
  /* Anchor near top, letting the rest bleed down */
  left: 0;
  z-index: 99;
  background: #fff;
  border-radius: 50%;
  /* Perfect circle frame */
  padding: 8px;
  /* Thicker white frame */
  box-shadow: none;
  filter: none;
  line-height: 0;
}

.custom-logo-link {
  display: block;
  line-height: 0;
}

.custom-logo-link img,
.tpfc-brand__mark img {
  display: block;
  width: 130px;
  /* Much bigger */
  height: 130px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: none !important;
  -webkit-filter: none !important;
  filter: none !important;
}

.custom-logo-link:hover img,
.tpfc-brand__mark:hover img,
.custom-logo-link img:hover,
.tpfc-brand__mark img:hover {
  box-shadow: none !important;
  -webkit-filter: none !important;
  filter: none !important;
}

.tpfc-brand__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 168px;
  /* Space for absolute logo (130+16=146) + 22px gap */
}

.tpfc-brand__title {
  font-family: 'Playfair Display', 'Cormorant Garamond', 'Cinzel', serif !important;
  /* Fancy text */
  font-size: clamp(1.2rem, 1.4vw, 1.5rem);
  font-weight: 900 !important;
  color: #000000 !important;
  text-decoration: none;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: normal;
  /* Allow it to wrap nicely */
}

.tpfc-brand__tagline {
  font-size: var(--tpfc-font-xs);
  color: var(--tpfc-ink-muted);
  line-height: 1.2;
  white-space: nowrap;
}

.tpfc-brand__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--tpfc-deep);
  color: #F2F3D9;
  font-weight: 700;
  font-size: 11px;
  text-align: center;
  border-radius: var(--tpfc-radius);
  line-height: 1.1;
}

/* ── Navigation (menu pinned to right at 20px) ── */
.tpfc-header__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.tpfc-nav {
  display: flex;
  align-items: center;
}

.tpfc-nav__menu {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tpfc-nav__menu li {
  position: relative;
}

.tpfc-nav__menu li a {
  display: block;
  padding: 10px 14px;
  font-family: var(--tpfc-font-heading);
  font-size: clamp(0.72rem, 0.85vw, 0.92rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tpfc-ink);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
}

.tpfc-nav__menu li.current-menu-item>a,
.tpfc-nav__menu li.current_page_item>a {
  color: var(--tpfc-accent) !important;
  background: var(--tpfc-accent-light);
}

/* No hover effect on nav menu */
/* No hover effect on nav menu items natively */
.tpfc-nav__menu li a:hover,
.tpfc-nav__menu li:hover>a {
  background: var(--tpfc-accent-light) !important;
  color: var(--tpfc-accent) !important;
  text-decoration: none !important;
}

.tpfc-nav__menu li.current-menu-item>a:hover,
.tpfc-nav__menu li.current_page_item>a:hover,
.tpfc-nav__menu li.current-menu-item:hover>a,
.tpfc-nav__menu li.current_page_item:hover>a {
  color: var(--tpfc-accent) !important;
  background: var(--tpfc-accent-light) !important;
  text-decoration: none !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Submenu */
.tpfc-nav__menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: var(--tpfc-radius);
  border-top: 3px solid var(--tpfc-accent);
  padding: 0.5rem 0;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.tpfc-nav__menu li:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tpfc-nav__menu .sub-menu li a {
  padding: 10px 20px;
  font-size: var(--tpfc-font-sm);
  color: #111827 !important;
  border-radius: 0;
  white-space: normal;
  transition: color 0.2s ease;
}

.tpfc-nav__menu .sub-menu li a:hover {
  background: transparent !important;
  color: var(--tpfc-deep) !important;
}

.tpfc-nav__menu .sub-menu li a::after {
  display: none;
}

/* Header CTA */
.tpfc-header__cta {
  flex-shrink: 0;
}

/* Mobile toggle */
.tpfc-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background var(--tpfc-duration) var(--tpfc-ease);
}

.tpfc-nav-toggle:hover {
  background: transparent;
}

.tpfc-nav-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  background: #000000;
  border-radius: 2px;
  transition: all var(--tpfc-duration) var(--tpfc-ease);
}

.tpfc-submenu-toggle {
  display: none;
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.tpfc-submenu-toggle::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--tpfc-ink-soft);
}

.tpfc-submenu-toggle[aria-expanded="true"]::after {
  content: '−';
}

/* ═══════════════════════════════════════
   LAYER 4: BUTTONS
   ═══════════════════════════════════════ */
.tpfc-btn {
  display: inline-block;
  font-family: var(--tpfc-font-heading);
  font-size: var(--tpfc-font-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 28px;
  border-radius: var(--tpfc-radius);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.tpfc-btn--primary {
  background: var(--tpfc-deep);
  color: #F2F3D9 !important;
  border-color: var(--tpfc-deep);
}

.tpfc-btn--accent {
  background: var(--tpfc-accent);
  color: #F2F3D9 !important;
  border-color: var(--tpfc-accent);
}

.tpfc-btn--ghost {
  background: transparent;
  color: var(--tpfc-deep) !important;
  border: 2px solid var(--tpfc-deep);
}

.tpfc-btn--ghost-light {
  background: transparent;
  color: #F2F3D9 !important;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.tpfc-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.tpfc-text-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--tpfc-font-heading);
  font-size: var(--tpfc-font-sm);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none !important;
  color: var(--tpfc-accent) !important;
  gap: 6px;
  margin-top: 0.75rem;
}

.tpfc-text-link::after {
  content: '→';
}

/* ═══════════════════════════════════════
   LAYER 5: SECTIONS
   ═══════════════════════════════════════ */
.tpfc-section {
  padding: var(--tpfc-section-pad) 0;
}

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

.tpfc-section--warm {
  background: var(--tpfc-bg-warm);
}

.tpfc-section--dark {
  background: var(--tpfc-bg-dark) !important;
  color: var(--tpfc-ink-on-dark) !important;
}

.tpfc-section--dark h1,
.tpfc-section--dark h2,
.tpfc-section--dark h3,
.tpfc-section--dark h4 {
  color: #F2F3D9 !important;
}

.tpfc-section--dark p {
  color: #F2F3D9 !important;
  text-align: justify;
}

.tpfc-section--dark .tpfc-eyebrow {
  color: var(--tpfc-gold) !important;
}

.tpfc-section__heading {
  margin-bottom: 2.5rem;
  max-width: 700px;
}

.tpfc-section__heading--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.tpfc-eyebrow {
  display: inline-block;
  font-family: var(--tpfc-font-body);
  font-size: var(--tpfc-font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tpfc-accent);
  margin-bottom: 8px;
  padding-top: 24px;
  position: relative;
}

.tpfc-eyebrow::before {
  content: '';
  position: absolute;
  background: var(--tpfc-accent-light);
  width: 44px;
  height: 44px;
  border-radius: 6px;
  left: -18px;
  top: 6px;
  z-index: -1;
}

.tpfc-eyebrow::after {
  content: '';
  position: absolute;
  background: var(--tpfc-accent-light);
  border-left: 2px solid var(--tpfc-bg);
  border-bottom: 2px solid var(--tpfc-bg);
  width: 20px;
  height: 20px;
  border-radius: 3px;
  left: 6px;
  top: 0;
  z-index: -1;
}

/* ═══════════════════════════════════════
   LAYER 6: GRID SYSTEM
   ═══════════════════════════════════════ */
.tpfc-grid {
  display: grid;
  gap: clamp(1.5rem, 2vw, 3rem);
}

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

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

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

/* ═══════════════════════════════════════
   LAYER 7: CARDS
   ═══════════════════════════════════════ */
.tpfc-card {
  background: var(--tpfc-bg-card);
  border-radius: var(--tpfc-radius-lg);
  overflow: hidden;
  box-shadow: var(--tpfc-shadow);
  border: 1px solid var(--tpfc-line);
  width: 100%;
  padding: var(--tpfc-space-lg);
}

.tpfc-card__media {
  height: 220px;
  background: var(--tpfc-bg-warm) center/cover no-repeat;
  background-image: var(--tpfc-card-image);
  position: relative;
  overflow: hidden;
}

.tpfc-card__body {
  padding: 1.75rem 2rem;
}

.tpfc-card__body h2,
.tpfc-card__body h3 {
  font-size: var(--tpfc-font-xl);
  margin-bottom: 0.75rem;
  color: var(--tpfc-deep);
}

.tpfc-card__body p {
  font-size: var(--tpfc-font-sm);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.tpfc-card:hover {
  box-shadow: 0 10px 30px #d4663a !important; /* Orange shadow */
  transition: all 0.3s ease !important;
}

.tpfc-card:hover h2,
.tpfc-card:hover h3,
.tpfc-card:hover p,
.tpfc-card:hover span {
  -webkit-transition: color 0.32s var(--tpfc-ease), opacity 0.32s var(--tpfc-ease);
  transition: color 0.32s var(--tpfc-ease), opacity 0.32s var(--tpfc-ease);
}

.tpfc-card--feature {
  padding: 2rem;
  border-left: 4px solid var(--tpfc-accent);
}

.tpfc-card--compact {
  border-left: 4px solid var(--tpfc-gold);
}

.tpfc-card--compact .tpfc-card__body {
  padding: 1.25rem;
}

.tpfc-card--notice {
  background: var(--tpfc-bg-warm);
  border-left: 4px solid var(--tpfc-gold);
  padding: 2rem;
}

.tpfc-card--service {
  background: var(--tpfc-deep-light) !important;
  border-color: var(--tpfc-deep-light);
}

.tpfc-card--service h2,
.tpfc-card--service h3,
.tpfc-card--service h4 {
  color: #F2F3D9 !important;
}

.tpfc-card--service p {
  color: #F2F3D9 !important;
}

.tpfc-card--service .tpfc-card-kicker {
  color: var(--tpfc-gold) !important;
}

.tpfc-card--service .tpfc-eyebrow {
  color: var(--tpfc-gold) !important;
}

.tpfc-card--teaching {
  border-left: 4px solid var(--tpfc-gold);
  background: #ffffff;
  padding: 1.5rem;
  /* box-shadow: var(--tpfc-shadow); */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tpfc-card--teaching h3 {
  color: #1A1412;
  font-size: var(--tpfc-font-lg);
  text-align: center;
}

.tpfc-card--teaching p {
  color: #333;
  text-align: center;
}

.tpfc-card--teaching img,
.tpfc-card--teaching svg,
.tpfc-card--teaching picture,
.tpfc-card--teaching .tpfc-service-icon {
  margin-left: auto;
  margin-right: auto;
}

.tpfc-card-kicker {
  font-size: var(--tpfc-font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tpfc-accent);
  margin-bottom: 0.5rem;
}

.tpfc-service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--tpfc-radius-lg);
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.tpfc-service-icon--health {
  background: var(--tpfc-turquoise-light);
  color: var(--tpfc-turquoise);
}

.tpfc-service-icon--education {
  background: var(--tpfc-accent-light);
  color: var(--tpfc-accent);
}

.tpfc-service-icon--community {
  background: var(--tpfc-gold-light);
  color: var(--tpfc-gold);
}

.tpfc-service-icon--youth {
  background: rgba(89, 81, 167, 0.1);
  color: #5951A7;
}

.tpfc-service-icon--culture {
  background: rgba(180, 90, 60, 0.1);
  color: var(--tpfc-brown);
}

.tpfc-service-icon--housing {
  background: rgba(228, 144, 111, 0.1);
  color: #E4906F;
}

.tpfc-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: var(--tpfc-font-xs);
  font-weight: 700;
  text-transform: uppercase;
  background: var(--tpfc-accent-light);
  color: var(--tpfc-accent);
}

/* ═══════════════════════════════════════
   LAYER 8: IMAGE SLIDER
   ═══════════════════════════════════════ */
.tpfc-image-slider {
  position: relative;
  min-height: clamp(650px, 90vh, 1200px);
  /* Increased hero height */
  width: 100%;
  overflow: hidden;
  background: var(--tpfc-bg-dark);
}

.tpfc-image-slider__slide {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out, transform 8s ease-out;
  transform: scale(1.05);
  will-change: opacity, transform, visibility;
  z-index: 1;
}

.tpfc-image-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out, transform 8s ease-out;
  z-index: 2;
}

/* lingering state to prevent snap-out */
.tpfc-image-slider__slide:not(.is-active) {
  z-index: 2; /* keep visually stacked until fade completes */
}

.tpfc-image-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(228, 144, 111, 0.3) 100%);
  z-index: 1;
}

/* ═══════════════════════════════════════
   LAYER 8B: HOME INTRO
   ═══════════════════════════════════════ */
.tpfc-home-intro {
  background: var(--tpfc-bg-warm);
  position: relative;
  overflow: hidden;
}

.tpfc-home-intro__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: clamp(3rem, 5vw, 6rem);
  align-items: flex-start;
}

.tpfc-home-intro__desc {
  font-size: var(--tpfc-font-lg);
  color: var(--tpfc-ink-soft);
  line-height: 1.8;
  margin-top: 1.5rem;
}

/* Centered layout variant */
.tpfc-home-intro--centered .tpfc-home-intro__inner {
  display: flex;
  justify-content: center;
}

.tpfc-home-intro--centered .tpfc-home-intro__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 850px;
}

.tpfc-home-intro--centered .tpfc-home-intro__desc {
  text-align: justify;
  margin-bottom: 1.5rem;
}

.tpfc-home-intro--centered .tpfc-action-row {
  justify-content: center;
}

.tpfc-home-intro__card {
  background: #fff;
  border-radius: var(--tpfc-radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--tpfc-shadow);
  border: 1px solid var(--tpfc-line);
}

.tpfc-home-intro--photos {
  background: linear-gradient(180deg, #f7f2ec 0%, #f2e8de 100%);
  padding-top: clamp(2.2rem, 4vw, 3.6rem);
  padding-bottom: clamp(2.2rem, 4vw, 3.6rem);
}

.tpfc-home-photos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.2rem);
}

.tpfc-home-photo {
  margin: 0;
  border-radius: var(--tpfc-radius-lg);
  overflow: hidden;
  background: #0f1726;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 16px 34px rgba(11, 16, 32, 0.18);
}

.tpfc-home-photo {
  grid-column: span 1;
}

.tpfc-home-photo img {
  width: 100%;
  height: 100%;
  min-height: clamp(220px, 30vw, 360px);
  object-fit: cover;
  display: block;
  -webkit-transform: scale(1.08);
  transform: scale(1.08);
  -webkit-transition: -webkit-transform 1360ms var(--tpfc-motion-curve), -webkit-filter 1360ms var(--tpfc-motion-curve);
  transition: transform 1360ms var(--tpfc-motion-curve), filter 1360ms var(--tpfc-motion-curve);
  -webkit-filter: saturate(0.9);
  filter: saturate(0.9);
}

.tpfc-home-photo.tpfc-reveal.is-visible img {
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-filter: saturate(1.02);
  filter: saturate(1.02);
}

.tpfc-home-photo.tpfc-reveal.tpfc-reveal--left {
  -webkit-transform: translate3d(-140px, 0, 0) scale(0.985);
  transform: translate3d(-140px, 0, 0) scale(0.985);
}

.tpfc-home-photo.tpfc-reveal.tpfc-reveal--right {
  -webkit-transform: translate3d(140px, 0, 0) scale(0.985);
  transform: translate3d(140px, 0, 0) scale(0.985);
}

.tpfc-home-photo.tpfc-reveal.tpfc-reveal--left.is-visible,
.tpfc-home-photo.tpfc-reveal.tpfc-reveal--right.is-visible {
  -webkit-transform: translate3d(0, 0, 0) scale(1);
  transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 900px) {
  .tpfc-home-photo img {
    min-height: clamp(210px, 34vw, 300px);
  }
}

@media (max-width: 640px) {
  .tpfc-home-photos-grid {
    grid-template-columns: 1fr;
  }

  .tpfc-home-photo {
    grid-column: 1;
  }
}

.tpfc-program-slider-section {
  position: relative;
  z-index: 10;
}

.tpfc-program-3d-slider {
  position: relative;
  width: 100%;
  height: 600px;
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .tpfc-program-3d-slider {
    height: 450px;
  }
}

.tpfc-program-3d-slider__canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: grab;
}

.tpfc-program-3d-slider__canvas-wrap:active {
  cursor: grabbing;
}

.tpfc-program-3d-slider__nav {
  position: absolute;
  bottom: 0px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 20;
  pointer-events: none;
}

.tpfc-slider-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--tpfc-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tpfc-duration) var(--tpfc-ease);
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.tpfc-slider-arrow:hover {
  background: var(--tpfc-accent);
  color: #F2F3D9;
  border-color: var(--tpfc-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 102, 58, 0.3);
}

.tpfc-slider-arrow svg {
  width: 24px;
  height: 24px;
}

/* ═══════════════════════════════════════
   LAYER 9: VIDEO SECTION
   ═══════════════════════════════════════ */
.tpfc-home-video {
  background: var(--tpfc-bg-dark) !important;
  padding: var(--tpfc-section-pad) 0;
  color: var(--tpfc-ink-on-dark) !important;
}

.tpfc-home-video__grid {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
}

.tpfc-home-video__copy h2 {
  color: #F2F3D9 !important;
}

.tpfc-home-video__copy p {
  color: #F2F3D9 !important;
}

.tpfc-home-video__copy .tpfc-eyebrow {
  color: var(--tpfc-gold) !important;
}

.tpfc-home-video__embed {
  position: relative;
  border-radius: var(--tpfc-radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.tpfc-home-video__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  -webkit-transform: scale(1.08);
  transform: scale(1.08);
  -webkit-transform-origin: center center;
  transform-origin: center center;
}

/* ═══════════════════════════════════════
   LAYER 10: NEWS SECTION
   ═══════════════════════════════════════ */
.tpfc-home-news__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 3vw, 4rem);
}

.tpfc-news-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--tpfc-line);
}

.tpfc-news-item__eyebrow {
  font-size: var(--tpfc-font-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tpfc-accent);
  margin-bottom: 4px;
}

.tpfc-news-item h3 {
  font-size: var(--tpfc-font-xl);
  margin-bottom: 4px;
}

.tpfc-home-news__feature {
  position: relative;
  min-height: 420px;
  border-radius: var(--tpfc-radius-lg);
  overflow: hidden;
}

.tpfc-home-news__feature-media {
  position: absolute;
  inset: 0;
  background: var(--tpfc-bg-warm) center/cover no-repeat;
  background-image: var(--tpfc-feature-image);
}

.tpfc-home-news__feature-card {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(228, 144, 111, 0.95));
  padding: 6rem 2rem 2rem;
  color: #F2F3D9;
}

.tpfc-home-news__feature-card h3 {
  color: #F2F3D9 !important;
  font-size: var(--tpfc-font-2xl);
}

.tpfc-home-news__feature-card p {
  color: #F2F3D9 !important;
}

.tpfc-home-news__feature-card .tpfc-news-item__eyebrow {
  color: var(--tpfc-gold) !important;
}

/* ═══════════════════════════════════════
   LAYER 11: CTA SECTION
   ═══════════════════════════════════════ */
.tpfc-home-cta {
  background: var(--tpfc-bg-dark) !important;
  padding: var(--tpfc-section-pad) 0;
}

.tpfc-home-cta__panel {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.tpfc-home-cta__panel .tpfc-eyebrow {
  color: var(--tpfc-gold) !important;
}

.tpfc-home-cta__panel h2 {
  color: #F2F3D9 !important;
  margin: 0.5rem 0 1rem;
}

.tpfc-home-cta__panel p {
  color: #F2F3D9 !important;
  text-align: center;
}

/* ═══════════════════════════════════════
   LAYER 13: CHIPS / SERVICE AREAS
   ═══════════════════════════════════════ */
.tpfc-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tpfc-chip {
  display: inline-block;
  padding: 8px 20px;
  background: var(--tpfc-bg-card);
  color: var(--tpfc-deep);
  border-radius: 999px;
  font-size: var(--tpfc-font-sm);
  font-weight: 600;
  border: 1px solid var(--tpfc-line);
  transition: all var(--tpfc-duration) var(--tpfc-ease);
}

.tpfc-chip:hover {
  transform: none;
  background: var(--tpfc-bg-card);
  color: var(--tpfc-deep);
  border-color: var(--tpfc-line);
}

/* Chips inside dark sections */
.tpfc-section--dark .tpfc-chip {
  background: rgba(255, 255, 255, 0.12);
  color: #F2F3D9 !important;
  border-color: rgba(255, 255, 255, 0.25);
}

.tpfc-section--dark .tpfc-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #F2F3D9 !important;
  border-color: rgba(255, 255, 255, 0.25);
}

/* ═══════════════════════════════════════
   LAYER 14: RESOURCE LIST & DETAIL
   ═══════════════════════════════════════ */
.tpfc-list-links {
  list-style: none;
  padding: 0;
}

.tpfc-list-links li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--tpfc-line);
  display: flex;
  flex-direction: column;
}

.tpfc-list-links li strong {
  color: var(--tpfc-deep);
  font-size: var(--tpfc-font-base);
}

.tpfc-list-links li span {
  font-size: var(--tpfc-font-sm);
  color: var(--tpfc-ink-muted);
}

.tpfc-detail-list {
  list-style: none;
  padding: 0;
}

.tpfc-detail-list li {
  font-size: var(--tpfc-font-sm);
  color: var(--tpfc-ink-soft);
  margin-bottom: 0.3rem;
  padding-left: 1rem;
  position: relative;
}

.tpfc-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  background: var(--tpfc-accent);
  border-radius: 50%;
}

.tpfc-stack {
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════
   LAYER 15: PROSE (page content)
   ═══════════════════════════════════════ */
.tpfc-prose {
  font-size: var(--tpfc-font-base);
  line-height: 1.8;
  max-width: 1200px;
  /* Readability cap for long prose */
}

.tpfc-prose p {
  margin-bottom: 1.25rem;
}

.tpfc-prose h4,
.tpfc-prose h5 {
  font-family: var(--tpfc-font-heading);
  color: var(--tpfc-deep);
  margin: 2rem 0 1rem;
}

.tpfc-prose img {
  border-radius: var(--tpfc-radius);
  margin: 1.5rem 0;
}

.tpfc-prose ul,
.tpfc-prose ol {
  padding-left: 1.5rem;
  margin: 1.25rem 0;
  list-style: none;
}

.tpfc-prose li {
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.25rem;
}

.tpfc-prose li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--tpfc-accent);
  font-weight: bold;
}

.tpfc-prose--gallery {
  max-width: 100% !important;
}

.tpfc-prose--gallery .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--tpfc-space-md);
  margin-top: var(--tpfc-space-lg);
}

.tpfc-prose--gallery .gallery-item {
  margin: 0;
  width: 100%;
}

.tpfc-prose--gallery img {
  margin: 0;
  height: 100%;
  object-fit: cover;
  border-radius: var(--tpfc-radius);
  aspect-ratio: 1/1;
}

/* ═══════════════════════════════════════
   LAYER 14: FORMS
   ═══════════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--tpfc-font-body);
  font-size: var(--tpfc-font-base);
  border: 1px solid var(--tpfc-line);
  background: #FFFFFF;
  border-radius: var(--tpfc-radius);
  color: var(--tpfc-ink);
  transition: all var(--tpfc-duration) var(--tpfc-ease);
  box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--tpfc-accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--tpfc-accent-light);
}

label {
  display: block;
  font-family: var(--tpfc-font-heading);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--tpfc-deep);
  font-size: var(--tpfc-font-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tpfc-form-block {
  max-width: 100% !important;
  width: 100%;
}

/* Style for unstyled builder contact boxes */
.tpfc-form-responsive>div:not(.wpcf7) {
  background: var(--tpfc-bg-alt);
  padding: 3rem;
  border-radius: var(--tpfc-radius-lg);
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.tpfc-form-responsive>div:not(.wpcf7) h2,
.tpfc-form-responsive>div:not(.wpcf7) h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* Fluent Forms - Reducing Clutter & Enforcing Theme */
.ff-el-group {
  margin-bottom: 1.75rem !important;
}

.ff-el-group label.ff-el-is-label-top {
  margin-bottom: 0.75rem !important;
  font-family: var(--tpfc-font-heading) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--tpfc-font-sm);
  color: var(--tpfc-deep);
}

input[type="submit"],
.tpfc-btn-submit,
.ff-btn-submit {
  background: var(--tpfc-accent) !important;
  color: #F2F3D9 !important;
  border: none !important;
  padding: 1rem 2.5rem !important;
  border-radius: var(--tpfc-radius) !important;
  font-family: var(--tpfc-font-heading) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  cursor: pointer !important;
  transition: all 0.3s var(--tpfc-ease) !important;
  box-shadow: 0 4px 15px rgba(212, 102, 58, 0.15);
}

input[type="submit"]:hover,
.ff-btn-submit:hover {
  background: var(--tpfc-accent) !important;
  transform: none;
  box-shadow: 0 4px 15px rgba(212, 102, 58, 0.15);
}

.tpfc-form-responsive {
  gap: 3.5rem;
  /* Increased gap between Form and Address */
}

/* ── About & Donate Page Styles ── */
.tpfc-about-content,
.tpfc-donate-content {
  width: 100%;
  max-width: 100%;
}

.tpfc-page-hero {
  background: var(--tpfc-bg-dark);
  color: #F2F3D9;
  padding: clamp(4rem, 6vw, 7rem) 0 clamp(3rem, 4vw, 5rem);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.tpfc-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(228, 144, 111, 0.97) 0%, rgba(228, 144, 111, 0.80) 100%);
  z-index: 1;
}

.tpfc-page-hero__inner {
  position: relative;
  z-index: 2;
}

.tpfc-page-hero h1 {
  color: #F2F3D9 !important;
  margin-bottom: 1rem;
}

.tpfc-page-hero p {
  color: #F2F3D9 !important;
  max-width: 620px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.tpfc-page-hero .tpfc-eyebrow,
.tpfc-page-hero .tpfc-news-item__eyebrow {
  color: var(--tpfc-gold) !important;
}

.tpfc-page-hero .tpfc-action-row {
  justify-content: center;
}

.tpfc-content-section {
  padding: var(--tpfc-section-pad) 0;
  width: 100%;
}

.tpfc-content-section>[style*="padding: 0 40px"],
.tpfc-content-section .tpfc-container--full {
  padding-left: 40px;
  padding-right: 40px;
}

.tpfc-mission-block {
  background: var(--tpfc-bg-warm);
  border-left: 6px solid var(--tpfc-accent);
  padding: 2.5rem 3rem;
  border-radius: 0 var(--tpfc-radius-lg) var(--tpfc-radius-lg) 0;
  margin: 2rem 0;
}

.tpfc-mission-block h3 {
  color: var(--tpfc-deep);
  margin-bottom: 0.75rem;
}

.tpfc-mission-block p {
  text-align: justify;
}

.tpfc-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tpfc-value-card {
  background: #fff;
  border-radius: var(--tpfc-radius-lg);
  padding: 2rem 1.5rem;
  border-top: 4px solid var(--tpfc-accent);
  box-shadow: var(--tpfc-shadow);
  text-align: center;
}

.tpfc-value-card .tpfc-value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tpfc-value-card h4 {
  color: var(--tpfc-deep);
  font-size: var(--tpfc-font-lg);
  margin-bottom: 0.5rem;
}

.tpfc-value-card p {
  font-size: var(--tpfc-font-sm);
  text-align: center;
}

.tpfc-programs-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tpfc-program-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--tpfc-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--tpfc-shadow);
  border: 1px solid var(--tpfc-line);
}

.tpfc-program-item .tpfc-program-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.tpfc-program-item h4 {
  font-size: var(--tpfc-font-base);
  margin-bottom: 0.3rem;
  color: var(--tpfc-deep);
}

.tpfc-program-item p {
  font-size: var(--tpfc-font-sm);
  margin-bottom: 0;
  text-align: left;
}

/* Donation Page Styles */
.tpfc-donate-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.tpfc-donate-intro p {
  text-align: center;
  font-size: var(--tpfc-font-lg);
}

.tpfc-donate-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.tpfc-donate-option {
  background: #fff;
  border-radius: var(--tpfc-radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--tpfc-shadow);
  border: 2px solid var(--tpfc-line);
  text-align: center;
  transition: border-color var(--tpfc-duration) var(--tpfc-ease), box-shadow var(--tpfc-duration) var(--tpfc-ease);
}

.tpfc-donate-option:hover {
  border-color: var(--tpfc-line);
  box-shadow: var(--tpfc-shadow);
}

.tpfc-donate-option .tpfc-donate-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.tpfc-donate-option h3 {
  color: var(--tpfc-deep);
  font-size: var(--tpfc-font-xl);
  margin-bottom: 0.75rem;
}

.tpfc-donate-option p {
  font-size: var(--tpfc-font-sm);
  text-align: center;
  margin-bottom: 1.5rem;
}

.tpfc-donate-impact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tpfc-impact-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--tpfc-bg-warm);
  border-radius: var(--tpfc-radius-lg);
}

.tpfc-impact-item .tpfc-impact-number {
  font-family: var(--tpfc-font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--tpfc-accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.tpfc-impact-item p {
  font-size: var(--tpfc-font-sm);
  text-align: center;
  margin: 0;
}

/* Testimonial block */
.tpfc-quote-block {
  background: var(--tpfc-bg-dark);
  color: #F2F3D9;
  padding: 4rem;
  border-radius: var(--tpfc-radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tpfc-quote-block::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 15rem;
  font-family: Georgia, serif;
  color: #F2F3D9;
  line-height: 1;
  pointer-events: none;
}

.tpfc-quote-block blockquote {
  font-size: var(--tpfc-font-xl);
  line-height: 1.7;
  color: #F2F3D9;
  font-style: italic;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.tpfc-quote-block cite {
  color: var(--tpfc-gold);
  font-style: normal;
  font-weight: 700;
}

/* ── Contact & Map ── */
.tpfc-contact-card {
  background: var(--tpfc-bg-card);
  border: 1px solid var(--tpfc-line);
  border-radius: var(--tpfc-radius-lg);
  padding: 2rem;
  text-align: center;
}

.tpfc-contact-card h3 {
  margin-bottom: 0.5rem;
}

.tpfc-map-wrap {
  border-radius: var(--tpfc-radius-lg);
  overflow: hidden;
  box-shadow: var(--tpfc-shadow);
  aspect-ratio: 16/9;
}

.tpfc-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Inner page hero */
.tpfc-hero {
  background: var(--tpfc-bg-dark);
  color: #F2F3D9;
  padding: clamp(3rem, 4vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}

.tpfc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(228, 144, 111, 0.95), rgba(228, 144, 111, 0.75));
  z-index: 1;
}

.tpfc-hero__inner {
  position: relative;
  z-index: 2;
}

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

.tpfc-hero h1 {
  color: #F2F3D9;
  margin-bottom: 0.5rem;
}

.tpfc-hero p {
  color: #F2F3D9;
  max-width: 600px;
}

.tpfc-hero--slideshow {
  min-height: clamp(420px, 56vw, 680px);
  display: flex;
  align-items: flex-end;
}

.tpfc-hero--slideshow::before {
  background: linear-gradient(145deg, rgba(6, 18, 32, 0.58), rgba(6, 18, 32, 0.42), rgba(212, 102, 58, 0.28));
}

.tpfc-hero--slideshow .tpfc-image-slider__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06);
  transition: opacity 1100ms var(--tpfc-ease), transform 3200ms var(--tpfc-ease), visibility 1100ms;
}

.tpfc-hero--slideshow .tpfc-image-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.tpfc-hero--slideshow .tpfc-hero__inner {
  padding-top: clamp(5rem, 9vw, 8rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

/* ═══════════════════════════════════════
   LAYER 16: FOOTER
   ═══════════════════════════════════════ */
.tpfc-footer {
  background: var(--tpfc-bg-dark);
  color: var(--tpfc-ink-on-dark);
  padding: var(--tpfc-section-pad) 0 0;
}

.tpfc-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* Force 4 columns on full-width */
  gap: clamp(1.5rem, 3vw, 4rem);
  width: 100%;
}

.tpfc-footer h2,
.tpfc-footer h3 {
  color: var(--tpfc-gold) !important;
  font-size: var(--tpfc-font-lg);
  margin-bottom: 1rem;
}

.tpfc-footer p,
.tpfc-footer__copy {
  color: #F2F3D9;
  font-size: var(--tpfc-font-sm);
  line-height: 1.6;
}

.tpfc-footer__menu {
  list-style: none;
  padding: 0;
}

.tpfc-footer__menu li {
  margin-bottom: 0.4rem;
}

.tpfc-footer__menu li a {
  color: #F2F3D9;
  font-size: var(--tpfc-font-sm);
}

.tpfc-footer__social {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

.tpfc-footer__social li a {
  color: #F2F3D9;
}

.tpfc-footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tpfc-footer__brand h3 {
  margin: 0;
  line-height: 1.2;
}

.tpfc-footer__logo {
  max-width: 55px;
  flex-shrink: 0;
}

.tpfc-footer__bottom {
  margin-top: var(--tpfc-space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
}

.tpfc-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tpfc-footer__bottom p {
  color: #F2F3D9;
  font-size: var(--tpfc-font-xs);
  margin: 0;
}

.tpfc-footer__bottom a {
  color: #F2F3D9;
}

/* ═══════════════════════════════════════
   LAYER 17: ANIMATIONS
   ═══════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .tpfc-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--tpfc-ease), transform 0.6s var(--tpfc-ease);
    transition-delay: var(--tpfc-reveal-delay, 0ms);
  }

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

/* ═══════════════════════════════════════
   LAYER 18: FILTER SYSTEM
   ═══════════════════════════════════════ */
.tpfc-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  background: var(--tpfc-bg-warm);
  padding: 1.5rem 2rem;
  border-radius: var(--tpfc-radius-lg);
}

.tpfc-filter__search {
  width: 100%;
  max-width: 320px;
  padding: 10px 16px;
  border: 1px solid var(--tpfc-line);
  border-radius: var(--tpfc-radius);
  font-size: var(--tpfc-font-sm);
  outline: none;
  font-family: var(--tpfc-font-body);
  background: #fff;
}

.tpfc-filter__search:focus {
  border-color: var(--tpfc-accent);
  box-shadow: 0 0 0 3px var(--tpfc-accent-light);
}

.tpfc-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

[data-filter-button] {
  padding: 8px 20px;
  background: #fff;
  border: 1px solid var(--tpfc-line);
  border-radius: 999px;
  font-size: var(--tpfc-font-xs);
  font-weight: 700;
  cursor: pointer;
  font-family: var(--tpfc-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tpfc-ink-soft);
  transition: all var(--tpfc-duration) var(--tpfc-ease);
}

[data-filter-button].is-active {
  background: var(--tpfc-deep);
  color: #F2F3D9;
  border-color: var(--tpfc-deep);
}

/* ═══════════════════════════════════════
   LAYER 19: PLUGIN OVERRIDES
   ═══════════════════════════════════════ */
.tribe-common {
  font-family: var(--tpfc-font-body) !important;
}

.tribe-events .tribe-events-calendar-list__event-row {
  background: var(--tpfc-bg-card);
  border-radius: var(--tpfc-radius-lg);
  padding: var(--tpfc-space-md);
  margin-bottom: var(--tpfc-space-md);
  box-shadow: var(--tpfc-shadow);
  border-left: 4px solid var(--tpfc-accent);
}

.tribe-events .tribe-events-calendar-list__event-title,
.tribe-events .tribe-events-calendar-month__day-date {
  font-family: var(--tpfc-font-heading) !important;
  color: var(--tpfc-deep) !important;
}

.tribe-events .tribe-events-calendar-list__event-datetime {
  color: var(--tpfc-ink-soft);
  font-size: var(--tpfc-font-sm);
}

.tribe-events .tribe-events-c-nav__next,
.tribe-events .tribe-events-c-nav__prev {
  background: var(--tpfc-bg-warm);
  border-radius: var(--tpfc-radius);
  padding: 8px 16px;
}

.tribe-events .tribe-events-c-nav__next a,
.tribe-events .tribe-events-c-nav__prev a {
  color: var(--tpfc-deep);
  font-family: var(--tpfc-font-heading);
  text-transform: uppercase;
  font-weight: bold;
}

.elementor-section {
  padding: 0 !important;
}

.elementor-widget-wrap {
  padding: 0 !important;
}

.main-navigation {
  display: none !important;
}

.site-header {
  display: none !important;
}

.site-footer {
  display: none !important;
}

.content-area {
  width: 100%;
}

.inside-article {
  padding: 0;
  margin: 0;
}

.entry-content {
  margin: 0;
}

.page .entry-header {
  display: none;
}

.no-sidebar .site-main {
  margin: 0;
}

.fluentform {
  width: 100%;
}

/* ── Fluent Form CAAVD Overrides ──
   Elementor injects: form.fluent_form_1 .ff-btn-submit:not(.ff_btn_no_style)
   { background-color: var(--fluentform-primary) } which beats our selector.
   We use !important here specifically to override that injected style. */

.fluentform .ff-el-input--label {
  font-family: var(--tpfc-font-heading) !important;
  color: var(--tpfc-deep) !important;
  font-weight: 700;
  margin-bottom: var(--tpfc-space-xs);
  font-size: var(--tpfc-font-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fluentform .ff-el-form-control {
  border-radius: var(--tpfc-radius) !important;
  font-family: var(--tpfc-font-body) !important;
  border: 2px solid var(--tpfc-line-warm) !important;
  padding: 14px 18px !important;
  background-color: var(--tpfc-bg-alt) !important;
  color: var(--tpfc-ink) !important;
  font-size: var(--tpfc-font-base) !important;
  transition: border-color var(--tpfc-duration) var(--tpfc-ease), box-shadow var(--tpfc-duration) var(--tpfc-ease);
  width: 100% !important;
}

.fluentform .ff-el-form-control:focus {
  border-color: var(--tpfc-accent) !important;
  box-shadow: 0 0 0 3px var(--tpfc-accent-light) !important;
  outline: none !important;
}

/* Name fields side-by-side container */
.fluentform .ff-t-container {
  display: flex;
  gap: var(--tpfc-space-md);
}

.fluentform .ff-t-cell {
  flex: 1;
}

/* Submit button — Nuclear override.
   EAEL sets --fluentform-primary: #1a7efb at the element level.
   Elementor injects: form.fluent_form_1 .ff-btn-submit:not(.ff_btn_no_style)
   { background-color: var(--fluentform-primary) } in a late <style> tag.
   We must match+exceed that specificity with hardcoded values. */
.tpfc-form-responsive form.fluent_form_1 .ff-btn-submit:not(.ff_btn_no_style),
.tpfc-form-responsive .ff-btn-submit,
.fluentform .ff-btn-submit,
form.fluent_form_1 .ff-btn-submit,
.eael-fluent-form-wrapper .ff-btn-submit {
  background-color: #D4663A !important;
  color: #F2F3D9 !important;
  border-radius: 999px !important;
  font-family: var(--tpfc-font-heading) !important;
  font-weight: 700 !important;
  padding: 16px 40px !important;
  border: none !important;
  font-size: var(--tpfc-font-base) !important;
  transition: all var(--tpfc-duration) var(--tpfc-ease);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  min-width: 200px;
  text-align: center;
}

.tpfc-form-responsive form.fluent_form_1 .ff-btn-submit:not(.ff_btn_no_style):hover,
.tpfc-form-responsive .ff-btn-submit:hover,
.fluentform .ff-btn-submit:hover,
.fluentform .ff-btn-submit:focus,
form.fluent_form_1 .ff-btn-submit:hover,
.eael-fluent-form-wrapper .ff-btn-submit:hover {
  background-color: #E4906F !important;
  color: #F2F3D9 !important;
  transform: none;
}

/* Fix: Force Elementor animated elements visible on contact page.
   Elementor's entrance animations apply 'elementor-invisible' which stays
   because our custom template wrapper prevents waypoints from firing. */
.tpfc-form-block .elementor-invisible,
.tpfc-form-responsive .elementor-invisible {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Elementor container inside the form block — full width */
.tpfc-form-responsive .elementor-section-boxed .elementor-container {
  max-width: 100% !important;
}

/* Contact Address column — remove the left border that looks foreign */
.tpfc-form-responsive .elementor-top-column:last-child > .elementor-widget-wrap {
  border-left: none !important;
  padding-left: var(--tpfc-space-xl);
}

/* Fix: Contact Address section — theme-consistent styling */
.tpfc-form-responsive .elementor-widget-icon-list .elementor-icon-list-items {
  list-style: none;
  padding: 0;
}

.tpfc-form-responsive .elementor-icon-list-item {
  margin-bottom: var(--tpfc-space-md);
  font-family: var(--tpfc-font-body);
  color: var(--tpfc-ink-soft);
  font-size: var(--tpfc-font-base);
}

.tpfc-form-responsive .elementor-heading-title {
  font-family: var(--tpfc-font-heading) !important;
  color: var(--tpfc-deep) !important;
  font-size: var(--tpfc-font-2xl) !important;
  margin-bottom: var(--tpfc-space-md);
}

/* Social icons in the contact form area */
.tpfc-form-responsive .elementor-social-icons-wrapper {
  display: flex;
  gap: var(--tpfc-space-md);
}

.tpfc-form-responsive .elementor-social-icon {
  color: var(--tpfc-deep) !important;
  font-size: 1.2rem;
}

/* Contact page link hover safety — dark text on light bg */
.tpfc-contact-card--expansive a:hover {
  color: var(--tpfc-deep);
}

/* Contact page link hover safety — light text on dark bg */
.tpfc-footer a:hover {
  color: var(--tpfc-gold);
}

/* ═══════════════════════════════════════
   LAYER 20: CONTACT CARD EXPANSIVE
   ═══════════════════════════════════════ */
.tpfc-contact-card--expansive {
  text-align: left;
  padding: 2.5rem;
  border: none;
  background: #fff;
  box-shadow: var(--tpfc-shadow);
  border-radius: var(--tpfc-radius-lg);
}

.tpfc-contact-card--expansive h3 {
  font-size: var(--tpfc-font-lg);
  margin-bottom: 1rem;
  color: var(--tpfc-deep);
}

.tpfc-map-wrap--hero {
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  min-height: 500px;
  aspect-ratio: 16/9;
  width: 100%;
}

/* ═══════════════════════════════════════
   LAYER 21: AMBIENT DECORATIONS
   ═══════════════════════════════════════ */
.tpfc-leaves-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

/* ═══════════════════════════════════════
     LAYER 24: ANIMATED FALLING LEAVES (Organic Edition)
     ═══════════════════════════════════════ */
.tpfc-leaves-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: visible;
}

.tpfc-leaf {
  position: absolute;
  width: 28px;
  height: 28px;
  top: -40px;
  left: 0;
  opacity: 1;
  -webkit-transition: background 2s ease, opacity 2s ease;
  -moz-transition: background 2s ease, opacity 2s ease;
  -ms-transition: background 2s ease, opacity 2s ease;
  transition: background 2s ease, opacity 2s ease;
  /* Soft, rounded organic leaf shape */
  border-radius: 2px 100% 5px 100%;
  background-color: #E4906F;
  background: -webkit-linear-gradient(135deg, #E4906F 0%, #E4906F 100%);
  background: -moz-linear-gradient(135deg, #E4906F 0%, #E4906F 100%);
  background: -ms-linear-gradient(135deg, #E4906F 0%, #E4906F 100%);
  background: linear-gradient(135deg, #E4906F 0%, #E4906F 100%);
  /* Deep Dark Green */
  -webkit-filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.15));
  -moz-filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.15));
  filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.15));
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.tpfc-leaf.is-orange {
  background-color: #8B4513;
  background: -webkit-linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
  background: -moz-linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
  background: -ms-linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
  background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
  /* Brownish Orange */
}

.tpfc-leaf.is-landing {
  opacity: 0 !important;
}

/* ═══════════════════════════════════════
   LAYER 22: EVENTS CALENDAR — Comprehensive TEC Override
   ═══════════════════════════════════════ */
.tribe-common {
  font-family: var(--tpfc-font-body) !important;
}

.tribe-common a {
  color: var(--tpfc-accent);
}

.tribe-events-view {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0;
}

/* Month view grid */
.tribe-events .tribe-events-calendar-month__header-column h3,
.tribe-events .tribe-events-calendar-month__header-column-title {
  font-family: var(--tpfc-font-heading) !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--tpfc-font-xs);
  color: var(--tpfc-deep);
}

.tribe-events-calendar-month__day {
  border-color: var(--tpfc-line) !important;
  min-height: 100px;
}

.tribe-events-calendar-month__day--current {
  background: var(--tpfc-accent-light) !important;
}

.tribe-events-calendar-month__day-date {
  font-family: var(--tpfc-font-heading) !important;
  font-weight: 700;
}

.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date {
  color: var(--tpfc-accent) !important;
}

.tribe-events-calendar-month__calendar-event-details {
  border-radius: var(--tpfc-radius) !important;
  padding: 4px 8px !important;
  background: var(--tpfc-accent-light) !important;
  color: var(--tpfc-deep) !important;
  border-left: 3px solid var(--tpfc-accent) !important;
  font-size: var(--tpfc-font-xs) !important;
  margin-bottom: 4px;
}

/* List view */
.tribe-events .tribe-events-calendar-list__event {
  border-bottom: 1px solid var(--tpfc-line);
  padding: 1.5rem 0;
}

.tribe-events .tribe-events-calendar-list__event-title a {
  font-family: var(--tpfc-font-heading) !important;
  font-weight: 700;
  color: var(--tpfc-deep);
  font-size: var(--tpfc-font-xl);
}

.tribe-events .tribe-events-calendar-list__event-date-tag-datetime {
  color: var(--tpfc-accent);
  font-weight: 700;
}

/* Navigation buttons */
.tribe-events .tribe-events-c-top-bar__nav-list-item button,
.tribe-events .tribe-events-c-nav__prev,
.tribe-events .tribe-events-c-nav__next {
  font-family: var(--tpfc-font-heading) !important;
  font-weight: 700;
  color: var(--tpfc-deep);
  transition: color var(--tpfc-duration) var(--tpfc-ease);
}

/* View selector tabs */
.tribe-events .tribe-events-c-view-selector__button {
  font-family: var(--tpfc-font-heading) !important;
  text-transform: uppercase;
  font-size: var(--tpfc-font-xs);
  letter-spacing: 0.04em;
}

.tribe-events .tribe-events-c-view-selector__button--active {
  color: var(--tpfc-accent) !important;
}

/* Today button */
.tribe-events .tribe-events-c-top-bar__today-button {
  background: var(--tpfc-deep) !important;
  color: #F2F3D9 !important;
  border-radius: var(--tpfc-radius) !important;
  font-family: var(--tpfc-font-heading) !important;
  text-transform: uppercase;
  font-size: var(--tpfc-font-xs);
  padding: 6px 16px;
}

/* Responsive calendar */
@media (max-width: 768px) {
  .tribe-events-calendar-month__day {
    min-height: 60px;
  }

  .tribe-events-calendar-month__calendar-event-details {
    font-size: 0.65rem !important;
    padding: 2px 4px !important;
  }
}

/* Event tooltip (added by site.js) */
.tpfc-event-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--tpfc-deep);
  color: #F2F3D9;
  padding: 8px 14px;
  border-radius: var(--tpfc-radius);
  font-size: var(--tpfc-font-xs);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--tpfc-duration) var(--tpfc-ease);
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════
   LAYER 22B: BUTTON HOVER + SERVICE ICON + KEN BURNS
   ═══════════════════════════════════════ */
.tpfc-service-icon {
  transition: transform var(--tpfc-duration) var(--tpfc-ease);
}

/* Ken Burns on active slide */
@media (prefers-reduced-motion: no-preference) {
  .tpfc-image-slider__slide.is-active {
    -webkit-animation: tpfcKenBurns 12s ease-in-out infinite alternate;
    -moz-animation: tpfcKenBurns 12s ease-in-out infinite alternate;
    animation: tpfcKenBurns 12s ease-in-out infinite alternate;
    -webkit-transform-origin: center center;
    -moz-transform-origin: center center;
    transform-origin: center center;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  @-webkit-keyframes tpfcKenBurns {
    0% {
      -webkit-transform: scale(1);
      transform: scale(1);
    }

    100% {
      -webkit-transform: scale(1.06);
      transform: scale(1.06);
    }
  }

  @-moz-keyframes tpfcKenBurns {
    0% {
      -moz-transform: scale(1);
      transform: scale(1);
    }

    100% {
      -moz-transform: scale(1.06);
      transform: scale(1.06);
    }
  }

  @keyframes tpfcKenBurns {
    0% {
      -webkit-transform: scale(1);
      -moz-transform: scale(1);
      transform: scale(1);
    }

    100% {
      -webkit-transform: scale(1.06);
      -moz-transform: scale(1.06);
      transform: scale(1.06);
    }
  }
}

/* ═══════════════════════════════════════
   LAYER 22C: FLUENT FORMS STYLING
   ═══════════════════════════════════════ */
.fluentform .ff-el-input--content input,
.fluentform .ff-el-input--content textarea {
  border: 1px solid var(--tpfc-line) !important;
  border-radius: var(--tpfc-radius) !important;
  padding: 12px 16px !important;
  font-family: var(--tpfc-font-body) !important;
  font-size: var(--tpfc-font-base) !important;
  transition: border-color var(--tpfc-duration) var(--tpfc-ease), box-shadow var(--tpfc-duration) var(--tpfc-ease);
}

.fluentform .ff-el-input--content input:focus,
.fluentform .ff-el-input--content textarea:focus {
  border-color: var(--tpfc-accent) !important;
  box-shadow: 0 0 0 3px var(--tpfc-accent-light) !important;
  outline: none !important;
}

.fluentform .ff-btn-submit {
  background: var(--tpfc-accent) !important;
  border: none !important;
  border-radius: var(--tpfc-radius) !important;
  font-family: var(--tpfc-font-heading) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 14px 32px !important;
  font-size: var(--tpfc-font-sm) !important;
  cursor: pointer;
  transition: background var(--tpfc-duration) var(--tpfc-ease), transform var(--tpfc-duration) var(--tpfc-ease);
}

/* ═══════════════════════════════════════
   LAYER 23: PRINT
   ═══════════════════════════════════════ */
@media print {

  .tpfc-topbar,
  .tpfc-header__main,
  .tpfc-footer {
    display: none;
  }

  .tpfc-section {
    padding: 1rem 0;
  }

  body {
    font-size: 12pt;
    color: #000;
  }
}

/* ═══════════════════════════════════════
   LAYER 24: DESKTOP RESPONSIVE (< 1280px)
   ═══════════════════════════════════════ */
@media (max-width: 1280px) {
  .tpfc-nav__menu li a {
    padding: 9px 10px;
    font-size: 0.72rem;
  }
}

.tpfc-mobile-close {
  display: none;
}

@media (max-width: 1100px) {

  /* Logo shrink */
  .custom-logo-link img,
  .tpfc-brand__mark img {
    width: 100px;
    height: 100px;
  }

  .tpfc-brand__mark {
    padding: 6px;
    top: -6px;
  }

  .tpfc-brand__copy {
    padding-left: 130px;
  }

  /* Show hamburger, hide nav */
  .tpfc-nav-toggle {
    display: flex;
  }

  .tpfc-header__cta {
    display: none;
  }

  .tpfc-submenu-toggle {
    display: flex;
  }
  
  .tpfc-mobile-close {
    display: block;
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    font-size: 2.2rem;
    color: #000000;
    cursor: pointer;
    z-index: 1000;
  }

  .tpfc-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--tpfc-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cpath d='M-100 50 Q 200 600, 800 -100 M-200 800 C 400 900, 300 200, 1200 400' stroke='%2314532d' stroke-width='3' fill='none' opacity='0.5'/%3E%3C/svg%3E") no-repeat center/cover;
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    transform: translateX(-100%);
    transition: transform var(--tpfc-duration) var(--tpfc-ease);
    z-index: 998;
    overflow-y: auto;
  }

  .has-open-nav .tpfc-nav {
    transform: translateX(0);
  }

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

  .has-open-nav .tpfc-nav-toggle__line:nth-child(2) {
    opacity: 0;
  }

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

  .tpfc-nav__menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
    justify-content: flex-start;
  }

  .tpfc-nav__menu li a {
    padding: 14px 0;
    font-size: var(--tpfc-font-base);
    border-bottom: 1px solid var(--tpfc-line);
    border-radius: 0;
  }

  .tpfc-nav__menu li a:hover,
  .tpfc-nav__menu li:hover>a {
    background: transparent;
    color: var(--tpfc-ink);
    text-decoration: none;
    transform: none;
    box-shadow: none;
  }

  .tpfc-nav__menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1.5rem;
    display: none;
  }

  .tpfc-nav__menu li.is-open>.sub-menu {
    display: block;
  }

  .tpfc-home-intro__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tpfc-home-video__grid {
    grid-template-columns: 1fr;
  }

  .tpfc-home-news__grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════
   LAYER 25: TABLET (≤ 900px)
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
  .tpfc-grid--three {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .tpfc-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .tpfc-home-news__feature {
    min-height: 300px;
  }

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

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

  .tpfc-quote-block {
    padding: 2.5rem 2rem;
  }
}

/* ═══════════════════════════════════════
   LAYER 26: MOBILE (≤ 768px)
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --tpfc-section-pad: clamp(2rem, 4vw, 3rem);
    --tpfc-container: calc(100vw - 32px);
    --tpfc-container-wide: calc(100vw - 32px);
  }

  /* ── Header mobile ── */
  .tpfc-header__inner {
    padding: 10px 16px;
    gap: 0.5rem;
  }

  .custom-logo-link img,
  .tpfc-brand__mark img {
    width: 80px;
    height: 80px;
  }

  .tpfc-brand__mark {
    padding: 5px;
    top: -4px;
  }

  .tpfc-brand__copy {
    padding-left: 106px;
  }

  .tpfc-brand__title {
    font-size: 0.95rem;
  }

  .tpfc-brand__tagline {
    display: none;
  }

  /* ── Typography mobile ── */
  h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  h3 {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  /* Paragraphs: left-align on mobile (narrow width makes justify look bad) */
  p,
  .tpfc-section p,
  .tpfc-prose p,
  .tpfc-card p,
  .tpfc-about-content p,
  .tpfc-donate-content p,
  article p {
    text-align: left;
    hyphens: none;
  }

  /* ── Grids mobile ── */
  .tpfc-grid--two,
  .tpfc-grid--three,
  .tpfc-grid--four {
    grid-template-columns: 1fr;
  }

  /* ── Actions mobile ── */
  .tpfc-action-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .tpfc-action-row .tpfc-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* ── Hero sections ── */
  .tpfc-page-hero {
    padding: 3rem 0 2.5rem;
  }

  .tpfc-page-hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  /* ── Cards ── */
  .tpfc-card {
    padding: 1.25rem;
  }

  .tpfc-card--feature {
    padding: 1.5rem;
  }

  .tpfc-card__media {
    height: 180px;
  }

  /* ── Mission block ── */
  .tpfc-mission-block {
    padding: 1.5rem;
  }

  /* ── Values grid ── */
  .tpfc-values-grid {
    grid-template-columns: 1fr;
  }

  .tpfc-donate-options {
    grid-template-columns: 1fr;
  }

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

  /* ── Quote block ── */
  .tpfc-quote-block {
    padding: 2rem 1.25rem;
  }

  .tpfc-quote-block blockquote {
    font-size: var(--tpfc-font-base);
  }

  /* ── Programs highlight ── */
  .tpfc-programs-highlight {
    grid-template-columns: 1fr;
  }

  /* ── News feature ── */
  .tpfc-home-news__feature {
    min-height: 250px;
  }

  .tpfc-home-news__feature-card {
    padding: 3rem 1.25rem 1.25rem;
  }

  /* ── Footer ── */
  .tpfc-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tpfc-footer__bottom-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* ── Image slider ── */
  .tpfc-image-slider {
    min-height: 40vh;
  }

  /* ── Filter system ── */
  .tpfc-filter {
    padding: 1rem;
    flex-direction: column;
  }

  .tpfc-filter__search {
    max-width: 100%;
  }

  /* ── Content section padding ── */
  .tpfc-content-section .tpfc-container--full {
    padding: 0 16px;
  }

  .tpfc-mission-block {
    padding: 1.5rem 1.25rem;
  }

  /* ── Contact card ── */
  .tpfc-contact-card--expansive {
    padding: 1.5rem;
  }

  /* ── CTA center on mobile ── */
  .tpfc-home-cta__panel p {
    text-align: center;
  }
}

/* ═══════════════════════════════════════
   LAYER 27: SMALL MOBILE (≤ 480px)
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  .tpfc-header__inner {
    padding: 8px 14px;
  }

  .tpfc-brand__title {
    font-size: 1.05rem;
  }

  /* Removed truncation, max-width, and let it wrap normally */
  .custom-logo-link img,
  .tpfc-brand__mark img {
    width: 64px;
    height: 64px;
  }

  .tpfc-brand__mark {
    padding: 4px;
    top: -2px;
  }

  .tpfc-brand__copy {
    padding-left: 86px;
    display: flex;
  }

  /* override display none if present */

  .tpfc-donate-impact {
    grid-template-columns: 1fr;
  }

  .tpfc-impact-item .tpfc-impact-number {
    font-size: 2.2rem;
  }

  .tpfc-section {
    padding: 2rem 0;
  }

  .tpfc-btn {
    padding: 12px 20px;
    font-size: 0.8rem;
  }

  .tpfc-chip {
    padding: 6px 14px;
    font-size: 0.7rem;
  }

  /* Homepage feature card at very small widths */
  .tpfc-home-intro__card {
    padding: 1.5rem 1rem;
  }
}

/* ═══════════════════════════════════════
   LAYER 28: ULTRA-WIDE
   ═══════════════════════════════════════ */
@media (min-width: 2000px) {
  :root {
    --tpfc-container: min(1440px, 78vw);
    --tpfc-container-wide: min(1800px, 88vw);
  }
}

/* ═══════════════════════════════════════
   LAYER 29: ADAPTIVE DECLARATIVE HOVERS
   ═══════════════════════════════════════ */

/* Base hover color flip for all interactive elements */
a:hover, 
button:hover, 
.btn:hover, 
.tpfc-btn:hover,
.ff-btn-submit:hover,
.tpfc-card:hover {
  color: var(--tpfc-adaptive-hover-color) !important;
}

/* Context: When component background is white or near-white, hover must be dark */
.tpfc-card,
.tpfc-home-intro,
.tpfc-section,
.tpfc-bg-white,
.tpfc-bg-alt,
.tpfc-bg-warm,
.tpfc-panel--white,
.tpfc-contact-card {
  --tpfc-adaptive-hover-color: var(--tpfc-hover-text-dark);
}

/* Context: When component background is dark/colored, hover must be light */
.tpfc-bg-dark,
.tpfc-section--dark,
.tpfc-hero,
.tpfc-page-hero,
.tpfc-footer,
.tpfc-home-hero__panel {
  --tpfc-adaptive-hover-color: var(--tpfc-hover-text-light);
}

/* Specific Element Overrides for NON-hover states (Primary/Accent buttons always have light text) */
.tpfc-btn--accent, 
.tpfc-btn--primary,
.btn-orange, 
.ff-btn-submit {
  color: #F2F3D9 !important;
}

/* Specific Element Overrides for HOVER states */
.tpfc-btn--accent:hover, 
.tpfc-btn--primary:hover,
.btn-orange:hover, 
.ff-btn-submit:hover {
  --tpfc-adaptive-hover-color: var(--tpfc-hover-text-light) !important;
}
/* ═══════════════════════════════════════
   SUPPLEMENT: MISSING REQUIREMENT STYLES
   Requirements #2–#15
   ═══════════════════════════════════════ */

/* REQ #3 — COLOR SYSTEM CLEANUP (consolidated into :root above) */

/* ────────────────────────────────────────
   REQ #4 — ADAPTIVE HOVER ON ALL CLICKABLES
   Dark ancestor → white hover text
   White/near-white ancestor → #111827 hover
   Orange btn → always white
   ──────────────────────────────────────── */
a:hover {
  color: #E4906F;
  text-decoration: none;
}

.tpfc-btn:hover,
button:hover,
.tpfc-btn:focus,
button:focus {
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
  -webkit-transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
  transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
}

/* Primary green button */
.tpfc-btn--primary {
  background: #E4906F;
  color: #F2F3D9;
  border: 2px solid #E4906F;
}
.tpfc-btn--primary:hover,
.tpfc-btn--primary:focus {
  background: #E4906F;
  border-color: #E4906F;
  color: #F2F3D9;
}

/* Accent orange button — always white text */
.tpfc-btn--accent {
  background: var(--tpfc-accent);
  color: #F2F3D9 !important;
  border: 2px solid var(--tpfc-accent);
}
.tpfc-btn--accent:hover,
.tpfc-btn--accent:focus {
  background: var(--tpfc-accent-hover);
  border-color: var(--tpfc-accent-hover);
  color: #F2F3D9 !important;
}

/* Ghost button on light bg → dark text on hover */
.tpfc-btn--ghost {
  background: transparent;
  color: #E4906F;
  border: 2px solid #E4906F;
}
.tpfc-btn--ghost:hover,
.tpfc-btn--ghost:focus {
  background: #E4906F;
  color: #F2F3D9;
}

/* Ghost light — on dark bg */
.tpfc-btn--ghost-light {
  background: transparent;
  color: #F2F3D9;
  border: 2px solid #FFFFFF;
}
.tpfc-btn--ghost-light:hover,
.tpfc-btn--ghost-light:focus {
  background: #FFFFFF;
  color: #E4906F;
}

/* Small button variant */
.tpfc-btn--sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* Centres button */
.tpfc-btn--centers {
  font-size: 0.9rem;
}

/* Text links */
.tpfc-text-link:hover {
  color: #E4906F;
  text-decoration: underline;
}

/* Cards clickable hover */
a.tpfc-card:hover,
.tpfc-card--service:hover,
.tpfc-card--centre:hover {
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
  box-shadow: var(--tpfc-shadow-hover);
  -webkit-transition: -webkit-transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Nav items hover */
.tpfc-nav__menu > li > a:hover,
.tpfc-nav__menu > li > a:focus {
  color: #F2F3D9 !important;
  background: #E4906F;
}

/* On dark section backgrounds, text links stay white on hover */
.tpfc-section--dark a:hover,
.tpfc-home-cta a:hover,
.tpfc-footer a:hover {
  color: #E4906F;
}

/* ────────────────────────────────────────
   REQ #2 — NAVIGATION DROPDOWNS
   ──────────────────────────────────────── */
.tpfc-nav__menu .sub-menu {
  background: #E4906F;
  border-radius: var(--tpfc-radius);
  box-shadow: var(--tpfc-shadow-hover);
  min-width: 220px;
  -webkit-transform: translateY(8px);
  transform: translateY(8px);
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.2s ease, -webkit-transform 0.2s ease, visibility 0.2s ease;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.tpfc-nav__menu li.is-open > .sub-menu,
.tpfc-nav__menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.tpfc-nav__menu .sub-menu li a {
  color: #F2F3D9;
  padding: 10px 18px;
  display: block;
  font-size: 0.9rem;
  border-radius: 4px;
  -webkit-transition: color 0.2s, background 0.2s;
  transition: color 0.2s, background 0.2s;
}
.tpfc-nav__menu .sub-menu li a:hover,
.tpfc-nav__menu .sub-menu li a:focus {
  color: #E4906F;
  background: rgba(255,255,255,0.1);
}

/* ── Mobile Drawer ─────────────────────── */
.tpfc-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 90vw);
  height: 100vh;
  background: #E4906F;
  z-index: 9999;
  overflow-y: auto;
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
  -webkit-transition: -webkit-transform 0.35s cubic-bezier(0.22,1,0.36,1);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}

.tpfc-mobile-drawer.is-open {
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

.tpfc-mobile-drawer__bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.tpfc-mobile-drawer__inner {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* X close button — 44×44px min (req #2) */
.tpfc-mobile-drawer__close {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: #F2F3D9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}
.tpfc-mobile-drawer__close:hover,
.tpfc-mobile-drawer__close:focus {
  background: rgba(255,255,255,0.3);
}

.tpfc-mobile-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tpfc-mobile-nav > li {
  position: relative;
}

.tpfc-mobile-nav li a {
  display: block;
  padding: 14px 0;
  color: #F2F3D9;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}
.tpfc-mobile-nav li a:hover,
.tpfc-mobile-nav li a:focus {
  color: #E4906F;
}

.tpfc-mobile-nav li.tpfc-has-submenu > a {
  padding-right: 3rem;
}

.tpfc-mobile-submenu-toggle {
  position: absolute;
  right: 0;
  top: 7px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(242, 243, 217, 0.38);
  background: rgba(17, 24, 39, 0.22);
  color: #F2F3D9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-transition: background 0.25s ease, border-color 0.25s ease;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.tpfc-mobile-submenu-toggle span,
.tpfc-mobile-submenu-toggle span::after {
  content: "";
  display: block;
  position: absolute;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.tpfc-mobile-submenu-toggle span::after {
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
}

.tpfc-mobile-submenu-toggle:hover,
.tpfc-mobile-submenu-toggle:focus {
  background: rgba(17, 24, 39, 0.4);
  border-color: rgba(242, 243, 217, 0.65);
}

.tpfc-mobile-nav li.is-open > .tpfc-mobile-submenu-toggle span::after {
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
}

.tpfc-mobile-nav .sub-menu {
  padding-left: 1rem;
  display: none;
}
.tpfc-mobile-nav li.is-open > .sub-menu {
  display: block;
}
.tpfc-mobile-nav .sub-menu li a {
  font-size: 0.95rem;
  font-weight: 400;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(242, 243, 217, 0.14);
}

.tpfc-mobile-drawer__cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Overlay */
.tpfc-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}
.tpfc-mobile-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ────────────────────────────────────────
   REQ #5 — ANIMATION CSS VENDOR PREFIXES
   ──────────────────────────────────────── */

/* Scroll entrance */
.tpfc-reveal {
  opacity: 0;
  -webkit-transform: translateY(24px);
  transform: translateY(24px);
  -webkit-transition: opacity 600ms cubic-bezier(0.22,1,0.36,1),
                      -webkit-transform 600ms cubic-bezier(0.22,1,0.36,1);
  transition: opacity 600ms cubic-bezier(0.22,1,0.36,1),
              transform 600ms cubic-bezier(0.22,1,0.36,1);
}
.tpfc-reveal.is-visible {
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

/* Image entrance */
.tpfc-img-reveal {
  opacity: 0;
  -webkit-transform: scale(1.04);
  transform: scale(1.04);
  -webkit-transition: opacity 600ms cubic-bezier(0.22,1,0.36,1),
                      -webkit-transform 600ms cubic-bezier(0.22,1,0.36,1);
  transition: opacity 600ms cubic-bezier(0.22,1,0.36,1),
              transform 600ms cubic-bezier(0.22,1,0.36,1);
}
.tpfc-img-reveal.is-visible {
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
}

/* Spin animation for decorative SVG */
@-webkit-keyframes tpfcSpin {
  from { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  to   { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes tpfcSpin {
  from { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  to   { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

/* ────────────────────────────────────────
   REQ #6 — PROGRAM CAROUSEL
   ──────────────────────────────────────── */
.tpfc-program-carousel {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  aspect-ratio: 2.2/3.2;
  overflow: visible;
}

.tpfc-program-carousel__slide {
  position: absolute;
  inset: 0;
  border-radius: var(--tpfc-radius-lg);
  background: #ffffff;
  box-shadow: var(--tpfc-shadow-hover);
  opacity: 0;
  pointer-events: none;
  -webkit-transform: translateX(0) scale(0.6);
  transform: translateX(0) scale(0.6);
  -webkit-transform-origin: center center;
  transform-origin: center center;
  -webkit-transition: opacity 500ms ease, -webkit-transform 500ms var(--tpfc-ease);
  transition: opacity 500ms ease, transform 500ms var(--tpfc-ease);
  z-index: 1;
}

.tpfc-program-carousel__slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
  background: #ffffff;
}

.tpfc-program-carousel__slide.is-active {
  opacity: 1;
  -webkit-transform: translateX(0) scale(1);
  transform: translateX(0) scale(1);
  z-index: 3;
  pointer-events: auto;
}

.tpfc-program-carousel__slide.is-prev {
  opacity: 0.5;
  -webkit-transform: translateX(-64%) scale(0.6);
  transform: translateX(-64%) scale(0.6);
  z-index: 2;
}

.tpfc-program-carousel__slide.is-next {
  opacity: 0.5;
  -webkit-transform: translateX(64%) scale(0.6);
  transform: translateX(64%) scale(0.6);
  z-index: 2;
}

.tpfc-program-carousel__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(228, 144, 111, 0.9) 0%, transparent 100%);
  color: #F2F3D9;
  z-index: 5;
}
.tpfc-program-carousel__caption h3 {
  color: #F2F3D9;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.tpfc-program-carousel__caption p {
  font-size: 0.85rem;
  opacity: 0.85;
  margin: 0;
}

.tpfc-program-carousel__dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.tpfc-program-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-transition: background 0.2s, -webkit-transform 0.2s;
  transition: background 0.2s, transform 0.2s;
}
.tpfc-program-carousel__dot.is-active,
.tpfc-program-carousel__dot:hover {
  background: #FFFFFF;
  -webkit-transform: scale(1.3);
  transform: scale(1.3);
}
.tpfc-program-carousel__prev,
.tpfc-program-carousel__next {
  -webkit-transition: -webkit-transform 0.2s, background 0.2s;
  transition: transform 0.2s, background 0.2s;
}
.tpfc-program-carousel__prev:hover,
.tpfc-program-carousel__next:hover {
  background: rgba(255,255,255,1) !important;
  -webkit-transform: translateY(-50%) scale(1.1);
  transform: translateY(-50%) scale(1.1);
}

/* ────────────────────────────────────────
   REQ #7 — SEVEN TEACHINGS BLEND
   ──────────────────────────────────────── */
.tpfc-card--teaching {
  background: #FFFFFF !important;
  color: var(--tpfc-ink) !important;
  border-radius: var(--tpfc-radius-lg);
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--tpfc-line);
  -webkit-transition: -webkit-transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tpfc-card--teaching:hover {
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
  background: #FFFFFF !important;
  box-shadow: 0 0 25px rgba(212, 102, 58, 0.4) !important; /* Back glow */
  transition: all 0.3s ease !important;
}
.tpfc-card--teaching h3,
.tpfc-card--teaching:hover h3 {
  color: var(--tpfc-deep) !important;
}
.tpfc-card--teaching p,
.tpfc-card--teaching:hover p {
  color: var(--tpfc-ink-soft) !important;
}

.tpfc-teaching-animal img {
  mix-blend-mode: normal !important;
  max-height: 80px;
  width: auto;
  object-fit: contain;
  -webkit-filter: none !important;
  filter: none !important;
}

/* ────────────────────────────────────────
   REQ #8 — SPONSOR LOGOS SECTION
   ──────────────────────────────────────── */
.tpfc-funders {
  background: #FFFFFF;
  border-top: 1px solid var(--tpfc-line);
  padding: var(--tpfc-section-pad) 0;
}
.tpfc-funders__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: var(--tpfc-space-xl);
}
.tpfc-funder-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  -webkit-transition: -webkit-transform 0.25s ease, opacity 0.25s ease;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.tpfc-funder-logo:hover {
  -webkit-transform: scale(1.06);
  transform: scale(1.06);
}
.tpfc-funder-logo img {
  max-height: 90px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.2);
  -webkit-filter: grayscale(0.2);
  -webkit-transition: filter 0.25s;
  transition: filter 0.25s;
}
.tpfc-funder-logo:hover img {
  filter: grayscale(0);
  -webkit-filter: grayscale(0);
}
.tpfc-funder-logo__name {
  font-weight: 600;
  color: #E4906F;
  font-size: 0.9rem;
}

/* ────────────────────────────────────────
   REQ #9 — CENTRES PAGE
   ──────────────────────────────────────── */
.tpfc-centres-search-wrap {
  margin-bottom: 1.5rem;
}
.tpfc-centres-search {
  width: 100%;
  max-width: 500px;
  padding: 12px 20px;
  font-size: 1rem;
  font-family: var(--tpfc-font-body);
  border: 2px solid var(--tpfc-line);
  border-radius: var(--tpfc-radius);
  background: #FFFFFF;
  color: var(--tpfc-ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}
.tpfc-centres-search:focus {
  border-color: var(--tpfc-accent);
  box-shadow: 0 0 0 3px var(--tpfc-accent-light);
}
.tpfc-centres-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  background: var(--tpfc-bg-alt);
  padding: 1.5rem;
  border-radius: var(--tpfc-radius-lg);
}
.tpfc-centres-search-wrap {
  position: relative;
  flex: 1;
  min-width: 250px;
}
.tpfc-centres-province-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.tpfc-centres-province-filter .tpfc-chip {
  cursor: pointer;
  border: 1px solid var(--tpfc-line);
  background: #fff;
  color: var(--tpfc-ink-soft);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.tpfc-centres-province-filter .tpfc-chip.is-active,
.tpfc-centres-province-filter .tpfc-chip:hover {
  background: var(--tpfc-accent);
  color: #fff;
  border-color: var(--tpfc-accent);
}
.tpfc-centres-count {
  font-size: 0.9rem;
  color: var(--tpfc-ink-soft);
  margin-bottom: 1rem;
  font-weight: 600;
}
.tpfc-centres-map {
  width: 100%;
  height: 550px;
  border-radius: var(--tpfc-radius-lg);
  box-shadow: var(--tpfc-shadow);
  margin-bottom: 2rem;
  background: #f0f0f0;
  z-index: 1;
}
.tpfc-centres-info-panel {
  background: #FFFFFF;
  border: 2px solid #E4906F;
  border-radius: var(--tpfc-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  box-shadow: var(--tpfc-shadow);
}
.tpfc-centres-info-panel__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(228, 144, 111, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E4906F;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}
.tpfc-centres-info-panel__close:hover { background: rgba(228, 144, 111, 0.2); }
.tpfc-centres-info-panel__title {
  color: #E4906F;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.tpfc-centres-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.tpfc-card--centre {
  background: #FFFFFF;
  border: 1px solid var(--tpfc-line);
  border-radius: var(--tpfc-radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  -webkit-transition: -webkit-transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tpfc-card--centre:hover {
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
  box-shadow: var(--tpfc-shadow-hover);
  border-color: #E4906F;
}
.tpfc-card--centre h3 {
  font-size: 1rem;
  color: #E4906F;
  margin-bottom: 0.5rem;
}
.tpfc-map-pin { background: none; border: none; }

/* ────────────────────────────────────────
   REQ #10 — CONTACT PAGE
   ──────────────────────────────────────── */
.tpfc-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .tpfc-contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.tpfc-contact-details__heading,
.tpfc-contact-form__heading {
  color: #E4906F;
  font-size: var(--tpfc-font-2xl);
  margin-bottom: 1.5rem;
}
.tpfc-contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.tpfc-contact-item__icon {
  font-size: 1.3rem;
  line-height: 1.4;
  flex-shrink: 0;
}
.tpfc-contact-item strong {
  display: block;
  color: #E4906F;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.tpfc-contact-item a {
  color: var(--tpfc-ink);
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}
.tpfc-contact-item a:hover { color: #E4906F; }
.tpfc-contact-map-embed {
  margin-top: 1.5rem;
  border-radius: var(--tpfc-radius);
  overflow: hidden;
}

/* Fluent Forms theme overrides (req #10) */
.fluentform .ff-el-form-control,
.fluentform input[type=text],
.fluentform input[type=email],
.fluentform input[type=tel],
.fluentform textarea,
.fluentform select {
  background: #FFFFFF !important;
  border: 2px solid var(--tpfc-line) !important;
  border-radius: var(--tpfc-radius) !important;
  font-family: var(--tpfc-font-body) !important;
  font-size: var(--tpfc-font-base) !important;
  padding: 10px 14px !important;
  color: var(--tpfc-ink) !important;
  -webkit-transition: border-color 0.2s, box-shadow 0.2s !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
.fluentform .ff-el-form-control:focus,
.fluentform input[type=text]:focus,
.fluentform input[type=email]:focus {
  border-color: #E4906F !important;
  box-shadow: 0 0 0 3px rgba(228, 144, 111, 0.15) !important;
  outline: none !important;
}
.fluentform .ff-el-block-label label,
.fluentform label {
  font-weight: 600 !important;
  color: var(--tpfc-ink) !important;
  margin-bottom: 4px !important;
  display: block !important;
}
.fluentform .has-error .ff-el-form-control {
  border-color: #dc2626 !important;
  background: #FFFFFF !important;
}
.fluentform .error {
  color: #F2F3D9 !important;
  background: #dc2626 !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  font-size: 0.8rem !important;
}

/* Fallback form (when Fluent Forms absent) */
.tpfc-fallback-form .tpfc-form-row {
  margin-bottom: 1.25rem;
}
.tpfc-fallback-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--tpfc-ink);
}
.tpfc-fallback-form input,
.tpfc-fallback-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--tpfc-line);
  border-radius: var(--tpfc-radius);
  font-family: var(--tpfc-font-body);
  font-size: 1rem;
  background: #FFFFFF;
  color: var(--tpfc-ink);
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
}
.tpfc-fallback-form input:focus,
.tpfc-fallback-form textarea:focus {
  border-color: #E4906F;
  outline: none;
  box-shadow: 0 0 0 3px rgba(228, 144, 111, 0.15);
}

/* ────────────────────────────────────────
   REQ #11 — EVENTS CALENDAR OVERRIDES
   ──────────────────────────────────────── */
/* The Events Calendar plugin */
.tribe-events .tribe-events-header {
  background: #E4906F !important;
  color: #F2F3D9 !important;
}
.tribe-events .tribe-events-calendar th {
  background: #E4906F !important;
  color: #F2F3D9 !important;
  font-family: var(--tpfc-font-heading) !important;
}
.tribe-events .tribe-events-calendar td {
  background: #FFFFFF !important;
  border-color: var(--tpfc-line) !important;
}
.tribe-events .tribe-event-url,
.tribe-events .tribe-events-calendar .tribe-events-present > td:first-child,
.tribe-events a.tribe-event-url {
  color: #E4906F !important;
}
.tribe-events .tribe-event-featured-image,
.tribe-events .tribe-event,
.tribe-events .type-tribe_events {
  background: #FFFFFF !important;
  border-radius: var(--tpfc-radius) !important;
  box-shadow: var(--tpfc-shadow) !important;
}
.tribe-events .tribe-event:hover {
  box-shadow: var(--tpfc-shadow-hover) !important;
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}
/* Event pills / tags */
.tribe-events .tribe-events-calendar .tribe-events-calendar__mobile-events-icon--event,
.tribe-events span.tribe-event-dot {
  background: #E4906F !important;
}
/* Nav arrows / month navigation */
.tribe-events .tribe-events-nav-list a,
.tribe-events .tribe-events-c-nav__prev,
.tribe-events .tribe-events-c-nav__next {
  color: #E4906F !important;
  border-color: #E4906F !important;
  -webkit-transition: background 0.2s, color 0.2s;
  transition: background 0.2s, color 0.2s;
}
.tribe-events .tribe-events-c-nav__prev:hover,
.tribe-events .tribe-events-c-nav__next:hover {
  background: #E4906F !important;
  color: #F2F3D9 !important;
}
/* List view */
.tribe-events .tribe-events-calendar-list__event-row {
  background: #FFFFFF !important;
  border-radius: var(--tpfc-radius) !important;
  box-shadow: var(--tpfc-shadow) !important;
  margin-bottom: 1rem !important;
  padding: 1rem !important;
}
.tribe-events .tribe-events-calendar-list__event-title-link {
  color: #E4906F !important;
  font-family: var(--tpfc-font-heading) !important;
}

/* ────────────────────────────────────────
   REQ #12 — LANGUAGE SWITCHER
   ──────────────────────────────────────── */
.tpfc-lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}
.tpfc-lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  padding: 7px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--tpfc-font-body);
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
  -webkit-transition: background 0.24s, border-color 0.24s, box-shadow 0.24s;
  transition: background 0.24s, border-color 0.24s, box-shadow 0.24s;
}
.tpfc-lang-switcher__btn:hover,
.tpfc-lang-switcher__btn[aria-expanded="true"] {
  background: #D4663A;
  border-color: #D4663A;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(212, 102, 58, 0.28);
}
.tpfc-lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--tpfc-radius);
  box-shadow: var(--tpfc-shadow-hover);
  list-style: none;
  min-width: 180px;
  z-index: 999;
  overflow: hidden;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-transform: translateY(6px);
  transform: translateY(6px);
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.24s ease, -webkit-transform 0.24s ease;
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.tpfc-lang-switcher__dropdown.is-open {
  opacity: 1;
  pointer-events: auto;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
.tpfc-lang-switcher__dropdown li a,
.tpfc-lang-switcher__dropdown li button {
  display: block;
  width: 100%;
  padding: 11px 16px;
  color: #f8fafc;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--tpfc-font-body);
  -webkit-transition: background 0.15s, color 0.15s;
  transition: background 0.15s, color 0.15s;
}
.tpfc-lang-switcher__dropdown li a:hover {
  background: rgba(212, 102, 58, 0.24);
  color: #ffffff;
}
.tpfc-lang-switcher__dropdown li a[aria-current="page"] {
  color: #ffd8c7;
  font-weight: 700;
}

/* ────────────────────────────────────────
   REQ #13 — DECORATIVE SUN / MOON SVGs
   ──────────────────────────────────────── */
.tpfc-deco-sun {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
  color: #f59e0b;
  stroke: #f59e0b;
}
.tpfc-deco-moon {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
  color: #E4906F;
  stroke: #E4906F;
}
.tpfc-deco-sunflower {
  color: #F2F3D9;
  pointer-events: none;
}

/* ────────────────────────────────────────
   REQ #14 — COOKIE CONSENT BANNER
   ──────────────────────────────────────── */
.tpfc-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: #E4906F;
  color: #F2F3D9;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  -webkit-transform: translateY(0);
  transform: translateY(0);
  -webkit-transition: -webkit-transform 300ms cubic-bezier(0.22,1,0.36,1);
  transition: transform 300ms cubic-bezier(0.22,1,0.36,1);
}
.tpfc-cookie-banner.is-hidden {
  -webkit-transform: translateY(110%);
  transform: translateY(110%);
  pointer-events: none;
}
/* Hide immediately if already consented (JS adds class) */
.tpfc-cookie-banner--consented {
  display: none !important;
}
.tpfc-cookie-banner__text {
  font-size: 0.9rem;
  color: #F2F3D9;
  flex: 1;
  min-width: 200px;
}
.tpfc-cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.tpfc-cookie-banner .tpfc-btn--accent {
  background: var(--tpfc-accent);
  color: #F2F3D9;
  border-color: var(--tpfc-accent);
}
.tpfc-cookie-banner .tpfc-btn--ghost {
  background: transparent;
  color: #F2F3D9;
  border-color: rgba(255,255,255,0.6);
}
.tpfc-cookie-banner .tpfc-btn--ghost:hover {
  background: rgba(255,255,255,0.15);
  color: #F2F3D9;
}

/* ────────────────────────────────────────
   LANGUAGE SWITCHER (header variant — on dark green header)
   ──────────────────────────────────────── */
.tpfc-header__main .tpfc-lang-switcher__btn {
  color: #ffffff;
  border-color: rgba(255,255,255,0.62);
  background: rgba(15, 23, 42, 0.82);
}
.tpfc-header__main .tpfc-lang-switcher__btn:hover,
.tpfc-header__main .tpfc-lang-switcher__btn[aria-expanded="true"] {
  background: #D4663A;
  color: #ffffff;
}

/* ────────────────────────────────────────
   SECTION BACKGROUNDS — ensure alt uses correct color
   ──────────────────────────────────────── */
.tpfc-section--alt {
  background: var(--tpfc-bg-alt);
}
.tpfc-section--dark {
  background: var(--tpfc-bg-dark);
  color: var(--tpfc-ink-on-dark);
}
.tpfc-section--dark h2,
.tpfc-section--dark h3,
.tpfc-section--dark .tpfc-eyebrow {
  color: var(--tpfc-ink-on-dark);
}
.tpfc-section--warm {
  background: #FFFFFF;
}

/* ────────────────────────────────────────
   MOBILE RESPONSIVE UPDATES
   ──────────────────────────────────────── */
@media (max-width: 768px) {
  .tpfc-funders__logos {
    gap: 20px;
  }
  .tpfc-funder-logo img {
    max-height: 60px;
    max-width: 110px;
  }
  .tpfc-centres-map {
    height: 320px;
  }
  .tpfc-lang-switcher {
    display: none; /* Shown inside mobile drawer if needed */
  }
  .tpfc-cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .tpfc-header__cta {
    display: none;
  }
}

/* ═══════════════════════════════════════
   LAYER 24: ANIMATED FALLING LEAVES (Organic Edition)
   ═══════════════════════════════════════ */
.tpfc-leaves-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: visible;
}

.tpfc-leaf {
  position: absolute;
  width: 28px;
  height: 28px;
  top: -40px;
  left: 0;
  opacity: 1;
  -webkit-transition: background 2s ease, opacity 2s ease;
  -moz-transition: background 2s ease, opacity 2s ease;
  -ms-transition: background 2s ease, opacity 2s ease;
  transition: background 2s ease, opacity 2s ease;
  /* Soft, rounded organic leaf shape */
  border-radius: 2px 100% 5px 100%;
  background-color: #E4906F;
  background: -webkit-linear-gradient(135deg, #E4906F 0%, #E4906F 100%);
  background: -moz-linear-gradient(135deg, #E4906F 0%, #E4906F 100%);
  background: -ms-linear-gradient(135deg, #E4906F 0%, #E4906F 100%);
  background: linear-gradient(135deg, #E4906F 0%, #E4906F 100%);
  /* Deep Dark Green */
  -webkit-filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.15));
  -moz-filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.15));
  filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.15));
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.tpfc-leaf.is-orange {
  background-color: #8B4513;
  background: -webkit-linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
  background: -moz-linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
  background: -ms-linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
  background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
}

.tpfc-leaf.is-landing {
  opacity: 0 !important;
}



/* ═══════════════════════════════════════
   LAYER 30: MOBILE DRAWER (RESTORED)
   ═══════════════════════════════════════ */
.tpfc-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--tpfc-drawer-bg);
  z-index: 10001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  color: var(--tpfc-drawer-ink);
}
.tpfc-mobile-drawer.is-active {
  transform: translateX(0);
}
.tpfc-mobile-drawer__bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5;
}
.tpfc-mobile-drawer__close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: #F2F3D9;
  cursor: pointer;
  padding: 10px;
}
.tpfc-mobile-nav {
  margin-top: 2rem;
}
.tpfc-mobile-nav li a {
  display: block;
  padding: 15px 0;
  font-size: 1.25rem;
  color: #F2F3D9;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tpfc-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.tpfc-mobile-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* ═══════════════════════════════════════
   LAYER 31: COOKIE BANNER (RESTORED)
   ═══════════════════════════════════════ */
.tpfc-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 600px;
  background: #FFFFFF;
  color: var(--tpfc-ink);
  padding: 20px;
  border-radius: var(--tpfc-radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: 1px solid var(--tpfc-line);
  transition: opacity 0.5s ease;
}
@media (min-width: 768px) {
  .tpfc-cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.tpfc-cookie-banner__actions {
  display: flex;
  gap: 10px;
}
#tpfc-cookie-decline {
  color: var(--tpfc-deep) !important;
  border-color: var(--tpfc-deep) !important;
}

/* Scroll reveal — active (IntersectionObserver adds .is-visible) */
.tpfc-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s cubic-bezier(0.22,1,0.36,1);
  transition-delay: var(--tpfc-reveal-delay, 0ms);
}
.tpfc-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   DESKTOP DROPDOWNS
   ═══════════════════════════════════════ */
.tpfc-nav__menu .sub-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.tpfc-nav__menu li.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* ─── BUTTON FINAL OVERRIDES ─── */
.tpfc-btn--primary {
  background: var(--tpfc-deep) !important;
  border-color: var(--tpfc-deep) !important;
  color: #f0ede8 !important;
}
.tpfc-btn--primary:hover,
.tpfc-btn--primary:focus {
  background: #12122a !important;
  border-color: #12122a !important;
  color: #f0ede8 !important;
}

.tpfc-btn--ghost {
  color: var(--tpfc-deep) !important;
  border-color: var(--tpfc-deep) !important;
  background: transparent !important;
}
.tpfc-btn--ghost:hover,
.tpfc-btn--ghost:focus {
  background: var(--tpfc-deep) !important;
  border-color: var(--tpfc-deep) !important;
  color: #f0ede8 !important;
}

.tpfc-btn--ghost-light {
  color: #f0ede8 !important;
  border-color: rgba(255,255,255,0.7) !important;
  background: transparent !important;
}
.tpfc-btn--ghost-light:hover,
.tpfc-btn--ghost-light:focus {
  background: #FFFFFF !important;
  border-color: #FFFFFF !important;
  color: var(--tpfc-deep) !important;
}

.tpfc-btn--accent {
  background: var(--tpfc-accent) !important;
  border-color: var(--tpfc-accent) !important;
  color: #f0ede8 !important;
}
.tpfc-btn--accent:hover,
.tpfc-btn--accent:focus {
  background: var(--tpfc-accent-hover) !important;
  border-color: var(--tpfc-accent-hover) !important;
  color: #f0ede8 !important;
}

input[type="submit"],
.tpfc-btn-submit,
.ff-btn-submit,
.eael-fluent-form-wrapper .ff-btn-submit {
  background-color: #D4663A !important;
  background: #D4663A !important;
  color: #f0ede8 !important;
}
input[type="submit"]:hover,
.tpfc-btn-submit:hover,
.ff-btn-submit:hover,
.eael-fluent-form-wrapper .ff-btn-submit:hover {
  background-color: #B5512B !important;
  background: #B5512B !important;
  color: #f0ede8 !important;
}

/* ─── HERO FULL (CAAVD-style) ─── */
.tpfc-hero-full {
  position: relative;
  min-height: 100vh;
  background: var(--tpfc-bg-dark) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: none;
  overflow: hidden;
}
.tpfc-hero-full__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,46,0.3) 0%, rgba(26,26,46,0.75) 100%);
  z-index: 1;
}
.tpfc-wave-divider {
  position: absolute;
  left: 0;
  width: 100%;
  height: clamp(54px, 7vw, 96px);
  line-height: 0;
  pointer-events: none;
  z-index: 4;
}
.tpfc-wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

@-webkit-keyframes tpfcWaveRise {
  from {
    -webkit-transform: translate3d(0, 14px, 0);
    transform: translate3d(0, 14px, 0);
  }
  to {
    -webkit-transform: translate3d(0, -14px, 0);
    transform: translate3d(0, -14px, 0);
  }
}

@keyframes tpfcWaveRise {
  from {
    -webkit-transform: translate3d(0, 14px, 0);
    transform: translate3d(0, 14px, 0);
  }
  to {
    -webkit-transform: translate3d(0, -14px, 0);
    transform: translate3d(0, -14px, 0);
  }
}

.tpfc-wave-divider--bottom {
  bottom: -1px;
}
.tpfc-wave-divider--bottom path {
  fill: var(--tpfc-bg-warm);
}
.tpfc-wave-divider--bottom svg {
  -webkit-animation: tpfcWaveRise 14s linear infinite;
  animation: tpfcWaveRise 14s linear infinite;
}
.tpfc-wave-divider--top {
  top: -1px;
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}
.tpfc-wave-divider--top path {
  fill: rgba(15, 23, 38, 0.14);
}
.tpfc-wave-divider--top svg {
  -webkit-animation: tpfcWaveRise 11s linear infinite;
  animation: tpfcWaveRise 11s linear infinite;
}

.tpfc-hero-followup {
  position: relative;
  overflow: hidden;
  background: var(--tpfc-bg-warm);
  padding: clamp(3.4rem, 6vw, 5.6rem) 0 clamp(2.4rem, 4vw, 3.4rem);
}

.tpfc-hero-followup .tpfc-container {
  position: relative;
  z-index: 3;
}

.tpfc-hero-followup__deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.tpfc-deco-leafline,
.tpfc-deco-moonline,
.tpfc-deco-sunline {
  position: absolute;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tpfc-deco-leafline {
  color: rgba(212, 102, 58, 0.25);
  left: -3%;
  bottom: -46%;
  width: clamp(240px, 28vw, 430px);
  height: auto;
}

.tpfc-deco-moonline {
  color: rgba(17, 24, 39, 0.2);
  right: 8%;
  top: 11%;
  width: clamp(74px, 9vw, 132px);
  height: auto;
}

.tpfc-deco-sunline {
  color: rgba(212, 102, 58, 0.24);
  right: 18%;
  bottom: 8%;
  width: clamp(88px, 10vw, 152px);
  height: auto;
}

.tpfc-hero-followup__panel {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(26, 20, 18, 0.08);
  border-radius: var(--tpfc-radius-lg);
  box-shadow: 0 18px 36px rgba(11, 16, 32, 0.12);
  padding: clamp(1.8rem, 3.8vw, 3rem) clamp(1.1rem, 3vw, 2.8rem);
}

.tpfc-hero-followup__panel .tpfc-eyebrow {
  color: var(--tpfc-accent) !important;
}

.tpfc-hero-followup__panel h1 {
  color: var(--tpfc-deep) !important;
  margin-bottom: 0.8rem;
}

.tpfc-hero-followup__desc {
  color: var(--tpfc-ink-soft) !important;
  max-width: 780px;
  margin: 0 auto;
  text-align: center !important;
}

.tpfc-hero-followup__panel .tpfc-action-row {
  justify-content: center;
}

.tpfc-hero-full__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff !important;
  font-weight: 700;
  max-width: 850px;
  padding: 0 2rem;
}
.tpfc-hero-full__content h1 {
  color: #ffffff !important;
  font-weight: 800;
  font-size: var(--tpfc-font-4xl);
  margin-bottom: 1rem;
}
.tpfc-hero-full__content p {
  color: #ffffff !important;
  font-weight: 700;
  font-size: var(--tpfc-font-lg);
  text-align: center !important;
  max-width: 700px;
  margin: 0 auto 2rem;
}
.tpfc-hero-full__content .tpfc-eyebrow {
  color: #ffffff !important;
  font-weight: 700;
}

/* Social sidebar on hero */
.tpfc-hero-social {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  z-index: 5;
}
.tpfc-hero-social span {
  writing-mode: vertical-rl;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
}
.tpfc-hero-social a {
  color: rgba(255,255,255,0.8);
  transition: color 0.2s ease, transform 0.2s ease;
}
.tpfc-hero-social a svg {
  width: 25px;
  height: 25px;
}
.tpfc-hero-social a:hover {
  color: var(--tpfc-accent);
  transform: scale(1.2);
}
@media (max-width: 768px) {
  .tpfc-hero-social { display: none; }
  .tpfc-hero-full { clip-path: none; min-height: 70vh; }
  .tpfc-hero-followup {
    padding-top: clamp(2.8rem, 7vw, 3.6rem);
  }
  .tpfc-deco-leafline {
    left: -33%;
    bottom: -38%;
    width: clamp(220px, 68vw, 320px);
  }
  .tpfc-deco-moonline {
    right: 10%;
    top: 8%;
    width: 76px;
  }
  .tpfc-deco-sunline {
    right: 14%;
    bottom: 6%;
    width: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tpfc-wave-divider--top svg,
  .tpfc-wave-divider--bottom svg {
    -webkit-animation: none !important;
    animation: none !important;
  }
}

/* ─── FOLLOW-US SOCIAL BAR ─── */
.tpfc-social-bar {
  background: var(--tpfc-accent);
  padding: 1.5rem 0;
  text-align: center;
}
.tpfc-social-bar__title {
  color: #fff;
  font-family: var(--tpfc-font-heading);
  font-size: var(--tpfc-font-lg);
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tpfc-social-bar__icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.tpfc-social-bar__icons a {
  color: #fff;
  transition: transform 0.2s ease;
}
.tpfc-social-bar__icons a:hover {
  transform: scale(1.25);
}

/* ─── DIAGONAL SECTION TRANSITIONS ─── */
.tpfc-section--clip-top {
  clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -4vw;
  padding-top: calc(var(--tpfc-section-pad) + 4vw);
}
.tpfc-section--clip-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%);
}

/* ─── STICKY HEADER SCROLL STATE ─── */
.tpfc-header__main.is-scrolled {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-bottom: 1px solid rgba(228, 144, 111, 0.08);
}

/* ─── SVG ICON SYSTEM (replaces emojis) ─── */
.tpfc-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
}
.tpfc-icon--lg {
  width: 2rem;
  height: 2rem;
}
.tpfc-icon--xl {
  width: 3rem;
  height: 3rem;
}

/* ═══════════════════════════════════════
   LAYER 100: CROSS-BROWSER INTERACTION HARDENING
   ═══════════════════════════════════════ */
:root {
  --tpfc-motion-fast: 300ms;
  --tpfc-motion-base: 620ms;
  --tpfc-motion-slow: 1380ms;
  --tpfc-motion-curve: cubic-bezier(0.22, 1, 0.36, 1);
}

a,
button,
.tpfc-btn,
.tpfc-card,
.tpfc-chip,
.tpfc-nav__menu > li > a,
.tpfc-nav__menu .sub-menu li a,
.tpfc-text-link {
  -webkit-transition: color var(--tpfc-motion-base) var(--tpfc-motion-curve), background-color var(--tpfc-motion-base) var(--tpfc-motion-curve), border-color var(--tpfc-motion-base) var(--tpfc-motion-curve), box-shadow var(--tpfc-motion-base) var(--tpfc-motion-curve), -webkit-transform var(--tpfc-motion-base) var(--tpfc-motion-curve);
  transition: color var(--tpfc-motion-base) var(--tpfc-motion-curve), background-color var(--tpfc-motion-base) var(--tpfc-motion-curve), border-color var(--tpfc-motion-base) var(--tpfc-motion-curve), box-shadow var(--tpfc-motion-base) var(--tpfc-motion-curve), transform var(--tpfc-motion-base) var(--tpfc-motion-curve);
}

.tpfc-hero-fly,
.tpfc-reveal {
  opacity: 1;
  -webkit-transform: none;
  transform: none;
  -webkit-filter: none;
  filter: none;
}

body.tpfc-motion-enabled .tpfc-hero-fly {
  opacity: 0;
  -webkit-transform: translate3d(0, 84px, 0) scale(0.98);
  transform: translate3d(0, 84px, 0) scale(0.98);
  -webkit-filter: blur(3px);
  filter: blur(3px);
  -webkit-transition: opacity var(--tpfc-motion-slow) var(--tpfc-motion-curve), -webkit-transform var(--tpfc-motion-slow) var(--tpfc-motion-curve), -webkit-filter var(--tpfc-motion-slow) var(--tpfc-motion-curve);
  transition: opacity var(--tpfc-motion-slow) var(--tpfc-motion-curve), transform var(--tpfc-motion-slow) var(--tpfc-motion-curve), filter var(--tpfc-motion-slow) var(--tpfc-motion-curve);
  transition-delay: var(--tpfc-hero-delay, 0ms);
}

body.tpfc-motion-enabled.tpfc-hero-fly-ready .tpfc-hero-fly {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0) scale(1);
  transform: translate3d(0, 0, 0) scale(1);
  -webkit-filter: blur(0);
  filter: blur(0);
}

body.tpfc-motion-enabled .tpfc-reveal {
  opacity: 0;
  -webkit-transform: translate3d(0, 86px, 0) scale(0.968);
  transform: translate3d(0, 86px, 0) scale(0.968);
  -webkit-filter: blur(2px);
  filter: blur(2px);
  -webkit-transition: opacity var(--tpfc-motion-slow) var(--tpfc-motion-curve), -webkit-transform var(--tpfc-motion-slow) var(--tpfc-motion-curve), -webkit-filter var(--tpfc-motion-slow) var(--tpfc-motion-curve);
  transition: opacity var(--tpfc-motion-slow) var(--tpfc-motion-curve), transform var(--tpfc-motion-slow) var(--tpfc-motion-curve), filter var(--tpfc-motion-slow) var(--tpfc-motion-curve);
  transition-delay: var(--tpfc-reveal-delay, 0ms);
}

body.tpfc-motion-enabled .tpfc-reveal.tpfc-reveal--left {
  -webkit-transform: translate3d(-132px, 0, 0) scale(0.968);
  transform: translate3d(-132px, 0, 0) scale(0.968);
}

body.tpfc-motion-enabled .tpfc-reveal.tpfc-reveal--right {
  -webkit-transform: translate3d(132px, 0, 0) scale(0.968);
  transform: translate3d(132px, 0, 0) scale(0.968);
}

body.tpfc-motion-enabled .tpfc-reveal.is-visible {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0) scale(1);
  transform: translate3d(0, 0, 0) scale(1);
  -webkit-filter: blur(0);
  filter: blur(0);
}

body:not(.tpfc-motion-enabled) .tpfc-home-photo.tpfc-reveal.tpfc-reveal--left,
body:not(.tpfc-motion-enabled) .tpfc-home-photo.tpfc-reveal.tpfc-reveal--right {
  -webkit-transform: none !important;
  transform: none !important;
}

/* Delay all motion until splash is done and ready state is set by JS */
body.tpfc-motion-enabled.tpfc-splash-active:not(.tpfc-transitions-ready) a,
body.tpfc-motion-enabled.tpfc-splash-active:not(.tpfc-transitions-ready) button,
body.tpfc-motion-enabled.tpfc-splash-active:not(.tpfc-transitions-ready) .tpfc-btn,
body.tpfc-motion-enabled.tpfc-splash-active:not(.tpfc-transitions-ready) .tpfc-card,
body.tpfc-motion-enabled.tpfc-splash-active:not(.tpfc-transitions-ready) .tpfc-chip,
body.tpfc-motion-enabled.tpfc-splash-active:not(.tpfc-transitions-ready) .tpfc-nav__menu > li > a,
body.tpfc-motion-enabled.tpfc-splash-active:not(.tpfc-transitions-ready) .tpfc-nav__menu .sub-menu li a,
body.tpfc-motion-enabled.tpfc-splash-active:not(.tpfc-transitions-ready) .tpfc-text-link,
body.tpfc-motion-enabled.tpfc-splash-active:not(.tpfc-transitions-ready) .tpfc-hero-fly,
body.tpfc-motion-enabled.tpfc-splash-active:not(.tpfc-transitions-ready) .tpfc-reveal,
body.tpfc-motion-enabled.tpfc-splash-active:not(.tpfc-transitions-ready) .tpfc-leaf {
  -webkit-transition: none !important;
  transition: none !important;
}

body.tpfc-motion-enabled.tpfc-splash-active:not(.tpfc-transitions-ready) .tpfc-hero-fly {
  opacity: 0 !important;
  -webkit-transform: translate3d(0, 84px, 0) scale(0.98) !important;
  transform: translate3d(0, 84px, 0) scale(0.98) !important;
  -webkit-filter: blur(3px) !important;
  filter: blur(3px) !important;
}

body.tpfc-motion-enabled.tpfc-splash-active:not(.tpfc-transitions-ready) .tpfc-reveal {
  opacity: 0 !important;
  -webkit-transform: translate3d(0, 86px, 0) scale(0.968) !important;
  transform: translate3d(0, 86px, 0) scale(0.968) !important;
  -webkit-filter: blur(2px) !important;
  filter: blur(2px) !important;
}

body.tpfc-motion-enabled.tpfc-splash-active:not(.tpfc-transitions-ready) .tpfc-reveal.tpfc-reveal--left {
  -webkit-transform: translate3d(-132px, 0, 0) scale(0.968) !important;
  transform: translate3d(-132px, 0, 0) scale(0.968) !important;
}

body.tpfc-motion-enabled.tpfc-splash-active:not(.tpfc-transitions-ready) .tpfc-reveal.tpfc-reveal--right {
  -webkit-transform: translate3d(132px, 0, 0) scale(0.968) !important;
  transform: translate3d(132px, 0, 0) scale(0.968) !important;
}

body.home .tpfc-header__main,
body.front-page .tpfc-header__main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(228, 144, 111, 0.08);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.home .tpfc-header__main.is-scrolled,
body.front-page .tpfc-header__main.is-scrolled {
  background: #ffffff;
  box-shadow: none;
  border-bottom: 1px solid rgba(228, 144, 111, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.tpfc-nav__menu > li > a:hover,
.tpfc-nav__menu > li > a:focus {
  color: #ffffff !important;
  background: var(--tpfc-accent) !important;
  box-shadow: 0 10px 26px rgba(212, 102, 58, 0.35);
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
}

.tpfc-nav__menu .sub-menu {
  background: #ffffff !important;
  border: 1px solid rgba(11, 16, 32, 0.08);
  border-top: 3px solid var(--tpfc-accent);
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-transform: translateY(10px);
  transform: translateY(10px);
}

.tpfc-nav__menu li.is-open > .sub-menu,
.tpfc-nav__menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.tpfc-nav__menu .sub-menu li a {
  color: #111827 !important;
  background: transparent !important;
}

.tpfc-nav__menu .sub-menu li a:hover,
.tpfc-nav__menu .sub-menu li a:focus {
  color: #ffffff !important;
  background: var(--tpfc-accent) !important;
}

.tpfc-btn--ghost {
  color: var(--tpfc-deep) !important;
  border-color: var(--tpfc-deep) !important;
  background: transparent !important;
}

.tpfc-btn--ghost:hover,
.tpfc-btn--ghost:focus {
  background: var(--tpfc-deep) !important;
  border-color: var(--tpfc-deep) !important;
  color: var(--tpfc-ink-on-dark) !important;
}

.tpfc-btn--ghost-light:hover,
.tpfc-btn--ghost-light:focus {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--tpfc-deep) !important;
}

.tpfc-section--dark,
.tpfc-home-cta,
.tpfc-footer {
  color: var(--tpfc-ink-on-dark) !important;
}

.tpfc-section--dark h1,
.tpfc-section--dark h2,
.tpfc-section--dark h3,
.tpfc-section--dark p,
.tpfc-home-cta h1,
.tpfc-home-cta h2,
.tpfc-home-cta p,
.tpfc-footer h2,
.tpfc-footer h3,
.tpfc-footer p,
.tpfc-footer li,
.tpfc-footer a {
  color: var(--tpfc-ink-on-dark) !important;
}

.tpfc-section:not(.tpfc-section--dark) p,
.tpfc-card p,
.tpfc-contact-card p,
.tpfc-centres-count {
  color: var(--tpfc-ink-soft);
}

body.home .tpfc-leaves-canvas,
body.front-page .tpfc-leaves-canvas {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  pointer-events: none;
  z-index: 900;
  overflow: hidden;
}

.tpfc-leaf {
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.tpfc-centres-info-panel[hidden] {
  display: none !important;
}

.tpfc-centres-info-panel {
  border-left: 4px solid var(--tpfc-accent);
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #faf8f5 100%);
}

.tpfc-centres-filter-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
}

@media (max-width: 900px) {
  .tpfc-centres-filter-actions {
    margin-left: 0;
    width: 100%;
  }
}

.tpfc-card--centre.is-selected {
  border-color: var(--tpfc-accent);
  box-shadow: 0 16px 34px rgba(212, 102, 58, 0.24);
}

.tpfc-centres-empty {
  grid-column: 1 / -1;
  background: var(--tpfc-bg-warm);
  border: 1px dashed var(--tpfc-line);
  border-radius: var(--tpfc-radius-lg);
  padding: 1.25rem 1.5rem;
  color: var(--tpfc-ink-soft);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .tpfc-hero-fly,
  body.tpfc-hero-fly-ready .tpfc-hero-fly,
  .tpfc-reveal,
  .tpfc-reveal.is-visible,
  .tpfc-leaf,
  .tpfc-card,
  .tpfc-btn,
  .tpfc-nav__menu > li > a {
    -webkit-transition: none !important;
    transition: none !important;
    -webkit-transform: none !important;
    transform: none !important;
    -webkit-filter: none !important;
    filter: none !important;
  }
}

/* Requested UI fixes (2026-04-20) */
.tpfc-section .tpfc-card--service {
  background: #b8562f !important;
  border: 2px solid #1a1412 !important;
  box-shadow: none !important;
}

.tpfc-section .tpfc-card--service h2,
.tpfc-section .tpfc-card--service h3,
.tpfc-section .tpfc-card--service h4,
.tpfc-section .tpfc-card--service p {
  color: #f8f3eb !important;
}

.tpfc-section .tpfc-card--service .tpfc-text-link {
  color: #111111 !important;
  font-weight: 700;
  text-decoration: none !important;
}

.tpfc-section .tpfc-card--service:hover {
  background: #ffffff !important;
  -webkit-transform: translateY(-4px) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 18px 42px rgba(212, 102, 58, 0.45) !important;
}

.tpfc-section .tpfc-card--service:hover h2,
.tpfc-section .tpfc-card--service:hover h3,
.tpfc-section .tpfc-card--service:hover h4,
.tpfc-section .tpfc-card--service:hover p {
  color: #111111 !important;
}

.tpfc-section .tpfc-card--service:hover .tpfc-text-link,
.tpfc-section .tpfc-card--service .tpfc-text-link:hover {
  color: #E4906F !important;
}

.tpfc-hero-full__content .tpfc-eyebrow,
.tpfc-hero .tpfc-eyebrow.tpfc-hero-fly,
.tpfc-page-hero .tpfc-eyebrow.tpfc-hero-fly {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.tpfc-hero-full__content .tpfc-eyebrow::before,
.tpfc-hero-full__content .tpfc-eyebrow::after {
  background: rgba(0, 0, 0, 0.28) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.tpfc-header__cta .tpfc-btn--ghost {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #ffffff !important;
  box-shadow: none !important;
}

.tpfc-header__cta .tpfc-btn--ghost:hover,
.tpfc-header__cta .tpfc-btn--ghost:focus {
  background: #111827 !important;
  color: #ffffff !important;
  border-color: #111827 !important;
  box-shadow: none !important;
}

body.page .tpfc-page-hero__inner,
body.page .tpfc-hero__inner,
body.page .entry-header,
body.page .entry-header .entry-title,
body.page .tpfc-section__heading {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

/* Remove overlaid page hero title labels/headings that blend into image backgrounds. */
body.page .tpfc-hero .tpfc-eyebrow,
body.page .tpfc-page-hero .tpfc-eyebrow,
body.page .tpfc-hero h1,
body.page .tpfc-page-hero h1,
body.page .entry-header .entry-title {
  display: none !important;
}

body.home .tpfc-hero-full__content .tpfc-eyebrow,
body.home .tpfc-hero-full__content h1,
body.home .tpfc-hero-full__content p,
body.front-page .tpfc-hero-full__content .tpfc-eyebrow,
body.front-page .tpfc-hero-full__content h1,
body.front-page .tpfc-hero-full__content p {
  text-align: justify !important;
  text-justify: inter-word;
}

body.home .tpfc-hero-full__content .tpfc-action-row,
body.front-page .tpfc-hero-full__content .tpfc-action-row {
  justify-content: center !important;
}

.tpfc-mobile-drawer {
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  padding: 1.5rem 1.25rem !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

.tpfc-mobile-drawer.is-active {
  -webkit-transform: translateX(0) !important;
  transform: translateX(0) !important;
}

.tpfc-mobile-drawer__inner,
.tpfc-mobile-drawer nav,
.tpfc-mobile-nav,
.tpfc-mobile-nav li,
.tpfc-mobile-nav li a,
.tpfc-mobile-nav .sub-menu {
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

.tpfc-mobile-nav li a {
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}

.tpfc-mobile-drawer__bg-svg {
  max-width: 100% !important;
  overflow: hidden !important;
}

.tpfc-mobile-overlay.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.tpfc-mobile-drawer__cta .tpfc-btn--ghost {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #ffffff !important;
}

.tpfc-mobile-drawer__cta .tpfc-btn--ghost:hover,
.tpfc-mobile-drawer__cta .tpfc-btn--ghost:focus {
  background: #111827 !important;
  color: #ffffff !important;
  border-color: #111827 !important;
}

.tpfc-mobile-lang-fab {
  display: none; /* shown below via media query */
}
@media (max-width: 1024px) {
  .tpfc-mobile-lang-fab {
    display: block;
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9000;
  }
  .tpfc-mobile-lang-fab .tpfc-lang-switcher__btn {
    background: var(--tpfc-accent);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 99px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  }
  .tpfc-mobile-lang-fab .tpfc-lang-switcher__dropdown {
    bottom: calc(100% + 0.5rem);
    top: auto;
    right: 0;
    left: auto;
  }
  /* Hide the desktop lang switcher on mobile */
  .tpfc-header__right .tpfc-lang-switcher:not(.tpfc-lang-switcher--mobile) {
    display: none;
  }
}

/* Keep Indigenous Languages pamphlet images readable across templates/builders. */
.tpfc-pamphlet-gallery {
  display: grid;
  gap: clamp(1rem, 0.8rem + 0.7vw, 1.5rem);
  max-width: 860px;
  margin: 0 auto;
}

.tpfc-pamphlet-figure {
  margin: 0;
  padding: 0;
}

.tpfc-pamphlet-img,
.entry-content img[src*="assets/img/indigenous-languages/pamphlet-"],
.elementor img[src*="assets/img/indigenous-languages/pamphlet-"] {
  display: block;
  width: min(100%, 760px) !important;
  max-width: 760px !important;
  height: auto;
  margin: 0 auto;
  border-radius: var(--tpfc-radius-lg);
  box-shadow: var(--tpfc-shadow-hover);
}

@media (max-width: 768px) {
  .tpfc-pamphlet-img,
  .entry-content img[src*="assets/img/indigenous-languages/pamphlet-"],
  .elementor img[src*="assets/img/indigenous-languages/pamphlet-"] {
    width: min(100%, 92vw) !important;
    max-width: 92vw !important;
    border-radius: 12px;
  }
}

.tpfc-leaves-canvas,
.tpfc-leaf {
  display: none !important;
}

@media (max-width: 768px) {
  .tpfc-mobile-lang-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 10052;
    display: block;
  }

  .tpfc-mobile-lang-fab .tpfc-lang-switcher {
    display: flex !important;
  }

  .tpfc-mobile-lang-fab .tpfc-lang-switcher__btn {
    background: #111827 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.32) !important;
  }

  .tpfc-mobile-lang-fab .tpfc-lang-switcher__dropdown {
    top: auto;
    bottom: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: #111827;
    border-color: rgba(255, 255, 255, 0.18);
  }

  .tpfc-mobile-lang-fab .tpfc-lang-switcher__dropdown li a {
    color: #ffffff;
  }
}

/* Final UX hotfixes: cookie readability + mobile burger clipping. */
.tpfc-cookie-banner,
.tpfc-cookie-banner__text,
.tpfc-cookie-banner a,
.tpfc-cookie-banner strong,
.tpfc-cookie-banner span {
  color: #111111 !important;
}

.tpfc-cookie-banner .tpfc-btn,
.tpfc-cookie-banner .tpfc-btn--accent,
.tpfc-cookie-banner .tpfc-btn--ghost {
  color: #111111 !important;
  border-color: #111111 !important;
}

.tpfc-cookie-banner .tpfc-btn--accent {
  background: #f5c8b5 !important;
}

.tpfc-cookie-banner .tpfc-btn--ghost {
  background: #ffffff !important;
}

.tpfc-cookie-banner.is-hidden {
  -webkit-transform: translate(-50%, 130%) !important;
  transform: translate(-50%, 130%) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 1100px) {
  .tpfc-header__main,
  .tpfc-header__inner,
  .tpfc-header__right {
    overflow: visible !important;
  }

  .tpfc-header__right {
    margin-left: auto !important;
    min-width: 48px;
    justify-content: flex-end !important;
    position: relative;
    z-index: 10050;
  }

  .tpfc-nav-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px;
    min-height: 46px;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid rgba(17, 24, 39, 0.18) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    -webkit-tap-highlight-color: transparent;
    overflow: visible !important;
    position: relative;
    z-index: 10055;
  }

  .tpfc-nav-toggle__line {
    width: 22px !important;
    background: #111827 !important;
  }
}

@media (max-width: 480px) {
  .tpfc-brand__copy {
    padding-left: 78px !important;
  }

  .tpfc-nav-toggle {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px;
    min-height: 42px;
    padding: 9px !important;
  }
}

/* ─── CHANGE 4: Navbar title wraps to two lines below 363px ─── */
@media (max-width: 362px) {
  .tpfc-brand__title {
    font-size: clamp(0.85rem, 3.5vw, 1.05rem) !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }

  .tpfc-brand__title-part1 {
    display: block;
  }

  .tpfc-brand__title-part2 {
    display: block;
  }

  .tpfc-brand__tagline {
    font-size: 0.65rem !important;
    white-space: nowrap;
  }
}

@media (min-width: 363px) {
  .tpfc-brand__title-part1,
  .tpfc-brand__title-part2 {
    display: inline;
  }
}

/* ═══════════════════════════════════════════════════════════════
   2026-05 HOMEPAGE REDESIGN ADDITIONS
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. HERO VIDEO BACKGROUND ───────────────────────────────── */

/* DESKTOP: full-viewport cover, video centred and cropped like background-size:cover */
.tpfc-hero-full--video {
  position: relative;
  width: 100%;
  min-height: 100svh;
  min-height: 100vh;
  overflow: hidden;
  background: #0b1020;
  /* padding-bottom ensures the wave bites into the real video bottom */
  padding-bottom: clamp(40px, 6vw, 100px);
}
.tpfc-hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.tpfc-hero-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;        /* 16:9 by width */
  min-height: 100vh;
  min-height: 100svh;
  min-width: 177.78vh;    /* 16:9 by height — kicks in on portrait */
  min-width: 177.78svh;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
  display: block;
}
/* Transparent click-blocker so YouTube hover UI never shows */
.tpfc-hero-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  pointer-events: auto;
  cursor: default;
}
.tpfc-hero-full--video .tpfc-hero-full__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(11,16,32,0.30) 0%, rgba(11,16,32,0.68) 100%);
  pointer-events: none;
}
.tpfc-hero-full--video .tpfc-hero-social {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  pointer-events: auto;
}
.tpfc-hero-full--video .tpfc-hero-social a:hover {
  color: #E4906F;
  transform: scale(1.2);
}

/* MOBILE: video is exactly screen-width × 16:9 height.
   Section shrinks to fit the video — no full-screen cover.
   Wave overlaps bottom edge via the wave negative-margin CSS. */
@media (max-width: 768px) {
  .tpfc-hero-full--video {
    /* Height = natural 16:9 height of a 100vw-wide video */
    min-height: 0;
    height: 56.25vw;
    /* Keep padding-bottom for wave overlap */
    padding-bottom: clamp(30px, 5vw, 60px);
    overflow: visible; /* let wave div sit on top without clipping */
  }
  .tpfc-hero-video-bg {
    /* On mobile the bg container is the full section height */
    position: absolute;
    inset: 0;
    overflow: hidden;
  }
  .tpfc-hero-video-bg iframe {
    /* Reset cover math — just fill 100vw × 56.25vw exactly */
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 56.25vw;
    min-height: 0;
    min-width: 0;
    transform: none;
  }
}

/* ── 2. YOUTUBE VIDEO GALLERY ───────────────────────────────── */
.tpfc-home-yt-gallery {
  background: var(--tpfc-bg-dark) !important;
  padding: var(--tpfc-section-pad) 0;
}
.tpfc-yt-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.tpfc-yt-gallery__item {
  border-radius: var(--tpfc-radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  background: #000;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tpfc-yt-gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(228,144,111,0.35);
}
.tpfc-yt-gallery__embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.tpfc-yt-gallery__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 900px) {
  .tpfc-yt-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .tpfc-yt-gallery {
    grid-template-columns: 1fr;
  }
}

/* ── 3. SERVICE CARDS — hover-as-default + 4-layer orange shadow ─ */
/* Default state now uses the "old hover" white bg + dark text */
.tpfc-section .tpfc-card--service-new {
  background: #ffffff !important;
  border: 2px solid rgba(228,144,111,0.18) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
  transition: box-shadow 0.3s ease, transform 0.25s ease !important;
}
.tpfc-section .tpfc-card--service-new h2,
.tpfc-section .tpfc-card--service-new h3,
.tpfc-section .tpfc-card--service-new h4,
.tpfc-section .tpfc-card--service-new p {
  color: #111111 !important;
}
.tpfc-section .tpfc-card--service-new .tpfc-text-link {
  color: var(--tpfc-accent) !important;
  font-weight: 700;
}
/* 4-layer orange repeating shadow on hover — each layer offset + fading */
.tpfc-section .tpfc-card--service-new:hover {
  transform: translateY(-4px) !important;
  box-shadow:
    0  4px  0  0   rgba(228,144,111,0.55),
    0  8px  0  0   rgba(228,144,111,0.35),
    0 13px  0  0   rgba(228,144,111,0.18),
    0 19px  0  0   rgba(228,144,111,0.07) !important;
}
.tpfc-section .tpfc-card--service-new:hover h2,
.tpfc-section .tpfc-card--service-new:hover h3,
.tpfc-section .tpfc-card--service-new:hover h4,
.tpfc-section .tpfc-card--service-new:hover p {
  color: #111111 !important;
}
.tpfc-section .tpfc-card--service-new:hover .tpfc-text-link {
  color: var(--tpfc-accent) !important;
}
/* Keep service icon colours visible on white */
.tpfc-card--service-new .tpfc-service-icon--health    { background: rgba(80,200,180,0.12); color: var(--tpfc-turquoise); }
.tpfc-card--service-new .tpfc-service-icon--education { background: rgba(228,144,111,0.12); color: var(--tpfc-accent); }
.tpfc-card--service-new .tpfc-service-icon--youth     { background: rgba(89,81,167,0.1);   color: #5951A7; }
.tpfc-card--service-new .tpfc-service-icon--culture   { background: rgba(180,90,60,0.1);   color: var(--tpfc-brown); }
.tpfc-card--service-new .tpfc-service-icon--housing   { background: rgba(228,144,111,0.1); color: #E4906F; }
.tpfc-card--service-new .tpfc-service-icon--community { background: rgba(212,174,56,0.12); color: var(--tpfc-gold); }

/* ── 4. EVENTS & NEWS — centered layout ────────────────────── */
.tpfc-home-news__centered-stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: 1rem;
}
.tpfc-news-item--centered {
  background: var(--tpfc-bg-warm);
  border-radius: var(--tpfc-radius-lg);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-left: 4px solid var(--tpfc-accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tpfc-news-item--centered:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}
.tpfc-section--events-news .tpfc-section__heading {
  text-align: center;
}

/* ── 5. SUNFLOWER — bigger + responsive ─────────────────────── */
/* Overrides the old inline width:200px */
.tpfc-home-cta .tpfc-deco-sunflower {
  width: clamp(180px, 28vw, 380px) !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  opacity: 0.08 !important;
}

/* ── 6. NAV DROPDOWN FIX ─────────────────────────────────────── */
/* Ensure desktop sub-menu only shows on .is-open or :hover — pointer-events fix */
.tpfc-nav__menu li.menu-item-has-children {
  position: relative;
}
.tpfc-nav__menu li.menu-item-has-children > .sub-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #ffffff !important;
  border-radius: var(--tpfc-radius);
  border-top: 3px solid var(--tpfc-accent);
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
  list-style: none;
  padding: 0.4rem 0;
  margin: 0;
}
.tpfc-nav__menu li.menu-item-has-children:hover > .sub-menu,
.tpfc-nav__menu li.menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.tpfc-nav__menu li.menu-item-has-children > .sub-menu li a {
  display: block;
  padding: 9px 18px;
  color: #111827 !important;
  font-size: 0.88rem;
  white-space: nowrap;
  background: transparent !important;
  transition: background 0.15s, color 0.15s;
}
.tpfc-nav__menu li.menu-item-has-children > .sub-menu li a:hover,
.tpfc-nav__menu li.menu-item-has-children > .sub-menu li a:focus {
  background: var(--tpfc-accent) !important;
  color: #fff !important;
}
/* Dropdown chevron indicator on parent links */
.tpfc-nav__menu li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  margin-left: 5px;
  vertical-align: middle;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform 0.2s;
}
.tpfc-nav__menu li.menu-item-has-children.is-open > a::after,
.tpfc-nav__menu li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* ── 7. SUPPRESS TranslatePress default floating widget ─────── */
#trp-floatingbar,
.trp-floatingbar,
#trp-language-switcher-container,
.trp-language-switcher,
.trp-floating-ls,
#trp-floating-ls,
div[id^="trp-"] > .trp-ls-shortcode-container:not(.tpfc-trp-integrated),
.trp-ls-shortcode-container { display: none !important; }

/* ── 8. GLOBAL RESPONSIVE CONSISTENCY ──────────────────────── */
/* All images and iframes scale within their containers */
img, iframe, video, embed, object {
  max-width: 100%;
  height: auto;
}
/* Hero video iframe uses explicit cover-sizing — exempt from global height:auto */
.tpfc-hero-video-bg iframe {
  height: 56.25vw !important;
  max-width: none !important;
}
/* Desktop: enforce viewport height floor */
@media (min-width: 769px) {
  .tpfc-hero-video-bg iframe {
    min-height: 100vh !important;
    min-height: 100svh !important;
  }
}
/* Gallery iframes with a fixed ratio container keep 100% height */
.tpfc-yt-gallery__embed iframe {
  height: 100%;
}
/* Section padding consistency on small screens */
@media (max-width: 640px) {
  .tpfc-home-cta .tpfc-deco-sunflower {
    opacity: 0.05 !important;
  }
  .tpfc-home-news__centered-stack {
    grid-template-columns: 1fr;
  }
  .tpfc-yt-gallery {
    grid-template-columns: 1fr;
  }
  .tpfc-home-cta__panel {
    padding: 0 1rem;
  }
}

/* ── 9. SECTION ILLUSTRATIONS — consistent overflow guard ────── */
.tpfc-section--services,
.tpfc-section--events-news,
.tpfc-home-cta {
  overflow: hidden;
}
/* Illustration SVGs in sections must never cause horizontal scroll */
.tpfc-section--services > svg,
.tpfc-section--events-news > svg,
.tpfc-home-cta > svg[aria-hidden] {
  overflow: hidden;
  flex-shrink: 0;
}

/* ── 10. WAVE SEPARATOR — overlap hero bottom edge ─────────── */
/* Wave pulls up with negative margin-top = hero padding-bottom,
   so it sits exactly over the bottom edge of the video.
   z-index 20 puts it above everything in the hero (max z=6). */
.tpfc-hero-full--video ~ div[aria-hidden="true"] {
  position: relative;
  margin-top: calc(-1 * clamp(40px, 6vw, 100px));
  z-index: 20;
  overflow: hidden;
  line-height: 0;
  transform: translateZ(0);
}
.tpfc-hero-full--video + div[aria-hidden="true"] {
  z-index: 20;
}
/* Mobile: match the smaller padding-bottom used on mobile hero */
@media (max-width: 768px) {
  .tpfc-hero-full--video ~ div[aria-hidden="true"] {
    margin-top: calc(-1 * clamp(30px, 5vw, 60px));
  }
}

/* ── 11. BACKSTOP: never leave reveals permanently invisible ─── */
/* If JS fails to add tpfc-transitions-ready within 8s,
   the content must still be visible. We use an animation delay backstop. */
.tpfc-reveal,
.tpfc-hero-fly {
  /* Animate to visible after 8s regardless of JS state */
  -webkit-animation: tpfcRevealBackstop 0s 8s forwards;
  animation: tpfcRevealBackstop 0s 8s forwards;
}
@-webkit-keyframes tpfcRevealBackstop {
  to {
    opacity: 1 !important;
    -webkit-transform: none !important;
    transform: none !important;
    filter: none !important;
  }
}
@keyframes tpfcRevealBackstop {
  to {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
/* When JS has properly unlocked, override backstop with normal transitions */
body.tpfc-transitions-ready .tpfc-reveal,
body.tpfc-transitions-ready .tpfc-hero-fly {
  -webkit-animation: none;
  animation: none;
}

/* ── 12. HERO VIDEO: content z-index above overlay ──────────── */
/* Ensure social icons and any hero content sit above the gradient overlay */
.tpfc-hero-full--video > *:not(.tpfc-hero-video-bg):not(.tpfc-hero-full__overlay) {
  position: relative;
  z-index: 5;
}

/* ── 13. PREVENT BODY SCROLL LOCK PERSISTENCE ───────────────── */
/* Some browsers keep overflow:hidden on body if splash JS is slow.
   This ensures body scroll is never permanently locked. */
body.tpfc-splash-active {
  overflow-y: auto !important;
}
html {
  overflow-x: hidden;
}
