/* ============================================================
   partnHR — main.css
   Design system: Professional Legal / HR
   Fonts: Inter (all weights)
   Palette: Navy #1B2E4B · Gold #C8801A · Cream #FAFAF7
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400&display=swap');

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --navy:          #1B2E4B;
  --navy-deep:     #152340;
  --navy-mid:      #2C4A72;
  --navy-light:    #3A5A8A;
  --gold:          #C8801A;
  --gold-light:    #DC9A3A;
  --gold-pale:     #FDF4E3;
  --gold-border:   rgba(200,128,26,0.2);
  --gold-border-h: rgba(200,128,26,0.45);
  --cream:         #FAFAF7;
  --cream-dark:    #F2EFE8;
  --cream-deeper:  #E8E2D8;
  --border:        #E4DDD0;
  --border-dark:   #D4C9B8;
  --text:          #1B2E4B;
  --text-mid:      #4A5568;
  --text-light:    #8A96A3;
  --white:         #FFFFFF;
  --shadow-sm:     0 1px 4px rgba(27,46,75,0.07);
  --shadow:        0 4px 16px rgba(27,46,75,0.1);
  --shadow-lg:     0 12px 40px rgba(27,46,75,0.14);
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     16px;
  --nav-h:         68px;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── NAV ────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(250,250,247,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-partn {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1;
}
.nav-logo-hr {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.04em;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.18s;
  letter-spacing: -0.01em;
}
.nav-links a:hover { background: var(--cream-dark); color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  transition: background 0.18s !important;
}
.nav-cta:hover { background: var(--navy-mid) !important; }

/* ── HAMBURGER ──────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.25s ease;
  pointer-events: none;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── PAGE HERO (dark, inner pages) ─────────────────────────── */
.page-hero {
  background: var(--navy-deep);
  padding: calc(var(--nav-h) + 64px) 48px 64px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.page-hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.page-hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 400; }
.page-hero p {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  line-height: 1.72;
}

/* ── SECTION TITLES ─────────────────────────────────────────── */
.section-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.section-title em { font-style: italic; color: var(--gold); font-weight: 400; }
.section-sub {
  font-size: 0.97rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.72;
  max-width: 520px;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.87rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(27,46,75,0.2);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27,46,75,0.25);
}
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  font-size: 0.87rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1.5px solid var(--border-dark);
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--navy); background: var(--white); }
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.87rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(200,128,26,0.28);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,128,26,0.35);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.btn-ghost:hover { gap: 10px; }

/* ── TOOL CARDS ─────────────────────────────────────────────── */
.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  border-radius: var(--radius) var(--radius) 0 0;
}
.tool-card:hover {
  border-color: var(--gold-border-h);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.tool-card:hover::before { transform: scaleX(1); }
.tool-card-featured { border-color: var(--gold-border); }

.tool-icon {
  width: 48px; height: 48px;
  background: var(--gold-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  border: 1px solid var(--gold-border);
  flex-shrink: 0;
}
.tool-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid var(--gold-border);
  margin-bottom: 10px;
}
.badge-online  { color: var(--navy); background: rgba(27,46,75,0.06); border-color: rgba(27,46,75,0.15); }
.badge-offline { color: var(--text-light); background: var(--cream-dark); border-color: var(--border); }
.badge-new     { color: var(--gold); background: var(--gold-pale); border-color: var(--gold-border); }
.badge-soon    { color: var(--text-light); background: var(--cream-dark); border-color: var(--border); }

.tool-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.tool-desc {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.68;
  font-weight: 300;
  margin-bottom: 16px;
}
.tool-desc-note {
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 14px;
}
.tool-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.tool-card:hover .tool-link { gap: 10px; }
.tool-btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.18s;
  border: none;
  cursor: pointer;
}
.tool-btn:hover { background: var(--navy-mid); }
.tool-btn.disabled {
  background: var(--cream-deeper);
  color: var(--text-light);
  cursor: not-allowed;
  pointer-events: none;
}

/* ── PERSONA TAGS ───────────────────────────────────────────── */
.persona-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ptag {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.ptag-hr       { background: #EEF2FF; color: #3730A3; }
.ptag-emp      { background: #F0FDF4; color: #15803D; }
.ptag-employer { background: var(--gold-pale); color: var(--gold); }
.ptag-legal    { background: #FDF4FF; color: #7E22CE; }

/* ── PERSONA FILTER BAR ─────────────────────────────────────── */
.persona-bar {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 0 48px;
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  box-shadow: 0 2px 8px rgba(27,46,75,0.04);
}
.persona-bar-inner { display: flex; align-items: stretch; }
.persona-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 0 20px 0 0;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
  margin-right: 4px;
}
.persona-btn {
  padding: 16px 18px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.persona-btn.active { color: var(--navy); border-bottom-color: var(--gold); font-weight: 600; }
.persona-btn:hover:not(.active) { color: var(--navy); background: var(--cream); }
.persona-count {
  font-size: 0.6rem;
  font-weight: 600;
  background: var(--cream-dark);
  color: var(--text-light);
  padding: 1px 7px;
  border-radius: 100px;
}
.persona-btn.active .persona-count { background: var(--gold-pale); color: var(--gold); }

/* ── PRIVACY BAR ────────────────────────────────────────────── */
.privacy-bar {
  background: var(--gold-pale);
  border-bottom: 1px solid var(--gold-border);
  padding: 14px 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.privacy-bar-text {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.privacy-bar-text strong { color: var(--navy); font-weight: 600; }

/* ── POST CARDS (blog index) ────────────────────────────────── */
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.post-card:hover {
  border-color: var(--gold-border-h);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.post-card-img {
  height: 96px;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-cat {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}
h3.post-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.post-excerpt {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 14px;
  flex: 1;
}
.post-meta {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  text-transform: uppercase;
}
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border-dark); flex-shrink: 0; }

/* ── FILTER BAR ─────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.filter-btn {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border-dark);
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.18s;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ── HIDDEN STATE ───────────────────────────────────────────── */
.tool-card[data-hidden="true"] { display: none; }
.tools-section[data-hidden="true"] { display: none; }
.persona-empty { display: none; text-align: center; padding: 64px 24px; }
.persona-empty.show { display: block; }
.persona-empty p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.7; }

/* ── NEWSLETTER ─────────────────────────────────────────────── */
.newsletter-section {
  background: var(--navy);
  padding: 72px 48px;
}
.newsletter-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.newsletter-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}
.newsletter-desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.72;
  font-weight: 300;
}
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.nl-input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 13px 18px;
  outline: none;
  transition: border-color 0.2s;
}
.nl-input::placeholder { color: rgba(255,255,255,0.28); }
.nl-input:focus { border-color: var(--gold-light); }
.nl-btn {
  background: var(--gold);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 13px 28px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(200,128,26,0.3);
}
.nl-btn:hover { background: var(--gold-light); transform: translateY(-1px); }
.nl-note { font-size: 0.7rem; color: rgba(255,255,255,0.28); font-style: italic; }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--navy-deep);
  padding: 56px 48px 36px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.footer-logo {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
  line-height: 1;
}
.footer-logo span:first-child { color: var(--white); }
.footer-logo span:last-child  { color: var(--gold-light); }
.footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.3); line-height: 1.65; font-weight: 300; max-width: 240px; }
.footer-col-title {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 14px;
}
.footer-link {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  margin-bottom: 8px;
  font-weight: 300;
  transition: color 0.18s;
  letter-spacing: -0.01em;
}
.footer-link:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.2); letter-spacing: 0.02em; }
.footer-disclaimer { font-size: 0.68rem; color: rgba(255,255,255,0.14); font-style: italic; max-width: 400px; text-align: right; line-height: 1.5; }

/* ── UTILITIES ──────────────────────────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.max-w { max-width: 1280px; margin: 0 auto; }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp 0.5s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-hamburger { display: flex !important; }
  .nav-links {
    display: none !important;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px 28px;
    gap: 0;
    border-bottom: 2px solid var(--navy);
    box-shadow: 0 8px 32px rgba(27,46,75,0.15);
    z-index: 9999;
  }
  .nav-links.open { display: flex !important; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 13px 4px; font-size: 0.9rem; color: var(--navy); border-radius: 0; }
  .nav-links a:hover { background: transparent; color: var(--gold); }
  .nav-cta { margin-top: 8px; text-align: center; display: block !important; border-radius: var(--radius-sm) !important; }

  .page-hero { padding: calc(var(--nav-h) + 36px) 24px 48px; }
  .page-hero h1 { font-size: 2rem; }

  .persona-bar { padding: 0 24px; overflow-x: auto; }
  .persona-label { display: none; }
  .privacy-bar { padding: 12px 24px; }

  footer { padding: 48px 24px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 32px; padding-bottom: 32px; }
  .newsletter-section { padding: 56px 24px; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}

@media print {
  .persona-bar, .privacy-bar, nav, footer { display: none !important; }
}
