/* ============================================================
   Business Banking homepage (2026 overhaul)
   Load AFTER cfb-pages.css on business/business-homepage.html
   ============================================================ */

.cfb-business-page {
  background-color: var(--cfb-light) !important;
  --cfb-biz-btn-height: 3.5rem;
}

/* Uniform button height across business banking CTAs */
.cfb-business-page :is(a, button).btn-light--lg,
.cfb-business-page :is(a, button).btn-blue-light,
.cfb-business-page :is(a, button).new-big-button-white,
.cfb-business-page :is(a, button).w-button:not(.cfb-tab):not(.cfb-vtab) {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--cfb-biz-btn-height);
  height: var(--cfb-biz-btn-height);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.2;
}

/* ---------- Hero ---------- */
.cfb-biz-hero {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.cfb-biz-hero__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cfb-biz-hero__inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.cfb-biz-hero__media {
  width: 100%;
  max-width: 22rem;
  justify-self: center;
}

@media (min-width: 1024px) {
  .cfb-biz-hero__inner {
    padding-left: 2rem;
    padding-right: 2rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 22rem);
    gap: 3rem;
  }

  .cfb-biz-hero__media {
    justify-self: end;
  }
}

/* Default hero (left-aligned) */
.cfb-biz-hero__copy {
  text-align: left;
}

/* Centered hero variant (no image) */
.cfb-biz-hero--centered .cfb-biz-hero__inner {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  max-width: 56rem;
}

.cfb-biz-hero--centered .cfb-biz-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 1024px) {
  .cfb-biz-hero--centered .cfb-biz-hero__inner {
    grid-template-columns: 1fr;
  }
}

/* Uniform bold text sizing on business pages */
.cfb-business-page .cfb-biz-purpose__lead strong,
.cfb-business-page .cfb-biz-cta__body strong,
.cfb-business-page .cfb-features-list__text strong {
  font-size: inherit;
  font-weight: 700;
}

.cfb-biz-hero .cfb-eyebrow {
  margin: 0 0 1rem;
}

.cfb-biz-hero:not(.cfb-hero--shadow):not(.cfb-hero--photo) .cfb-eyebrow {
  color: var(--cfb-shadow);
}

.cfb-biz-hero h1 {
  margin: 0;
  font-family: "Spectral", Georgia, serif !important;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem) !important;
  font-weight: 400 !important;
  line-height: 1.12;
  letter-spacing: -0.05em;
  text-transform: none !important;
}

.cfb-biz-hero:not(.cfb-hero--shadow):not(.cfb-hero--photo) h1 {
  color: var(--cfb-shadow) !important;
}

.cfb-biz-hero:not(.cfb-hero--shadow):not(.cfb-hero--photo) h1 .cfb-underline {
  text-decoration: underline !important;
  text-decoration-color: var(--cfb-shadow) !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 0.1em;
  background-image: none !important;
  padding-bottom: 0 !important;
}

/* Shadow / photo textures — light type (brand hero system) */
.cfb-biz-hero.cfb-hero--shadow .cfb-eyebrow,
.cfb-biz-hero.cfb-hero--photo .cfb-eyebrow {
  color: var(--cfb-sky) !important;
}

.cfb-biz-hero.cfb-hero--shadow h1,
.cfb-biz-hero.cfb-hero--photo h1 {
  color: var(--cfb-sky) !important;
}

.cfb-biz-hero.cfb-hero--shadow h1 .cfb-underline,
.cfb-biz-hero.cfb-hero--photo h1 .cfb-underline {
  text-decoration: underline !important;
  text-decoration-color: var(--cfb-sky) !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 0.1em;
  background-image: none !important;
  padding-bottom: 0 !important;
}

.cfb-biz-hero.cfb-hero--shadow :is(p, .cfb-hero-rate),
.cfb-biz-hero.cfb-hero--photo :is(p, .cfb-hero-rate) {
  color: var(--cfb-light) !important;
}

.cfb-biz-hero.cfb-hero--shadow :is(a, button).btn-light--lg,
.cfb-biz-hero.cfb-hero--photo :is(a, button).btn-light--lg {
  border-color: var(--cfb-light) !important;
  background-color: var(--cfb-light) !important;
  color: var(--cfb-shadow) !important;
}

.cfb-biz-hero.cfb-hero--shadow :is(a, button).btn-light--lg:hover,
.cfb-biz-hero.cfb-hero--photo :is(a, button).btn-light--lg:hover {
  border-color: var(--cfb-sky) !important;
  background-color: var(--cfb-sky) !important;
  color: var(--cfb-shadow) !important;
}

.cfb-biz-hero__media .cfb-img-frame {
  position: relative;
}

.cfb-biz-hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cfb-biz-hero__media .cfb-img-frame::before,
.cfb-biz-hero__media .cfb-img-frame::after {
  display: none !important;
}

/* ---------- Bank with purpose / boxed tabs ---------- */
.cfb-biz-purpose__lead {
  margin: -1rem 0 2rem;
  max-width: none;
  font-size: 1.125rem !important;
  line-height: 1.45;
  color: var(--cfb-shadow) !important;
}

.cfb-tabs-shell,
.cfb-biz-tabs-shell {
  width: 100%;
  max-width: 100%;
  contain: layout;
}

.cfb-biz-tabs-shell .cfb-biz-tabs {
  margin-bottom: 0;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  border: 2px solid var(--cfb-shadow);
  border-bottom: 0;
}

@media (min-width: 768px) {
  .cfb-biz-tabs-shell .cfb-biz-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    border: 0;
  }
}

.cfb-biz-tabs-shell .cfb-tab {
  opacity: 1;
  margin-bottom: 0;
  border-bottom: 2px solid var(--cfb-shadow) !important;
  padding: 0.85rem 1rem !important;
  font-size: 0.75rem !important;
  text-align: left;
  transition: background-color 0.25s ease, color 0.25s ease;
}

@media (min-width: 768px) {
  .cfb-biz-tabs-shell .cfb-tab {
    border-bottom: 0 !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 0.75rem !important;
    text-align: center;
  }
}

.cfb-biz-tabs-shell .cfb-tab.is-active {
  position: relative;
  z-index: 1;
  background-color: var(--cfb-light);
}

@media (min-width: 768px) {
  .cfb-biz-tabs-shell .cfb-tab.is-active {
    border-bottom: 0 !important;
    margin-bottom: -2px;
    padding-bottom: calc(0.85rem + 2px) !important;
  }
}

.cfb-biz-panel-box {
  position: relative;
  display: grid;
  overflow: visible;
  overflow-x: clip;
  border: 2px solid var(--cfb-shadow);
  border-top: 0;
  background: var(--cfb-light);
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .cfb-biz-panel-box {
    border-top: 2px solid var(--cfb-shadow);
    padding: 2.5rem 2rem;
  }
}

.cfb-panel--boxed {
  grid-area: 1 / 1;
  align-self: start;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.cfb-panel--boxed > * {
  max-width: 100%;
  box-sizing: border-box;
}

.cfb-panel--boxed:not(.is-active):not(.is-exiting) {
  height: 0;
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cfb-panel--boxed {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .cfb-panel--boxed .cfb-panel__body {
    grid-column: 1;
    grid-row: 1;
  }

  .cfb-panel--boxed .cfb-panel__list {
    grid-column: 2;
    grid-row: 1;
  }

  .cfb-panel--boxed .cfb-panel__actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: 100%;
    max-width: 28rem;
  }
}

.cfb-panel--boxed.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.cfb-panel--boxed.is-exiting {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .cfb-panel--boxed {
    transition: none;
  }

  .cfb-panel--boxed.is-exiting {
    transition: none;
  }
}

.cfb-panel--boxed .cfb-panel__body {
  padding: 0;
}

.cfb-panel--boxed .cfb-panel__body p {
  margin: 0;
  font-size: 1.125rem !important;
  line-height: 1.5;
}

.cfb-panel--boxed .cfb-panel__list ul {
  margin: 0;
  padding-left: 1.25rem;
}

.cfb-panel--boxed .cfb-panel__list li {
  margin-bottom: 0.35rem;
  font-size: 1.125rem !important;
  line-height: 1.45;
}

.cfb-panel--boxed .cfb-panel__actions {
  margin-top: 0.5rem;
}

.cfb-panel--boxed .cfb-panel__actions .btn-light--lg {
  max-width: none;
}

.cfb-panel--how-it-works .cfb-panel__body--process p {
  margin-bottom: 0.75rem;
}

.cfb-panel--how-it-works .cfb-panel__body--process ol {
  margin: 0;
  padding-left: 1.25rem;
}

.cfb-panel--how-it-works .cfb-panel__body--process li {
  margin-bottom: 0.35rem;
  font-size: 1.125rem !important;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .cfb-panel--how-it-works {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .cfb-panel--how-it-works .cfb-panel__body--process:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .cfb-panel--how-it-works .cfb-panel__body--process:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .cfb-panel--how-it-works .cfb-panel__actions {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.cfb-email-disclosure {
  margin: 0 auto;
  font-size: 0.75rem !important;
  line-height: 1.45;
  color: var(--cfb-shadow-65) !important;
  max-width: 48rem;
  text-align: center;
}

/* ---------- Features grid (4-up with icons) ---------- */
.cfb-biz-features .cfb-features-grid {
  margin-top: 0.5rem;
}

.cfb-biz-features .cfb-feature-subtitle {
  max-width: 14rem;
  font-size: 0.8125rem !important;
  text-transform: none !important;
  letter-spacing: -0.01em !important;
}

.cfb-attorney-page .cfb-feature--stylized-card {
  align-items: stretch;
}

.cfb-attorney-page .cfb-feature--stylized-card > * {
  max-width: none;
  width: 100%;
}

.cfb-attorney-page .cfb-attorney-stylized-card {
  width: 100%;
  max-width: 16rem;
  height: auto;
  object-fit: contain;
}

.cfb-biz-features .cfb-features-grid > .cfb-feature::before,
.cfb-biz-features .cfb-features-grid > .cfb-feature::after {
  content: none !important;
}

/* ---------- Business online banking (dark) ---------- */
.cfb-biz-online {
  width: 100%;
}

.cfb-biz-online .cfb-shell {
  width: 100%;
}

.cfb-biz-online__body {
  max-width: none;
  margin: 0 0 2rem;
  font-size: 1.125rem !important;
  line-height: 1.55;
}

.cfb-biz-online__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .cfb-biz-online__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cfb-biz-online__actions .btn-blue-light,
.cfb-biz-online__actions .w-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: var(--cfb-biz-btn-height);
  height: var(--cfb-biz-btn-height);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  border: 2px solid var(--cfb-sky) !important;
  background: transparent !important;
  color: var(--cfb-sky) !important;
}

.cfb-biz-online__actions .btn-blue-light:hover,
.cfb-biz-online__actions .w-button:hover {
  background: var(--cfb-sky) !important;
  border-color: var(--cfb-sky) !important;
  color: var(--cfb-shadow) !important;
}

/* ---------- Treasury vertical tabs ---------- */
.cfb-biz-treasury__intro {
  max-width: none;
  margin: 0 0 2.5rem;
  font-size: 1.125rem !important;
  line-height: 1.55;
}

.cfb-vtabs-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 2px solid var(--cfb-shadow);
  background: var(--cfb-light);
}

@media (min-width: 768px) {
  .cfb-vtabs-shell {
    grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  }
}

.cfb-vtabs {
  display: flex;
  flex-direction: column;
  border-bottom: 2px solid var(--cfb-shadow);
}

@media (min-width: 768px) {
  .cfb-vtabs {
    border-bottom: 0;
    border-right: 2px solid var(--cfb-shadow);
  }
}

.cfb-vtab {
  appearance: none;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 1rem 1.25rem;
  background: transparent;
  color: var(--cfb-shadow);
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.cfb-vtab + .cfb-vtab {
  border-top: 1px solid var(--cfb-shadow-15);
}

.cfb-vtab.is-active,
.cfb-vtab[aria-selected="true"] {
  background: var(--cfb-shadow);
  color: var(--cfb-light) !important;
}

.cfb-vtabs__content {
  display: grid;
  position: relative;
  overflow: visible;
  overflow-x: clip;
  padding: 2rem 1.5rem 3.5rem;
  transition: height 0.35s ease;
}

@media (min-width: 768px) {
  .cfb-vtabs__content {
    padding: 2.5rem 2.5rem 4rem;
  }
}

.cfb-vtab-panel {
  grid-area: 1 / 1;
  align-self: start;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.cfb-vtab-panel:not(.is-active):not(.is-exiting):not(.is-measuring) {
  height: 0;
  min-height: 0;
  overflow: hidden;
}

.cfb-vtab-panel.is-measuring {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  opacity: 0 !important;
  visibility: visible !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.cfb-vtab-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
  animation: cfb-vtab-panel-in 0.35s ease;
}

@keyframes cfb-vtab-panel-in {
  from {
    transform: translateY(0.5rem);
  }

  to {
    transform: translateY(0);
  }
}

.cfb-vtab-panel.is-exiting {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .cfb-vtab-panel {
    transition: none;
  }

  .cfb-vtab-panel.is-exiting {
    transition: none;
  }

  .cfb-vtab-panel.is-active {
    animation: none;
  }

  .cfb-vtabs__content {
    transition: none;
  }
}

.cfb-vtab-panel h3 {
  margin: 0 0 1rem;
  font-family: "Spectral", Georgia, serif !important;
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.05em;
  color: var(--cfb-shadow) !important;
}

.cfb-vtab-panel p {
  margin: 0 0 1rem;
  font-size: 1.125rem !important;
  line-height: 1.5;
}

.cfb-vtab-panel ul {
  margin: 0;
  padding-left: 1.25rem;
}

.cfb-vtab-panel li {
  margin-bottom: 0.35rem;
  font-size: 1.125rem !important;
  line-height: 1.45;
}

/* ---------- Orange CTA band ---------- */
.cfb-cta-band {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 4rem 1rem;
  background-color: var(--cfb-glow-dark);
  background-image: var(--cfb-cta-band-bg);
  background-size: cover;
  background-position: center;
  text-align: center;
}

.cfb-cta-band__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.cfb-cta-band__link {
  display: inline-block;
  text-decoration: none !important;
  color: inherit;
}

.cfb-cta-band__link:hover h2 {
  opacity: 0.85;
}

.cfb-cta-band h2 {
  margin: 0;
  font-family: "Spectral", Georgia, serif !important;
  font-size: clamp(2rem, 4.5vw, 3rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.05em;
  color: var(--cfb-shadow) !important;
}

.cfb-cta-band h2 .cfb-underline {
  text-decoration: underline !important;
  text-decoration-color: var(--cfb-shadow) !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 0.1em;
  background-image: none !important;
  padding-bottom: 0 !important;
}

/* ---------- Two-card grid ---------- */
.cfb-card-grid--2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .cfb-card-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

.cfb-biz-card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--cfb-shadow);
  background: var(--cfb-light);
}

.cfb-biz-card__header {
  padding: 1.25rem 1.5rem;
  background: var(--cfb-shadow);
  color: var(--cfb-sky) !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: clamp(1rem, 1.5vw, 1.25rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-align: center;
  line-height: 1.25;
}

.cfb-biz-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  text-align: left;
}

.cfb-biz-card__body p {
  margin: 0;
  width: 100%;
  font-size: 1.125rem !important;
  line-height: 1.5;
}

.cfb-biz-card__rate {
  font-family: "Spectral", Georgia, serif !important;
  font-size: 2.5rem !important;
  font-weight: 400 !important;
  letter-spacing: -0.03em;
  color: var(--cfb-teal) !important;
  text-align: center;
}

.cfb-biz-card__rate strong {
  font-weight: 400;
}

.cfb-biz-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

.cfb-biz-card .btn-light--lg {
  max-width: 22rem;
}

/* ---------- Business Products page card styling ---------- */
.cfb-business-products-section .cfb-biz-card__body {
  align-items: stretch;
  gap: 1.25rem;
}

.cfb-business-products-section .cfb-biz-card__list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cfb-business-products-section .cfb-biz-card__list li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1.75rem;
  font-size: 1.125rem !important;
  line-height: 1.45;
}

.cfb-business-products-section .cfb-biz-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--cfb-shadow);
}

.cfb-business-products-section .cfb-biz-card__actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

.cfb-business-products-section .cfb-biz-card__actions .btn-light--lg {
  width: 100%;
  max-width: 16rem;
}

/* Features section centering on mobile/tablet */
@media (max-width: 1023px) {
  .features-banner .cfb-section-title {
    text-align: center;
  }
}

/* Bank anywhere section centering on mobile/tablet */
@media (max-width: 1023px) {
  .new-cta-bank-divest-banner {
    text-align: center;
  }

  .new-cta-bank-divest-banner .new-cta-bank {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .new-cta-bank-divest-banner .new-cta-bank-divest-text {
    text-align: center;
  }
}

/* Fix Watch Now button visibility in bank divest banner */
.new-cta-bank-divest-banner .btn-light--lg {
  border: 2px solid var(--cfb-light) !important;
  background: var(--cfb-light) !important;
  color: var(--cfb-shadow) !important;
}

.new-cta-bank-divest-banner .btn-light--lg:hover {
  background: var(--cfb-sky) !important;
  border-color: var(--cfb-sky) !important;
  color: var(--cfb-shadow) !important;
}

/* ---------- Gradient section (vertical sky → orange, attorney SRI reference) ---------- */
.cfb-section--gradient {
  background: linear-gradient(180deg, #80f4f4 0%, #f3af78 100%) !important;
  color: var(--cfb-shadow) !important;
}

.cfb-section--gradient .cfb-section-title {
  color: var(--cfb-shadow) !important;
}

.cfb-section--gradient p {
  color: var(--cfb-shadow) !important;
}

.cfb-section--gradient a {
  color: var(--cfb-shadow) !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

.cfb-section--gradient a:hover {
  opacity: 0.8;
}

/* ---------- Help guides (dark) ---------- */
.cfb-help-guides .cfb-section-title {
  margin-bottom: 1.5rem;
}

.cfb-help-guides__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .cfb-help-guides__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2.5rem;
  }
}

.cfb-help-guides__tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 14rem;
}

.cfb-help-guides__tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 1rem 1rem 1.25rem;
  border: 0;
  background-color: var(--cfb-light);
  background-size: cover;
  background-position: center;
  text-decoration: none !important;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.cfb-help-guides__tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 251, 247, 0.5);
  pointer-events: none;
}

.cfb-help-guides__tile:hover {
  transform: translateY(-2px);
}

.cfb-help-guides__tile span {
  position: relative;
  z-index: 1;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  text-align: center;
  color: var(--cfb-shadow) !important;
  line-height: 1.2;
  white-space: normal;
  max-width: 11rem;
}

.cfb-help-guides__tile--personal {
  background-image: url("../images/help-guides/personal-lt.png");
}

.cfb-help-guides__tile--business {
  background-image: url("../images/help-guides/business-lt.png");
}

.cfb-help-guides__tile--treasury {
  background-image: url("../images/help-guides/treasury-lt.png");
}

.cfb-help-guides__resources {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .cfb-help-guides__resources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cfb-help-guides__resource-col h3 {
  margin: 0 0 1rem;
  font-family: "Spectral", Georgia, serif !important;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.05em;
  color: var(--cfb-light) !important;
}

.cfb-help-guides__resource-col ul {
  margin: 0;
  padding-left: 1.1rem;
}

.cfb-help-guides__resource-col li {
  margin-bottom: 0.4rem;
  font-size: 0.8125rem !important;
  line-height: 1.45;
}

.cfb-help-guides__resource-col a {
  color: var(--cfb-light) !important;
  text-decoration: none;
}

.cfb-help-guides__resource-col a:hover {
  text-decoration: underline;
  color: var(--cfb-sky) !important;
}

.cfb-help-guides__footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 3rem;
}

.cfb-help-guides__footer .w-button {
  width: auto;
  max-width: 100%;
  min-width: 0;
  align-self: center;
}

/* ---------- Final CTA ---------- */
.cfb-biz-cta {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 5rem 0;
  background-image: var(--cfb-biz-cta-bg);
  background-size: cover;
  background-position: center;
  background-color: var(--cfb-shadow);
}

.cfb-biz-cta .cfb-shell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  text-align: left;
}

.cfb-biz-cta__title {
  margin: 0 0 1.25rem;
  width: 100%;
  max-width: none;
  font-family: "Spectral", Georgia, serif !important;
  font-size: clamp(2rem, 4vw, 2.75rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.05em;
  text-align: left !important;
  color: var(--cfb-shadow) !important;
}

.cfb-biz-cta__body {
  margin: 0 0 2rem;
  width: 100%;
  max-width: none;
  font-size: 1.125rem !important;
  line-height: 1.55;
  text-align: left !important;
  color: var(--cfb-shadow) !important;
}

.cfb-biz-cta .btn-light--lg {
  align-self: flex-start;
  width: auto;
  max-width: 100%;
}

/* ---------- Attorney Banking contact section ---------- */
.cfb-attorney-contact {
  background: var(--cfb-light);
}

.cfb-attorney-contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cfb-attorney-contact__inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3rem;
  }
}

.cfb-attorney-contact__photos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.cfb-attorney-contact__photo {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--cfb-shadow);
}

.cfb-attorney-contact__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.cfb-attorney-contact__content {
  text-align: center;
}

@media (min-width: 768px) {
  .cfb-attorney-contact__content {
    text-align: left;
  }
}

.cfb-attorney-contact__content h2 {
  margin: 0 0 1rem;
  font-family: "Spectral", Georgia, serif !important;
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.05em;
  color: var(--cfb-shadow) !important;
}

.cfb-attorney-contact__content p {
  margin: 0 0 1.5rem;
  font-size: 1.125rem !important;
  line-height: 1.5;
  color: var(--cfb-shadow) !important;
}

.cfb-attorney-contact__content .btn-light--lg {
  display: inline-flex;
}

.cfb-attorney-contact__disclosure {
  margin: 1rem 0 0 !important;
  padding: 0;
  font-size: 0.75rem !important;
  line-height: 1.45;
  color: var(--cfb-shadow-65) !important;
  max-width: 32rem;
}

@media (min-width: 768px) {
  .cfb-attorney-contact__disclosure {
    text-align: left;
  }
}

/* Light section variant for SRI - gradient override when used with cfb-section--gradient */
.cfb-biz-sri {
  background: var(--cfb-sky-10, rgba(188, 225, 230, 0.1));
}

.cfb-section--gradient.cfb-biz-sri {
  background: linear-gradient(180deg, #80f4f4 0%, #f3af78 100%) !important;
}

/* ---------- Attorney Banking page: full-width body copy within content shell ---------- */
.cfb-attorney-page .cfb-biz-purpose__lead,
.cfb-attorney-page .cfb-biz-sri p,
.cfb-attorney-page .cfb-biz-cta__body,
.cfb-attorney-page .cfb-attorney-contact__content > p:not(.cfb-attorney-contact__disclosure) {
  max-width: none;
  width: 100%;
}

/* ---------- Attorney Banking features list ---------- */
.cfb-attorney-features-list .cfb-shell {
  max-width: 52rem;
}

.cfb-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cfb-features-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--cfb-shadow-15);
}

.cfb-features-list li:first-child {
  border-top: 1px solid var(--cfb-shadow-15);
}

.cfb-features-list li strong {
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--cfb-shadow) !important;
}

.cfb-features-list li span {
  font-size: 1rem !important;
  line-height: 1.5;
  color: var(--cfb-shadow) !important;
}

.cfb-features-list li sup {
  font-size: 0.65em;
}

/* Features list with icons variant */
.cfb-features-list--icons li {
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 0;
}

.cfb-features-list__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

@media (min-width: 768px) {
  .cfb-features-list__icon {
    width: 3.5rem;
    height: 3.5rem;
  }
}

.cfb-features-list__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

/* ---------- Attorney contact centered variant ---------- */
.cfb-attorney-contact--centered {
  text-align: center;
}

.cfb-attorney-contact--centered .cfb-section-title {
  margin-bottom: 2rem;
  text-align: center;
}

.cfb-attorney-contact--centered .cfb-attorney-contact__inner {
  flex-direction: column;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .cfb-attorney-contact--centered .cfb-attorney-contact__inner {
    grid-template-columns: 1fr;
  }
}

.cfb-attorney-contact--centered .cfb-attorney-contact__content {
  text-align: center;
}

.cfb-attorney-contact--centered .cfb-attorney-contact__content > p:not(.cfb-attorney-contact__disclosure) {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.cfb-attorney-contact--centered .cfb-attorney-contact__disclosure {
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 100%;
}

@media (min-width: 768px) {
  .cfb-attorney-contact--centered .cfb-attorney-contact__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cfb-attorney-contact--centered .cfb-attorney-contact__disclosure {
    max-width: 24rem;
    width: auto;
    align-self: center;
    text-align: center;
  }
}

/* ---------- Spacing + legacy content in redesigned pages ---------- */
.cfb-section + .cfb-mortgage-form {
  padding-top: 1rem;
}

.cfb-mortgage-form + .cfb-section {
  padding-top: 2rem;
}

.cfb-section + .cfb-biz-features,
.cfb-mortgage-form + .cfb-biz-features {
  padding-top: 2rem;
}

.cfb-biz-features + .cfb-cta-band,
.cfb-biz-features + .cfb-biz-cta {
  margin-top: 0;
}

.cfb-page-redesign .side-info .new-disclosure {
  margin-top: 0.75rem;
  padding: 0;
  background: none;
  border-radius: 0;
  font-size: 0.75rem !important;
  line-height: 1.45;
  color: rgba(1, 36, 39, 0.75) !important;
}

/* Full-width tab panels for branch/ATM content (avoid 2-col grid squeeze) */
.cfb-panel--boxed:has(.new-branch-locations-div),
.cfb-panel--boxed:has(.new-universal-content-div.center) {
  display: block;
  grid-template-columns: 1fr !important;
}

.cfb-page-redesign .cfb-panel--boxed .new-branch-locations-div {
  width: 100%;
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0;
  padding-right: 0;
}

.cfb-page-redesign .cfb-panel--boxed .side-feature {
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.cfb-page-redesign .cfb-panel--boxed .side-feature:last-child {
  margin-bottom: 0;
}

.cfb-page-redesign .cfb-panel--boxed .google-maps,
.cfb-page-redesign .cfb-panel--boxed .side-info {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.cfb-page-redesign .cfb-panel--boxed .google-maps .w-widget-map {
  width: 100%;
  min-height: 16rem;
}

.cfb-page-redesign .cfb-panel--boxed .new-2-column-banner-background {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.cfb-page-redesign .cfb-panel--boxed .new-2-column-banner-background .new-content-wrapper {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.cfb-page-redesign .cfb-panel--boxed .new-universal-content-div.center {
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 768px) {
  .cfb-page-redesign .cfb-panel--boxed .side-feature {
    flex-direction: row;
    align-items: flex-start;
  }

  .cfb-page-redesign .cfb-panel--boxed .google-maps,
  .cfb-page-redesign .cfb-panel--boxed .side-info {
    width: 50%;
  }

  .cfb-page-redesign .cfb-panel--boxed .side-info {
    padding-left: 1.25rem;
  }
}

@media (min-width: 1440px) {
  .cfb-page-redesign .cfb-panel--boxed .side-feature {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Commercial solar hero: solid card keeps the lead form readable over the texture */
.cfb-commercial-solar-hero .cfb-biz-hero__form-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 28rem;
  padding: 1.75rem 1.5rem;
  border: 2px solid var(--cfb-shadow);
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(1, 36, 39, 0.12);
}

.cfb-commercial-solar-hero .cfb-biz-hero__form-card .w-form {
  margin: 0;
}

.cfb-commercial-solar-hero .cfb-form-input {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 2px solid var(--cfb-shadow);
  border-radius: 0;
  background: #ffffff;
  color: var(--cfb-shadow);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
}

.cfb-commercial-solar-hero .cfb-form-input:focus {
  outline: 2px solid var(--cfb-sky);
  outline-offset: 2px;
}

.cfb-commercial-solar-hero .cfb-hero-form__title,
.cfb-commercial-solar-hero .cfb-checkbox-label,
.cfb-commercial-solar-hero .cfb-checkbox-link {
  color: var(--cfb-shadow) !important;
}

