/* ==========================================================================
   AI4NoCo — custom styles
   Tailwind handles 95% of the styling via CDN. This file is for the
   handful of things that are cleaner as hand-written CSS:
   - font smoothing defaults
   - a couple of animation/transition utilities
   - accessibility helpers (focus rings on non-button elements)
   - the print stylesheet
   ========================================================================== */

:root {
  --navy: #0f172a;
  --electric-blue: #3b82f6;
  --electric-blue-hover: #2563eb;
}

/* Smoother font rendering across platforms */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  text-wrap: pretty;
}

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

/* Respect reduced-motion preferences — disable the pulse & transforms for
   visitors who've opted out of animations in their OS. */
@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;
  }
}

/* Make focus rings consistent and visible on keyboard navigation only.
   Tailwind's default focus ring is great for buttons/inputs, but this covers
   anchor tags and custom interactive elements. */
:focus-visible {
  outline: 2px solid var(--electric-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Subtle fade-in for hero sections when the page loads. Uses CSS only —
   no JS required. Kicks in once on first paint. */
@keyframes ai4noco-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section h1,
section > div > h1 {
  animation: ai4noco-fade-up 0.6s ease-out backwards;
}

/* Print: strip nav, CTAs, and backgrounds so the site prints cleanly
   (occasionally useful for proposals or handouts). */
@media print {
  nav,
  footer,
  .no-print {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}
