/* INSTITUTIONAL BANKING — built on the ProvidusUnity design system
   (gold #fdb813 · dark #212529 · Montserrat + Inter)
   Page-specific pieces only: the hero photo variable, the three
   pillar cards, the public-sector tier tabs, the split copy/photo
   block and the dark features band. Cards, section heads and the
   CTA all reuse shared.css (val-card / page-sec / page-cta). */

/* Section rhythm */
/* consecutive sections shouldn't double up their vertical padding */
.ib-sec-flush {
  padding-top: 0;
}

/* Pillars */
.ib-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.ib-pillar {
  position: relative;
  display: block;
  padding: 30px 28px 28px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s,
    border-color 0.3s;
}

.ib-pillar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ib-pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 29px rgba(0, 0, 0, 0.06);
  border-color: rgba(253, 184, 19, 0.4);
}

.ib-pillar:hover::before {
  transform: scaleY(1);
}

.ib-pillar-num {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #b37a00;
  margin-bottom: 14px;
}

.ib-pillar h4 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.ib-pillar p {
  font-size: 13.5px;
  line-height: 1.65;
  color: #6f6f68;
}

/* Tier tabs */
.ib-tier-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  margin-bottom: 32px;
}

.ib-tier-tab {
  padding: 10px 24px;
  border-radius: 30px;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.09);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #3a3a35;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.ib-tier-tab:hover {
  border-color: rgba(253, 184, 19, 0.55);
  color: #1a1a1a;
}

.ib-tier-tab.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1200;
}

/* Tier panels */
.ib-tier-panel {
  display: none;
}

.ib-tier-panel.is-active {
  display: block;
  animation: ib-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ib-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ib-tier-panel.is-active {
    animation: none;
  }
}

/* Card grid */
.ib-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* the value-chain grid runs four across on wide screens */
#value-chain .ib-card-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 44px;
}

/* SPLIT (copy + photo) */
.ib-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.ib-split-copy .section-h2 {
  margin-bottom: 14px;
}

.ib-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

.ib-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #3a3a35;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ib-list li:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ib-list-mark {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.ib-split-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.09);
}

.ib-split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* FEATURES BAND (dark, photo backdrop) */
/* the architecture shot sits under a heavy dark wash so the white
   feature copy on top keeps its contrast */
.ib-features {
  position: relative;
  background:
    linear-gradient(
      100deg,
      rgba(8, 6, 2, 0.94) 0%,
      rgba(8, 6, 2, 0.82) 48%,
      rgba(8, 6, 2, 0.7) 100%
    ),
    url("../../images/institutional-architecture.png") center / cover no-repeat,
    #14100a;
  overflow: hidden;
}

.ib-features::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(253, 184, 19, 0.07) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
  pointer-events: none;
}

.ib-features-inner {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin: 0 auto;
  padding: 96px 80px;
}

/* the shared section head renders dark-on-light by default */
.ib-features .section-h2 {
  color: #fff;
}

.ib-features .eyebrow {
  color: var(--gold);
}

.ib-features .eyebrow span {
  background: var(--gold);
}

.ib-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

@media (max-width: 1280px) {
  .ib-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ib-feature {
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  transition:
    background 0.3s,
    border-color 0.3s,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ib-feature:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(253, 184, 19, 0.35);
  transform: translateY(-3px);
}

.ib-feature-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(253, 184, 19, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ib-feature-ico svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.ib-feature h4 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16.5px;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 11px;
  line-height: 1.35;
}

.ib-feature p {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

/* the dark band ends flush, so the gold CTA needs its own breathing
   room above it (shared .page-cta only carries a bottom margin) */
.ib-features + .page-cta {
  margin-top: 100px;
}

/* Responsive */
@media (max-width: 1024px) {
  .ib-pillars,
  .ib-feature-grid {
    grid-template-columns: 1fr;
  }

  #value-chain .ib-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ib-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ib-split-photo {
    order: -1;
  }

  .ib-features-inner {
    padding: 80px 40px;
  }
}

@media (max-width: 820px) {
  .ib-card-grid,
  #value-chain .ib-card-grid {
    grid-template-columns: 1fr;
  }

  .ib-features-inner {
    padding: 64px 24px;
  }

  .ib-features + .page-cta {
    margin-top: 64px;
  }

  .ib-tier-tab {
    flex: 1;
    min-width: 140px;
    text-align: center;
  }
}
