/* ==========================================================
   FMB SHARED COMPONENTS
   Buttons, page heroes, split panels, and static hero collections
   ========================================================== */


/* ==========================================================
   1. BUTTONS
   ========================================================== */

.fmb-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  border: 1px solid var(--fmb-gold);
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color var(--fmb-transition),
    border-color var(--fmb-transition),
    color var(--fmb-transition),
    transform var(--fmb-transition);
}

.fmb-button svg {
  width: 18px;
  flex: 0 0 18px;
}

.fmb-button:hover {
  transform: translateY(-2px);
}

.fmb-button:focus-visible {
  outline: 2px solid var(--fmb-focus);
  outline-offset: 3px;
}

.fmb-button--gold {
  border-color: var(--fmb-gold);
  background: var(--fmb-gold);
  color: var(--fmb-navy-dark);
}

.fmb-button--gold:hover {
  border-color: var(--fmb-focus);
  background: var(--fmb-focus);
  color: var(--fmb-navy-dark);
}

.fmb-button--outline {
  background: rgba(4, 16, 31, 0.22);
  color: var(--fmb-white);
}

.fmb-button--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--fmb-white);
}


/* ==========================================================
   2. HERO FOUNDATION
   Change these variables to adjust every hero.
   ========================================================== */

.fmb-hero {
  --fmb-hero-padding-y: clamp(44px, 5vw, 72px);
  --fmb-hero-padding-x: var(--fmb-gutter);
  --fmb-hero-column-gap: clamp(34px, 5vw, 72px);
  --fmb-hero-panel-padding: clamp(26px, 3vw, 42px);

  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 480px;
  overflow: hidden;
  border-top: 1px solid rgba(212, 182, 120, 0.3);
  background-color: var(--fmb-navy-dark);
  color: var(--fmb-white);
}


/* ==========================================================
   3. HERO HEIGHT OPTIONS
   ========================================================== */

.fmb-hero--compact {
  min-height: 360px;
}

.fmb-hero--medium {
  min-height: 460px;
}

.fmb-hero--large {
  min-height: 600px;
}


/* ==========================================================
   4. HERO BACKGROUND IMAGE
   ========================================================== */

.fmb-hero__background {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.fmb-hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fmb-hero--image-left-top .fmb-hero__background img {
  object-position: left top;
}

.fmb-hero--image-left-center .fmb-hero__background img {
  object-position: left center;
}

.fmb-hero--image-left-bottom .fmb-hero__background img {
  object-position: left bottom;
}

.fmb-hero--image-center-top .fmb-hero__background img {
  object-position: center top;
}

.fmb-hero--image-center-center .fmb-hero__background img {
  object-position: center center;
}

.fmb-hero--image-center-bottom .fmb-hero__background img {
  object-position: center bottom;
}

.fmb-hero--image-right-top .fmb-hero__background img {
  object-position: right top;
}

.fmb-hero--image-right-center .fmb-hero__background img {
  object-position: right center;
}

.fmb-hero--image-right-bottom .fmb-hero__background img {
  object-position: right bottom;
}


/* ==========================================================
   5. HERO OVERLAYS AND BACKGROUNDS
   ========================================================== */

.fmb-hero::before,
.fmb-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.fmb-hero--overlay-strong::before {
  background: linear-gradient(
    90deg,
    rgba(4, 16, 31, 0.98) 0%,
    rgba(4, 16, 31, 0.9) 38%,
    rgba(4, 16, 31, 0.45) 72%,
    rgba(4, 16, 31, 0.25) 100%
  );
}

.fmb-hero--overlay-light::before {
  background: linear-gradient(
    90deg,
    rgba(4, 16, 31, 0.9) 0%,
    rgba(4, 16, 31, 0.24) 100%
  );
}

.fmb-hero--plain::before,
.fmb-hero--split::before {
  background: linear-gradient(
    135deg,
    var(--fmb-navy-dark) 0%,
    var(--fmb-navy) 62%,
    #0a2038 100%
  );
}

.fmb-hero--plain::after,
.fmb-hero--split::after {
  inset: auto -8% -60% auto;
  width: 56vw;
  height: 56vw;
  border: 1px solid rgba(212, 182, 120, 0.05);
  border-radius: 50%;
}


/* ==========================================================
   6. HERO LAYOUT
   ========================================================== */

.fmb-hero__inner {
  display: grid;
  width: 100%;
  max-width: 1920px;
  margin: auto;
  padding:
    var(--fmb-hero-padding-y)
    var(--fmb-hero-padding-x);
  align-items: center;
}

.fmb-hero--split .fmb-hero__inner {
  grid-template-columns:
    minmax(0, 1.12fr)
    minmax(360px, 0.88fr);
  gap: var(--fmb-hero-column-gap);
}

.fmb-hero__content {
  width: min(100%, 1040px);
}

.fmb-hero--background .fmb-hero__content {
  width: min(100%, 900px);
}

.fmb-hero--align-center .fmb-hero__content {
  margin-inline: auto;
  text-align: center;
}


/* ==========================================================
   7. BREADCRUMBS
   ========================================================== */

.fmb-hero__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  align-items: center;
  margin: 0 0 clamp(24px, 3vw, 38px);
  color: var(--fmb-muted);
  font-size: 0.83rem;
}

.fmb-hero__breadcrumbs a {
  color: var(--fmb-white);
  text-decoration: none;
}

.fmb-hero__breadcrumbs a:hover {
  color: var(--fmb-gold);
}


/* ==========================================================
   8. EYEBROWS
   ========================================================== */

.fmb-hero__eyebrow,
.fmb-hero__panel-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--fmb-gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fmb-hero__eyebrow::before,
.fmb-hero__panel-eyebrow::before {
  width: 36px;
  height: 1px;
  flex: 0 0 36px;
  background: currentColor;
  content: "";
}


/* ==========================================================
   9. HERO TYPOGRAPHY
   ========================================================== */

.fmb-hero__title {
  max-width: 1050px;
  margin: 0;
  color: var(--fmb-white);
  font-family: var(--fmb-font-display);
  font-size: clamp(3rem, 5.25vw, 6.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.fmb-hero--compact .fmb-hero__title {
  font-size: clamp(2.7rem, 4.3vw, 5rem);
}

.fmb-hero__title span {
  color: var(--fmb-gold);
}

.fmb-hero__description {
  max-width: 1000px;
  margin-top: clamp(20px, 2.5vw, 30px);
  color: #e5e9ee;
  font-size: clamp(1rem, 1.2vw, 1.22rem);
  line-height: 1.7;
}

.fmb-hero__description p {
  margin: 0;
}

.fmb-hero__description strong {
  color: var(--fmb-white);
}


/* ==========================================================
   10. HERO FEATURE LIST
   ========================================================== */

.fmb-hero__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: clamp(26px, 3vw, 36px) 0 0;
  padding: clamp(22px, 3vw, 30px) 0 0;
  border-top: 1px solid var(--fmb-divider);
  list-style: none;
}

.fmb-hero__feature {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.fmb-hero__feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(212, 182, 120, 0.55);
  border-radius: 50%;
  color: var(--fmb-gold);
}

.fmb-hero__feature-icon svg {
  width: 20px;
}

.fmb-hero__feature strong,
.fmb-hero__feature small {
  display: block;
}

.fmb-hero__feature strong {
  font-size: 0.92rem;
  line-height: 1.35;
}

.fmb-hero__feature small {
  margin-top: 3px;
  color: var(--fmb-muted);
  font-size: 0.77rem;
  line-height: 1.45;
}


/* ==========================================================
   11. HERO BUTTONS
   ========================================================== */

.fmb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(24px, 3vw, 34px);
}

.fmb-hero--align-center .fmb-hero__actions {
  justify-content: center;
}


/* ==========================================================
   12. RIGHT-SIDE PANEL
   ========================================================== */

.fmb-hero__panel {
  width: 100%;
  padding: var(--fmb-hero-panel-padding);
  border: 1px solid rgba(212, 182, 120, 0.3);
  border-radius: 5px;
  background: linear-gradient(
    135deg,
    rgba(25, 40, 55, 0.94),
    rgba(36, 43, 48, 0.95)
  );
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.fmb-hero__panel-title {
  margin: 0 0 26px;
  color: var(--fmb-white);
  font-family: var(--fmb-font-display);
  font-size: clamp(2rem, 3vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.fmb-hero__panel--icons .fmb-hero__panel-title {
  margin-bottom: 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--fmb-divider);
}


/* ==========================================================
   13. ICON PANEL POINTS
   ========================================================== */

.fmb-hero__panel-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fmb-hero__panel-points li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 15px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--fmb-divider);
}

.fmb-hero__panel-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(212, 182, 120, 0.48);
  border-radius: 50%;
  color: var(--fmb-gold);
}

.fmb-hero__panel-icon svg {
  width: 18px;
}

.fmb-hero__panel-points strong,
.fmb-hero__panel-points small {
  display: block;
}

.fmb-hero__panel-points strong {
  color: var(--fmb-white);
  font-size: 0.9rem;
  line-height: 1.35;
}

.fmb-hero__panel-points small {
  margin-top: 3px;
  color: var(--fmb-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}


/* ==========================================================
   14. PANEL CALLOUT
   ========================================================== */

.fmb-hero__panel-callout {
  margin-top: 16px;
  padding: 14px 17px;
  border-left: 3px solid var(--fmb-gold);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fmb-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.fmb-hero__panel-callout strong {
  color: var(--fmb-white);
}


/* ==========================================================
   15. NUMBERED PANEL STEPS
   ========================================================== */

.fmb-hero__steps {
  margin: 0;
  padding: 0;
  counter-reset: fmb-step;
  list-style: none;
}

.fmb-hero__steps li {
  position: relative;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 15px;
  min-height: 68px;
  counter-increment: fmb-step;
}

.fmb-hero__steps li::before {
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(212, 182, 120, 0.5);
  border-radius: 50%;
  color: var(--fmb-gold);
  content: counter(fmb-step);
  font-family: var(--fmb-font-display);
  font-weight: 700;
}

.fmb-hero__steps li:not(:last-child)::after {
  position: absolute;
  top: 48px;
  bottom: 0;
  left: 24px;
  width: 1px;
  background: rgba(212, 182, 120, 0.35);
  content: "";
}

.fmb-hero__steps strong,
.fmb-hero__steps small {
  display: block;
}

.fmb-hero__steps strong {
  padding-top: 3px;
  color: var(--fmb-white);
  font-size: 0.9rem;
}

.fmb-hero__steps small {
  margin-top: 2px;
  color: var(--fmb-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}


/* ==========================================================
   16. PANEL FOOTER AND TAGS
   ========================================================== */

.fmb-hero__panel-footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--fmb-divider);
}

.fmb-hero__panel-footer > strong {
  display: block;
  margin-bottom: 12px;
  color: var(--fmb-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fmb-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fmb-hero__tags span {
  padding: 5px 10px;
  border: 1px solid rgba(212, 182, 120, 0.35);
  border-radius: 99px;
  color: var(--fmb-muted);
  font-size: 0.68rem;
}


/* ==========================================================
   17. HOMEPAGE HERO
   These rules affect only class="fmb-home-hero".
   ========================================================== */

.fmb-home-hero {
  --fmb-hero-padding-y: clamp(28px, 3vw, 42px);
  --fmb-hero-column-gap: clamp(30px, 4vw, 58px);
  --fmb-hero-panel-padding: clamp(22px, 2.4vw, 32px);

  min-height: 0;
}

.fmb-home-hero.fmb-hero--compact,
.fmb-home-hero.fmb-hero--medium,
.fmb-home-hero.fmb-hero--large {
  min-height: 0;
}

.fmb-home-hero .fmb-hero__inner {
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(360px, 0.92fr);
}

.fmb-home-hero .fmb-hero__content {
  width: min(100%, 780px);
}

.fmb-home-hero .fmb-hero__eyebrow {
  margin-bottom: 16px;
}

.fmb-home-hero .fmb-hero__title {
  max-width: 760px;
  font-size: clamp(3rem, 4.3vw, 5.15rem);
  line-height: 0.98;
}

.fmb-home-hero .fmb-hero__description {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.6;
}

.fmb-home-hero .fmb-hero__actions {
  margin-top: 22px;
}

.fmb-home-hero .fmb-hero__panel-eyebrow {
  margin-bottom: 13px;
}

.fmb-home-hero .fmb-hero__panel-title {
  font-size: clamp(1.9rem, 2.4vw, 2.8rem);
  line-height: 1.08;
}

.fmb-home-hero
  .fmb-hero__panel--icons
  .fmb-hero__panel-title {
  padding-bottom: 18px;
}

.fmb-home-hero .fmb-hero__panel-points li {
  grid-template-columns: 40px 1fr;
  gap: 13px;
  padding: 11px 0;
}

.fmb-home-hero .fmb-hero__panel-icon {
  width: 38px;
  height: 38px;
}

.fmb-home-hero .fmb-hero__panel-icon svg {
  width: 17px;
}

.fmb-home-hero .fmb-hero__panel-callout {
  margin-top: 13px;
  padding: 12px 15px;
}


/* ==========================================================
   18. HOMEPAGE SHORTCODE WRAPPER RESET
   Removes spacing added directly to the shortcode widget.
   ========================================================== */

.home .wp-block-shortcode:has(.fmb-home-hero),
.home .elementor-widget-shortcode:has(.fmb-home-hero),
.home
  .elementor-widget-shortcode:has(.fmb-home-hero)
  > .elementor-widget-container {
  margin: 0;
  padding: 0;
}


/* ==========================================================
   19. LEGACY HERO COLLECTION
   Old [fmb_hero_slider] content is intentionally non-sliding.
   ========================================================== */

.fmb-hero-collection {
  display: grid;
  gap: 1px;
  width: 100%;
  background: var(--fmb-navy-dark);
}

.fmb-hero-collection__item {
  width: 100%;
}


/* ==========================================================
   20. TABLET
   ========================================================== */

@media (max-width: 1024px) {
  .fmb-hero--large {
    min-height: 540px;
  }

  .fmb-hero--split .fmb-hero__inner,
  .fmb-home-hero .fmb-hero__inner {
    grid-template-columns: 1fr;
  }

  .fmb-hero__panel {
    width: min(100%, 760px);
  }

  .fmb-home-hero {
    --fmb-hero-padding-y: 38px;
    --fmb-hero-column-gap: 30px;
  }

  .fmb-home-hero .fmb-hero__content {
    width: min(100%, 820px);
  }

  .fmb-home-hero .fmb-hero__panel {
    width: min(100%, 820px);
  }
}


/* ==========================================================
   21. MOBILE
   ========================================================== */

@media (max-width: 767px) {
  .fmb-hero,
  .fmb-hero--compact,
  .fmb-hero--medium,
  .fmb-hero--large {
    min-height: 0;
  }

  .fmb-hero {
    --fmb-hero-padding-y: 38px;
    --fmb-hero-padding-x: 18px;
    --fmb-hero-column-gap: 28px;
    --fmb-hero-panel-padding: 22px 18px;
  }

  .fmb-hero__breadcrumbs {
    margin-bottom: 24px;
  }

  .fmb-hero__eyebrow,
  .fmb-hero__panel-eyebrow {
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .fmb-hero__eyebrow::before,
  .fmb-hero__panel-eyebrow::before {
    width: 26px;
    flex-basis: 26px;
  }

  .fmb-hero__title {
    font-size: clamp(2.55rem, 13vw, 4.25rem);
    line-height: 1.01;
  }

  .fmb-hero__description {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.6;
  }

  .fmb-hero__features {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .fmb-hero__feature {
    grid-template-columns: 44px 1fr;
  }

  .fmb-hero__feature-icon {
    width: 42px;
    height: 42px;
  }

  .fmb-hero__actions {
    display: grid;
    margin-top: 22px;
  }

  .fmb-button {
    width: 100%;
    min-height: 50px;
  }

  .fmb-hero__panel-title {
    font-size: 2.05rem;
  }

  .fmb-hero--background::before {
    background: linear-gradient(
      90deg,
      rgba(4, 16, 31, 0.97),
      rgba(4, 16, 31, 0.72)
    );
  }

  .fmb-home-hero {
    --fmb-hero-padding-y: 30px;
    --fmb-hero-padding-x: 18px;
    --fmb-hero-column-gap: 26px;
    --fmb-hero-panel-padding: 20px 17px;
  }

  .fmb-home-hero .fmb-hero__title {
    font-size: clamp(2.5rem, 12vw, 3.6rem);
  }

  .fmb-home-hero .fmb-hero__description {
    margin-top: 16px;
    font-size: 0.98rem;
  }

  .fmb-home-hero .fmb-hero__actions {
    margin-top: 20px;
  }

  .fmb-home-hero .fmb-hero__panel-title {
    font-size: 1.9rem;
  }

  .fmb-home-hero .fmb-hero__panel-points li {
    padding: 10px 0;
  }

}


/* ==========================================================
   22. SMALL MOBILE
   ========================================================== */

@media (max-width: 420px) {
  .fmb-hero {
    --fmb-hero-padding-x: 16px;
  }

  .fmb-home-hero {
    --fmb-hero-padding-y: 26px;
    --fmb-hero-padding-x: 16px;
    --fmb-hero-panel-padding: 18px 15px;
  }

  .fmb-home-hero .fmb-hero__title {
    font-size: clamp(2.3rem, 12vw, 3.15rem);
  }

  .fmb-home-hero .fmb-hero__panel-points li {
    grid-template-columns: 36px 1fr;
    gap: 11px;
  }

  .fmb-home-hero .fmb-hero__panel-icon {
    width: 34px;
    height: 34px;
  }

  .fmb-home-hero .fmb-hero__panel-icon svg {
    width: 15px;
  }
}


/* ==========================================================
   23. REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .fmb-button {
    transition: none;
  }

  .fmb-button:hover {
    transform: none;
  }
}

/* =========================================================
   FMB INTERNAL PAGE HERO — FULL WIDTH FIX
   Applies to [fmb_hero], not homepage hero
   ========================================================= */

.fmb-hero {
	position: relative;

	/* Force the hero shell to span the browser width */
	width: 100vw;
	max-width: none;

	/* Break out of any parent content container */
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);

	background: #07182f;
	color: #fff;

	overflow: hidden;
}

/*
 * Keep the actual content aligned with the FMB site grid.
 * Background is full width; content is not.
 */
.fmb-hero > .fmb-container,
.fmb-hero__inner {
	position: relative;
	z-index: 2;

	width: min(94%, 1440px);
	max-width: 1440px;

	margin-left: auto;
	margin-right: auto;

	padding-left: 0;
	padding-right: 0;
}


/* =========================================================
   HERO HEIGHT
   Tightens the oversized internal banner
   ========================================================= */

.fmb-hero--medium > .fmb-container,
.fmb-hero--medium .fmb-hero__inner {
	padding-top: clamp(58px, 4.5vw, 82px);
	padding-bottom: clamp(58px, 4.5vw, 82px);
}

.fmb-hero--large > .fmb-container,
.fmb-hero--large .fmb-hero__inner {
	padding-top: clamp(70px, 5.5vw, 96px);
	padding-bottom: clamp(70px, 5.5vw, 96px);
}

.fmb-hero--small > .fmb-container,
.fmb-hero--small .fmb-hero__inner {
	padding-top: clamp(44px, 3.5vw, 62px);
	padding-bottom: clamp(44px, 3.5vw, 62px);
}


/* =========================================================
   HERO TITLE
   ========================================================= */

.fmb-hero h1,
.fmb-hero__title {
	max-width: 1050px;

	margin-top: 0;
	margin-bottom: 0;

	font-size: clamp(46px, 4.8vw, 76px);
	line-height: 1;
	letter-spacing: -0.035em;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.fmb-hero__description,
.fmb-hero__lead {
	max-width: 1050px;

	margin-top: 24px;

	font-size: clamp(18px, 1.3vw, 22px);
	line-height: 1.6;
}


/* =========================================================
   BACKGROUND IMAGE
   ========================================================= */

.fmb-hero__background,
.fmb-hero__media {
	position: absolute;
	inset: 0;

	width: 100%;
	height: 100%;

	z-index: 0;
}

.fmb-hero__background img,
.fmb-hero__media img {
	width: 100%;
	height: 100%;

	display: block;

	object-fit: cover;
	object-position: center;
}


/* =========================================================
   DARK OVERLAY
   ========================================================= */

.fmb-hero::after {
	content: "";
	position: absolute;
	inset: 0;

	z-index: 1;
	pointer-events: none;

	background:
		linear-gradient(
			90deg,
			rgba(4, 16, 31, 0.98) 0%,
			rgba(4, 16, 31, 0.95) 34%,
			rgba(4, 16, 31, 0.76) 62%,
			rgba(4, 16, 31, 0.32) 100%
		);
}


/* Keep content above background overlay */
.fmb-hero__content,
.fmb-hero > .fmb-container {
	position: relative;
	z-index: 2;
}


/* =========================================================
   FEATURE / PRINCIPLES ROW
   ========================================================= */

.fmb-hero__features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));

	gap: clamp(28px, 3.5vw, 56px);

	margin-top: 38px;
	padding-top: 30px;

	border-top: 1px solid rgba(255, 255, 255, 0.18);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.fmb-hero__actions {
	display: flex;
	flex-wrap: wrap;

	gap: 16px;

	margin-top: 34px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

	.fmb-hero > .fmb-container,
	.fmb-hero__inner {
		width: calc(100% - 48px);
	}

	.fmb-hero h1,
	.fmb-hero__title {
		font-size: clamp(42px, 6.5vw, 60px);
	}

	.fmb-hero__features {
		gap: 24px;
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	.fmb-hero > .fmb-container,
	.fmb-hero__inner,
	.fmb-hero--medium > .fmb-container,
	.fmb-hero--medium .fmb-hero__inner,
	.fmb-hero--large > .fmb-container,
	.fmb-hero--large .fmb-hero__inner,
	.fmb-hero--small > .fmb-container,
	.fmb-hero--small .fmb-hero__inner {
		width: calc(100% - 32px);

		padding-top: 46px;
		padding-bottom: 50px;
	}

	.fmb-hero h1,
	.fmb-hero__title {
		font-size: clamp(38px, 10.5vw, 52px);
		line-height: 1.02;
	}

	.fmb-hero__description,
	.fmb-hero__lead {
		margin-top: 18px;

		font-size: 17px;
		line-height: 1.55;
	}

	.fmb-hero__features {
		grid-template-columns: 1fr;

		gap: 20px;

		margin-top: 28px;
		padding-top: 24px;
	}

	.fmb-hero__actions {
		flex-direction: column;

		margin-top: 28px;
	}

	.fmb-hero__actions a,
	.fmb-hero__actions .fmb-btn {
		width: 100%;
		justify-content: center;
	}

	.fmb-hero::after {
		background:
			linear-gradient(
				180deg,
				rgba(4, 16, 31, 0.88) 0%,
				rgba(4, 16, 31, 0.96) 100%
			);
	}
}
/* ==========================================================
   FMB HERO — REMOVE FINAL TOP/BOTTOM WHITE STRIPS
   Add at VERY END of CSS
   ========================================================== */


/* ----------------------------------------------------------
   1. Remove page/content spacing when an FMB hero exists
   ---------------------------------------------------------- */

body:has(.fmb-hero) #page,
body:has(.fmb-hero) #content,
body:has(.fmb-hero) .site-content,
body:has(.fmb-hero) .content-area,
body:has(.fmb-hero) .site-main,
body:has(.fmb-hero) .fmb-site-main,
body:has(.fmb-hero) .entry-content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


/* ----------------------------------------------------------
   2. Elementor wrapper holding the hero
   This is likely where your white strips are coming from.
   ---------------------------------------------------------- */

body:has(.fmb-hero)
.elementor-element:has(.fmb-hero),

body:has(.fmb-hero)
.e-con:has(.fmb-hero),

body:has(.fmb-hero)
.elementor-section:has(.fmb-hero),

body:has(.fmb-hero)
.elementor-column:has(.fmb-hero),

body:has(.fmb-hero)
.elementor-widget:has(.fmb-hero),

body:has(.fmb-hero)
.elementor-widget-shortcode:has(.fmb-hero),

body:has(.fmb-hero)
.elementor-widget-html:has(.fmb-hero) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;

    gap: 0 !important;
    row-gap: 0 !important;

    border-top: 0 !important;
    border-bottom: 0 !important;
}


/* Elementor widget container itself */

body:has(.fmb-hero)
.elementor-widget-shortcode:has(.fmb-hero)
> .elementor-widget-container,

body:has(.fmb-hero)
.elementor-widget-html:has(.fmb-hero)
> .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
}


/* ----------------------------------------------------------
   3. Elementor nested container spacing
   ---------------------------------------------------------- */

body:has(.fmb-hero)
.e-con:has(> .elementor-element .fmb-hero) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;

    gap: 0 !important;
    row-gap: 0 !important;
}


/* Boxed Elementor inner containers sometimes introduce
   another small gap */

body:has(.fmb-hero)
.e-con-inner:has(.fmb-hero) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;

    gap: 0 !important;
}


/* ----------------------------------------------------------
   4. Remove WordPress-generated empty spacing around shortcode
   ---------------------------------------------------------- */

body:has(.fmb-hero)
.entry-content > p:empty,

body:has(.fmb-hero)
.elementor-widget-container > p:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ----------------------------------------------------------
   5. Make sure hero itself contributes no outside spacing
   ---------------------------------------------------------- */

.fmb-hero {
    display: block !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    border-top: 0 !important;
    border-bottom: 0 !important;
}


/* ----------------------------------------------------------
   6. Remove spacing BETWEEN topic navigation and hero
   ---------------------------------------------------------- */

.fmb-topic-nav,
.fmb-subnav,
.fmb-site-subnav {
    margin-bottom: 0 !important;
}

.fmb-topic-nav + *,
.fmb-subnav + *,
.fmb-site-subnav + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* ----------------------------------------------------------
   7. Remove spacing immediately AFTER hero
   ---------------------------------------------------------- */

.fmb-hero + *,
.elementor-element:has(.fmb-hero) + .elementor-element,
.e-con:has(.fmb-hero) + .e-con {
    margin-top: 0 !important;
}


/* ----------------------------------------------------------
   8. Elementor default container gap override
   ONLY for the container that contains the hero.
   ---------------------------------------------------------- */

.e-con:has(.fmb-hero) {
    --gap: 0px !important;
    --row-gap: 0px !important;
    --column-gap: 0px !important;
}


/* ==========================================================
   MOBILE / TABLET
   Keep the exact same zero-gap behavior
   ========================================================== */

@media (max-width: 1024px) {

    body:has(.fmb-hero)
    .e-con:has(.fmb-hero),

    body:has(.fmb-hero)
    .elementor-element:has(.fmb-hero) {
        margin-top: 0 !important;
        margin-bottom: 0 !important;

        padding-top: 0 !important;
        padding-bottom: 0 !important;

        gap: 0 !important;
    }

}

/* =========================================================
   INTERNAL PAGE HERO NORMALIZATION — v2.17.0
   Keeps page-title scale predictable across compact/medium/large heroes.
   Homepage hero remains independently composed.
   ========================================================= */

.fmb-hero:not(.fmb-home-hero).fmb-hero--compact .fmb-hero__title {
  font-size: clamp(42px, 3.8vw, 62px);
}

.fmb-hero:not(.fmb-home-hero).fmb-hero--medium .fmb-hero__title {
  font-size: clamp(44px, 4.2vw, 68px);
}

.fmb-hero:not(.fmb-home-hero).fmb-hero--large .fmb-hero__title {
  font-size: clamp(46px, 4.6vw, 74px);
}

@media (max-width: 767px) {
  .fmb-hero:not(.fmb-home-hero).fmb-hero--compact .fmb-hero__title,
  .fmb-hero:not(.fmb-home-hero).fmb-hero--medium .fmb-hero__title,
  .fmb-hero:not(.fmb-home-hero).fmb-hero--large .fmb-hero__title {
    font-size: clamp(38px, 10.5vw, 50px);
  }
}
