/*
 * TWPH — enqueue on WordPress (with js/main.js).
 * Custom only: scroll-scrub hero, fixed header + compact state, kicker rule,
 * process step watermark, Solutions section parity, and BB button-group CTAs (local-html).
 * Other rows/columns/modules → Beaver Builder settings.
 */
 
:root {
  --twph-header-height: 72px;
  --twph-navy: #07172f;
  --twph-orange: #f47b20;
  --twph-orange-2: #ff9b45; 
  --twph-space-2: 12px;
  --twph-space-3: 16px;
  --twph-space-4: 24px;
  --twph-space-5: 32px; 
  --twph-space-6: 48px;
  --twph-hero-text: #ffffff;
  --twph-hero-text-sub: rgba(255, 255, 255, 0.92);
  --twph-btn-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --twph-btn-duration: 0.38s;
  --twph-grid-gap: clamp(10px, 1.8vw, 16px);
  --twph-grid-gap-lg: clamp(12px, 2.2vw, 24px);
  --twph-card-pad: clamp(16px, 2.4vw, 24px);
}
 
html { 
  scroll-padding-top: var(--twph-header-height);
} 

.condense {
  max-width: 650px; 
  margin-left: auto;
  margin-right: auto;
}

/* Centered section intro (BB col with twph-kicker--center + condense title/text) */
.fl-col-content:has(> .twph-kicker--center) {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(10px, 1.8vw, 16px);
}

.fl-col-content:has(> .twph-kicker--center) .fl-module {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  width: 100%;
  max-width: 650px;
}

.fl-col-content:has(> .twph-kicker--center) .twph-kicker--center {
  align-self: center;
  width: fit-content !important;
  max-width: 100%;
}

.fl-col-content:has(> .twph-kicker--center) .fl-heading-text,
.fl-col-content:has(> .twph-kicker--center) .fl-rich-text,
.fl-col-content:has(> .twph-kicker--center) .fl-rich-text p {
  text-align: center !important;
}

/* --- Fixed header (Themer: background, menu, buttons; JS toggles .is-compact) --- */
.twph-header {
  position: fixed;
  top: 0; 
  left: 0;
  right: 0;
  z-index: 100;
  transition: padding 0.28s ease, box-shadow 0.28s ease;
} 

.twph-header.is-compact { 
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  box-shadow: 0 10px 30px rgba(7, 23, 47, 0.22);
}

.twph-header.is-compact .twph-bar {
  min-height: 42px;
}

.twph-header.is-compact .twph-header__logo img {
  height: 36px;
  max-width: 165px;
  max-height: 36px;
}

.twph-header.is-compact .twph-menu {
  font-size: 12px;
}

.twph-header.is-compact .twph-menu a {
  padding: 6px 7px;
}

.twph-header.is-compact .twph-btn--header,
.twph-header.is-compact .twph-header__actions .twph-btn {
  padding: 7px 14px;
  font-size: 12px;
}

/* --- Hero scroll video (custom HTML row + main.js; GSAP-ready hook) --- */
/* BB rows default to overflow:hidden — breaks position:sticky on iOS/Android. */
.fl-row:has(.twph-hero) .fl-row-content-wrap,
.fl-row:has(.twph-hero) .fl-row-content,
.fl-row:has(.twph-hero) .fl-col-content,
.fl-row:has(.twph-hero) .fl-module-html {
  overflow: visible !important;
}

.twph-hero {
  --twph-hero-scroll: 200vh;
  --twph-hero-progress: 0;
  position: relative;
  min-height: var(--twph-hero-scroll);
  margin-top: 0;
  padding: 0;
  background: var(--twph-navy);
}

.twph-hero-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
}

.twph-hero-media {
  position: absolute;
  inset: 0;
  background-color: var(--twph-navy);
  background-size: cover;
  background-position: center;
}

.twph-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  backface-visibility: hidden;
}

html.js .twph-hero-video:not(.is-ready) {
  opacity: 0;
}

.twph-hero-overlay {
  position: absolute;
  inset: 0;
  opacity: calc(1 - var(--twph-hero-progress));
  background:
    linear-gradient(90deg, rgba(7, 23, 47, 0.9) 0%, rgba(7, 23, 47, 0.55) 42%, rgba(7, 23, 47, 0.18) 100%),
    linear-gradient(180deg, rgba(7, 23, 47, 0.32), rgba(7, 23, 47, 0.62));
  pointer-events: none;
}

.twph-hero-glow {
  position: absolute;
  top: 8%;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  opacity: calc(1 - var(--twph-hero-progress));
  background: radial-gradient(circle, rgba(244, 123, 32, 0.3), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.twph-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-bottom: var(--twph-space-6);
  opacity: calc(1 - var(--twph-hero-progress));
  transform: translate3d(0, calc(var(--twph-hero-progress) * -12px), 0);
  will-change: opacity, transform;
}

.twph-hero-spacer {
  height: calc(var(--twph-hero-scroll) - 100vh);
}

.twph-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(18px, 2.2vw, 28px);
  max-width: 720px;
  padding-top: calc(var(--twph-header-height) + var(--twph-space-5));
  color: #fff;
}

.twph-hero h1 {
  margin: 0;
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.075em;
  font-weight: 950;
  color: #fff;
  text-shadow: 0 2px 28px rgba(7, 23, 47, 0.5);
}

.twph-hero h1 em {
  display: block;
  margin-top: 0.06em;
  color: var(--twph-orange-2);
  font-style: normal;
  text-shadow: 0 2px 20px rgba(7, 23, 47, 0.45);
}

.twph-hero .twph-text.twph-text--hero,
.twph-hero .twph-text.twph-text--hero-sub {
  margin: 0;
  font-weight: 500;
  text-shadow: 0 1px 16px rgba(7, 23, 47, 0.55);
}

.twph-hero .twph-text.twph-text--hero {
  color: var(--twph-hero-text);
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.74;
  max-width: 58ch;
  letter-spacing: 0.015em;
}

.twph-hero .twph-text.twph-text--hero-sub {
  color: var(--twph-hero-text-sub);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.7;
  max-width: 56ch;
}

.twph-hero-copy .twph-cluster {
  margin-top: clamp(4px, 1vw, 12px);
  gap: var(--twph-space-3);
}

.twph-hero-copy .twph-mt-lg {
  margin-top: 0;
}

/* Hero HTML module CTAs (rest of site: BB Button module) */
.twph-hero .twph-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.twph-hero .twph-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  text-decoration: none;
  transition:
    transform var(--twph-btn-duration) var(--twph-btn-ease),
    box-shadow var(--twph-btn-duration) var(--twph-btn-ease),
    background var(--twph-btn-duration) var(--twph-btn-ease),
    border-color var(--twph-btn-duration) var(--twph-btn-ease);
}

.twph-hero .twph-btn:hover,
.twph-hero .twph-btn:focus-visible {
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .twph-hero .twph-btn:hover {
    transform: translateY(-2px);
  }
}

.twph-hero .twph-btn--primary {
  background: linear-gradient(135deg, var(--twph-orange), var(--twph-orange-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(244, 123, 32, 0.26);
}

.twph-hero .twph-btn--secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--twph-navy);
  box-shadow: 0 8px 20px rgba(7, 23, 47, 0.08);
}

/* Inner width for hero copy (BB row max width can replace this class) */
.twph-wrap {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

/* --- Logos (#logos) --- */
.twph-label,
.fl-heading.twph-label .fl-heading-text {
  margin: 0 0 16px !important;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6d7588;
}

.fl-row.twph-row-logos-grid .fl-col-group {
  row-gap: var(--twph-grid-gap);

}

.fl-col.twph-box-logo > .fl-col-content {
  min-height: 72px;
  padding: 14px 16px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.fl-col.twph-box-logo .fl-photo,
.fl-col.twph-box-logo .fl-photo-content {
  margin: 0 !important;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fl-col.twph-box-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 48px;
  height: auto;
  object-fit: contain;
}

/* --- From Home (#from-home) tiles --- */
.fl-row.twph-row-from-home,
.fl-row.twph-row-from-home .fl-row-content-wrap,
.fl-row.twph-row-from-home .fl-col-group {
  overflow: visible !important;
}

.fl-row.twph-row-from-home .fl-col-group-nested {
  row-gap: var(--twph-grid-gap);
  column-gap: var(--twph-grid-gap);
  margin-top: clamp(16px, 2.5vw, 24px);
}

.fl-col.twph-col-from-home-copy > .fl-col-content {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vw, 16px);
}

.fl-col.twph-col-from-home-copy .fl-module {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.fl-col.twph-box-tile {
  text-align: left;
}

.fl-col.twph-box-tile > .fl-col-content {
  height: 100%;
  padding: var(--twph-card-pad) !important;
  box-sizing: border-box;
  text-align: left;
}

.fl-col.twph-box-tile .fl-module {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.fl-col.twph-box-tile .fl-heading-text {
  margin: 0 0 8px !important;
  color: var(--twph-navy);
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 900 !important;
  text-align: left !important;
}

.fl-col.twph-box-tile .fl-rich-text p {
  margin: 0 !important;
  color: #657084;
  font-size: 13px;
  line-height: 1.55;
}

.twph-title {
  margin: 0 0 clamp(12px, 2vw, 16px) !important;
  color: var(--twph-navy);
  font-size: clamp(34px, 4vw, 58px) !important;
  line-height: 0.98 !important;
  font-weight: 900 !important;
}

.twph-text {
  margin: 0 !important;
  color: #657084;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.65;
  max-width: 62ch;
}

/* --- Why (#why) stack list rows (BB nested Box modules) --- */
.fl-module-box.twph-stack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: clamp(12px, 2vw, 20px);
  width: 100%;
}

.fl-module-box.twph-box-row {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  padding: 14px 16px !important;
  border: 1px solid rgba(7, 23, 47, 0.1);
  border-radius: 22px;
  box-sizing: border-box;
  background: #fff;
}

.fl-module-box.twph-box-row > .fl-module-icon.twph-mark {
  grid-column: 1;
  margin: 0 !important;
}

.fl-module-box.twph-box-row > .fl-module-box {
  grid-column: 2;
  min-width: 0;
}

.fl-module-box.twph-box-row .fl-heading-text {
  margin: 0 0 6px !important;
  color: var(--twph-navy);
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 900 !important;
  text-align: left !important;
}

.fl-module-box.twph-box-row .fl-rich-text p {
  margin: 0 !important;
  color: #657084;
  font-size: 14px;
  line-height: 1.55;
}

.fl-row.twph-row-why .twph-photo,
.fl-row#why .twph-photo,
.fl-row.twph-row-from-home .twph-photo {
  margin-bottom: clamp(16px, 2.5vw, 24px) !important;
}

/* Logos: two BB rows (label + grid) — tighten vertical rhythm */
.fl-row.twph-row-logos:not(.twph-row-logos-grid) > .fl-row-content-wrap {
  padding-bottom: 4px !important;
}

.fl-row.twph-row-logos-grid > .fl-row-content-wrap {
  padding-top: 4px !important;
  padding-bottom: 12px !important;
}



/* --- How It Works (#process) — native BB columns (.twph-step-col); spacing in BB --- */
.fl-row#process .fl-col.twph-step-col,
.fl-row.twph-row-process .fl-col.twph-step-col,
.fl-row#process .fl-col.twph-box-step,
.fl-row.twph-row-process .fl-col.twph-box-step {
  position: relative;
  counter-increment: twph-step;
}

.fl-row#process,
.fl-row.twph-row-process {
  counter-reset: twph-step;
}

.fl-col.twph-step-col > .fl-col-content,
.fl-col.twph-box-step > .fl-col-content {
  position: relative;
  overflow: hidden;
}

.fl-col.twph-step-col[data-step]::before,
.fl-col.twph-box-step[data-step]::before {
  content: attr(data-step);
  position: absolute;
  right: 18px;
  top: 10px;
  color: rgba(255, 255, 255, 0.07);
  font-size: clamp(56px, 8vw, 86px);
  line-height: 1;
  font-weight: 950;
  pointer-events: none;
  z-index: 0;
}

.fl-col.twph-step-col .fl-module-icon.twph-mark .fl-icon,
.fl-col.twph-box-step .fl-module-icon.twph-mark .fl-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--twph-orange) !important;
}

.fl-col.twph-step-col .fl-module-icon.twph-mark .fl-icon i,
.fl-col.twph-box-step .fl-module-icon.twph-mark .fl-icon i {
  display: none;
}

.fl-col.twph-step-col .fl-module-icon.twph-mark .fl-icon::after,
.fl-col.twph-box-step .fl-module-icon.twph-mark .fl-icon::after {
  content: counter(twph-step);
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}

/* 4-up grid — offsets BB column % + margins (same issue as testimonials) */
.fl-builder-content #process .fl-node-jzyk2ib5wes6 {
  display: grid !important;
  gap: clamp(12px, 2vw, 20px);
  align-items: stretch;
  width: 100%;
}

@media (min-width: 992px) {
  .fl-builder-content #process .fl-node-jzyk2ib5wes6 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991px) and (min-width: 769px) {
  .fl-builder-content #process .fl-node-jzyk2ib5wes6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .fl-builder-content #process .fl-node-jzyk2ib5wes6 {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

.fl-builder-content #process .fl-node-jzyk2ib5wes6 > .fl-col.twph-step-col {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  float: none !important;
  min-width: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* --- Solutions (#solutions) — local-html/css/bb-minimal.css parity --- */
.fl-row.twph-row-solutions,
.fl-row.twph-row-solutions-features,
.fl-row.twph-row-solutions .fl-row-content-wrap,
.fl-row.twph-row-solutions-features .fl-row-content-wrap,
.fl-row.twph-row-solutions .fl-col-group,
.fl-row.twph-row-solutions-features .fl-col-group {
  overflow: visible !important;
}

.fl-row.twph-row-solutions-features .fl-col-group {
  row-gap: var(--twph-grid-gap-lg);
  column-gap: var(--twph-grid-gap);
}

.fl-row.twph-row-solutions-features .fl-col.twph-box-feature {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.fl-col.twph-head > .fl-col-content,
.fl-row.twph-row-solutions-features .fl-col:has(.fl-photo.twph-photo) > .fl-col-content {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: none;
  text-align: center;
}

.fl-col.twph-head .fl-module-heading,
.fl-col.twph-head .fl-module-rich-text,
.fl-row.twph-row-solutions-features .fl-col:has(.fl-photo.twph-photo) .fl-module-heading,
.fl-row.twph-row-solutions-features .fl-col:has(.fl-photo.twph-photo) .fl-module-rich-text {
  width: 100%;
  max-width: 720px;
  justify-self: center;
}

.fl-col.twph-head .fl-module-photo.twph-photo,
.fl-row.twph-row-solutions-features .fl-col:has(.fl-photo.twph-photo) .fl-module-photo.twph-photo {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.fl-row.twph-row-solutions-features .twph-title {
  margin: 0 0 16px !important;
  color: var(--twph-navy);
  font-size: clamp(34px, 4vw, 58px) !important;
  line-height: 0.98 !important;
  font-weight: 900 !important;
}

.fl-row.twph-row-solutions-features .twph-text {
  margin: 0 auto !important;
  color: #657084;
  font-size: 17px;
  line-height: 1.65;
  max-width: 62ch;
}

.fl-photo.twph-photo .fl-photo-content,
.fl-photo.twph-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  border: 1px solid rgba(10, 30, 60, 0.1);
  box-shadow: 0 24px 70px rgba(7, 23, 47, 0.12);
}

.fl-row.twph-row-solutions-features .fl-photo.twph-photo {
  margin-bottom: 32px !important;
}

.fl-col.twph-box-feature {
  transition: transform 0.25s ease, filter 0.25s ease;
  text-align: left;
}

.fl-col.twph-box-feature > .fl-col-content {
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 210px;
  padding: var(--twph-card-pad) !important;
  box-sizing: border-box;
  text-align: left;
}

.fl-col.twph-box-feature > .fl-col-content::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  right: -88px;
  bottom: -88px;
  background: rgba(244, 123, 32, 0.1);
  pointer-events: none;
  transition: transform 0.35s ease;
}

.fl-col.twph-box-feature .fl-module {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.fl-col.twph-box-feature .fl-photo.twph-icon {
  width: 56px;
  max-width: 56px;
  margin-bottom: 14px !important;
}

.fl-col.twph-box-feature .fl-photo.twph-icon img {
  width: 56px;
  height: 56px; 
  object-fit: contain;
}

.fl-col.twph-box-feature .fl-module-heading,
.fl-col.twph-box-feature .fl-heading {
  text-align: left !important;
} 

.fl-col.twph-box-feature .fl-heading-text {
  margin-bottom: 10px !important;
  color: var(--twph-navy);
  font-size: clamp(17px, 2vw, 21px) !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  text-align: left !important;
}

.fl-col.twph-box-feature .fl-rich-text p {
  margin: 0 !important;
  color: #657084;
  font-size: 15px;
  line-height: 1.68;
}

@media (prefers-reduced-motion: no-preference) {
  .fl-col.twph-box-feature:hover {
    transform: translateY(-4px); 
    filter: drop-shadow(0 20px 48px rgba(7, 23, 47, 0.1));
    z-index: 2;
    position: relative;
  }

  .fl-col.twph-box-feature:hover > .fl-col-content::after {
    transform: scale(1.25);
  }
}

/* Kicker orange rule — no native BB control for ::before (see bb-migration.json) */
.twph-kicker {
  color: #f47b20 !important;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
}

.twph-kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  background: #f47b20;
  border-radius: 999px;
}

.twph-kicker--center {
  display: inline-flex;
  width: fit-content !important;
  margin-inline: auto;
}

#testimonials .fl-col-group:first-child {
  margin-bottom: clamp(20px, 3vw, 32px);
}

/*
 * Quote cards — CSS grid (local twph-cols-quote: 1.05fr 0.95fr 0.95fr).
 * BB cached layout: 34% + 33% + 33% and 12px col margins → third card wraps (2+1).
 */
.fl-builder-content #testimonials .fl-node-0g5q3hy6fiuo,
.fl-builder-content #testimonials .fl-col-group:not(:first-child) {
  --twph-quote-gap: clamp(12px, 2vw, 20px);
  display: grid !important;
  gap: var(--twph-quote-gap);
  align-items: stretch;
  width: 100%;
}

.fl-builder-content #testimonials .fl-col-group:not(:first-child) > .fl-col.twph-box-quote {
  float: none !important;
  clear: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  min-width: 0;
  box-sizing: border-box;
}

.fl-builder-content #testimonials .fl-node-8dhpysvulobg > .fl-col-content,
.fl-builder-content #testimonials .fl-node-wnkd34zcjfrb > .fl-col-content,
.fl-builder-content #testimonials .fl-col.twph-box-quote > .fl-col-content {
  height: 100%;
  box-sizing: border-box;
  margin-right: 0 !important;
}

.fl-builder-content #testimonials .fl-node-0g5q3hy6fiuo > .fl-col.twph-box-quote {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  float: none !important;
}

.fl-builder-content #testimonials .fl-col.twph-box-quote {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(7, 23, 47, 0.08);
}

.fl-builder-content #testimonials .fl-col.twph-box-quote.twph-box-dark > .fl-col-content {
  color: #fff;
}

.fl-builder-content #testimonials .fl-col.twph-box-quote > .fl-col-content > .fl-module-photo:first-child .fl-photo-img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

@media (min-width: 992px) {
  .fl-builder-content #testimonials .fl-node-0g5q3hy6fiuo,
  .fl-builder-content #testimonials .fl-col-group:not(:first-child) {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) minmax(0, 0.95fr);
  }

  .fl-builder-content #testimonials .fl-node-0g5q3hy6fiuo > .fl-col.twph-box-quote,
  .fl-builder-content #testimonials .fl-col-group:not(:first-child) > .fl-col.twph-box-quote {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
  }

  .fl-builder-content #testimonials .fl-col.twph-box-quote > .fl-col-content {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 991px) {
  .fl-builder-content #testimonials .fl-node-0g5q3hy6fiuo,
  .fl-builder-content #testimonials .fl-col-group:not(:first-child) {
    grid-template-columns: minmax(0, 1fr);
  }

  .fl-builder-content #testimonials .fl-node-0g5q3hy6fiuo > .fl-col.twph-box-quote,
  .fl-builder-content #testimonials .fl-col-group:not(:first-child) > .fl-col.twph-box-quote {
    width: 100% !important;
    max-width: 100% !important;
  }

  .fl-builder-content #testimonials .fl-col.twph-box-quote > .fl-col-content {
    margin-bottom: 0 !important;
  }
}

/* BB Button Group — local-html .twph-btn (Values + Contact CTAs) */
.fl-module-button-group.fl-button-group-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  margin-inline: 0;
}

.fl-module-button-group .fl-button-group-button {
  flex: 0 0 auto;
  width: auto;
}

.fl-module-button-group .fl-button-wrap.fl-button-width-full {
  width: auto;
}

/* BB layout sets width:100% on each button — breaks pill hover/focus painting */
.fl-module-button-group.fl-button-group-buttons .fl-button:is(a, button) {
  width: auto !important;
  max-width: 100%;
}

/* Theme skin: link underline + button border-width:0 on hover */
.fl-page .fl-builder-content .fl-module-button-group a.fl-button:is(
    :link,
    :visited,
    :hover,
    :focus,
    :focus-visible,
    :active
  ) {
  text-decoration: none !important;
  text-underline-offset: unset !important;
  border-style: solid !important;
  border-width: 1px !important;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.fl-page .fl-builder-content .fl-module-button-group a.fl-button *,
.fl-page .fl-builder-content .fl-module-button-group a.fl-button:is(:hover, :focus, :focus-visible, :active) * {
  text-decoration: none !important;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: none !important;
  box-decoration-break: slice !important;
  -webkit-box-decoration-break: slice !important;
  pointer-events: none;
}

.fl-builder-content .fl-module-button-group .fl-button,
.fl-builder-content .fl-node-tgpwim185cxe .fl-button,
.fl-builder-content .fl-node-zvmbaxiuwdfe .fl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  text-decoration: none !important;
  backface-visibility: hidden;
  transition:
    transform var(--twph-btn-duration) var(--twph-btn-ease),
    box-shadow var(--twph-btn-duration) var(--twph-btn-ease),
    background var(--twph-btn-duration) var(--twph-btn-ease),
    background-color var(--twph-btn-duration) var(--twph-btn-ease) !important;
}

.fl-builder-content .fl-node-tgpwim185cxe .fl-button *,
.fl-builder-content .fl-node-zvmbaxiuwdfe .fl-button * {
  transition: none !important;
}

.fl-builder-content .fl-module-button-group .fl-button .fl-button-text {
  font-weight: 800;
  display: inline;
  line-height: inherit;
}

.fl-module-button-group .fl-button-group-button:first-child .fl-button {
  background: linear-gradient(135deg, var(--twph-orange), var(--twph-orange-2)) !important;
  background-color: var(--twph-orange) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(244, 123, 32, 0.26);
  border-color: transparent !important;
}

.fl-module-button-group .fl-button-group-button:first-child .fl-button .fl-button-text {
  color: #fff !important;
}

.fl-module-button-group .fl-button-group-button:first-child .fl-button:hover,
.fl-module-button-group .fl-button-group-button:first-child .fl-button:focus-visible {
  background: linear-gradient(135deg, var(--twph-orange), var(--twph-orange-2)) !important;
  background-color: var(--twph-orange) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 14px 32px rgba(244, 123, 32, 0.34);
}

.fl-module-button-group .fl-button-group-button:first-child .fl-button:hover .fl-button-text,
.fl-module-button-group .fl-button-group-button:first-child .fl-button:focus-visible .fl-button-text {
  color: #fff !important;
}

/* Light sections — white secondary + subtle edge */
.fl-node-tgpwim185cxe .fl-button-group-button:nth-child(2) .fl-button,
#values .fl-module-button-group .fl-button-group-button:nth-child(2) .fl-button {
  background-color: rgba(255, 255, 255, 0.92) !important;
  background-image: none !important;
  color: var(--twph-navy) !important;
  border-color: transparent !important;
  box-shadow:
    0 8px 20px rgba(7, 23, 47, 0.08),
    inset 0 0 0 1px rgba(7, 23, 47, 0.12);
}

.fl-node-tgpwim185cxe .fl-button-group-button:nth-child(2) .fl-button .fl-button-text,
#values .fl-module-button-group .fl-button-group-button:nth-child(2) .fl-button .fl-button-text {
  color: var(--twph-navy) !important;
}

.fl-node-tgpwim185cxe .fl-button-group-button:nth-child(2) .fl-button:hover,
.fl-node-tgpwim185cxe .fl-button-group-button:nth-child(2) .fl-button:focus-visible,
#values .fl-module-button-group .fl-button-group-button:nth-child(2) .fl-button:hover,
#values .fl-module-button-group .fl-button-group-button:nth-child(2) .fl-button:focus-visible {
  background-color: #fff !important;
  background-image: none !important;
  color: var(--twph-navy) !important;
  border-color: transparent !important;
  box-shadow:
    0 10px 24px rgba(7, 23, 47, 0.1),
    inset 0 0 0 1px rgba(7, 23, 47, 0.2);
}

.fl-node-tgpwim185cxe .fl-button-group-button:nth-child(2) .fl-button:hover .fl-button-text,
.fl-node-tgpwim185cxe .fl-button-group-button:nth-child(2) .fl-button:focus-visible .fl-button-text,
#values .fl-module-button-group .fl-button-group-button:nth-child(2) .fl-button:hover .fl-button-text,
#values .fl-module-button-group .fl-button-group-button:nth-child(2) .fl-button:focus-visible .fl-button-text {
  color: var(--twph-navy) !important;
}

/* Navy CTA — ghost secondary */
.fl-node-zvmbaxiuwdfe .fl-button-group-button:nth-child(2) .fl-button,
#contact .fl-module-button-group .fl-button-group-button:nth-child(2) .fl-button {
  background-color: rgba(255, 255, 255, 0.1) !important;
  background-image: none !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.fl-node-zvmbaxiuwdfe .fl-button-group-button:nth-child(2) .fl-button .fl-button-text,
#contact .fl-module-button-group .fl-button-group-button:nth-child(2) .fl-button .fl-button-text {
  color: #fff !important;
}

.fl-node-zvmbaxiuwdfe .fl-button-group-button:nth-child(2) .fl-button:hover,
.fl-node-zvmbaxiuwdfe .fl-button-group-button:nth-child(2) .fl-button:focus-visible,
#contact .fl-module-button-group .fl-button-group-button:nth-child(2) .fl-button:hover,
#contact .fl-module-button-group .fl-button-group-button:nth-child(2) .fl-button:focus-visible {
  background-color: rgba(255, 255, 255, 0.14) !important;
  background-image: none !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.fl-node-zvmbaxiuwdfe .fl-button-group-button:nth-child(2) .fl-button:hover .fl-button-text,
.fl-node-zvmbaxiuwdfe .fl-button-group-button:nth-child(2) .fl-button:focus-visible .fl-button-text,
#contact .fl-module-button-group .fl-button-group-button:nth-child(2) .fl-button:hover .fl-button-text,
#contact .fl-module-button-group .fl-button-group-button:nth-child(2) .fl-button:focus-visible .fl-button-text {
  color: #fff !important;
}

@media (prefers-reduced-motion: no-preference) {
  .fl-builder-content .fl-module-button-group .fl-button:hover,
  .fl-builder-content .fl-module-button-group .fl-button:focus-visible {
    transform: translateY(-2px);
  }
}

/*
 * Tablet / wide mobile (641px–1100px): BB often keeps columns at ~50% when
 * responsive layout stacks — cards hug the left with empty space on the right.
 */
@media (max-width: 1100px) {
  .fl-builder-content .fl-row.twph-row-solutions-features .fl-col,
  .fl-builder-content .fl-row.twph-row-process .fl-col:not(.twph-step-col),
  .fl-builder-content .fl-row#process .fl-col:not(.twph-step-col),
  .fl-builder-content .fl-row.twph-row-from-home > .fl-row-content > .fl-col-group > .fl-col,
  .fl-builder-content .fl-row#why > .fl-row-content > .fl-col-group > .fl-col,
  .fl-builder-content .fl-row.twph-row-why > .fl-row-content > .fl-col-group > .fl-col,
  .fl-builder-content #testimonials .fl-col-group:first-child .fl-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .fl-row.twph-row-from-home .fl-col-group-nested .fl-col.twph-box-tile {
    flex: 0 0 calc(50% - (var(--twph-grid-gap) / 2)) !important;
    max-width: calc(50% - (var(--twph-grid-gap) / 2)) !important;
    width: calc(50% - (var(--twph-grid-gap) / 2)) !important;
  }

  .fl-row.twph-row-logos-grid .fl-col.twph-box-logo {
    flex: 0 0 calc(50% - (var(--twph-grid-gap) / 2)) !important;
    max-width: calc(50% - (var(--twph-grid-gap) / 2)) !important;
  }

  .fl-row.twph-row-solutions-features .fl-col-group,
  .fl-row.twph-row-solutions-features .fl-row-content,
  .fl-row.twph-row-from-home .fl-row-content,
  .fl-row.twph-row-why .fl-row-content,
  .fl-row#why .fl-row-content,
  .fl-row.twph-row-process .fl-row-content,
  .fl-row#process .fl-row-content,
  .fl-row.twph-row-logos .fl-row-content,
  .fl-row.twph-row-logos-grid .fl-row-content,
  #testimonials .fl-row-content {
    padding-left: clamp(16px, 3vw, 24px);
    padding-right: clamp(16px, 3vw, 24px);
  }

  .twph-title {
    font-size: clamp(28px, 5.2vw, 44px) !important;
  }

  .fl-col.twph-box-logo > .fl-col-content {
    min-height: 60px;
    padding: 10px 12px !important;
  }

  .fl-col.twph-box-logo img {
    max-height: 44px;
  }

  .fl-row.twph-row-from-home .fl-col-group-nested {
    margin-top: 12px;
  }

  .fl-row.twph-row-solutions-features .fl-photo.twph-photo {
    margin-bottom: 20px !important;
  }

  #testimonials .fl-col-group:first-child {
    margin-bottom: clamp(16px, 2.5vw, 24px);
  }

  #testimonials .fl-col-group:not(:first-child) {
    --twph-quote-gap: 14px;
  }
}

@media (max-width: 720px) {
  .fl-row.twph-row-from-home .fl-col-group-nested .fl-col.twph-box-tile {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 860px) {
  :root {
    --twph-header-height: 120px;
    --twph-grid-gap: 10px;
    --twph-grid-gap-lg: 12px;
    --twph-card-pad: 18px;
  }

  .twph-hero {
    --twph-hero-scroll: 170vh;
  }

  .twph-wrap {
    width: min(100% - 32px, 1180px);
  }

  .twph-hero-copy {
    gap: 16px;
    padding-top: calc(var(--twph-header-height) + 16px);
  }

  .twph-hero-copy .twph-cluster {
    gap: 10px;
  }

  .fl-col.twph-box-logo > .fl-col-content {
    min-height: 64px;
    padding: 12px 14px !important;
  }

  .fl-col.twph-box-logo img {
    max-height: 40px;
  }

  .fl-row.twph-row-from-home .fl-col-group-nested {
    margin-top: 16px;
  }

  .fl-col.twph-step-col[data-step]::before,
.fl-col.twph-box-step[data-step]::before {
    font-size: 68px;
    right: 12px;
    top: 6px;
  }

  .fl-col.twph-box-feature > .fl-col-content {
    min-height: 0;
    padding: 18px 16px !important;
  }

  .fl-col.twph-box-feature .fl-photo.twph-icon {
    width: 48px;
    max-width: 48px;
    margin-bottom: 10px !important;
  }

  .fl-col.twph-box-feature .fl-photo.twph-icon img {
    width: 48px;
    height: 48px;
  }

  .fl-row.twph-row-solutions-features .fl-col.twph-box-feature {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 640px) {
  :root {
    --twph-card-pad: 16px;
  }

  .twph-hero {
    --twph-hero-scroll: 150vh;
  }

  .twph-hero-glow {
    width: 280px;
    height: 280px;
    right: -80px;
  }

  .fl-col.twph-box-logo img {
    max-height: 36px;
  }

  .fl-col.twph-step-col[data-step]::before,
.fl-col.twph-box-step[data-step]::before {
    font-size: 56px;
  }

  .fl-col.twph-box-tile .fl-heading-text {
    font-size: 14px !important;
  }

  .fl-col.twph-box-tile .fl-rich-text p {
    font-size: 12px;
    line-height: 1.5;
  }

  .fl-col.twph-box-feature .fl-heading-text {
    font-size: 17px !important;
    margin-bottom: 8px !important;
  }

  .fl-col.twph-box-feature .fl-rich-text p {
    font-size: 14px;
    line-height: 1.6;
  }

  #testimonials .fl-col-group:not(:first-child) {
    --twph-quote-gap: 12px;
  }

  #testimonials .fl-col-group:first-child {
    margin-bottom: 16px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .fl-col.twph-box-logo:hover > .fl-col-content {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(7, 23, 47, 0.08);
  }

  .fl-col.twph-box-tile:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 16px 32px rgba(7, 23, 47, 0.08));
  }
}
  