/* ==========================================================
   GensHR — Shared Stylesheet v1.0
   All pages pull from this file. Page-specific styles
   live in each page's own <style> block.
   Reference: genshr-brand-guide.html v2.1
   Sister brand to Gensteq. No "by gensteq" endorser.
========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0F2444;
  --sage:       #2D7560;
  --sage-light: #7BBDA9;
  --sage-deep:  #1F5D52;
  --sage-soft:  #E4EFEA;
  --sun:        #F2B441;
  --steel:      #4A5C72;
  --offblack:   #0D1117;
  --white:      #FFFFFF;
  --linen:      #F5F1EA;
  --stone:      #E6E1D7;

  --font-display: 'Space Grotesk', 'Arial Black', sans-serif;
  --font-body:    'Inter', 'Arial', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--offblack);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================
   ACCESSIBILITY
========================================================== */
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 9999;
  background: var(--navy); color: var(--white); padding: 12px 20px;
  border-radius: 6px; font-family: var(--font-display); font-weight: 600;
  font-size: 14px; text-decoration: none;
}
.skip-link:focus { left: 16px; outline: 3px solid var(--sage-light); outline-offset: 2px; }

:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible,
.bilingual :focus-visible,
.closing-cta :focus-visible,
.footer :focus-visible,
.values :focus-visible { outline-color: var(--sage-light); }
.btn:focus-visible { outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ==========================================================
   LAYOUT
========================================================== */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ==========================================================
   NAVIGATION
========================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--stone);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; gap: 24px;
}
.nav-logo svg { display: block; height: 36px; width: auto; }
.nav-links {
  display: flex; gap: 28px; list-style: none; margin-left: 24px;
}
.nav-links a {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--steel); text-decoration: none; transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-spacer { flex: 1; }

.lang-toggle {
  display: flex; gap: 0; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 1px; border: 1px solid var(--stone); border-radius: 4px; overflow: hidden;
}
.lang-toggle a {
  padding: 12px 14px; color: var(--steel); text-decoration: none;
  transition: background 0.15s, color 0.15s; min-height: 44px; display: flex; align-items: center;
}
.lang-toggle a.active { background: var(--navy); color: var(--white); }
.lang-toggle a:not(.active):hover { background: var(--linen); }

/* Mobile hamburger */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--navy); margin-left: auto;
}
.nav-toggle svg { display: block; width: 24px; height: 24px; }

/* ==========================================================
   BUTTONS
========================================================== */
.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: 14px; padding: 12px 22px; border-radius: 6px; text-decoration: none;
  transition: background 0.15s, transform 0.1s; border: none; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
}
.btn-primary { background: var(--sage); color: var(--white); }
.btn-primary:hover { background: var(--sage-deep); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-ghost-dark { background: transparent; color: var(--navy); border: 1px solid var(--stone); }
.btn-ghost-dark:hover { border-color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--offblack); }

/* ==========================================================
   HERO (shared across all pages)
========================================================== */
.hero {
  background: var(--navy);
  padding: 96px 0 80px;
  border-bottom: 4px solid var(--sage);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -100px; right: -120px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(45,117,96,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--sage-light); margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display); font-size: 60px; font-weight: 700;
  color: var(--white); line-height: 1.05; letter-spacing: -1px;
  margin-bottom: 18px; max-width: 820px;
}
.hero h1 .accent { color: var(--sage-light); display: block; }
.hero-sub {
  font-family: var(--font-body); font-size: 19px;
  color: rgba(255,255,255,0.78); max-width: 600px; line-height: 1.55;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

/* ==========================================================
   SHARED SECTION HEADER
========================================================== */
.section-header { margin-bottom: 48px; max-width: 720px; }
.section-header .label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--sage); margin-bottom: 14px;
}
.section-header h2 {
  font-family: var(--font-display); font-size: 38px; font-weight: 700;
  color: var(--navy); line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 14px;
}
.section-header p {
  font-family: var(--font-body); font-size: 17px; color: var(--steel); line-height: 1.6;
}

/* ==========================================================
   CLOSING CTA (shared)
========================================================== */
.closing-cta {
  background: var(--navy); padding: 88px 0; border-bottom: 4px solid var(--sage);
  color: var(--white); text-align: center;
}
.closing-cta .label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--sage-light); margin-bottom: 20px;
}
.closing-cta h2 {
  font-family: var(--font-display); font-size: 48px; font-weight: 700;
  line-height: 1.05; letter-spacing: -1px; margin-bottom: 18px;
}
.closing-cta p {
  font-family: var(--font-body); font-size: 18px; color: rgba(255,255,255,0.78);
  line-height: 1.55; max-width: 620px; margin: 0 auto 32px;
}
.closing-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================
   FOOTER (shared)
========================================================== */
.footer { background: var(--offblack); padding: 64px 0 32px; color: rgba(255,255,255,0.6); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-logo svg { height: 40px; width: auto; margin-bottom: 16px; }
.footer-tagline { font-family: var(--font-body); font-size: 14px; line-height: 1.55; max-width: 280px; }
.footer h3 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.85); margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer ul li {
  font-family: var(--font-body); font-size: 14px;
  color: rgba(255,255,255,0.6); margin-bottom: 10px;
}
.footer ul li a { color: inherit; text-decoration: none; transition: color 0.15s; }
.footer ul li a:hover { color: var(--sage-light); }
.footer ul li a:focus-visible { color: var(--sage-light); outline: 2px solid var(--sage-light); outline-offset: 2px; }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-family: var(--font-mono);
  font-size: 12px; color: rgba(255,255,255,0.6);
}

/* ==========================================================
   SISTER BRAND BLOCK (used on homepage + about)
========================================================== */
.sister-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
}
.sister-grid .label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--sage); margin-bottom: 14px;
}
.sister-grid h3 {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  color: var(--navy); margin-bottom: 14px; letter-spacing: -0.5px;
}
.sister-grid p {
  font-family: var(--font-body); font-size: 17px; color: var(--steel);
  line-height: 1.65; margin-bottom: 18px;
}
.sister-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--navy); text-decoration: none;
  border-bottom: 2px solid var(--sage); padding-bottom: 2px; transition: color 0.15s;
}
.sister-link:hover { color: var(--sage-deep); }
.sister-mark {
  background: var(--white); border-radius: 10px; padding: 32px;
  border: 1px solid var(--stone); text-align: center;
}
.sister-mark .mark-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--steel); margin-bottom: 16px;
}
.sister-mark .mark-desc {
  font-family: var(--font-body); font-size: 13px; color: var(--steel);
  line-height: 1.55; margin-top: 16px;
}

/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sister-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 44px; }
  .closing-cta h2 { font-size: 36px; }
  .section-header h2 { font-size: 30px; }
}
@media (max-width: 640px) {
  .nav-inner { flex-wrap: wrap; gap: 12px; padding: 12px 20px; }
  .nav-links { display: none; flex-direction: column; width: 100%; gap: 0; margin-left: 0; }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--stone); }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .closing-cta h2 { font-size: 28px; }
  .section-header h2 { font-size: 26px; }
  .page-wrap { padding: 0 20px; }
  .btn { font-size: 13px; padding: 11px 18px; }
}
