/* ============================================================
   ITgroup BRANCHEN-PoC
   Scope: .itg-branch
   ============================================================ */

.itg-branch,
.itg-branch * {
  box-sizing: border-box;
}

.itg-branch * {
  margin: 0;
  padding: 0;
}

.itg-branch {
  --itg-blue: #0c2340;
  --itg-accent: #7aafd4;
  --itg-accent-2: #378add;
  --itg-paper: #f7f5f1;
  --itg-line: #e8e5e0;
  --itg-text: #1a1a18;
  --itg-body: #3d3d38;
  --itg-muted: #5a5a54;
  --itg-width: 1100px;

  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--itg-text);
  background: #fff;
}

.itg-branch a {
  color: inherit;
  text-decoration: none;
}

.itg-branch-switch {
  max-width: var(--itg-width);
  margin: 0 auto;
  padding: 28px 40px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.itg-branch-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid #bcd4e8;
  background: #fff;
  color: var(--itg-blue);
  font-size: 13px;
  font-weight: 800;
  transition:
    color .2s ease,
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.itg-branch-switch a:hover,
.itg-branch-switch a:focus-visible {
  border-color: var(--itg-accent-2);
  background: #eef5fa;
  transform: translateY(-2px);
}

.itg-branch-switch a.is-active {
  color: #fff;
  border-color: var(--itg-blue);
  background: var(--itg-blue);
}

.itg-branch-hero {
  max-width: var(--itg-width);
  margin: 0 auto;
  padding: 18px 40px 0;
}

.itg-branch-hero-box {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #0c2340 0%, #1a4a7a 100%);
}

.itg-branch-hero-media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
  transition:
    background-image .35s ease,
    transform 1.2s cubic-bezier(.2,.8,.2,1);
}

.itg-branch.is-loaded .itg-branch-hero-media {
  transform: scale(1);
}

.itg-branch-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(12,35,64,.94) 0%,
      rgba(12,35,64,.72) 52%,
      rgba(12,35,64,.18) 100%
    );
}

.itg-branch-hero-copy {
  position: relative;
  z-index: 2;
  min-height: 500px;
  padding: 64px 46px 50px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 760px;
}

.itg-branch-label {
  margin-bottom: 12px;
  color: var(--itg-accent);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.itg-branch-h1 {
  max-width: 700px;
  margin-bottom: 18px;
  color: #fff;
  font-size: 46px;
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 800;
}

.itg-branch-intro {
  max-width: 640px;
  color: rgba(255,255,255,.82);
  font-size: 17px;
  line-height: 1.65;
}

.itg-branch-section {
  border-top: 1px solid var(--itg-line);
}

.itg-branch-section.is-alt {
  background: var(--itg-paper);
}

.itg-branch-wrap {
  max-width: var(--itg-width);
  margin: 0 auto;
  padding: 62px 40px;
}

.itg-branch-eyebrow {
  margin-bottom: 10px;
  color: var(--itg-accent-2);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.itg-branch-h2 {
  max-width: 760px;
  margin-bottom: 14px;
  color: var(--itg-blue);
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 800;
}

.itg-branch-copy {
  max-width: 800px;
  color: var(--itg-body);
  font-size: 15px;
  line-height: 1.72;
}

.itg-pain-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--itg-line);
  border-left: 1px solid var(--itg-line);
}

.itg-pain-card {
  min-height: 180px;
  padding: 28px 24px;
  border-right: 1px solid var(--itg-line);
  border-bottom: 1px solid var(--itg-line);
  background: #fff;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

.itg-pain-card:hover {
  position: relative;
  z-index: 1;
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(12,35,64,.10);
  background: #fbfdff;
}

.itg-pain-number {
  margin-bottom: 22px;
  color: var(--itg-accent-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.itg-pain-text {
  color: var(--itg-blue);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.itg-branch-status {
  display: none;
  max-width: var(--itg-width);
  margin: 16px auto 0;
  padding: 12px 40px;
  color: #7a1f1f;
  background: #fff0f0;
  border: 1px solid #e5bcbc;
  font-size: 14px;
  line-height: 1.5;
}

.itg-branch.has-error .itg-branch-status {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .itg-branch *,
  .itg-branch *::before,
  .itg-branch *::after {
    animation: none;
    transition: none;
  }

  .itg-branch-hero-media {
    transform: none;
  }
}

@media (max-width: 760px) {
  .itg-branch-switch,
  .itg-branch-hero,
  .itg-branch-wrap {
    padding-right: 22px;
    padding-left: 22px;
  }

  .itg-branch-hero-box,
  .itg-branch-hero-copy {
    min-height: 440px;
  }

  .itg-branch-hero-copy {
    padding: 46px 24px 34px;
  }

  .itg-branch-h1 {
    font-size: 36px;
  }

  .itg-pain-grid {
    grid-template-columns: 1fr;
  }
}
