/* =========================================================
   resume2jobs.com — Design System
   Palette: Navy (trust) + Teal (momentum) + Slate + Paper white
   Type: Space Grotesk (display) / Source Serif 4 (body) / JetBrains Mono (data)
   ========================================================= */

:root {
  --navy-900: #0A2540;
  --navy-700: #123A63;
  --navy-500: #154572;
  --teal-600: #0FA88F;
  --teal-400: #3EE8D2;
  --slate-500: #5B7083;
  --slate-300: #A9B9C6;
  --paper: #F7F9FB;
  --paper-card: #FFFFFF;
  --line: #E3E9EE;
  --ink: #12202E;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-soft: 0 10px 30px -12px rgba(10, 37, 64, 0.18);
  --shadow-lift: 0 18px 40px -14px rgba(10, 37, 64, 0.28);

  --gradient-navy: linear-gradient(135deg, var(--navy-500), var(--navy-900));
  --gradient-teal: linear-gradient(135deg, var(--teal-400), var(--teal-600));

  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  color: var(--navy-900);
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink); }
.lede { font-size: 1.15rem; color: var(--slate-500); }

a {
  color: var(--teal-600);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--navy-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

/* Inline "Learn more →" style links */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal-600);
  padding: 6px 0;
  min-height: 44px;
  align-items: center;
}
.text-link:hover { color: var(--navy-900); text-decoration: none; }
.text-link::after {
  content: '→';
  transition: transform 0.18s ease;
}
.text-link:hover::after { transform: translateX(4px); }

/* Every anchor target clears the sticky header when jumped to */
[id] { scroll-margin-top: 96px; }

.mono, .stat-number, .eyebrow, .tag {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 0.9em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 88px 0; }
section.tight { padding: 56px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--gradient-teal);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { box-shadow: var(--shadow-lift); }

.btn-outline {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}
.btn-outline:hover { background: var(--navy-900); color: #fff; }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav-logo img { height: 42px; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--navy-900);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--teal-600);
  border-radius: 2px;
  transition: right 0.2s ease;
}
.nav-links a:hover { color: var(--teal-600); text-decoration: none; }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--teal-600); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy-900);
  margin: 0 auto;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Mobile off-canvas menu ---------- */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.5);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-nav-backdrop.is-open { opacity: 1; }
.mobile-nav-backdrop[hidden] { display: none; }

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(84vw, 340px);
  background: #fff;
  z-index: 160;
  padding: 24px 22px calc(24px + env(safe-area-inset-bottom));
  box-shadow: -12px 0 32px rgba(10,37,64,0.18);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-nav-panel.is-open { transform: translateX(0); }
.mobile-nav-panel[hidden] { display: flex; visibility: hidden; pointer-events: none; }
.mobile-nav-panel ul { list-style: none; margin: 44px 0 20px; padding: 0; }
.mobile-nav-panel li { border-bottom: 1px solid var(--line); }
.mobile-nav-panel a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy-900);
  text-decoration: none;
  min-height: 44px;
}
.mobile-nav-panel a svg { color: var(--slate-500); flex-shrink: 0; }
.mobile-nav-panel a.active { color: var(--teal-600); }
.mobile-nav-panel a.active svg { color: var(--teal-600); }
.mobile-nav-footer { margin-top: 18px; text-align: center; font-size: 0.85rem; }

/* ---------- Bottom tab bar (app-style, mobile only) ---------- */
.bottom-tab-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 140;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 8px 6px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: flex-start;
}
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--slate-500);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  min-width: 52px;
  padding: 4px 2px;
  background: none;
  border: none;
  cursor: pointer;
}
.tab-item:hover { text-decoration: none; }
.tab-item.active { color: var(--teal-600); }
.tab-item-cta { margin-top: -22px; color: var(--navy-900); }
.tab-cta-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lift);
  margin-bottom: 2px;
}

@media (max-width: 860px) {
  .bottom-tab-bar { display: flex; }
  body { padding-bottom: 74px; }
}

/* Tighter section spacing + no tap-highlight flash on mobile */
@media (max-width: 640px) {
  section { padding: 52px 0; }
  section.tight { padding: 36px 0; }
  .container { padding: 0 20px; }

  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.55rem; }
  .lede { font-size: 1.05rem; }
  body { font-size: 16px; }

  /* Full-width, thumb-friendly buttons in hero/CTA rows */
  .btn { padding: 15px 26px; }
  section .grid-2 > div > div[style*="display:flex"] .btn { flex: 1; justify-content: center; }
}
* { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.card:hover, .grid-3 .card:hover, .grid-2 .card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gradient-navy);
  color: var(--slate-300);
  padding: 64px 0 28px;
}
.site-footer h4 {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.site-footer a {
  color: var(--slate-300);
  display: inline-block;
  padding: 3px 0;
  min-height: 28px;
}
.site-footer a:hover { color: var(--teal-400); text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 168, 143, 0.1);
  color: var(--teal-600);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
}

::selection { background: var(--teal-400); color: var(--navy-900); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--teal-600);
  outline-offset: 2px;
}

/* ---------- Accessibility / Performance ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* Prevent layout shift: every img gets intrinsic sizing by default */
img { max-width: 100%; height: auto; display: block; }

/* Reserve space for web fonts loading to reduce shift (fallback metrics close to Space Grotesk / Source Serif) */
h1, h2, h3, h4, .display {
  font-synthesis: none;
}
body {
  font-synthesis: none;
}
