/* ============================================
   NuomonėsFormuotojai – logo (mark + wordmark)
   - Mark: gradient tile, speech bubble ("nuomonė")
     with a rising trend line ("formuoja").
   - Wordmark: "Nuomonės" solid + "Formuotojai"
     gradient, always on its own second line.
   ============================================ */

.brand-logo {
  text-decoration: none;
  border-radius: 0.75rem;
}

.brand-mark {
  flex: none;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(124, 58, 237, 0.28));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-mark-line {
  stroke-dasharray: 24;
  stroke-dashoffset: 0;
}

.brand-logo:hover .brand-mark,
.brand-logo:focus-visible .brand-mark {
  transform: rotate(-6deg) scale(1.06);
}

.brand-logo:hover .brand-mark-line,
.brand-logo:focus-visible .brand-mark-line {
  animation: brand-line-draw 0.7s ease-out;
}

.brand-logo:hover .brand-mark-dot,
.brand-logo:focus-visible .brand-mark-dot {
  animation: brand-dot-pop 0.7s ease-out;
  transform-origin: 27.4px 14.2px;
}

@keyframes brand-line-draw {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

@keyframes brand-dot-pop {
  0%, 55% { transform: scale(0); }
  80% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ---------- Wordmark ---------- */

.brand-word {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.brand-word-b {
  background-image: linear-gradient(90deg, #6d28d9 0%, #c026d3 60%, #db2777 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #6d28d9;
}

html.dark .brand-word-b {
  background-image: linear-gradient(90deg, #a78bfa 0%, #e879f9 60%, #fbbf24 100%);
  color: #c4b5fd;
}

@media (min-width: 640px) {
  .brand-word {
    font-size: 1.05rem;
  }
}

.brand-logo-footer .brand-word {
  font-size: 1.1rem;
}

/* ---------- Accessibility modes ---------- */

@media (prefers-reduced-motion: reduce) {
  .brand-mark { transition: none; }
  .brand-logo:hover .brand-mark,
  .brand-logo:focus-visible .brand-mark { transform: none; }
  .brand-logo:hover .brand-mark-line,
  .brand-logo:hover .brand-mark-dot,
  .brand-logo:focus-visible .brand-mark-line,
  .brand-logo:focus-visible .brand-mark-dot { animation: none; }
}

@media (forced-colors: active) {
  .brand-mark { filter: none; }
  .brand-word-b {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: LinkText;
  }
}

@media print {
  .brand-mark { filter: none; }
  .brand-word-b {
    background: none;
    -webkit-text-fill-color: #000;
    color: #000;
  }
}
