/* ── TeamAllianz Kitefoil — Custom Styles ───────────────────────────────── */

/* Font-family shorthand for headings */
.font-display {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

a[class*="bg-"]:not([class*="rounded-"]),
a[class*="border"]:not([class*="rounded-"]),
button[class*="bg-"]:not([class*="rounded-"]),
button[class*="border"]:not([class*="rounded-"]),
input:not([class*="rounded-"]),
select:not([class*="rounded-"]),
textarea:not([class*="rounded-"]),
article[class*="bg-"][class*="border"]:not([class*="rounded-"]),
div[class*="bg-"][class*="border"]:not([class*="rounded-"]),
div[class*="aspect-"][class*="overflow-hidden"]:not([class*="rounded-"]),
figure[class*="aspect-"][class*="overflow-hidden"]:not([class*="rounded-"]) {
  border-radius: 1.25rem !important;
}

span[class*="bg-"]:not([class*="rounded-"]) {
  border-radius: 0.625rem !important;
}

div[class*="bg-"][class*="w-"][class*="h-"]:not([class*="rounded-"]) {
  border-radius: 1rem !important;
}

div[class*="bg-"][class*="p-"]:not([class*="rounded-"]) {
  border-radius: 1.25rem !important;
}

img[class*="object-cover"]:not([class*="rounded-"]) {
  border-radius: inherit;
}

.rounded-sm,
.rounded-md {
  border-radius: 1rem !important;
}

/* ── Partner logo marquee animation ──────────────────────────────────────── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 28s linear infinite;
  will-change: transform;
}

/* ── Pulse animation for live dots ───────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ── Bounce for scroll indicator ─────────────────────────────────────────── */
@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50%      { transform: translateY(0);    animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}
.animate-bounce {
  animation: bounce 1s infinite;
}

/* ── Spin for loading spinner ────────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 1s linear infinite;
}

/* ── Smooth header scroll transition ─────────────────────────────────────── */
header.scrolled {
  background-color: oklch(0.08 0 0 / 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
  box-shadow: 0 18px 45px rgb(0 0 0 / 0.18);
}

/* ── Adaptive logo treatment ─────────────────────────────────────────────── */
.site-logo {
  position: relative;
  display: block;
  width: 170px;
  height: 58px;
}
.site-logo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  transition: opacity 420ms ease, filter 420ms ease, transform 420ms ease;
}
.site-logo__img--dark {
  opacity: 0;
  filter: brightness(0) saturate(100%);
}
.site-logo__img--light {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 4px 18px rgb(0 0 0 / 0.35));
}
header.logo-on-light .site-logo__img--dark {
  opacity: 1;
}
header.logo-on-light .site-logo__img--light {
  opacity: 0;
}
header.logo-on-dark .site-logo__img--dark {
  opacity: 0;
}
header.logo-on-dark .site-logo__img--light,
header.scrolled .site-logo__img--light {
  opacity: 1;
}
header.scrolled .site-logo__img--dark {
  opacity: 0;
}
.site-logo:hover .site-logo__img {
  transform: translateY(-1px);
}
@media (min-width: 640px) {
  .site-logo {
    width: 172px;
    height: 64px;
  }
}

/* ── Select element custom arrow ─────────────────────────────────────────── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

/* ── Lucide icon default sizing ──────────────────────────────────────────── */
[data-lucide] {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: inline-block;
  vertical-align: middle;
}
