/* Shopping Zone case study uses the existing BrandsGoBig shell and design tokens. */
:root {
  --case-text: #344f70;
  --case-muted: #214866;
  --case-bluewash: linear-gradient(135deg, #ffffff, #edf7ff);
  --case-navy: radial-gradient(ellipse at 100% 0%, #075c9d66, transparent 65%), var(--navy);
  --case-divider: #00bfff;
  --case-card: linear-gradient(140deg, #ffffff, #e8f3ff);
  --case-card-border: #a8cafd;
  --case-shadow: 0 9px 27px #043f7120;
}

main h1,
main h2,
main h3 {
  font-weight: 850;
  letter-spacing: -.05em;
  line-height: 1.08;
}

main h2 { font-size: clamp(30px, 3vw, 44px); }

main .eyebrow {
  color: #173b64;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

main .button {
  min-height: 48px;
  gap: 14px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}

.button.primary,
.button.secondary,
.site-header .nav-link.is-active,
.js .menu-toggle,
.case-text-link {
  background: var(--case-card);
  border-color: #8cbcff;
  color: var(--ink);
  box-shadow: 0 4px 12px #0757ff14;
}

.button.primary {
  border-color: #3c85f0;
  color: #0645bd;
}

.site-header .nav-link.is-active {
  box-shadow: inset 0 0 0 1px #8cbcff, 0 0 15px #006fff28;
}

.button.primary:hover,
.button.secondary:hover,
.js .menu-toggle:hover,
.case-text-link:hover {
  border-color: #0757ff;
  box-shadow: 0 6px 16px #0757ff29;
}

.case-hero { background: var(--case-bluewash); }

.case-hero-grid {
  width: min(100%, var(--max));
  min-height: 452px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
}

.case-hero-copy {
  align-self: center;
  min-width: 0;
  padding: 34px 30px 38px var(--gutter);
  text-align: center;
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 25px;
  color: #14529f;
  font-size: 14px;
  font-weight: 750;
}

.case-back:hover,
.case-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.case-hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(36px, 3.65vw, 56px);
  line-height: 1.05;
}

.case-hero h1 .accent {
  display: block;
  margin-top: 5px;
  font-size: .88em;
}

.case-lead {
  max-width: 47ch;
  margin: 0 auto 24px;
  color: var(--case-text);
  font-size: 16px;
  line-height: 1.55;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.case-hero-art {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 34px var(--gutter) 24px 30px;
  border-left: 1px solid var(--case-divider);
  border-top-left-radius: 16% 50%;
  border-bottom-left-radius: 7% 27%;
  background: var(--case-navy);
}

.case-art-frame {
  width: 100%;
  overflow: hidden;
  padding: 7px;
  border: 1px solid var(--case-divider);
  border-radius: 21px;
  background: var(--navy);
  box-shadow: 0 0 0 4px #0b3256, 0 14px 30px #00112059;
}

.case-art-frame img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.case-hero-art figcaption,
.case-cms-art figcaption {
  color: #bcd7ed;
  font-size: 12px;
  text-align: center;
}

.case-overview,
.case-shopper,
.case-cms,
.case-closing {
  padding-block: clamp(34px, 4vw, 56px);
  background: var(--case-bluewash);
}

.case-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(26px, 4vw, 62px);
}

.case-overview-copy { text-align: center; }
.case-overview-copy h2,
.case-section-heading h2,
.case-cms h2,
.case-closing h2 { margin: 11px 0 13px; }

.case-overview-copy > p:not(.eyebrow) {
  max-width: 58ch;
  margin-inline: auto;
  color: var(--case-text);
  line-height: 1.55;
}

.case-browser {
  min-width: 0;
  margin: 0;
  padding: 6px;
  border: 1px solid #297bb5;
  border-radius: 16px;
  background: #092744;
  box-shadow: var(--case-shadow);
  overflow: hidden;
}

.case-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 10px;
  color: #d4e9ff;
  font-size: 12px;
  font-weight: 700;
}

.case-browser-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #488dbb;
}

.case-browser-bar i:first-child { background: var(--case-divider); }
.case-browser-bar span { margin-left: 5px; }

.case-browser img {
  width: 100%;
  border-radius: 8px;
}

.case-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #8cbcff;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 750;
}

.case-section-heading {
  max-width: 780px;
  margin: 0 auto 25px;
  text-align: center;
}

.case-shopper-steps {
  --step-gap: clamp(18px, 2vw, 28px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--step-gap);
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.case-shopper-steps > li {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border: 1px solid #76b9ed;
  border-radius: 16px;
  background: var(--case-card);
  box-shadow: 0 8px 20px #0a345719;
}

.case-shopper-art {
  display: grid;
  align-content: center;
  overflow: hidden;
  border-bottom: 1px solid #3577b4;
  border-radius: 15px 15px 0 0;
  background-color: #05182e;
}

.case-shopper-art::before {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: url("/portfolio/shoppingzone/case-premium-20261201/assets/shoppingzone-shopping-steps.webp") var(--step-x, 0%) var(--step-y, 0%) / 200% 200% no-repeat;
  content: "";
}

.case-shopper-steps > li:nth-child(2) { --step-x: 100%; }
.case-shopper-steps > li:nth-child(3) { --step-y: 100%; }

.case-shopper-copy {
  padding: 20px clamp(14px, 2.2vw, 27px);
  text-align: center;
}

.case-shopper-copy h3 {
  font-size: clamp(19px, 1.8vw, 25px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.17;
}

.case-shopper-copy p {
  max-width: 38ch;
  margin: 8px auto 0;
  color: var(--case-text);
  font-size: 14px;
  line-height: 1.48;
  text-wrap: pretty;
}

.case-shopper-steps > li + li::after {
  position: absolute;
  top: 50%;
  right: calc(100% + var(--step-gap) / 2 - 4px);
  width: 7px;
  height: 7px;
  border-top: 2px solid #246ebc;
  border-right: 2px solid #246ebc;
  transform: translateY(-50%) rotate(45deg);
  content: "";
}

.case-overview-copy .case-text-link { margin-top: 18px; }

.case-cms-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-areas: "art copy";
  align-items: center;
  gap: clamp(24px, 4vw, 62px);
}

.case-cms-copy {
  grid-area: copy;
  text-align: center;
}

.case-cms-art {
  grid-area: art;
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: clamp(16px, 2.3vw, 32px);
  border: 1px solid #348bbf;
  border-radius: 21px 52px 24px 21px;
  background: var(--case-navy);
  box-shadow: var(--case-shadow);
}

.case-cms-art .case-art-frame {
  padding: 5px;
  border-color: #27a0d1;
  border-radius: 15px;
  box-shadow: 0 0 0 3px #09314f;
}

.case-cms-art .case-art-frame img { border-radius: 9px; }

.case-cms-details {
  display: grid;
  gap: 12px;
  margin-top: 19px;
  text-align: center;
}

.case-cms-details details {
  border: 1px solid #b9d7ef;
  border-radius: 8px;
  background: #ffffff8f;
}

.case-cms-details summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 28px;
  color: #102951;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -.015em;
  list-style: none;
  cursor: pointer;
}

.case-cms-details summary::-webkit-details-marker { display: none; }
.case-cms-details summary:focus-visible { border-radius: 7px; outline-offset: -3px; }

.case-cms-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.case-cms-details summary::after {
  position: absolute;
  top: 50%;
  inset-inline-end: 15px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-65%) rotate(45deg);
  content: "";
}

.case-cms-details details[open] summary::after { transform: translateY(-35%) rotate(225deg); }

.case-cms-details p {
  margin: 0;
  padding: 0 12px 14px;
  color: #385a7a;
  font-size: 14px;
  line-height: 1.5;
}

.case-closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: center;
  gap: clamp(20px, 4vw, 62px);
  padding: clamp(24px, 4vw, 49px);
  border: 1px solid var(--case-card-border);
  border-radius: 22px;
  background: var(--case-bluewash);
  text-align: center;
}

.footer-brand p,
.footer-nav a { font-size: 14px; }
.footer-nav h3 { font-size: 16px; letter-spacing: normal; }
.footer-bottom,
.footer-bottom p:nth-child(2) { font-size: 12px; letter-spacing: normal; }

@media (min-width: 900px) and (max-width: 1099px) {
  .site-header::before { width: 31%; }
  .site-header .brand { width: clamp(185px, 21vw, 225px); }
  .site-header #primary-navigation { gap: clamp(16px, 2vw, 22px); }
  .site-header .nav-cta { white-space: nowrap; }
  .case-hero-art { padding-right: 25px; }
}

@media (max-width: 899px) {
  .case-hero-grid,
  .case-overview-grid,
  .case-cms-grid { grid-template-columns: 1fr; }

  .case-cms-grid { grid-template-areas: "copy" "art"; }

  .case-hero-grid { min-height: 0; }

  .case-hero-copy {
    width: min(100%, 680px);
    margin-inline: auto;
    padding: 30px var(--gutter) 28px;
  }

  .case-hero-art {
    align-items: center;
    padding: 22px var(--gutter) 16px;
    border: 0;
    border-radius: 0;
  }

  .case-hero-art .case-art-frame { max-width: 690px; }
  .case-overview-copy,
  .case-browser,
  .case-cms-copy,
  .case-cms-art { width: min(100%, 690px); margin-inline: auto; }
}

@media (max-width: 780px) {
  .case-closing-inner { grid-template-columns: 1fr; }
}

@media (max-width: 719px) {
  .case-shopper-steps {
    --step-gap: 19px;
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .case-shopper-steps > li {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    grid-template-rows: auto;
  }

  .case-shopper-art {
    border-radius: 15px 0 0 15px;
    border-right: 1px solid #2e679b;
    border-bottom: 0;
  }

  .case-shopper-copy {
    align-self: center;
    padding: 13px 12px;
    text-align: left;
  }

  .case-shopper-copy p { margin-inline: 0; font-size: 13px; }

  .case-shopper-steps > li + li::after {
    top: auto;
    right: auto;
    bottom: calc(100% + 6px);
    left: calc(50% - 4px);
    transform: rotate(45deg);
  }
}

@media (max-width: 599px) {
  main h2 { font-size: clamp(28px, 8vw, 36px); }
  .case-hero h1 { font-size: clamp(35px, 9.5vw, 46px); }
  .case-hero h1 .accent { font-size: .79em; }
  .case-back { margin-bottom: 19px; }
  .case-lead { font-size: 15px; }

  .case-actions {
    width: min(100%, 320px);
    margin-inline: auto;
    flex-direction: column;
  }

  .case-art-frame { padding: 4px; border-radius: 16px; }
  .case-art-frame img { border-radius: 11px; }
  .case-closing-inner { padding: 24px 18px; }
}

@media (max-width: 379px) {
  .site-header .brand { width: clamp(166px, 50vw, 185px); }
  .header-inner { gap: 12px; }
}
