/* OVM site-wide design refresh — shared polish layer.
   Loaded after mobile-fixes.css on every page. Conservative element-level
   rules only, so inner pages improve without markup changes. */

:root {
  --ovm-blue: #17aae2;
  --ovm-blue-deep: #0d8ec4;
  --ovm-ink: #0b1826;
  --ovm-body: #3c5169;
  --ovm-hairline: rgba(11, 24, 38, 0.08);
  --ovm-shadow-card: 0 1px 2px rgba(11, 24, 38, 0.05), 0 12px 32px -12px rgba(11, 24, 38, 0.12);
  --ovm-shadow-lifted: 0 2px 4px rgba(11, 24, 38, 0.06), 0 24px 48px -16px rgba(11, 24, 38, 0.18);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(23, 170, 226, 0.22);
  color: inherit;
}

h1, h2, h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* Visible, consistent keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ovm-blue);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Pressed feedback on every button-like element */
a[href^="tel:"]:active,
a[href^="mailto:"]:active,
button:active,
.btn:active {
  transform: translateY(1px) scale(0.99);
}

/* Numbers align in stats and prices */
strong, .stat, [class*="stat"] {
  font-variant-numeric: tabular-nums;
}

/* Header refinement (shared shell) */
#main-header {
  border-bottom: 1px solid var(--ovm-hairline);
}

/* daisyUI's unlayered .btn/.swap styles beat Tailwind's layered lg:hidden,
   leaving the hamburger visible on desktop. Hide it explicitly. */
@media (min-width: 1024px) {
  #main-header label[aria-label="Menu"],
  #mobile-menu {
    display: none !important;
  }
}

#main-header.shadow-md {
  box-shadow: 0 1px 0 rgba(11, 24, 38, 0.04), 0 8px 24px -12px rgba(11, 24, 38, 0.14) !important;
}

/* Active nav link marker, set by shared header script */
#main-header nav a[aria-current="page"] {
  color: var(--ovm-blue) !important;
  background: rgba(23, 170, 226, 0.08);
}

/* daisyUI FAQ accordions: hairline card, calmer title */
.collapse {
  box-shadow: none !important;
  border: 1px solid var(--ovm-hairline) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.collapse:hover {
  border-color: rgba(23, 170, 226, 0.35) !important;
  box-shadow: var(--ovm-shadow-card) !important;
}

.collapse-title {
  letter-spacing: -0.01em;
}

/* Breadcrumbs quieter */
.breadcrumbs {
  letter-spacing: 0.02em;
}

/* Reveal-on-scroll (opt-in via .ovm-reveal, activated by shared script) */
.ovm-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ovm-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ovm-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
