/*
  _jtek.css — shared baseline used across the Jtek site.
  Loaded BEFORE per-page inline <style> so page-specific rules can override.
  Keep this file under 5KB. Anything that varies per page belongs inline.
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #FAFAF8;
  color: #1D1D1F;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1, h2, h3 { font-family: 'Plus Jakarta Sans', sans-serif; }

/* ─── NAV (sticky frosted bar) ─── */
.nav-outer {
  position: sticky; top: 14px; z-index: 1000;
  padding: 0 20px;
}
nav {
  max-width: 1080px; margin: 0 auto;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 18px;
  padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.logo-mark {
  width: 30px; height: 30px;
  background: #0057FF; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff;
}
.logo-text {
  font-size: 16px; font-weight: 700;
  color: #1D1D1F; letter-spacing: -0.3px;
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none;
}
.nav-links a {
  color: #3C3C43; text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 6px 13px; border-radius: 10px;
  transition: background .18s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(0,0,0,0.05); color: #1D1D1F;
}
.nav-ctas { display: flex; align-items: center; gap: 6px; }

/* ─── BUTTON UTILITIES (sitewide) ─── */
.btn-ghost {
  font-size: 14px; font-weight: 500; color: #3C3C43;
  text-decoration: none; padding: 7px 14px;
  border-radius: 100px; transition: background .18s;
}
.btn-ghost:hover { background: rgba(0,0,0,0.05); }
.btn-nav-primary {
  font-size: 14px; font-weight: 600; color: #fff;
  text-decoration: none; padding: 8px 17px;
  background: #107A36; border-radius: 100px;
  box-shadow: 0 2px 8px rgba(16,122,54,0.28);
  transition: background .18s, transform .15s;
}
.btn-nav-primary:hover {
  background: #0B5C29; transform: translateY(-1px);
}

/* ─── REVEAL ON SCROLL ─── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .62s cubic-bezier(0.4, 0, 0.2, 1),
              transform .62s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.vis { opacity: 1; transform: none; }

/* ─── Mobile nav hide (sitewide) ─── */
@media (max-width: 640px) {
  .nav-links, .btn-ghost { display: none !important; }
}

/* ─── A11y: skip-to-content link ─── */
/* Visually-hidden until focused. Works in any embedding context (iframe, GHL custom-menu-link, etc.). */
.skip-link {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  color: transparent;
  background: transparent;
}
.skip-link:focus, .skip-link:focus-visible {
  position: fixed !important;
  top: 16px; left: 16px;
  width: auto; height: auto;
  padding: 12px 18px; margin: 0;
  overflow: visible;
  clip: auto;
  background: #1D1D1F; color: white;
  font-weight: 700; font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  z-index: 10000;
  outline: 2px solid #0057FF; outline-offset: 2px;
}

/* ─── A11y: focus-visible style for keyboard users ─── */
:focus-visible { outline: 2px solid #0057FF; outline-offset: 3px; border-radius: 4px; }
button:focus-visible, a:focus-visible { outline: 2px solid #0057FF; outline-offset: 3px; }
