/* =============================================
   COPA AMERICA — SPECIFIC STYLES
   ============================================= */

/* Hero background image */
.cs-hero--copa .cs-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cs-hero--copa .cs-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-hero--copa .cs-hero-inner {
  z-index: 1;
}

.cs-hero--copa .cs-hero-image {
  position: absolute;
  top: auto;
  bottom: -380px;
  right: -228px;
  width: 1131px;
  height: 855px;
  z-index: 1;
}

.cs-hero--copa .cs-hero-phone {
  position: absolute;
  bottom: 56px;
  right: 0;
  width: 1008px;
  height: 762px;
  object-fit: contain;
  object-position: right bottom;
}

/* Copa intro section */
.cs-section--copa-intro {
  background: var(--cs-200);
  padding-bottom: 56px;
}

.cs-section--copa-intro .cs-heading {
  color: var(--cs-800);
}

.cs-section--copa-intro .subtitle-2 {
  color: var(--cs-900);
}

.cs-section--copa-intro .body-3 {
  color: var(--cs-900);
}

.cs-section--copa-intro .cs-brief-block .header-4 {
  color: var(--cs-800);
}

/* Copa intro images row */
.cs-images-row--copa-intro {
  max-width: 1400px;
  padding: 0 32px;
  align-items: stretch;
  height: auto;
}

.cs-image-box--copa-video {
  position: relative;
  width: auto;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--cs-900-05);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
}

.cs-image-box--copa-video video {
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cs-video-mute-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--cs-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cs-video-mute-btn:hover {
  background: #fff;
}

.cs-image-box--copa-wide {
  flex: 1;
  background: transparent;
  border: 1px solid var(--cs-900-05);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
}

.cs-image-box--copa-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Copa IA image - full bleed */
.cs-copa-ia {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.cs-copa-ia img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Copa features section */
.cs-section--copa-features {
  background: var(--cs-900);
  gap: 80px;
}

.cs-copa-feature {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  max-width: 1400px;
  width: 100%;
  padding: 0 32px;
}

.cs-copa-feature-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.cs-image-box--copa-feature {
  width: 100%;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--cs-900-05);
}

.cs-image-box--copa-feature img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Copa Live Match grid */
.cs-copa-match-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  width: 100%;
}

.cs-copa-match-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cs-copa-match-col--left .cs-image-box--match-small {
  background: transparent;
  border: 1px solid var(--cs-900-05);
  border-radius: 9px;
  overflow: hidden;
  aspect-ratio: 468 / 312;
}

.cs-copa-match-col--left .cs-image-box--match-tall {
  background: transparent;
  border: 1px solid var(--cs-900-05);
  border-radius: 9px;
  overflow: hidden;
  flex: 1;
}

.cs-copa-match-col--right .cs-image-box--match-photo {
  background: transparent;
  border: 1px solid var(--cs-900-05);
  border-radius: 9px;
  overflow: hidden;
  flex: 1;
}

.cs-copa-match-col--right .cs-image-box--match-notif {
  background: transparent;
  border: 1px solid var(--cs-900-05);
  border-radius: 9px;
  overflow: hidden;
  aspect-ratio: 588 / 274;
}

.cs-copa-match-grid .cs-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Copa favorite team images */
.cs-images-row--copa-fav {
  max-width: 1400px;
  padding: 0;
  display: flex;
  gap: 32px;
  align-items: stretch;
  height: 692px;
}

/* Left - phone mockup with gradient background */
.cs-image-box--copa-fav-wide {
  flex: 1;
  min-width: 0;
  background: linear-gradient(90deg, #E2E8F0 0%, #94A3B8 100%);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  position: relative;
}

.cs-image-box--copa-fav-wide::after {
  display: none;
}

.cs-image-box--copa-fav-wide img {
  position: absolute;
  top: -5%;
  max-width: 100%;
  height: 130%;
  object-fit: contain;
}

/* Right - story card, keeps ratio, no background */
.cs-image-box--copa-fav-phone {
  flex: 0 0 auto;
  background: transparent;
  border-radius: 8px;
}

.cs-image-box--copa-fav-phone::after {
  display: none;
}

.cs-image-box--copa-fav-phone img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Copa stats cards */
.cs-copa-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1400px;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  align-items: flex-start;
}

.cs-copa-stat-card {
  flex: 1 1 360px;
  min-width: 360px;
  max-width: 100%;
  background: var(--copa-accent);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-copa-stats.stats--hug-first .cs-copa-stat-card:first-child {
  flex: 0 1 auto;
}

.cs-copa-stats.stats--hug-first .cs-copa-stat-card:not(:first-child) {
  flex: 1 1 0;
}

.cs-copa-stat-value {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.cs-copa-stat-card .header-1 {
  line-height: 0.8;
  white-space: nowrap;
}

/* Copa impact section */
.cs-section--copa-impact {
  background: var(--cs-100);
  padding-bottom: 32px;
}

.cs-section--copa-impact .cs-heading {
  color: var(--cs-500);
}

.cs-section--copa-impact .subtitle-2 {
  color: var(--cs-900);
}

.cs-col-right--copa-impact {
  border-left: 2px solid var(--cs-500);
  padding-left: 32px;
}

.cs-section--copa-impact .cs-brief-block .header-4 {
  color: var(--cs-900);
}

.cs-section--copa-impact .body-3 {
  color: var(--cs-900);
}

.cs-section--copa-impact .cs-thanks .header-4 {
  color: var(--cs-500);
}

.cs-section--copa-impact .cs-thanks-line {
  border-top-color: var(--cs-500);
  opacity: 1;
}

/* Copa final image */
.cs-section--copa-impact .cs-images-row {
  max-width: 1400px;
  padding: 0 32px;
}

.cs-image-box--copa-final {
  flex: 1;
  background: transparent;
  border: 1px solid var(--cs-900-05);
  border-radius: 8px;
  overflow: hidden;
}

.cs-image-box--copa-final img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Copa nav link colors */
.case-study--copa .nav .nav-link {
  color: var(--cs-400);
}

.case-study--copa .nav .nav-link:hover {
  background: var(--cs-400);
  color: var(--cs-900);
}

/* =============================================
   COPA AMERICA — RESPONSIVE
   ============================================= */
@media (max-width: 1239px) {
  .cs-hero--copa .cs-hero-image {
    width: 800px;
    height: auto;
    right: -150px;
    bottom: -200px;
  }

  .cs-hero--copa .cs-hero-phone {
    width: 700px;
    height: auto;
  }

  .cs-copa-stats {
    flex-wrap: wrap;
  }

  .cs-images-row--copa-fav {
    height: 550px;
  }

  .cs-copa-match-grid {
    gap: 24px;
  }
}

@media (max-width: 1315px) {
  .cs-copa-stats {
    flex-wrap: wrap;
  }

  .cs-copa-stat-card {
    flex: 1 1 calc(50% - 16px);
    min-width: 320px;
  }
}

@media (max-width: 949px) {
  .cs-copa-stat-card {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

@media (min-width: 1240px) {
  .cs-copa-stat-card .header-1 {
    font-size: 92px;
  }
}

@media (min-width: 768px) {
  .cs-images-row--copa-intro {
    height: 520px;
  }
}

@media (max-width: 767px) {
  .cs-hero--copa {
    height: auto;
    min-height: 600px;
  }

  .cs-hero--copa .cs-hero-image {
    width: 100%;
    right: -50%;
    bottom: -100px;
    top: auto;
    height: 400px;
  }

  .cs-hero--copa .cs-hero-bg img {
    object-position: left center;
  }

  .cs-hero--copa .cs-hero-phone {
    width: 100%;
    height: 100%;
    object-position: left center;
  }

  .cs-images-row--copa-intro {
    flex-direction: column;
    aspect-ratio: auto;
    padding: 0 20px;
  }

  .cs-image-box--copa-video {
    width: 100%;
    aspect-ratio: 9 / 16;
    max-width: none;
    height: auto;
  }

  .cs-image-box--copa-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .cs-image-box--copa-wide {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .cs-copa-match-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cs-copa-match-col {
    gap: 16px;
  }

  .cs-copa-match-col--left .cs-image-box--match-tall,
  .cs-copa-match-col--right .cs-image-box--match-photo {
    flex: none;
    aspect-ratio: 4 / 3;
  }

  .cs-copa-match-col--left .cs-image-box--match-tall {
    aspect-ratio: auto;
    height: auto;
  }

  .cs-copa-match-col--left .cs-image-box--match-tall img {
    height: auto;
    object-fit: contain;
  }

  .cs-copa-ia {
    padding: 0;
  }

  .cs-section--copa-features {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cs-copa-feature {
    padding: 0;
  }

  .cs-copa-feature-row {
    padding: 0 20px;
  }

  .cs-section--copa-impact .cs-images-row {
    padding: 0 20px;
  }

  .cs-images-row--copa-fav {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 24px;
  }

  .cs-image-box--copa-fav-wide {
    width: 100%;
    max-width: none;
    aspect-ratio: 9 / 16;
    padding: 24px;
  }

  .cs-image-box--copa-fav-phone {
    width: 100%;
    max-width: none;
    overflow: hidden;
    height: 400px;
  }

  .cs-image-box--copa-fav-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: top;
  }

  .cs-copa-stats {
    flex-direction: column;
    gap: 16px;
  }

  .cs-copa-feature--fav {
    margin-bottom: 0px;
  }

  .cs-copa-stat-card {
    min-width: 100%;
  }

  .cs-col-right--copa-impact {
    border-left: none;
    border-top: 2px solid var(--cs-500);
    padding-left: 0;
    padding-top: 24px;
  }

  .cs-image-box--copa-final {
    aspect-ratio: 1 / 1;
  }
}
