/* Bandeiras — mesmo estilo GCT/Imax (flagcdn + flutter) adaptado à MVB */
@keyframes langFlagFlutter {
  0%, 100% { transform: rotate(-6deg) skewX(-3deg) scale(1); }
  25% { transform: rotate(5deg) skewX(4deg) scale(1.02); }
  50% { transform: rotate(-3deg) skewX(-2deg) scale(1); }
  75% { transform: rotate(7deg) skewX(3deg) scale(1.02); }
}

.lang-flags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.lang-flag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem;
  border: 2px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lang-flag-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  background: rgba(199, 161, 106, 0.12);
}

.lang-flag-btn.active {
  border-color: rgba(199, 161, 106, 0.9);
  box-shadow: 0 0 0 1px rgba(199, 161, 106, 0.35), 0 0 18px rgba(199, 161, 106, 0.2);
  background: rgba(199, 161, 106, 0.1);
}

.lang-flag-btn:not(.active) .lang-flag-fi {
  opacity: 0.55;
  filter: grayscale(0.35);
}

.lang-flag-btn.active .lang-flag-fi,
.lang-flag-btn:hover .lang-flag-fi {
  opacity: 1;
  filter: none;
}

.lang-flag-fi {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.2rem;
  transform-origin: 12% 88%;
  animation: langFlagFlutter 2.4s ease-in-out infinite;
}

.lang-flag-fi--delay-1 { animation-delay: 0.15s; }
.lang-flag-fi--delay-2 { animation-delay: 0.3s; }

.lang-flag-img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.lang-flag-emoji {
  display: none;
  font-size: 1.05rem;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

.lang-flag-fi--fallback .lang-flag-img { display: none; }
.lang-flag-fi--fallback .lang-flag-emoji { display: block; }

.lang-flags--stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
  max-width: min(15.5rem, 92vw);
}

.lang-flag-btn--stacked {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.4rem 0.75rem;
  justify-content: flex-start;
  gap: 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(199, 161, 106, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.lang-flag-btn--stacked.active {
  border-color: rgba(199, 161, 106, 0.7);
  background: rgba(199, 161, 106, 0.12);
}

.lang-flag-lbl {
  font-size: 0.84rem;
  font-weight: 600;
  color: inherit;
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .lang-flag-fi { animation: none; }
}

/* Ícones de contato — elegantes, com brilho suave */
.ico {
  --ico-size: 2.75rem;
  width: var(--ico-size);
  height: var(--ico-size);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
  color: #e8d5a8;
  background:
    radial-gradient(circle at 30% 25%, rgba(232, 213, 168, 0.35), transparent 55%),
    linear-gradient(145deg, rgba(199, 161, 106, 0.22), rgba(31, 155, 138, 0.12));
  border: 1px solid rgba(199, 161, 106, 0.45);
  box-shadow:
    0 0 0 4px rgba(199, 161, 106, 0.06),
    0 8px 22px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.ico::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(232, 213, 168, 0.45), transparent 40%);
  opacity: 0.55;
  animation: icoSpin 6s linear infinite;
  z-index: -1;
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}

.ico svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  filter: drop-shadow(0 0 6px rgba(232, 213, 168, 0.45));
}

.ico--wa { color: #8ef0c0; }
.ico--wa {
  background:
    radial-gradient(circle at 30% 25%, rgba(37, 211, 102, 0.35), transparent 55%),
    linear-gradient(145deg, rgba(37, 211, 102, 0.2), rgba(199, 161, 106, 0.12));
  border-color: rgba(37, 211, 102, 0.45);
}

.ico--phone { color: #e8d5a8; }
.ico--email { color: #9fd9d0; }
.ico--pin { color: #f0c9a0; }

.contact-item:hover .ico,
.contact-card:hover .ico {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 0 0 5px rgba(199, 161, 106, 0.1),
    0 14px 30px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(199, 161, 106, 0.22);
}

@keyframes icoSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ico::after { animation: none; }
}

.contact-item__top,
.contact-card__top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.contact-item__top .contact-item__label,
.contact-card__top .contact-card__label {
  margin: 0;
}

.btn .ico-inline,
.nav__cta .ico-inline,
a .ico-inline {
  width: 1.05rem;
  height: 1.05rem;
  display: inline-block;
  vertical-align: -0.15em;
  margin-right: 0.4rem;
}

.btn--shine .ico-inline,
.btn--gold .ico-inline {
  filter: drop-shadow(0 0 4px rgba(3, 6, 36, 0.2));
}
