/* Terviq visual and accessibility overrides.
   Keep this file small and intentional: the exported HTML remains the source page. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Preserve the original navy/blue theme while improving readability. */
  --background: 216 60% 10%;
  --foreground: 0 0% 96%;
  --card: 218 58% 14%;
  --card-foreground: 0 0% 96%;
  --primary: 216 100% 50%;
  --primary-foreground: 0 0% 100%;
  --muted: 218 58% 14%;
  --muted-foreground: 216 35% 72%;
  --border: 214 52% 25%;
  --ring: 216 100% 65%;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { font-size: 16px; line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.025em; line-height: 1.15; }
p { max-width: 68ch; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible {
  outline: 3px solid hsl(var(--ring));
  outline-offset: 3px;
}
header { box-shadow: 0 1px 0 hsl(var(--border) / 0.8); }
header a, header button { min-height: 44px; }
button { cursor: pointer; }
img[alt="Terviq Solutions"] { min-height: 28px; }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.terviq-home-link {
  position: absolute;
  top: 6rem;
  left: max(1.5rem, calc((100vw - 80rem) / 2));
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(8px);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}
.terviq-home-link:hover {
  color: hsl(var(--foreground));
  border-color: hsl(var(--primary));
  background: hsl(var(--card));
}
.terviq-home-link svg { width: 1rem; height: 1rem; }
.terviq-hero-visual {
  position: absolute;
  top: 7rem;
  right: max(1.5rem, calc((100vw - 80rem) / 2));
  width: min(32vw, 26rem);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  opacity: 0.72;
  box-shadow: 0 1.5rem 4rem hsl(216 100% 4% / 0.4);
}
.terviq-hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.terviq-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, hsl(var(--background) / 0.9), transparent 70%);
}
@media (max-width: 900px) {
  .terviq-hero-visual { position: relative; top: auto; right: auto; width: 100%; max-width: 32rem; margin: 2rem auto 0; opacity: 0.55; }
  .terviq-home-link { position: relative; top: auto; left: auto; margin: 5.5rem 1.5rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
