/* ============================================================
   RUTTENS+ V6 CHROME — scoped header/footer stylesheet
   Added 2026-08-23 to unify the old-generation pages
   (free-tools, insight articles, case pages, track-record)
   with the v6 header/nav/footer used on index.html.

   Every rule is scoped under .site-header / .site-footer so it
   cannot bleed into body content, and every rule explicitly
   resets the properties the legacy css/style.css already
   defines for the reused class names (.nav, .nav-links, .logo,
   .btn, .btn-primary, .footer-grid, .footer-bottom) so nothing
   leaks through from the old stylesheet regardless of load order.
   Colors are hardcoded (not CSS custom properties) to avoid any
   collision with css/style.css's differently-valued --navy/--sky
   variables of the same name.
   ============================================================ */

/* ---------- HEADER ---------- */

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #0a0a0a;
  background: #38b6ff;
  border-radius: 8px;
  font-weight: 700;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(229, 233, 238, 0.85);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  margin: 0;
  padding: 0;
}

.site-header .availability {
  margin: 0;
  padding: 7px 20px;
  color: #ffffff;
  background: #0f1f3d;
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 0.72rem;
  text-align: center;
  letter-spacing: 0.04em;
}
.site-header .availability strong { color: #38b6ff; font-weight: 700; }

.site-header .nav {
  position: static;
  top: auto;
  z-index: auto;
  display: flex;
  min-height: 76px;
  height: auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(calc(100% - 40px), 1180px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header .logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  margin: 0;
  padding: 0;
}
.site-header .logo img { width: 150px; height: auto; display: block; }

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header .nav-links li { margin: 0; padding: 0; border: 0; list-style: none; }
.site-header .nav-links a {
  position: relative;
  display: inline-block;
  padding: 0;
  color: #0f1f3d;
  background: transparent;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 0;
}
.site-header .nav-links a:hover { color: #0f1f3d; text-decoration: none; }
.site-header .nav-links a:not(.btn)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: #38b6ff;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}
.site-header .nav-links a:hover::after,
.site-header .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.site-header .menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 9px;
  border: 1px solid #e5e9ee;
  background: #ffffff;
  border-radius: 9px;
  cursor: pointer;
}
.site-header .menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #0f1f3d;
}

.site-header .btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.site-header .btn:hover { transform: translateY(-2px); text-decoration: none; }
.site-header .btn-primary { color: #0a0a0a; background: #38b6ff; }
.site-header .btn-primary:hover { background: #64c6ff; color: #0a0a0a; }

@media (max-width: 980px) {
  .site-header .nav > .btn { display: none; }
  .site-header .menu-toggle { display: block; }
  .site-header .nav { position: relative; }
  .site-header .nav-links {
    position: absolute;
    z-index: 130;
    top: 100%;
    right: 0;
    left: 0;
    bottom: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 22px 26px;
    background: #0f1f3d;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  }
  body.menu-open .site-header .nav-links { display: flex; }
  .site-header .nav-links li { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .site-header .nav-links li:last-child { border-bottom: 0; }
  .site-header .nav-links a {
    display: block;
    padding: 16px 6px;
    color: #ffffff;
    font-size: 1.05rem;
  }
  .site-header .nav-links a:hover { color: #ffffff; }
  .site-header .nav-links a:not(.btn)::after { display: none; }
}

@media (max-width: 760px) {
  .site-header .availability { padding-inline: 12px; font-size: 0.64rem; }
  .site-header .nav { min-height: 68px; }
  .site-header .logo img { width: 132px; }
}

/* ---------- FOOTER ---------- */

.site-footer {
  margin: 0;
  padding: 62px 0 30px;
  color: #aebdc8;
  background: #0a0a0a;
}
.site-footer .container {
  width: min(calc(100% - 40px), 1180px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
}
.site-footer a { color: #aebdc8; text-decoration: none; }
.site-footer a:hover { color: #38b6ff; text-decoration: none; }

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.72fr 0.72fr 0.72fr;
  gap: 40px;
  margin-bottom: 0;
}
.site-footer .footer-brand { grid-column: auto; }
.site-footer .footer-logo { width: 175px; height: auto; margin: 0 0 18px; display: block; }
.site-footer .footer-brand p {
  margin: 0;
  color: #aebdc8;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.6;
}

.site-footer .footer-heading {
  margin: 0 0 14px;
  color: #ffffff;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.site-footer .footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer .footer-links li { margin: 8px 0; padding: 0; border: 0; list-style: none; }
.site-footer .footer-links a { font-size: 0.92rem; }
.site-footer .footer-links a:hover { color: #38b6ff; }

.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 45px;
  padding-top: 24px;
  border-top: 1px solid #2a2a2a;
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 0.7rem;
  color: #aebdc8;
}

@media (max-width: 980px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-footer .footer-brand { grid-column: auto; }
  .site-footer .footer-bottom { align-items: flex-start; flex-direction: column; }
}
