/**
 * NA Cross-Brand Example — matches .na-cross-brand-example in national-accounts.html / styles.css
 */

.na-cross-brand-example-block.na-cross-brand-example {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.na-cross-brand-example {
  width: 100%;
  padding: 100px 80px;
  background: #fff;
  overflow: visible;
}

.na-cross-brand-example-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 88px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Left: portrait slot + coral frame (matches veterans spotlight / national-accounts.html) */
.na-cross-brand-example-image-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 519px;
  max-width: 100%;
  aspect-ratio: 519 / 633;
  overflow: visible;
}

.na-cross-brand-example-image-card {
  position: absolute;
  z-index: 1;
  top: 7px;
  left: -14px;
  right: 6px;
  bottom: 4px;
  background-color: var(--orange, #e57440);
  border-radius: 12px;
  transform-origin: center center;
  transform: rotate(6deg) translateZ(0);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(229, 116, 64, 0.22);
}

.na-cross-brand-example-image {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    display: block;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
    /* Match brands-cards approach: enforce 1:1 square aspect ratio */
    aspect-ratio: 1 / 1;
}

/* Right: content */
.na-cross-brand-example-content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
}

.na-cross-brand-example-intro {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--smith-grey, #404a50);
  margin: 0;
}

.na-cross-brand-example-intro strong {
  font-weight: 700;
}

/* WYSIWYG output: avoid double margins from nested <p> */
.na-cross-brand-example-intro p {
  margin: 0;
}

.na-cross-brand-example-intro p + p {
  margin-top: 0.75em;
}

.na-cross-brand-example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.na-cross-brand-example-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

  .na-cross-brand-example-logo {
    height: 52px;
    display: flex;
    align-items: center;
  }

/* Height-only constraint ensures consistent sizing regardless of logo aspect ratio.
   Wide logos (Milicare) and square logos (Prism, Tom Plumber) both scale to max-height. */
.na-cross-brand-example-logo img {
    display: block;
    width: auto;
    height: auto;
    max-height: 52px;
    object-fit: contain;
  }

.na-cross-brand-example-card p {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--smith-grey, #404a50);
  margin: 0;
}

.na-cross-brand-example-closing {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--smith-grey, #404a50);
  margin: 0;
}

.na-cross-brand-example-closing p {
  margin: 0;
}

.na-cross-brand-example-closing p + p {
  margin-top: 0.75em;
}

.na-cross-brand-example-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  color: var(--orange, #e57440);
  text-decoration: none;
  transition: color var(--transition-fast, 0.2s ease);
}

.na-cross-brand-example-link .link-label {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.na-cross-brand-example-link .link-arrow {
  text-decoration: none;
  transition: transform var(--transition-fast, 0.2s ease);
}

.na-cross-brand-example-link:hover {
  color: var(--link-light-hover, #f26828);
}

.na-cross-brand-example-link:hover .link-arrow {
  transform: translateX(4px);
}

/* ES watermark — theme asset (same as other blocks) */
.na-cross-brand-example::after {
  content: '';
  position: absolute;
  width: 490px;
  height: 582px;
  background-image: url('../../../assets/images/es-background.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.4;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

/* Tablet */
@media (max-width: 1024px) {
  .na-cross-brand-example {
    padding: 64px 32px 56px;
  }

  .na-cross-brand-example-container {
    flex-direction: column;
    gap: 40px;
  }

  .na-cross-brand-example-image-wrap {
    width: 100%;
    max-width: 500px;
    align-self: center;
    order: -1;
  }

  .na-cross-brand-example-content {
    width: 100%;
    gap: 32px;
  }

  .na-cross-brand-example-intro {
    font-size: 16px;
  }

  .na-cross-brand-example-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .na-cross-brand-example-card {
    padding: 20px;
  }

  .na-cross-brand-example-logo {
    height: 44px;
  }

  /* Match desktop logo img rules; height-only constraint for consistent sizing. */
  .na-cross-brand-example-logo img {
    display: block;
    width: auto;
    height: auto;
    max-height: 44px;
    object-fit: contain;
  }

  .na-cross-brand-example-card p {
    font-size: 14px;
  }

  .na-cross-brand-example-closing {
    font-size: 16px;
  }

  .na-cross-brand-example-link {
    font-size: 16px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .na-cross-brand-example {
    padding: 48px 20px 40px;
  }

  .na-cross-brand-example-container {
    gap: 32px;
  }

  .na-cross-brand-example-image-wrap {
    width: 100%;
    max-width: 100%;
  }

  .na-cross-brand-example-content {
    gap: 24px;
  }

  .na-cross-brand-example-intro {
    font-size: 16px;
    line-height: 1.5;
  }

  .na-cross-brand-example-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .na-cross-brand-example-card {
    padding: 20px;
    border-radius: 6px;
  }

  .na-cross-brand-example-logo {
    height: 48px;
  }

  /* Single column: larger max-height lets square logos (Prism, Tom Plumber)
     appear bigger while wide logos (Milicare) hit the 140px width cap first
     and stay proportionally smaller. Square logos scale to 48px height. */
  .na-cross-brand-example-logo img {
    display: block;
    width: auto;
    height: auto;
    max-height: 48px;
    max-width: 140px;
    object-fit: contain;
  }

  .na-cross-brand-example-card p {
    font-size: 14px;
    line-height: 1.5;
  }

  .na-cross-brand-example-closing {
    font-size: 16px;
    line-height: 1.5;
  }

  .na-cross-brand-example-link {
    font-size: 16px;
    align-self: flex-start;
    /* Prevent arrow from floating to the right edge on mobile */
    display: inline;
    white-space: normal;
  }

  /* Arrow flows with text; inline-block prevents underline propagation */
  .na-cross-brand-example-link .link-arrow {
    display: inline-block;
    text-decoration: none;
  }

  .na-cross-brand-example::after {
    display: none;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .na-cross-brand-example {
    padding: 40px 16px 32px;
  }

  .na-cross-brand-example-container {
    gap: 24px;
  }

  .na-cross-brand-example-content {
    gap: 20px;
  }
}
