/* ── Language Coverage section ─────────────────────────────── */
.lang-coverage {
  padding: 100px 24px;
  background: var(--bg-tint);
}

.lang-coverage .title {
  text-align: center;
  margin-bottom: 52px;
}

.lang-coverage .title .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #e2a13d;
  margin-bottom: 14px;
}

.lang-coverage .title h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

.lang-coverage .title > p {
  font-size: 16px;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.65;
}

.lang-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 26px;
}

.lang-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 22px;
  background: #ffffff;
  border: 1.5px solid #8a2854;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease), border-color 0.28s var(--ease);
}

.lang-card:hover,
.lang-card:focus-visible {
  transform: translateY(-3px);
  background: #fdf6f9;
  box-shadow: 0 12px 26px rgba(138, 40, 84, 0.16);
}

.lang-card.is-pressed {
  transform: scale(0.96);
  border-color: var(--cyan);
  box-shadow: 0 4px 14px rgba(61, 139, 212, 0.22);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

/* Ripple container — clips to the pill shape without clipping the card's own box-shadow */
.lang-card-ripple-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.lang-card-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 139, 212, 0.32) 0%, rgba(61, 139, 212, 0) 72%);
  transform: scale(0);
  opacity: 1;
  animation: lang-card-ripple-anim 0.6s var(--ease) forwards;
  pointer-events: none;
}

@keyframes lang-card-ripple-anim {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

.lang-card-flag {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tint);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.lang-card.is-pressed .lang-card-flag {
  transform: translateY(-50%) scale(1.14);
  box-shadow: 0 0 0 4px rgba(61, 139, 212, 0.22);
}

.lang-card-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lang-card-flag--icon {
  background: var(--bg-tint);
  color: var(--cyan);
  font-size: 18px;
}

.lang-card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--navy);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-card.is-pressed .lang-card-name {
  opacity: 0;
  transform: translateY(-4px);
}

/* Checkmark that pops in on click, confirming the request before navigating */
.lang-card-check {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cyan);
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lang-card.is-pressed .lang-card-check {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 900px) {
  .lang-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .lang-coverage { padding: 72px 20px; }

  .lang-grid {
    grid-template-columns: 1fr;
  }

  .lang-card {
    height: 60px;
    padding: 0 18px;
  }

  .lang-card-name {
    font-size: 14.5px;
  }
}
