/* Saturn Liquids theme styles
   Layout, color and copy are preserved from the original design (inline styles
   in the templates). This file only adds: base resets, small interactive/animation
   styles that were previously scoped per-page, and responsive breakpoints that
   the original desktop-only prototype did not include. Media-query rules use
   !important because they must win over the design's inline styles without
   touching those inline styles themselves. */

html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: #f7f9fb;
  font-family: 'Hanken Grotesk', sans-serif;
}

a {
  color: #001b3d;
}
a:hover {
  color: #0062a1;
}

img {
  max-width: 100%;
}

button {
  font-family: 'Hanken Grotesk', sans-serif;
}

/* Skip link (accessibility addition; hidden until focused) */
.sl-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: #001b3d;
  color: #ffffff;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}
.sl-skip-link:focus {
  left: 0;
}

/* Contact form input focus + spinner (moved from page-level <style> blocks) */
.sat-input:focus {
  outline: none;
  border-color: #001b3d !important;
  box-shadow: 0 0 0 1px #001b3d;
}

@keyframes sat-spin {
  to { transform: rotate(360deg); }
}
.sat-spinner {
  display: inline-block;
  animation: sat-spin 0.8s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: 0; }
}
.sat-graph-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dash 2.5s ease-in-out forwards;
}

/* Honeypot field (spam trap, invisible to real visitors) */
.sl-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Scroll-reveal (JS toggles .is-visible via IntersectionObserver) */
.sl-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.sl-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .sl-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Toast notification */
.sl-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #001b3d;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.sl-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Header mobile nav */
.sl-nav-toggle {
  display: none;
}
.sl-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #001b3d;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.sl-mobile-menu {
  display: none;
}
.sl-mobile-menu.is-open {
  display: flex;
}
.sl-header.is-open .sl-bar-top {
  transform: translateY(7px) rotate(45deg);
}
.sl-header.is-open .sl-bar-mid {
  opacity: 0;
}
.sl-header.is-open .sl-bar-bot {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1079px) {
  .sl-nav-desktop {
    display: none !important;
  }
  .sl-cta-desktop {
    display: none !important;
  }
  .sl-nav-toggle {
    display: flex !important;
  }
}

/* Responsive grid / layout overrides.
   Classes are added alongside the original inline styles purely so the
   design collapses gracefully below desktop widths. */
@media (max-width: 960px) {
  .sl-grid-3,
  .sl-grid-2,
  .sl-footer-grid,
  .sl-contact-grid {
    grid-template-columns: 1fr !important;
  }

  .sl-grid-12 > * {
    grid-column: span 12 !important;
  }

  .sl-hero {
    height: auto !important;
    min-height: 0 !important;
    padding: 64px 24px !important;
  }
  .sl-hero-inner {
    padding: 0 !important;
  }
  .sl-hero h1 {
    font-size: 32px !important;
    line-height: 1.25 !important;
  }
  .sl-hero-badge {
    position: static !important;
    margin: 24px 0 0 !important;
    padding: 0 24px 24px !important;
  }

  .sl-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  h2.sl-h2 {
    font-size: 28px !important;
  }

  .sl-split {
    align-items: stretch !important;
  }
}

@media (max-width: 640px) {
  .sl-cta-row,
  .sl-actions-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .sl-cta-row > *,
  .sl-actions-row > * {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

.sl-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
