/**
 * mvet.ch — global “2026” polish layer (loads after mvet-theme.css).
 * Only safe properties: motion, focus, scroll, colour hints, light shadows.
 * Does not change Tilda widths/positions.
 */

/* ------------------------------------------------------------------------- *
 * Design tokens (used below + available to future components)
 * ------------------------------------------------------------------------- */
:root {
  --mvet-modern-ink: #0f2a3a;
  --mvet-modern-ink-soft: #3d5160;
  --mvet-modern-teal: #0a9ca3;
  --mvet-modern-teal-glow: rgba(10, 156, 163, 0.35);
  --mvet-modern-orange: #ff4d1f;
  --mvet-modern-page-bg: #f4f7f8;
  --mvet-modern-radius-pill: 999px;
  --mvet-modern-shadow-lift: 0 12px 36px rgba(15, 42, 58, 0.08);
  color-scheme: only light;
}

/* ------------------------------------------------------------------------- *
 * Skip link — first focusable; visible only when keyboard-focused
 * ------------------------------------------------------------------------- */
.mvet-skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200000;
  padding: 0.65rem 1.1rem;
  margin: 8px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #0a9ca3, #067a80);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 20px var(--mvet-modern-teal-glow);
  transform: translateY(-160%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mvet-skip-link:focus {
  outline: none;
}
.mvet-skip-link:focus-visible {
  transform: translateY(0);
  box-shadow: 0 8px 28px var(--mvet-modern-teal-glow);
}

/* Anchor target clears fixed header */
#allrecords {
  scroll-margin-top: 96px;
}

@media (max-width: 980px) {
  #allrecords {
    scroll-margin-top: 72px;
  }
}

/* ------------------------------------------------------------------------- *
 * Page chrome — very light background (Tilda blocks still read as white)
 * ------------------------------------------------------------------------- */
html body.t-body {
  background-color: var(--mvet-modern-page-bg) !important;
}

/* ------------------------------------------------------------------------- *
 * Motion & selection
 * ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

::selection {
  background: rgba(10, 156, 163, 0.22);
  color: var(--mvet-modern-ink);
}

/* ------------------------------------------------------------------------- *
 * Mega-menu rows — calmer hover (colour only)
 * ------------------------------------------------------------------------- */
html body .t978__menu-link {
  transition: color 0.18s ease, opacity 0.18s ease;
}
html body .t978__menu-link:hover {
  opacity: 0.88;
}

/* ------------------------------------------------------------------------- *
 * Popups — slightly softer scrim (backdrop-filter where supported)
 * ------------------------------------------------------------------------- */
.t-popup__container .t-popup__close-wrapper button:hover {
  opacity: 0.92;
}
.t-popup__bg,
.t-popup__bg-active {
  transition: opacity 0.22s ease;
}
@supports (backdrop-filter: blur(4px)) {
  .t-popup__bg-active {
    backdrop-filter: blur(3px);
  }
}

/* ------------------------------------------------------------------------- *
 * Form atoms — clearer focus inside Tilda forms
 * ------------------------------------------------------------------------- */
html body .t-input:focus-visible,
html body .t-select:focus-visible,
html body .t-textarea:focus-visible,
html body .t-radio:focus-visible,
html body .t-checkbox:focus-visible {
  outline: 3px solid rgba(10, 156, 163, 0.45) !important;
  outline-offset: 1px;
}

/* ------------------------------------------------------------------------- *
 * Print — hide floating chrome
 * ------------------------------------------------------------------------- */
@media print {
  .mvet-skip-link,
  #mvet-contact-root,
  #mvet-nav-drawer,
  .t190 {
    display: none !important;
  }
}
