/* icon-cards – ported 1:1 from the old site */
.cook-cards-outer,
.cook-cards-outer * {
  box-sizing: border-box;
}

.cook-cards-outer {
  width: calc(100% + 32px);
  margin: -16px;
  padding: 16px;
  overflow: visible !important;
  background: transparent;
}

.cook-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible !important;
  background: transparent;
  font-family: Montserrat, Arial, sans-serif;
}

.cook-card {
  position: relative;
  min-width: 0;
  height: 100%;
  padding: 28px 22px;
  overflow: visible;

  border: 0;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .05);

  opacity: 0;
  transform: translateY(20px) scale(.98);

  transition:
    opacity .6s ease,
    transform .6s cubic-bezier(.22, 1, .36, 1),
    box-shadow .25s ease;
}

.cook-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cook-card.is-visible:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .10);
}

.cook-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--ag-primary);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);

  transition:
    transform .25s ease,
    background-color .25s ease;
}

.cook-card:hover .cook-icon {
  background: #262626;
  transform: scale(1.05);
}

.cook-icon i {
  display: block;
  color: #fff;
  line-height: 1;
}

.cook-card h3 {
  margin: 0 0 10px;
  color: #232323;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.04em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.cook-card p {
  margin: 0;
  color: #555;
  font-size: .92rem;
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .cook-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .cook-cards-outer {
    width: calc(100% + 24px);
    margin: -12px;
    padding: 12px;
  }

  .cook-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cook-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
    padding: 22px 18px;
  }

  .cook-icon {
    grid-row: 1 / span 2;
    width: 58px;
    height: 58px;
    margin-bottom: 0;
    font-size: 26px;
  }

  .cook-card h3 {
    margin-bottom: 6px;
    font-size: 1rem;
  }

  .cook-card p {
    font-size: .88rem;
  }

  .cook-card.is-visible:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cook-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cook-icon {
    transition: none;
  }

  .cook-card:hover,
  .cook-card:hover .cook-icon {
    transform: none;
  }
}