/* SoftGrid — custom styles for animations and small utilities */

/* Glassmorphism header */
.glass {
  background-color: rgba(248, 250, 252, 0.75);
  backdrop-filter: saturate(180%) blur(14px);
}

/* Form inputs */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #E2E8F0;
  background-color: #F8FAFC;
  color: #1E293B;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.form-input::placeholder { color: #94A3B8; }
.form-input:focus {
  outline: none;
  border-color: #0EA5E9;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

/* Logo marquee */
.marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: inline-flex;
  gap: 4rem;
  white-space: nowrap;
  animation: scroll 32s linear infinite;
  padding-right: 4rem;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Service card hover/touch: yellow border + selected marker */
#services article {
  position: relative;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
#services article:hover,
#services article:focus-within,
#services article:active {
  border-color: #EAB308;
  box-shadow: 0 10px 30px -12px rgba(234, 179, 8, 0.35);
}
#services article::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: #EAB308 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/16px 16px no-repeat;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
#services article:hover::after,
#services article:focus-within::after,
#services article:active::after {
  opacity: 1;
  transform: scale(1);
}
.logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  color: #EAB308;
  flex-shrink: 0;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Cookie banner visible state */
.cookie-show {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* Smooth scroll */
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
section[id] { scroll-margin-top: 6rem; }

/* Selection */
::selection { background-color: #0EA5E9; color: white; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Visible focus ring for keyboard users */
:focus-visible {
  outline: 2px solid #0EA5E9;
  outline-offset: 3px;
  border-radius: 4px;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Global compact spacing: reduce padding & gaps site-wide ===== */
section[class*="py-28"],
section[class*="py-24"],
section[class*="py-20"] { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
section[class*="py-16"] { padding-top: 2rem !important; padding-bottom: 2rem !important; }
section[class*="py-12"] { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

[class*="mt-16"] { margin-top: 1.5rem !important; }
[class*="mt-12"] { margin-top: 1.25rem !important; }
[class*="mt-10"] { margin-top: 1rem !important; }

[class*="gap-12"] { gap: 1.25rem !important; }
[class*="gap-8"]  { gap: 1rem !important; }
[class*="gap-6"]  { gap: 0.75rem !important; }
[class*="gap-4"]  { gap: 0.5rem !important; }

[class*="p-8"]  { padding: 1.25rem !important; }
[class*="p-7"]  { padding: 1.1rem !important; }
