/* Template: panel-cards — contained glass image panel on the left with a
   column of numbered frosted glass cards on the right
   (see js/templates/panel-cards.js). */

.panel-cards {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  padding: clamp(72px, 12vh, 120px) 0;
}

.panel-cards__inner {
  display: flex;
  align-items: stretch;
  gap: clamp(28px, 4vw, 56px);
  width: 100%;
}

/* Frosted glass mat framing the contained image panel. */
.panel-cards__figure {
  position: relative;
  flex: 0 0 36%;
  width: 36%;
  padding: clamp(10px, 1.2vw, 16px);
  background: color-mix(in srgb, var(--color-surface) 38%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent);
  border-radius: calc(var(--radius-md) + 6px);
  box-shadow: 0 28px 70px color-mix(in srgb, var(--color-bg) 60%, transparent);
}

/* Soft top highlight — a light "reflection" line across the glass. */
.panel-cards__figure::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--color-text-primary) 24%, transparent),
    transparent
  );
}

.panel-cards__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.panel-cards__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.panel-cards__title {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.panel-cards__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: clamp(14px, 2.2vh, 20px);
  background: var(--color-accent);
  opacity: 0.85;
}

.panel-cards__items {
  margin-top: clamp(22px, 3.5vh, 36px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.2vh, 20px);
}

.panel-cards__card {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4vh, 12px);
  padding: clamp(18px, 2.4vw, 26px);
  background: color-mix(in srgb, var(--color-surface) 45%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.panel-cards__card:hover {
  border-color: color-mix(in srgb, var(--color-accent) 45%, transparent);
  transform: translateX(4px);
}

/* Number and title share one baseline row to save vertical space. */
.panel-cards__card-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.panel-cards__card-number {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--color-accent);
}

.panel-cards__card-title {
  font-size: clamp(15px, 1.8vw, 18px);
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: var(--color-text-primary);
}

.panel-cards__card-text {
  font-size: clamp(13px, 1.5vw, 14.5px);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

@media (max-width: 767px) {
  .panel-cards__inner {
    flex-direction: column;
  }

  .panel-cards__figure {
    flex: 0 0 auto;
    width: 100%;
    height: clamp(220px, 30vh, 300px);
  }
}
