/*
Theme Name: CFPP
Theme URI:
Description:
Version: 1.0
Author: CFPP
Author URI: http://www.canadianplanning.com
*/

/* =========================================================
   1) Design tokens
   ========================================================= */

:root{
  --cfpp-navy: #243f7d;
  --cfpp-navy-2: #212f56;
  --cfpp-red: #c42227;
  --cfpp-verylightgold: #bdb39c;
  --cfpp-lightgold: #bca877;
  --cfpp-darkgold: #907942;

  --cfpp-white: #ffffff;

  /* cooler off-white */
  --cfpp-offwhite: #f6f8fc;
  --cfpp-brand-light: var(--cfpp-offwhite);

  --cfpp-border: rgba(0,0,0,.08);
  --cfpp-card-border: #b8c4de;

  /* Framing */
  --cfpp-frame-border: rgba(36,63,125,.22);
  --cfpp-frame-border-strong: rgba(36,63,125,.30);
  --cfpp-frame-shadow: 0 18px 50px rgba(0,0,0,.12);
  --cfpp-frame-radius: 16px;

  /* Cards */
  --cfpp-card-bg: rgba(226,235,248,.70);
  --cfpp-card-text: #0b1220;

  /* Typography measures */
  --cfpp-measure-body: 620px;

  /* Sticky header height */
  --cfpp-header-h: 86px;

  /* Hero */
  --cfpp-hero-box-w: 50vw;
  --cfpp-hero-radius: 14px;
  --cfpp-hero-logo-max: 520px;
  --cfpp-hero-panel-min-h: 500px;
  --cfpp-hero-row-pad-top: 54px;
  --cfpp-hero-row-pad-bottom: 26px;

  /* Feature bands */
  --cfpp-feature-min-h: 380px;
  --cfpp-feature-min-h-xl: 440px;
  --cfpp-feature-pad-y: 50px;
  --cfpp-feature-pad-y-mobile: 56px;
  --cfpp-feature-pos: center 28%;
  --cfpp-feature-gutter: clamp(14px, 2vw, 28px);

  /* Blue section backgrounds */
  --cfpp-blue-surface: var(--cfpp-navy);

  --cfpp-blue-tonal-gradient:
    radial-gradient(1200px 700px at 18% 22%, rgba(255,255,255,.10), rgba(255,255,255,0) 55%),
    radial-gradient(1000px 650px at 82% 30%, rgba(201,32,50,.10), rgba(201,32,50,0) 56%),
    radial-gradient(900px 600px at 55% 92%, rgba(0,0,0,.22), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(0,0,0,.10) 100%);

  --cfpp-geo-opacity: .03;
  --cfpp-geo-stroke: rgba(255,255,255,var(--cfpp-geo-opacity));
  --cfpp-geo-stroke-2: rgba(255,255,255,calc(var(--cfpp-geo-opacity) * .70));
  --cfpp-geo-scale: 520px;

  --cfpp-geo-overlay:
    linear-gradient(120deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.12) 100%),
    radial-gradient(var(--cfpp-geo-scale) var(--cfpp-geo-scale) at 22% 38%, rgba(255,255,255,.10), rgba(255,255,255,0) 60%),
    radial-gradient(calc(var(--cfpp-geo-scale) * 1.15) calc(var(--cfpp-geo-scale) * 1.15) at 78% 62%, rgba(255,255,255,.08), rgba(255,255,255,0) 62%),
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0) 0,
      rgba(255,255,255,0) calc(var(--cfpp-geo-scale) - 2px),
      var(--cfpp-geo-stroke) calc(var(--cfpp-geo-scale) - 2px),
      var(--cfpp-geo-stroke) var(--cfpp-geo-scale)
    ),
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0) 0,
      rgba(255,255,255,0) calc(calc(var(--cfpp-geo-scale) * 1.25) - 2px),
      var(--cfpp-geo-stroke-2) calc(calc(var(--cfpp-geo-scale) * 1.25) - 2px),
      var(--cfpp-geo-stroke-2) calc(calc(var(--cfpp-geo-scale) * 1.25))
    );

  /* Light section backgrounds */
  --cfpp-light-surface: var(--cfpp-brand-light);

  --cfpp-light-tonal-gradient:
    radial-gradient(1100px 720px at 18% 18%, rgba(36,63,125,.10), rgba(36,63,125,0) 60%),
    radial-gradient(900px 680px at 82% 24%, rgba(36,63,125,.06), rgba(36,63,125,0) 62%),
    linear-gradient(180deg, rgba(255,255,255,.70) 0%, rgba(255,255,255,0) 46%),
    linear-gradient(180deg, rgba(36,63,125,0) 0%, rgba(36,63,125,.04) 100%);

  --cfpp-light-sheen:
    linear-gradient(135deg,
      rgba(36,63,125,0) 0%,
      rgba(36,63,125,.035) 48%,
      rgba(36,63,125,0) 72%);
}

/* =========================================================
   2) Base and defaults
   ========================================================= */

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  max-width: 100%;
  scroll-behavior: smooth;
}

/* Prevent right-side gaps from scrollbars + 100vw */
html{ overflow-x: clip; }
body{
  overflow-x: clip;
  overflow-y: visible;

  color: #000;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  background: #fff;
}

/* Enforce Montserrat site-wide */
body, h1, h2, h3, h4, h5, h6, p, a, button, input, textarea, select, label, small, span{
  font-family: "Montserrat", sans-serif !important;
}

img{
  border: none;
  max-width: 100%;
  height: auto;
}
img.left{ float: left; margin-right: 15px; }
img.right{ float: right; margin-left: 15px; }

p, ul, ol{ margin: 0 0 1em 0; }

/* Links */
a{
  color: var(--cfpp-navy);
  text-decoration: none;
}
a:hover,
a:active{
  color: var(--cfpp-red);
  text-decoration: none;
}
a:visited{ color: var(--cfpp-navy); }

/* Guardrails against horizontal overflow on full-width sections */
.about-intro,
.services-trust,
.services-trust--about,
.about-serve,
.feature-band,
#headerbox,
#growbox,
#investbox{
  max-width: 100%;
  overflow-x: clip;
}

.site-footer{
  max-width: 100%;
  overflow-x: visible;
}

/* If any element uses 100vw, it can create a right-side gap due to scrollbar width */
.full-bleed,
.fullwidth,
[class*="full"],
[class*="bleed"]{
  max-width: 100%;
}

/* =========================================================
   3) Typography system
   ========================================================= */

h1, h2, h3{ margin: 0; padding: 0; }

h1{
  letter-spacing: -1px;
  font-size: 36px;
}
h2{
  font-size: 23px;
  color: var(--cfpp-navy);
}
h4{
  font-size: 30px;
  color: #c5cfe8;
  margin: 10px 0;
  font-style: italic;
}
h5{
  font-size: 25px;
  color: var(--cfpp-red);
  margin: 0 0 25px;
  font-style: italic;
  padding-bottom: 15px;
}
.colpad h5{
  color: var(--cfpp-red);
  font-weight: 500;
}

/* Optional, use instead of inline <b style="font-weight:500"> */
.section-kicker{
  margin: 10px 0 18px;
  font-weight: 500;
}

/* Light sections: unified selector plus backwards compatibility */
:is(.section--light, .section-light, .light-section){
  background-color: var(--cfpp-brand-light);
}
:is(.section--light, .section-light, .light-section) h2{
  letter-spacing: -0.02em;
}
:is(.section--light, .section-light, .light-section) :is(h5, .section-kicker){
  font-style: normal;
}
:is(.section--light, .section-light, .light-section) p{
  max-width: var(--cfpp-measure-body);
}

/* Feature band cards: narrower measure for body copy */
.feature-band__card p{ max-width: var(--cfpp-measure-body); }


/* =========================================================
   4) Layout helpers and utilities
   ========================================================= */

.wrap{
  width: 90%;
  margin: auto;
}

.colbox{ display: flex; }
.cols{
  flex: 1;
  padding: 0;
  border: 0;
}
.colpad{ padding: 70px 100px; }

/* Accent utility, safe for inline text */
.accent-red{
  color: var(--cfpp-red);
  font-weight: 700;
  font-size: inherit;
  display: inline;
  padding: 0;
  max-width: none;
}

/* Light card utility */
.cfpp-light-card{
  background: var(--cfpp-card-bg);
  color: var(--cfpp-card-text);
  border: 1px solid var(--cfpp-frame-border);
  border-radius: var(--cfpp-frame-radius);
  box-shadow: var(--cfpp-frame-shadow);
}
.cfpp-light-card :is(h2, h3){
  color: var(--cfpp-navy) !important;
}

/* =========================================================
   5) Plugin tweaks
   ========================================================= */

.white .sa_owl_theme .owl-nav .owl-prev{ margin-left: -60px; }
.white .sa_owl_theme .owl-nav .owl-next{ margin-right: -60px; }

/* =========================================================
   6) Components
   ========================================================= */

/* Button system */
.btn{
  display: inline-block;
  font-weight: 650;
  font-size: 18px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--cfpp-red);
  color: var(--cfpp-red);
  background: transparent;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover{
  background: #ffffff;
  color: var(--cfpp-navy);
  border-color: #ffffff;
  transform: translateY(-1px);
}

/* Whole-card link pattern (Services + Grow + Invest) */
:is(.service-card, #growbox .grow, #investbox .step-card){
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

/* Put the overlay link on top so the whole card is clickable */
:is(.service-card, #growbox .grow, #investbox .step-card) > a.card-link{
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  border-radius: 14px;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

/* Keep visible content under the overlay link */
:is(.service-card, #growbox .grow, #investbox .step-card) > *:not(a.card-link){
  position: relative;
  z-index: 4;
}

:is(.service-card, #growbox .grow, #investbox .step-card) > a.card-link:focus-visible{
  outline: 3px solid rgba(188,168,119,.55);
  outline-offset: 4px;
  border-radius: 14px;
}

/* =========================================================
   7) Site header, primary navigation
   ========================================================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--cfpp-header-h);
  background: var(--cfpp-navy);
  transition: background-color 0.25s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
}
.site-header.is-scrolled{
  background: rgba(36, 63, 124, 0.85);
}
.site-header__inner{
  height: 100%;
  width: 90%;
  margin: auto;
  display: flex;
  align-items: center;
}
.site-header__brand{ flex: 0 0 auto; }
.site-header__brand img{
  height: 42px;
  width: auto;
  display: block;
}
.site-header__title{ display: none; }

.site-header__nav{
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  padding-right: 40px;
}

.primary-menu{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 40px;
}
.site-header .primary-menu a{
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .5px;
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}
.site-header .primary-menu a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--cfpp-red);
  transition: width .18s ease;
}
.site-header .primary-menu a:hover::after{ width: 100%; }

.site-header__cta{ flex: 0 0 auto; }

/* Header CTA button */
.site-header .btn--header{
  position: relative;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: none;
  transform: none;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.85);
  color: #ffffff;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.site-header .btn--header:hover{
  background: linear-gradient(to top, rgba(196,34,39,.15), rgba(188,168,119,.05));
  border-color: var(--cfpp-lightgold);
  color: #ffffff;
}

.site-header .primary-menu .current-menu-item > a{ color: #ffffff; }
.site-header .primary-menu .current-menu-item > a::after{ width: 100%; }

/* =========================================================
   8) Scroll cue
   ========================================================= */

.scroll-cue{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  z-index: 1100;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  background: rgba(255,255,255,.80);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(36,63,125,.28);

  box-shadow:
    0 8px 18px rgba(0,0,0,.14),
    0 0 0 1px rgba(36,63,125,.10);

  opacity: .92;
  transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
  animation: scrollCuePulse 1.8s ease-in-out infinite;
}

.scroll-cue__chev{
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(36,63,125,.92);
  border-bottom: 2px solid rgba(36,63,125,.92);
  transform: rotate(45deg);
  filter:
    drop-shadow(0 1px 1px rgba(255,255,255,.70))
    drop-shadow(0 0 1px rgba(36,63,125,.28));
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}
.scroll-cue.is-up .scroll-cue__chev{ transform: rotate(-135deg); }

@keyframes scrollCuePulse{
  0%, 100%{ opacity: .55; }
  50%{ opacity: 1; }
}

.scroll-cue:hover{
  animation: none;
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(36,63,125,.18);
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
}
.scroll-cue:hover .scroll-cue__chev{
  border-color: rgba(36,63,125,1);
  filter:
    drop-shadow(0 1px 1px rgba(255,255,255,.80))
    drop-shadow(0 2px 6px rgba(36,63,125,.25));
}
.scroll-cue:active{
  transform: translateY(0) scale(.96);
  box-shadow:
    0 10px 22px rgba(0,0,0,.16),
    0 0 0 3px rgba(36,63,125,.10);
}
body.has-scrolled .scroll-cue{ opacity: .82; }

@media (prefers-reduced-motion: reduce){
  .scroll-cue{ animation: none; }
}

/* =========================================================
   9) Hero
   ========================================================= */

#headerbox{
  position: relative;
  min-height: calc(100svh - var(--cfpp-header-h));
  background: #0d1831; /* fallback while video loads */
  overflow: hidden;
  color: #eef2f9;
}

#headerbox .hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#headerbox::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background: linear-gradient(
    to bottom,
    rgba(36,63,124,0.55) 0%,
    rgba(36,63,124,0.32) 22%,
    rgba(36,63,124,0.14) 52%,
    rgba(36,63,124,0.00) 100%
  );
  pointer-events:none;
}
#headerbox::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background: radial-gradient(80% 80% at 70% 50%, rgba(0,0,0,0.00), rgba(0,0,0,0.25));
}

#headerbox .headcontent{
  position: relative;
  z-index: 2;
}

@supports not (height: 100svh){
  #headerbox{ min-height: calc(100vh - var(--cfpp-header-h)); }
}

/* If logged in, account for WP admin bar */
body.admin-bar #headerbox{
  min-height: calc(100svh - var(--cfpp-header-h) - 32px);
}
@supports not (height: 100svh){
  body.admin-bar #headerbox{
    min-height: calc(100vh - var(--cfpp-header-h) - 32px);
  }
}

.headcontent{
  width: 90%;
  margin: auto;
  position: relative;
  padding: 0;
  min-height: inherit;
  display: flex;
  align-items: center;
}

/* Hero row: slider left, logo right */
#headerbox .cfpp-hero-row{
  width: 100%;
  display: grid;
  grid-template-columns: minmax(320px, var(--cfpp-hero-box-w)) 1fr;
  column-gap: clamp(18px, 3vw, 44px);
  align-items: center;
  padding-top: var(--cfpp-hero-row-pad-top) !important;
  padding-bottom: var(--cfpp-hero-row-pad-bottom) !important;
}

.cfpp-hero-left{ min-width: 320px; }
.cfpp-hero-right{
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cfpp-hero-logo{
  width: min(36vw, var(--cfpp-hero-logo-max));
  max-width: var(--cfpp-hero-logo-max);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.25));
  
}

.chats{
  position: absolute;
  right: 0;
  top: 5%;
}

.headcontent h1{
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.08;
  max-width: 820px;
}
.headcontent p{
  max-width: 760px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
}

/* Hero accent */
.hero-accent{
  color: var(--cfpp-red);
  font-weight: 700;
}
.headcontent .hero-accent{
  font-size: 25px !important;
  padding: 7px 0;
  display: block;
  max-width: 560px;
  line-height: 1.25;
}
#headerbox :is(.hero-accent, .section-kicker){
  font-size: 25px !important;
}

/* Hero button */
#headerbox .btn{
  position: relative;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.85);
  color: #ffffff;
  font-weight: 600;
  border-radius: 10px;
  font-size: clamp(16px, 1.3vw, 20px);
  padding: 14px 22px;
  margin-top: 25px;
  transform: none;
  letter-spacing: 0.3px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
#headerbox .btn:hover{
  background: linear-gradient(to top, rgba(196,34,39,.15), rgba(188,168,119,.05));
  border-color: var(--cfpp-verylightgold);
  box-shadow: 0 10px 24px rgba(36,63,125,.25);
}

/* Keep slider internals stable */
#headerbox :is(.sa_slider, .sa_slide){ min-height: 0 !important; }
#headerbox .sa_slide{
  display: flex !important;
  align-items: stretch !important;
}

/* Prevent homepage hero layout shift while Slide Anything initializes */
#headerbox .sa_slider,
#headerbox .sa_owl_theme,
#headerbox .owl-stage-outer,
#headerbox .sa_slide{
  min-height: var(--cfpp-hero-panel-min-h) !important;
}

#headerbox .sa_slide > *{ width: 100%; }

/* Hero panel "glass" box */
#headerbox .sa_owl_theme .hero-panel{
  position: relative;
  width: 100%;
  max-width: min(100%, var(--cfpp-hero-box-w));
  box-sizing: border-box;
  border-radius: var(--cfpp-hero-radius);
  padding: clamp(32px, 3.2vw, 48px);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
#headerbox .sa_owl_theme .hero-panel > *{
  position: relative;
  z-index: 1;
}
#headerbox .sa_owl_theme .hero-panel h1{
  line-height: 1.05;
  margin: 0 0 14px;
}
#headerbox .sa_owl_theme .hero-panel :is(h1, h2, h3, h4, p){
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}
#headerbox .sa_owl_theme .hero-panel p{
  margin: 0;
  line-height: 1.55;
}

/* Match homepage hero spacing on About page */
.headerbox--about .hero-panel h1{
  margin: 0 0 14px;
  line-height: 1.05;
}

.headerbox--about .hero-panel h4{
  margin: 0 0 18px;
  line-height: 1.25;
  /* Match homepage hero h4 color */
  color: #c5cfe8 !important;
}

.headerbox--about .hero-panel p{
  margin: 0;
  line-height: 1.55;
}

.headerbox--services .hero-panel h1{
  margin: 0 0 14px;
  line-height: 1.05;
}

.headerbox--services .hero-panel h4{
  margin: 0 0 18px;
  line-height: 1.25;
  /* Match homepage hero h4 color */
  color: #c5cfe8 !important;
}

.headerbox--services .hero-panel p{
  margin: 0;
  line-height: 1.55;
}

/* Services page bullet lists */
.cfpp-bullets{
  margin: 16px 0 0;
  padding-left: 18px;
}
.cfpp-bullets li{
  margin: 0 0 8px;
}

#headerbox .sa_owl_theme .hero-panel::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 24, 49, 0.28);
  backdrop-filter: blur(6px);
  border-radius: var(--cfpp-hero-radius);
  z-index: 0;
  pointer-events: none;
}
#headerbox .sa_owl_theme .hero-panel::before{ content: none; }
#headerbox .sa_owl_theme .hero-panel h4{
  color: #c5cfe8 !important;
  line-height: 1.25;
  margin: 0 0 18px;
}

/* Slider dots */
#headerbox .sa_owl_theme{ position: relative; }
#headerbox .sa_owl_theme .owl-dots{
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: clamp(14px, 2.4vw, 26px) !important;
  z-index: 30 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}
#headerbox .sa_owl_theme .owl-dots .owl-dot{
  float: none !important;
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
#headerbox .sa_owl_theme .owl-dots .owl-dot span{
  display: block !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.50) !important;
  border: 1px solid rgba(255,255,255,0.50) !important;
  box-sizing: border-box !important;
}
#headerbox .sa_owl_theme .owl-dots .owl-dot.active span{
  background: rgba(255,255,255,0.90) !important;
  border-color: rgba(255,255,255,0.90) !important;
}

.hero-panel--wide{ max-width: 860px; }

/* About hero: constrain panel to match homepage slide size */
.headerbox--about .hero-panel{
  max-width: var(--cfpp-hero-box-w);
  min-height: 420px;
  padding: clamp(32px, 3.2vw, 48px);
  position: relative;
  overflow: hidden;
}
.headerbox--about .hero-panel::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 24, 49, 0.28);
  backdrop-filter: blur(6px);
  border-radius: var(--cfpp-hero-radius);
  z-index: 0;
  pointer-events: none;
}
.headerbox--about .hero-panel > *{
  position: relative;
  z-index: 1;
}


/* Services hero: match About hero panel overlay (glass card behind text) */
.headerbox--services .hero-panel{
  max-width: var(--cfpp-hero-box-w);
  min-height: 420px;
  padding: clamp(32px, 3.2vw, 48px);
  position: relative;
  overflow: hidden;
  border-radius: var(--cfpp-hero-radius);
  flex: 0 0 auto;
}
.headerbox--services .hero-panel::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 24, 49, 0.28);
  backdrop-filter: blur(6px);
  border-radius: var(--cfpp-hero-radius);
  z-index: 0;
  pointer-events: none;
}
.headerbox--services .hero-panel > *{
  position: relative;
  z-index: 1;
}
.hero-panel h2,
.hero-panel h3{
  margin: 14px 0 0;
  font-weight: 400;
}

.hero-panel h2{
  font-style: italic;
  opacity: .9;
}



/* =========================================================
   10) Light and dark panels, background photos
   ========================================================= */

.lightbg{
  background: url(/wp-content/uploads/2022/06/light3.jpg) no-repeat center center;
  background-size: cover;
  color: #000;
}
.lightbg h2{
  color: var(--cfpp-navy);
  font-size: 40px;
}
.lightbg h3{
  color: var(--cfpp-navy);
  font-size: 30px;
  font-weight: 650;
  margin-bottom: 2px;
}
.lightbg h4{
  color: var(--cfpp-red);
  font-size: 30px;
}
.lightbg b{
  color: var(--cfpp-red);
  display: block;
  font-size: 25px;
  font-style: italic;
  padding: 6px 0 10px;
}

.darkbg{
  background: var(--cfpp-blue-surface);
  color: #eef2f9;
}
.darkbg h3{
  color: #f2f6fb;
  font-size: 30px;
  font-weight: 650;
  margin-bottom: 2px;
}
.darkbg b{
  color: #eef2f9;
  display: block;
  padding: 6px 0 10px;
  font-size: 25px;
  font-style: italic;
}

/* Legacy image helpers */
.introphoto1{ background: url(/wp-content/uploads/2026/02/CFPP1-scaled.jpg) no-repeat center center; background-size: cover; }
.introphoto2{ background: url(/wp-content/uploads/2026/02/CFPP2-scaled.jpeg) no-repeat center center; background-size: cover; }
.introphoto3{ background: url(/wp-content/uploads/2026/01/CFPP3-scaled.jpeg) no-repeat center center; background-size: cover; }
.introphoto4{ background: url(/wp-content/uploads/2026/01/CFPPConnect-scaled.jpg) no-repeat center center; background-size: cover; }

/* =========================================================
   11) Feature photo bands (Family1-4)
   ========================================================= */

.feature-band{
  position: relative;
  min-height: var(--cfpp-feature-min-h);
  padding: var(--cfpp-feature-pad-y) 0;
  background-image: var(--cfpp-feature-bg);
  background-repeat: no-repeat;
  background-position: var(--cfpp-feature-pos);
  background-size: cover;
  color: #0b1220;
}

.feature-band__inner{
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: var(--cfpp-feature-gutter);
  padding-right: var(--cfpp-feature-gutter);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.feature-band--left .feature-band__inner{ justify-content: flex-start; }

.feature-band__card{
  width: min(820px, 92vw);
  padding: clamp(22px, 2.6vw, 38px);
  border-radius: var(--cfpp-frame-radius);
  border: 1px solid var(--cfpp-frame-border);
  box-shadow: var(--cfpp-frame-shadow);
  backdrop-filter: blur(8px);
  margin: 0;
  position: relative;
}
.feature-band__card:hover{ border-color: var(--cfpp-frame-border-strong); }

.feature-band--light .feature-band__card{
  background: var(--cfpp-card-bg);
  color: var(--cfpp-card-text);
}
.feature-band--dark .feature-band__card{
  background: rgba(36,63,125,.72);
  color: rgba(255,255,255,.96);
  border-color: rgba(255,255,255,.18);
}
.feature-band--dark .feature-band__card:hover{ border-color: rgba(255,255,255,.26); }

.feature-band::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.10) 0%,
    rgba(255,255,255,0.10) 40%,
    rgba(255,255,255,0.55) 70%,
    rgba(255,255,255,0.75) 100%
  );
}
.feature-band--left::before{
  background: linear-gradient(
    to left,
    rgba(255,255,255,0.10) 0%,
    rgba(255,255,255,0.10) 40%,
    rgba(255,255,255,0.55) 70%,
    rgba(255,255,255,0.75) 100%
  );
}

.feature-band__card :is(h2, h3, h4, h5){ margin-top: 0; }
.feature-band__card :is(h2, h3){ color: var(--cfpp-navy) !important; }

.feature-band__card h3{
  font-size: 30px;
  font-weight: 650;
  margin: 0 0 10px;
  line-height: 1.12;
}
.feature-band--dark .feature-band__card :is(h2, h3){ color: #ffffff !important; }

.feature-band__card h5{
  font-size: 25px;
  color: var(--cfpp-darkgold);
  margin: 0 0 16px;
  font-style: italic;
}

.feature-band__card :is(b, .cfpp-contact-sub){
  color: var(--cfpp-darkgold);
  display: block;
  font-size: 25px;
  font-style: italic;
  padding: 6px 0 10px;
  font-weight: 500;
}

.feature-band__card .cfpp-contact-sub{
  margin: 0; /* prevents default <p> spacing differences */
}

.feature-band--dark .feature-band__card :is(b, .cfpp-contact-sub){
  color: rgba(255,255,255,.96);
}

.feature-band__card p{
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 12px 0;
}
.feature-band--dark .feature-band__card p{ color: rgba(255,255,255,.90); }

/* Per-section image focal points */
.family1{ --cfpp-feature-bg: url(/wp-content/uploads/2026/02/CFPP1-scaled.jpg); --cfpp-feature-pos: left 22% top 35%; }
.family2{ --cfpp-feature-bg: url(/wp-content/uploads/2026/02/CFPP2-scaled.jpg); --cfpp-feature-pos: left 24% top 50%; }
.family3{ --cfpp-feature-bg: url(/wp-content/uploads/2026/01/CFPP3-scaled.jpeg); --cfpp-feature-pos: left 18% top 35%; }
.family4{ --cfpp-feature-bg: url(/wp-content/uploads/2026/01/CFPPConnect-scaled.jpg); --cfpp-feature-pos: right 24% top 65%; }

/* Contact section headings */
#ContactSection :is(h2, h3),
#ContactSection + :is(h2, h3){
  color: var(--cfpp-navy) !important;
}



/* =========================================================
   12) Callout quote band
   ========================================================= */

.callout{
  padding: 50px 0;
  background-image:
    linear-gradient(to bottom, rgba(93, 122, 183, 0.80), rgba(36, 63, 125, 0.7)),
    url(/wp-content/uploads/2025/12/SemiTransBG-scaled.jpg);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}
.callout .wrap{
  display: flex;
  justify-content: center;
  align-items: center;
}
.quote{
  width: 100%;
  max-width: 1200px;
  font-size: 21px;
  text-align: center;
  color: #ffffff;
  font-weight: 400;
  font-style: italic;
}
.quote span{
  display: block;
  font-style: normal;
  font-size: 18px;
  padding-top: 12px;
  color: rgba(255,255,255,.95);
}
.quote img{ display: none; }
.quotebox{ display: none; }

/* =========================================================
   13) Sections, services, grow, invest
   ========================================================= */

/* Services You Can Count On */
.services-trust{
  position: relative;
  padding: clamp(56px, 6vw, 90px) 0;
  background-color: var(--cfpp-light-surface);
  overflow: hidden;
}
.services-trust::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image: var(--cfpp-light-tonal-gradient);
  background-repeat: no-repeat;
  background-size: cover;
}
.services-trust::after{
  content:"";
  position:absolute;
  inset:-18%;
  pointer-events:none;
  background-image: var(--cfpp-light-sheen);
  opacity: .9;
  transform: translate3d(0,0,0);
}
.services-trust .wrap{
  position: relative;
  z-index: 1;
  width: min(1240px, 94%);
  margin: 0 auto;
}
.services-trust h2.services-title{
  text-align: center;
  margin: 0 auto 12px;
  color: var(--cfpp-navy);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 750;
  letter-spacing: -0.6px;
  line-height: 1.08;
}
.services-trust h2.services-title::after{ content: none; }

.services-trust__sub{
  text-align: center;
  max-width: 820px;
  margin: 0 auto 44px;
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 450;
  font-style: normal;
  line-height: 1.35;
  color: var(--cfpp-darkgold);
  opacity: 1;
}

.services-trust__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

@media (min-width: 1200px){
  .services-trust__grid{grid-template-columns:repeat(5, minmax(0, 1fr));}
}


.service-card{
  background: #ffffff;
  border: 1px solid rgba(36,63,125,.18);
  border-radius: 14px;
  padding: 30px 22px 24px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card__icon{
  margin: 0 auto 18px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Service card icon color (SVGs using currentColor) */
.service-card__icon{color:var(--cfpp-blue);} 
.service-card:hover .service-card__icon{color:var(--cfpp-darkgold);} 

.service-icon{
  width: 34px;
  height: 34px;
  display: block;
  color: var(--cfpp-red);
  transition: color .18s ease;
}

/* Normalize service card icon sizing */
.services-cards .service-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-cards .service-card {
  color: var(--cfpp-blue);
}

/* Force corporate service icon to inherit theme color */
.services-cards .service-card.corporate .service-card__icon svg {
  stroke: currentColor;
  fill: none;
}

/* Normalize SVG / icon inside the container */
.services-cards .service-card__icon svg,
.services-cards .service-card__icon i {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  display: block;
}

.service-card h3{
  margin: 0 0 10px;
  color: var(--cfpp-navy);
  font-size: 22px;
  font-weight: 750;
  transition: color .18s ease;
}
.service-card p{
  margin: 0 auto 16px;
  max-width: 340px;
  color: #0b1220;
  opacity: .82;
  line-height: 1.6;
  flex: 1 1 auto;
}
.service-card__link{
  display: inline-block;
  font-weight: 700;
  color: var(--cfpp-navy);
  text-decoration: none;
}
.service-card:hover{
  transform: translateY(-4px);
  border-color: rgba(36,63,125,.30);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}
.service-card:hover .service-icon{ color: var(--cfpp-blue); }
.service-card:hover .service-card__link{ color: var(--cfpp-darkgold); }
.service-card:hover h3{ color: var(--cfpp-red); }

/* Grow box */
#growbox{
  padding: 90px 0;
  position: relative;
  text-align: center;
  color: #eef2f9;
  background-color: var(--cfpp-blue-surface);
  background-image: var(--cfpp-blue-tonal-gradient);
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}
#growbox::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--cfpp-geo-overlay);
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 1;
}
#growbox::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.20) 100%);
}
#growbox .wrap{
  position: relative;
  z-index: 2;
  width: min(1240px, 94%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  grid-auto-flow: row;
}
#growbox .wrap > br{ display: none !important; }
#growbox :is(h2, h3){ grid-column: 1 / -1; }

#growbox h2{
  color: #ffffff;
  font-size: 40px;
  font-weight: 650;
  letter-spacing: -0.2px;
  margin: 0;
}
#growbox h2 .grow-accent{ color: var(--cfpp-lightgold); }

#growbox h3{
  color: rgba(255,255,255,1);
  font-size: 30px;
  font-weight: 450;
  margin: 0 0 44px;
}

#growbox .grow{
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  text-align: center;
  background: rgba(36,63,125,.55);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  padding: 22px 18px 18px;
  color: rgba(255,255,255,.92);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
#growbox .grow h3::before{ content: none !important; }

#growbox .grow .service-card__icon{
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}
#growbox .grow .service-icon{
  width: 34px;
  height: 34px;
  display: block;
  color: #ffffff;
  opacity: .95;
  transition: color .18s ease, opacity .18s ease;
}
#growbox .grow h3{
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 750;
  transition: color .18s ease;
}
#growbox .grow:hover h3{
  color: var(--cfpp-lightgold) !important;
}
#growbox .grow p{
  margin: 0 auto 14px;
  max-width: 260px;
  color: rgba(255,255,255,.86);
  line-height: 1.55;
  font-size: 15px;
}
#growbox .grow a.grow-link{
  margin-top: auto;
  display: inline-block;
  font-weight: 700;
  color: rgba(255,255,255,.92) !important;
  text-decoration: none;
}
#growbox .grow:hover{
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.34);
  background: rgba(36,63,125,.70);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
#growbox .grow:hover .service-icon{
  color: var(--cfpp-lightgold);
  opacity: 1;
}
#growbox .grow:hover a.grow-link{ color: var(--cfpp-red) !important; }

/* Invest box */
#investbox,
#investbox.investbox{
  position: relative;
  background-color: var(--cfpp-light-surface);
  padding: clamp(56px, 6vw, 90px) 0;
  text-align: center;
  color: #0b1220;
  overflow: hidden;
}
#investbox::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image: var(--cfpp-light-tonal-gradient);
  background-repeat: no-repeat;
  background-size: cover;
}
#investbox::after{
  content:"";
  position:absolute;
  inset:-18%;
  pointer-events:none;
  background-image: var(--cfpp-light-sheen);
  opacity: .9;
  transform: translate3d(0,0,0);
}
#investbox .wrap{
  position: relative;
  z-index: 1;
  width: min(1240px, 94%);
  margin: 0 auto;
}
#investbox .investbox-head{
  text-align: center;
  max-width: 980px;
  margin: 0 auto 58px;
}
#investbox .investbox-head h2{
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 750;
  letter-spacing: -0.6px;
  line-height: 1.08;
  color: var(--cfpp-navy);
}
#investbox .investbox-sub{
  margin: 14px auto 0;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 450;
  font-style: normal;
  line-height: 1.35;
  color: var(--cfpp-darkgold);
  max-width: 780px;
  opacity: 1;
}
#investbox .steps-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
#investbox .step-card{
  background: #ffffff;
  border: 1px solid rgba(36,63,125,.22);
  border-radius: 14px;
  padding: 28px 22px 22px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
#investbox .step-icon-wrap{
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
#investbox img.step-icon{
  max-height: 112px;
  width: auto;
  display: block;
}
#investbox .step-title{
  margin: 0 0 12px;
  color: var(--cfpp-navy);
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.2px;
  position: relative;
  padding-bottom: 0;
  transition: color .18s ease;
}
#investbox .step-title::after{ content: none; }
#investbox .step-card p{
  margin: 0 auto 18px;
  max-width: 34ch;
  color: rgba(11,18,32,.82);
  line-height: 1.65;
  flex: 1 1 auto;
}
#investbox .step-link{
  display: inline-block;
  font-weight: 700;
  color: var(--cfpp-navy);
  text-decoration: none;
  transition: color .18s ease;
}
#investbox .step-card:hover{
  transform: translateY(-6px);
  border-color: rgba(36,63,125,.34);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}
#investbox .step-card:hover :is(.step-title){
  color: var(--cfpp-red);
}
#investbox .step-card:hover :is(.step-link) {
    color: var(--cfpp-darkgold);
}

/* =========================================================
   14) Contact section layout (form + details)
   ========================================================= */

/* Stack details under the form (as requested) */
.cfpp-contact-card .cfpp-contact-grid{
  grid-template-columns: 1fr;
  gap: 0;
}

/* Details block becomes a simple list under the Send button */
.cfpp-contact-details{
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 22px 0 0;
}

/* Hide legacy heading/subcopy if still in markup */
.cfpp-contact-details-title,
.cfpp-contact-details-sub{ display: none !important; }

/* Align with the form button, FluentForms sometimes adds padding */
#fluentform_1 .ff_submit_btn_wrapper{
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Clean rows, no “button” boxes */
.cfpp-contact-list{
  list-style: none;
  margin: 0;
  padding: 0 !important;
  display: grid;
  gap: 14px;
}

.cfpp-contact-list li{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
  border: 0;
  background: transparent;
}

/* Icon styling (red icon, navy text) */
.cfpp-contact-ico{
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cfpp-red);
  flex: 0 0 22px;
  transform: translateZ(0);
  transition: color .18s ease, transform .18s ease, opacity .18s ease;
}
.cfpp-contact-ico svg{
  width: 18px;
  height: 18px;
  display: block;
}

/* Text styling (less bold) */
.cfpp-contact-list :is(a, span){
  font-size: 18px;
  font-weight: 350; /* was 550 */
  color: rgba(36,63,125,.88); /* softer navy */
  letter-spacing: -0.1px;
}
.cfpp-contact-list a:hover{ color: var(--cfpp-red); }

/* Sleek hover, no layout shift */
.cfpp-contact-list li:hover .cfpp-contact-ico{
  color: var(--cfpp-navy);
  transform: scale(1.06);
  opacity: 1;
}

/* Remove the response-time block entirely */
.cfpp-contact-note{ display: none !important; }


/* =========================================================
   15) Forms

/* =========================================================
   15) Forms
   ========================================================= */

form{ margin: 0; padding: 0; }
fieldset{ margin: 0; padding: 0; border: none; }
legend{ display: none; }

/* Baseline inputs, kept lightweight. Fluent Forms styles override these. */
input, textarea, select{
  padding: 9px;
  border: 1px solid #d5d5d5;
  font-size: 13px;
  color: #333;
  max-width: 100%;
}

input, select{ width: 100%; }
textarea{ width: 100%; min-height: 120px; }

input[type="checkbox"],
input[type="radio"]{
  width: auto;
  padding: 0;
  border: 0;
}

/* Contact form (Fluent Forms ID 1) */
#fluentform_1{
  --cfpp-input-line: rgba(36,63,125,.35);
  --cfpp-input-line-strong: rgba(36,63,125,.85);
  --cfpp-input-text: #0b1220;
  --cfpp-input-placeholder: rgba(11,18,32,.45);
}
#fluentform_1 .ff-el-group{ margin-bottom: 18px; }
#fluentform_1 .ff-el-input--label label{
  font-weight: 600;
  font-size: 13px;
  color: rgba(36,63,125,.85);
  margin-bottom: 8px;
}
#fluentform_1 :is(
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  input[type="date"],
  select,
  textarea
){
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid var(--cfpp-input-line) !important;
  border-radius: 0 !important;
  padding: 14px 0 12px !important;
  font-size: 16px !important;
  color: var(--cfpp-input-text) !important;
  box-shadow: none !important;
  outline: none !important;
}
#fluentform_1 textarea{
  min-height: 120px !important;
  resize: vertical;
  margin-top: 0 !important;
}
#fluentform_1 :is(input, textarea)::placeholder{
  color: var(--cfpp-input-placeholder) !important;
}
#fluentform_1 :is(input, select, textarea):focus{
  border-bottom-color: var(--cfpp-input-line-strong) !important;
  box-shadow: 0 10px 22px rgba(36,63,125,.10) !important;
}
#fluentform_1 .ff-el-form-control{
  background: transparent !important;
  box-shadow: none !important;
}
#fluentform_1 .ff_submit_btn_wrapper .ff-btn.ff-btn-submit{
  font-weight: 600 !important;
  background: transparent !important;
  color: var(--cfpp-navy) !important;
  border: 1px solid var(--cfpp-navy) !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  transform: none !important;
}
#fluentform_1 .ff_submit_btn_wrapper .ff-btn.ff-btn-submit:hover{
  background: linear-gradient(to top, rgba(196,34,39,.15), rgba(188,168,119,.05)) !important;
  border-color: var(--cfpp-darkgold) !important;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(188,168,119,.25);
}

/* =========================================================
   16) Standard pages and single posts
   ========================================================= */

.page-content{ padding: 80px 0; }

.page-header{
  margin-bottom: 30px;
  text-align: center;
}
.page-title{
  font-size: 42px;
  color: var(--cfpp-navy);
}
.page-entry{
  max-width: 820px;
  margin: auto;
  font-size: 17px;
  line-height: 1.65;
}
.page-entry h2{
  font-size: 30px;
  margin: 40px 0 15px;
}
.page-entry h3{
  font-size: 24px;
  margin: 30px 0 12px;
}
.page-entry :is(ul, ol){ margin-left: 20px; }

.page-links{
  margin-top: 20px;
  font-size: 14px;
}
.page-edit{
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
}

/* Single post */
.post-content{ padding: 80px 0; }

.single-post{
  max-width: 820px;
  margin: auto;
}
.post-header{
  text-align: center;
  margin-bottom: 28px;
}
.post-title{
  font-size: 42px;
  color: var(--cfpp-navy);
  margin: 0 0 12px;
}
.post-meta{
  font-size: 14px;
  opacity: .8;
}
.post-meta__sep{ padding: 0 8px; }

.post-featured{ margin: 20px 0 30px; }
.post-featured img{
  border-radius: 10px;
  display: block;
  margin: auto;
}

.post-entry{
  font-size: 17px;
  line-height: 1.65;
}
.post-entry h2{
  font-size: 30px;
  margin: 40px 0 15px;
}
.post-entry h3{
  font-size: 24px;
  margin: 30px 0 12px;
}
.post-entry :is(ul, ol){ margin-left: 20px; }

.post-comments{
  max-width: 820px;
  margin: 40px auto 0;
}

/* =========================================================
   17) About page (subpage theme, content-forward)
   ========================================================= */

.headerbox--subpage{
  min-height: calc(64svh - var(--cfpp-header-h));
}
@supports not (height: 100svh){
  .headerbox--subpage{ min-height: calc(64vh - var(--cfpp-header-h)); }
}
.headerbox--subpage .headcontent{ align-items: center; }

.headerbox--services .cfpp-hero-left{ align-items: flex-start; }

.cfpp-subhero{
  width: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 860px) 1fr;
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
  padding-top: clamp(40px, 7vw, 80px);
  padding-bottom: clamp(34px, 6vw, 70px);
}
.cfpp-subhero__panel{
  position: relative;
  border-radius: var(--cfpp-hero-radius);
  padding: clamp(22px, 2.2vw, 34px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 44px rgba(0,0,0,0.18);
  overflow: hidden;
}
.cfpp-subhero__panel::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(13, 24, 49, 0.22);
  backdrop-filter: blur(6px);
  z-index:0;
}
.cfpp-subhero__panel > *{
  position: relative;
  z-index: 1;
}
.cfpp-subhero__panel h1{
  margin: 6px 0 12px;
  line-height: 1.06;
  font-size: clamp(32px, 3.6vw, 48px);
}
.cfpp-subhero__panel p{ margin: 0 0 12px; }

.cfpp-subhero__mark{
  display: flex;
  justify-content: center;
  align-items: center;
}
.cfpp-subhero__logo{
  width: min(34vw, 560px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.25));
  opacity: 0.95;
}

/* About intro section */
.about-intro{
  padding: clamp(34px, 5vw, 64px) 0;
  background: var(--cfpp-light-surface);
  position: relative;
}
.about-intro::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image: var(--cfpp-light-tonal-gradient);
  background-repeat: no-repeat;
  background-size: cover;
}
.about-intro::after{
  content:"";
  position:absolute;
  inset:-18%;
  pointer-events:none;
  background-image: var(--cfpp-light-sheen);
  opacity: .75;
}
.about-intro .wrap{
  position: relative;
  z-index: 1;
  width: min(1240px, 94%);
  margin: 0 auto;
}
.about-intro__card{
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--cfpp-frame-border);
  border-radius: var(--cfpp-frame-radius);
  box-shadow: var(--cfpp-frame-shadow);
  padding: clamp(22px, 2.2vw, 34px);
}
.about-h2{
  color: var(--cfpp-navy);
  margin-top: 0;
  margin-bottom: 10px;
}

/* About-specific feature-band backgrounds */
.aboutband-independence{
  --cfpp-feature-bg: url(/wp-content/uploads/2026/02/cfppbg-scaled.jpg);
  --cfpp-feature-pos: center;
}
.aboutband-virtual{
  --cfpp-feature-bg: url(/wp-content/uploads/2025/12/Family2.png);
  --cfpp-feature-pos: right 30%;
}



/* Services-specific feature-band backgrounds (placeholders, match About) */
.servicesband-corporate{
  --cfpp-feature-bg: url(/wp-content/uploads/2026/02/cfppbg-scaled.jpg);
  --cfpp-feature-pos: center;
}
.servicesband-personal{
  --cfpp-feature-bg: url(/wp-content/uploads/2025/12/Family2.png);
  --cfpp-feature-pos: right 30%;
}

/* About page process: make cards non-clickable if you use static ones */
.services-trust--about .service-card{ cursor: default; }
.service-card--static > a.card-link{ display: none !important; }
.service-card--static .service-card__link{ display: none !important; }

/* Principles band */
.principles-band{
  padding: clamp(44px, 6vw, 86px) 0;
  background: linear-gradient(to bottom, rgba(36,63,125,0.92), rgba(36,63,125,0.82));
  color: rgba(255,255,255,0.96);
}
.principles-title{
  margin: 0 0 10px;
  text-align: center;
  color: #ffffff;
  font-size: clamp(28px, 3.2vw, 44px);
}
.principles-sub{
  margin: 0 auto clamp(22px, 3vw, 34px);
  max-width: 820px;
  text-align: center;
  color: rgba(255,255,255,0.86);
  font-size: 18px;
  line-height: 1.6;
}
.principles-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.principle-card{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--cfpp-frame-radius);
  padding: clamp(18px, 2vw, 26px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
}
.principle-card h3{
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 20px;
}
.principle-card p{
  margin: 0;
  color: rgba(255,255,255,0.86);
  line-height: 1.65;
}

/* Who we serve blocks */
.about-serve{
  padding: clamp(40px, 5vw, 72px) 0;
  background: var(--cfpp-light-surface);
  position: relative;
  overflow: hidden;
}
.about-serve::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image: var(--cfpp-light-tonal-gradient);
  background-repeat: no-repeat;
  background-size: cover;
}
.about-serve::after{
  content:"";
  position:absolute;
  inset:-18%;
  pointer-events:none;
  background-image: var(--cfpp-light-sheen);
  opacity: .75;
}
.about-serve .wrap{
  position: relative;
  z-index: 1;
  width: min(1240px, 94%);
  margin: 0 auto;
}
.about-serve__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.about-serve__card{
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--cfpp-frame-border);
  border-radius: var(--cfpp-frame-radius);
  box-shadow: var(--cfpp-frame-shadow);
  padding: clamp(20px, 2.2vw, 32px);
}

/* =========================================================
   18) Footer
   ========================================================= */

.site-footer{
  position: relative;
  background-color: var(--cfpp-blue-surface);
  background-image: var(--cfpp-blue-tonal-gradient);
  color: rgba(255,255,255,.92);
  padding: 56px 0 28px;
  overflow: visible;
}
.site-footer::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--cfpp-geo-overlay);
  background-repeat: no-repeat;
  background-size: cover;
}
.site-footer::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.18) 70%, rgba(0,0,0,.22) 100%);
}
.site-footer__inner{
  position: relative;
  z-index: 2;
  width: min(1500px, 90%);
  margin: 0 auto;
}
.site-footer__grid{
  display: block;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.5);
}
.site-footer__logo{
  display: inline-block;
  margin-bottom: 18px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.25));
}
.site-footer__logo img{
  display: block;
  max-width: 240px;
  height: auto;
}

.site-footer__brand-row{
  display: flex;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 24px;
}

.site-footer__logo-box,
.site-footer__dealer-box{
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 0 0 auto;
}

.site-footer__logo-box{
  height: 110px;
}

.site-footer__dealer-box{
  height: 110px;
  margin-left: 15px;
}

.site-footer__logo-img{
  display: block;
  max-width: 300px;
  max-height: 130px;
  width: auto;
  height: auto;
}

.site-footer__dealer-img{
  display: block;
  max-width: 290px;
  max-height: 68px;
  width: auto;
  height: auto;
  opacity: .96;
}

.site-footer__divider{
  width: 1px;
  height: 64px;
  flex: 0 0 1px;
  gap: 30px;
  opacity: .65;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,.45),
    rgba(255,255,255,0)
  );
}

.footer-menu{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
}
.footer-menu li{ margin: 0; padding: 0; }

.footer-menu a,
.site-footer__legal a,
.site-footer__legalbtn{
  color: rgba(255,255,255,.92);
  text-decoration: none !important;
  background: transparent;
  border: 0;
  padding: 4px 0;
  font: inherit;
  cursor: pointer;
  position: relative;
}
.site-footer__contact a{
  color: #c5cfe8;
  text-decoration: none !important;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.footer-menu a::after,
.site-footer__legal a::after,
.site-footer__legalbtn::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--cfpp-red);
  transition: width .25s ease;
}
.footer-menu a:hover::after,
.site-footer__legal a:hover::after,
.site-footer__legalbtn:hover::after{
  width: 100%;
}

.site-footer__contact{
  margin-top: 16px;
  line-height: 1.9;
  font-size: 15px;
}
.site-footer__legal{
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.7;
}
.site-footer__sep{
  padding: 0 10px;
  opacity: .7;
}

/* =========================================================
   19) Disclaimer modal
   ========================================================= */

html.cfpp-modal-open,
html.cfpp-modal-open body{
  overflow: hidden;
}
.cfpp-modal{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.cfpp-modal.is-open{ display: block; }

.cfpp-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.cfpp-modal__panel{
  position: relative;
  width: min(820px, 92vw);
  max-height: 80vh;
  overflow: auto;
  margin: 8vh auto 0;
  background: #ffffff;
  color: #0b1220;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
  padding: 18px 18px 16px;
}
.cfpp-modal__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,.10);
  margin-bottom: 12px;
}
.cfpp-modal__title{
  margin: 0;
  font-size: 18px;
  color: var(--cfpp-navy);
}
.cfpp-modal__close{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: #ffffff;
  color: var(--cfpp-navy);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.cfpp-modal__body p{
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.7;
}

/* =========================================================
   20) Icons and small overrides
   ========================================================= */

.step-svg{
  width: 100px;
  height: 100px;
  display: block;
}

/* Contact section h5: override Bootstrap's 1.25rem */
#ContactSection + h3 + h5{
  font-size: 25px !important;
  font-weight: 450 !important;
  line-height: 1.35;
}

/* =========================================================
   21) Legacy IDs, kept for safety
   ========================================================= */

#navi{ float: right; padding-top: 30px; }
#navi li{ float: left; list-style: none; }
#navi a{
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px;
  font-size: 24px;
}
#navi a:hover{ color: #8a074e; border-bottom: 2px solid #8a074e; }

#menu{ float: left; width: 800px; height: 50px; }
#topmenu{ padding-left: 31px; padding-top: 23px; }
#topmenu a{
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  font-stretch: ultra-condensed;
  font-size: 18px;
}
#topmenu a:hover{ color: #e5ab42; }

/* =========================================================
   22) Responsive
   ========================================================= */

@media (min-width: 1600px){
  .feature-band{ min-height: var(--cfpp-feature-min-h-xl); }
}

@media (max-width: 1200px){
  #headerbox{ background-position: right center; }
}

@media (max-width: 1100px){
  #investbox .steps-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px){
  .services-trust__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #growbox .wrap{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px){
  .cfpp-subhero{ grid-template-columns: 1fr; }
  .cfpp-subhero__mark{ display: none; }
  .principles-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-serve__grid{ grid-template-columns: 1fr; }
}

@media (max-width: 900px){
  .site-header{ height: auto; }

  .site-header__inner{
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .site-header__nav{
    order: 3;
    width: 100%;
    margin-top: 10px;
    padding-right: 0;
    justify-content: center;
  }

  .primary-menu{
    justify-content: center;
    gap: 22px;
  }

  #headerbox{ background-position: 85% center; }

  :root{ --cfpp-hero-box-w: 92vw; }

  #headerbox .cfpp-hero-row{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding-top: clamp(54px, 8vw, 80px) !important;
    padding-bottom: clamp(18px, 4vw, 28px) !important;
  }

  .cfpp-hero-left{
    width: 100%;
    max-width: var(--cfpp-hero-box-w);
    min-width: 0;
  }

  .cfpp-hero-right{ width: 100%; }

  .cfpp-hero-logo{
    width: min(72vw, 420px);
    max-width: 420px;
  }

  .feature-band{
    min-height: auto;
    padding: var(--cfpp-feature-pad-y-mobile) 0;
    background-position: var(--cfpp-feature-pos);
  }

  .feature-band__inner{
    justify-content: center !important;
    padding-left: 0;
    padding-right: 0;
  }

  .feature-band::before,
  .feature-band--left::before{
    background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.18) 55%, rgba(0,0,0,0.22) 100%);
  }

  .feature-band--light .feature-band__card{ background: var(--cfpp-card-bg); }
  .feature-band--dark .feature-band__card{ background: rgba(36,63,125,.80); }
}

@media (max-width: 850px){
  :root{ --cfpp-hero-panel-min-h: 420px; }

  .primary-menu{
    gap: 14px;
    flex-wrap: wrap;
  }

  .site-header .primary-menu a{ font-size: 14px; }

  .callout{ background-attachment: scroll; }

  .services-trust__grid{ grid-template-columns: 1fr; }

  #growbox{ padding: 70px 0; }
  #growbox h2{ font-size: 30px; }
  #growbox .wrap{ grid-template-columns: 1fr; }

  #investbox h2{ font-size: 25px; }
  #investbox .investbox-sub{ font-size: 22px; }

  .lightbg h3{ font-size: 19px; }

  .chats{
    height: 70px;
    width: auto;
  }

  .headcontent h1{ font-size: 30px; }

  :is(.introphoto1, .introphoto2, .introphoto3, .introphoto4, .introphoto5){
    min-height: 300px;
  }

  .colbox{ display: block; }
  .colpad{ padding: 35px; }

  #faqbox{ padding: 55px 0; }
  #faqbox h2{ font-size: 34px; }

  .page-content{ padding: 50px 0; }
  .page-title{ font-size: 30px; }

  .post-content{ padding: 50px 0; }
  .post-title{ font-size: 30px; }

  .site-footer{
    padding: 44px 0 24px;
    overflow: visible !important;
    overflow-x: visible !important;
  }

  .site-footer__inner,
  .site-footer__contact,
  .site-footer__legal{
    text-align: center;
  }

  .site-footer__inner{
    width: min(760px, 88%) !important;
    margin: 0 auto !important;
  }

  .site-footer__logo{
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer__logo img{
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer__logo a{
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer .footer-menu{
    display: flex;
    justify-content: center;
    gap: 12px 18px;
    padding: 0;
    margin: 0 auto;
    flex-wrap: wrap;
  }

  .cfpp-modal__panel{ margin-top: 6vh; }
}

/* Portrait phones only, logos stacked */
@media (max-width: 780px) and (orientation: portrait){
  .site-footer .site-footer__brand-row{
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 auto 20px auto !important;
  }

  .site-footer .site-footer__logo-box,
  .site-footer .site-footer__dealer-box{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
    flex: 0 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .site-footer .site-footer__dealer-box{
    margin-left: 0 !important;
  }

  .site-footer .site-footer__logo-img{
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 190px !important;
    max-height: 70px !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 auto !important;
  }

  .site-footer .site-footer__dealer-img{
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 150px !important;
    max-height: 44px !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 auto !important;
    transform: translateX(-5px);
  }

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

/* Landscape phones up to 780px, keep logos side by side and centered */
@media (max-width: 780px) and (orientation: landscape){
  .site-footer .site-footer__brand-row{
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-end !important;
    gap: 18px !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 auto 20px auto !important;
  }

  .site-footer .site-footer__logo-box,
  .site-footer .site-footer__dealer-box{
    display: flex !important;
    justify-content: center !important;
    width: auto !important;
    max-width: none !important;
    height: 110px !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
    flex: 0 0 auto !important;
  }

  .site-footer .site-footer__logo-box{
    align-items: flex-end !important;
  }

  .site-footer .site-footer__dealer-box{
    align-items: flex-end !important;
    margin-left: 15px !important;
    padding-left: 0 !important;
  }

  .site-footer .site-footer__divider{
    display: block !important;
    width: 1px !important;
    height: 30px !important;
    flex: 0 0 1px !important;
  }
}

/* 781px to 850px, side by side, centered */
@media (min-width: 781px) and (max-width: 850px){
  .site-footer .site-footer__brand-row{
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-end !important;
    gap: 18px !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 auto 20px auto !important;
  }

  .site-footer .site-footer__logo-box,
  .site-footer .site-footer__dealer-box{
    display: flex !important;
    justify-content: center !important;
    width: auto !important;
    max-width: none !important;
    height: 110px !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
    flex: 0 0 auto !important;
  }

  .site-footer .site-footer__logo-box{
    align-items: flex-end !important;
  }

  .site-footer .site-footer__dealer-box{
    align-items: flex-end !important;
    margin-left: 15px !important;
    padding-left: 0 !important;
  }

  .site-footer .site-footer__divider{
    display: block !important;
    width: 1px !important;
    height: 30px !important;
    flex: 0 0 1px !important;
  }
}

@media (max-width: 600px){
  #headerbox{ background-position: 90% center; }
}

@media (max-width: 560px){
  #investbox .steps-grid{ grid-template-columns: 1fr; }
  .principles-grid{ grid-template-columns: 1fr; }
}

/* Restore Learn more styling for whole-card links */
.service-card__link,
.grow-link,
.step-link{
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

/* LIGHT cards: default blue, red on hover */
.service-card .service-card__link{
  color: #233f8c;
}

.service-card:hover .service-card__link{
  color: var(--cfpp-darkgold);
}

/* DARK cards keep white default */
.grow .grow-link,
.step-card .step-link{
  color: #ffffff;
}

.grow:hover .grow-link,
.step-card:hover .step-link{
  color: var(--cfpp-lightgold);
}

/* Ensure pointer feels clickable */
.service-card:hover,
.grow:hover,
.step-card:hover{
  cursor: pointer;
}

/* =========================================================
   Tablet, Services grid cleanup (iPad)
   ========================================================= */
@media (min-width: 701px) and (max-width: 1100px){
  .services-grid,
  .services-trust__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .services-grid > :last-child,
  .services-trust__grid > :last-child{
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 520px;
  }
}
/* ===========================
   HERO SLIDER TYPOGRAPHY FIX
   Ensures Slide Anything hero headings/subheadings match site style.
   =========================== */

/* Primary hero panels used on home/about/services sliders */
#headerbox .hero-panel h1,
#headerbox .headcontent h1,
.sa_hover_container .hero-panel h1{
  font-family: inherit;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-size: clamp(34px, 4.2vw, 54px);
  margin: 0 0 12px 0;
}

#headerbox .hero-panel h4,
#headerbox .headcontent h4,
.sa_hover_container .hero-panel h4{
  font-family: inherit;
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  font-size: clamp(18px, 2.2vw, 30px);
  margin: 0 0 18px 0;
  opacity: 0.92;
}

#headerbox .hero-panel p,
#headerbox .headcontent p,
.sa_hover_container .hero-panel p{
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  margin: 0;
}

/* Prevent theme/global heading rules from overpowering the slider */
.sa_hover_container .hero-panel h1,
.sa_hover_container .hero-panel h4{
  text-transform: none !important;
}

/* If a subpage uses the older "cfpp-subhero__panel" markup, normalize it too */
#headerbox .cfpp-subhero__panel h1{
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-size: clamp(34px, 4.2vw, 54px);
  margin: 0 0 12px 0;
}
#headerbox .cfpp-subhero__panel .subheadline,
#headerbox .cfpp-subhero__panel h4{
  font-weight: 500;
  font-style: normal;
  line-height: 1.2;
  font-size: clamp(18px, 2.2vw, 30px);
  margin: 0 0 18px 0;
  opacity: 0.92;
}
#headerbox .cfpp-subhero__panel p{
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  margin: 0;
}

/* =========================================================
   Header logo stability
   ---------------------------------------------------------
   Prevents subtle flicker when navigating between pages by
   removing transitions and locking the logo height.
   ========================================================= */

.site-header .custom-logo-link,
.site-header .custom-logo-link img.custom-logo{
  display: block;
  line-height: 0;
  transition: none !important;
  animation: none !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
}

.site-header img.custom-logo{
  height: 42px;
  width: auto;
}

/* =========================================================
   Home hero panel vertical alignment
   ---------------------------------------------------------
   The homepage hero panel is rendered inside the Slide Anything
   wrapper. Depending on CSS load order and the slider wrapper's
   min-heights, the panel can sit slightly higher than the subpage
   heroes. This nudge aligns the homepage panel with About/Services.
   ========================================================= */


@media (max-width: 900px){
  body.home #headerbox .sa_owl_theme .hero-panel{ margin-top: 10px; }
}

/* === Normalize hero panel size across Home, About, Services === */

/* Subpage reference size */
:root{
  --cfpp-hero-panel-h: 420px; /* match About/Services */
}

/* Home slider panel */
body.home #headerbox .sa_owl_theme .hero-panel{
  min-height: var(--cfpp-hero-panel-h);
  max-height: var(--cfpp-hero-panel-h);
  padding: clamp(32px, 3.2vw, 48px);
  box-sizing: border-box;
}

/* Ensure slider wrapper cannot inflate height */
body.home #headerbox .sa_owl_theme{
  align-items: center;
}

/* Mobile adjustment */
@media (max-width: 900px){
  :root{
    --cfpp-hero-panel-h: 360px;
  }
}

/* === Match Home slider panel width to About/Services === */
body.home #headerbox .sa_owl_theme .hero-panel{
  width: 100%;
  max-width: var(--cfpp-hero-box-w);
}

body.home #headerbox .sa_owl_theme{
  width: 100%;
}

.sa_hover_container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* CFPP Services: widen copy inside the service cards */
.cfpp-copywide{
  max-width: 100%;
}
.cfpp-copywide p,
.cfpp-copywide li{
  max-width: 100%;
}

/* CFPP Services: ensure feature band background image displays reliably */
.feature-band{
  background-size: cover;
}

/* CFPP Services: section intro label */
.cfpp-approach-title{
  color: var(--cfpp-navy);
  font-weight: 700;
  margin: 18px 0 10px;
}

/* Tooltip title color override (keep CFPP blue even if global heading colors shift) */
.cfpp-tooltip__title,
.cfpp-modal__title{
  color: var(--cfpp-navy) !important;
}

/* =========================================================
   Mobile header + nav toggle (desktop unchanged)
   ========================================================= */

.menu-toggle{ 
  display: none; 
}

@media (max-width: 900px){

  /* ---------- Header row layout ---------- */

  .site-header__inner{
    gap: 10px;
  }

  .site-header__brand{
    order: 1;
  }

  .site-header__cta{
    order: 2;
    margin-left: auto;
    display: flex;
    align-items: center;
  }

  .menu-toggle{
    order: 3;
    margin-left: 10px;

    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    width: 46px;
    height: 46px;

    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.9);
    border-radius: 14px;

    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    -webkit-tap-highlight-color: transparent;
  }

  .menu-toggle__bar{
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    margin: 0;
  }

  .menu-toggle:active{
    transform: scale(0.98);
  }

  /* ---------- Nav behavior ---------- */

  /* Closed by default on mobile */
  .site-header__nav{
    display: none;
  }

  /* Open state */
  body.nav-open .site-header__nav{
    display: flex;
    width: 100%;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.15);
  }

body.nav-open .primary-menu{
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 0 4px;
}

body.nav-open .primary-menu > li{
  width: 100%;
  text-align: center;
}

body.nav-open .primary-menu a{
  display: inline-block;
  width: auto;
  text-align: center;
  padding: 12px 10px;
}
}

/* =========================================================
   Mobile hero, put logo above slider (desktop unchanged)
   ========================================================= */

@media (max-width: 900px){

  /* your hero becomes a column at this breakpoint, we just reorder */
  #headerbox .cfpp-hero-right{
    order: -1;
    width: 100%;
    margin-bottom: 6px;
  }

  #headerbox .cfpp-hero-left{
    order: 1;
    width: 100%;
  }

  /* optional sizing tweak so the logo feels like a header element */
  #headerbox .cfpp-hero-logo{
    width: min(72vw, 360px);
    max-width: 360px;
  }
}

/* =========================================================
   Step 3, Mobile hero spacing and type
   ========================================================= */
@media (max-width: 700px){

  .cfpp-headerbox{
    padding-top: 70px; /* keeps content clear of the fixed header */
    padding-bottom: 10px;
  }

  .cfpp-hero-left .cfpp-slide{
    min-height: auto;
    padding: 18px 18px 22px;
  }

  .cfpp-hero-left .cfpp-slide h2{
    font-size: 34px;
    line-height: 1.12;
    letter-spacing: -0.3px;
  }

  .cfpp-hero-left .cfpp-slide p{
    font-size: 18px;
    line-height: 1.5;
  }

  .cfpp-hero-left .btn-hero{
    width: 100%;
    max-width: 360px;
    padding: 14px 16px;
  }
}

/* =========================================================
   Step 4, Mobile section rhythm
   ========================================================= */
@media (max-width: 700px){

  .section,
  .callout,
  .services-section,
  .about-section{
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section .container,
  .callout .container{
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* =========================================================
   Step 5, Mobile cards and grids
   ========================================================= */
@media (max-width: 700px){

  .grid,
  .services-grid,
  .team-grid,
  .cards{
    gap: 14px;
  }

  .card,
  .service-card{
    padding: 18px;
    border-radius: 18px;
  }

  .card h3,
  .service-card h3{
    font-size: 20px;
    line-height: 1.2;
  }
}
/* =========================================================
   Step 6, Mobile forms and tap targets
   ========================================================= */
@media (max-width: 700px){

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select{
    width: 100%;
    font-size: 16px; /* prevents iOS zoom */
    padding: 12px 12px;
  }

  button,
  .btn,
  .primary-menu a{
    min-height: 44px;
  }
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
}

/* Subpage hero background (About + Services) */
#headerbox.headerbox--about,
#headerbox.headerbox--services{
  background-image: url(/wp-content/uploads/2026/02/cfppbg-scaled.jpg);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Ensure hero text/logo always render above the video */
#headerbox .hero-video{ z-index: 0; }
#headerbox .headcontent{ z-index: 2; }
#headerbox::before{ z-index: 1; }

/* About page section image vertical positioning */
.aboutband-purpose      { --cfpp-feature-pos: center 60%; }
.aboutband-approach     { --cfpp-feature-pos: center 55%; }
.aboutband-relationship { --cfpp-feature-pos: center 50%; }
.aboutband-values       { --cfpp-feature-pos: center 45%; }