/* Vattenåtervinning and Dagvatten: use cases with illustrations and the product showcase. */

/* Användningsområden */
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.use-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}

@media (hover: hover) {
  .use-card:hover {
    transform: translate(0, -6px);
    box-shadow: 0 1.4rem 2.6rem #102a3514;
  }
}

.use-art {
  aspect-ratio: 16 / 10;
  background: #e0f1f7;
  border-bottom: 1px solid var(--line);
}

.scene {
  width: 100%;
  height: 100%;
  display: block;
}

.use-copy {
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
}

.use-index {
  display: block;
  font-size: .85rem;
  letter-spacing: .14em;
  color: #3d819a;
  font-weight: 700;
}

.use-copy h3 {
  font-size: clamp(1.5rem, 2.3vw, 2.05rem);
  margin: .45rem 0 .6rem;
}

.use-copy p {
  font-size: 1.075rem;
}

@media (prefers-reduced-motion: no-preference) {
  .scene .flow { animation: scene-flow 1.4s linear infinite; }
  .scene .drop { animation: scene-drop 2.4s ease-in-out infinite; }
  .scene .rain { animation: scene-rain .9s linear infinite; }
}

@keyframes scene-flow {
  from { stroke-dashoffset: 20; }
  to { stroke-dashoffset: 0; }
}

@keyframes scene-drop {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, 6px); }
}

@keyframes scene-rain {
  0% { transform: translate(0, -10px); opacity: 0; }
  50% { transform: translate(0, 10px); opacity: .6; }
  100% { transform: translate(0, 22px); opacity: 0; }
}

/* System och komponenter */
.showcase {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.showcase-item {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
}

.showcase-item:nth-child(even) .showcase-visual {
  order: 2;
}

.showcase-visual {
  display: grid;
  place-items: center;
  text-decoration: none;
  min-height: clamp(16rem, 32vw, 28rem);
  border-radius: 1.3rem;
  overflow: hidden;
  background:
    repeating-radial-gradient(ellipse at 70% 60%, transparent 0 1.6rem, #3d819a14 1.65rem 1.7rem, transparent 1.75rem 2.4rem),
    linear-gradient(150deg, #e9f6fb, #cfe8f2);
}

.showcase-visual img {
  display: block;
  mix-blend-mode: multiply;
  width: 100%;
  height: auto;
  max-height: clamp(13rem, 26vw, 23rem);
  object-fit: contain;
  padding: 2rem;
  box-sizing: border-box;
  transition: transform .6s ease;
}

@media (hover: hover) {
  .showcase-visual:hover img {
    transform: scale(1.04);
  }
}

.showcase-glyph {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 750;
  letter-spacing: -.05em;
  line-height: 1.05;
  color: transparent;
  -webkit-text-stroke: 1.5px #1e414d;
  text-align: center;
  text-decoration: none;
  padding: 1rem;
}

.showcase-num {
  margin-right: .7rem;
  color: #5bc2e7;
}

.showcase-copy h3 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: .5rem 0 .8rem;
}

.showcase-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.showcase-copy h3 a:hover {
  text-decoration: underline;
}

/* Komponenter och tillbehör: compact links to product pages from the field pages. */
.extra-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
}

.extra-list a {
  display: grid;
  align-content: start;
  gap: .35rem;
  height: 100%;
  padding: 1.4rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: inherit;
  text-decoration: none;
  transition: border-color .3s, translate .3s;
}

@media (hover: hover) {
  .extra-list a:hover {
    border-color: #5bc2e7;
    translate: 0 -3px;
  }
}

.extra-label {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #3d819a;
  font-weight: 700;
}

.extra-list strong {
  font-size: 1.3rem;
  color: var(--ink);
}

.extra-summary {
  color: var(--muted);
  font-size: .98rem;
}

.showcase-copy > p:not(.eyebrow) {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  max-width: 34rem;
}

.showcase-copy > p:not(.eyebrow) + .button {
  margin-top: 1.5rem;
}

.showcase-points {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.5rem;
  display: grid;
  gap: .55rem;
}

.showcase-points li {
  padding-left: 1.6rem;
  position: relative;
  font-weight: 600;
  color: var(--ink);
}

.showcase-points li::before {
  content: "";
  position: absolute;
  left: .25rem;
  top: .55em;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  border: 2px solid #5bc2e7;
  box-sizing: border-box;
}

@media (max-width: 52rem) {
  .use-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .showcase-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .showcase-item:nth-child(even) .showcase-visual {
    order: 0;
  }

  .showcase-glyph {
    max-width: 100%;
    color: var(--ink);
    -webkit-text-stroke: 0;
    font-size: clamp(1.85rem, 7.4vw, 3rem);
    letter-spacing: -.025em;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 37rem) {
  .section--uses .section-heading h2 {
    font-size: 2.05rem;
  }
}
