/* Common foot symptoms shown before product highlights */

.symptoms {
  position: relative;
  padding-block: clamp(96px, 9vw, 136px);
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 119, 184, 0.07), transparent 28%),
    var(--color-surface);
  scroll-margin-top: var(--header-height);
}

.symptoms::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 70%);
  pointer-events: none;
}

.symptoms__container {
  position: relative;
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

.symptoms__heading > div {
  grid-column: 1 / span 7;
}

.symptoms__grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 20px;
}

.symptom-card {
  min-width: 0;
  margin: 0;
  grid-column: span 2;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-strong);
  box-shadow: var(--shadow-card);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.symptom-card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-soft);
}

.symptom-card__media::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  content: "";
  pointer-events: none;
}

.symptom-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.symptom-card__content {
  min-height: 144px;
  padding: 22px 20px 24px;
}

.symptom-card__content::before {
  display: block;
  width: 32px;
  height: 2px;
  margin-bottom: 16px;
  background: var(--color-accent);
  content: "";
}

.symptom-card h3 {
  margin: 0;
  color: var(--color-text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.symptom-card p {
  margin: 10px 0 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.65;
}

@media (hover: hover) and (pointer: fine) {
  .symptom-card:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-glow);
    transform: translateY(-6px);
  }

  .symptom-card:hover .symptom-card__media img {
    transform: scale(1.025);
  }
}

@media (max-width: 1100px) {
  .symptoms__container {
    width: min(calc(100% - 48px), var(--container));
  }

  .symptoms__heading > div {
    grid-column: auto;
  }

  .symptoms__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .symptom-card {
    grid-column: span 2;
  }

  .symptom-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .symptom-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

@media (max-width: 700px) {
  .symptoms {
    padding-block: 72px;
  }

  .symptoms::before {
    background-size: 48px 48px;
  }

  .symptoms__container {
    width: calc(100% - 40px);
  }

  .symptoms__heading h2 {
    font-size: clamp(21px, 7vw, 32px);
    white-space: nowrap;
  }

  .symptoms__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .symptom-card,
  .symptom-card:nth-child(4) {
    grid-column: auto;
  }

  .symptom-card:nth-child(5) {
    width: calc(50% - 9px);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .symptom-card__content {
    min-height: 154px;
    padding: 18px 16px 20px;
  }

  .symptom-card__content::before {
    width: 28px;
    margin-bottom: 13px;
  }

  .symptom-card h3 {
    font-size: 18px;
  }

  .symptom-card p {
    font-size: 13px;
  }

}

@media (max-width: 380px) {
  .symptoms__grid {
    grid-template-columns: 1fr;
  }

  .symptom-card:nth-child(5) {
    width: auto;
    grid-column: auto;
  }

  .symptom-card__content {
    min-height: 0;
  }
}
