/* ============================================================
   HR TZ Consulting — Design System
   Modern & minimal · Blue corporate
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette */
  --ink:        #0A1733;   /* near-black navy — primary text */
  --ink-soft:   #2B3A5C;   /* secondary text */
  --slate:      #5C6B89;   /* muted text */
  --line:       #E3E8F2;   /* hairlines / borders */
  --mist:       #F4F7FC;   /* soft section bg */
  --cloud:      #FBFCFE;   /* faint bg */
  --white:      #FFFFFF;

  --blue:       #1C4FE0;   /* primary brand blue */
  --blue-deep:  #1438A8;   /* darker blue */
  --blue-bright:#3D74FF;   /* accent / hover */
  --blue-tint:  #EAF0FF;   /* blue wash bg */
  --cyan:       #36C9E6;   /* secondary accent */

  /* Type */
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* Spacing rhythm */
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);

  /* Radius + shadow */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(10,23,51,.06), 0 2px 8px rgba(10,23,51,.04);
  --shadow-md: 0 4px 16px rgba(10,23,51,.08), 0 12px 32px rgba(10,23,51,.06);
  --shadow-lg: 0 20px 60px rgba(20,56,168,.16);
  --shadow-blue: 0 12px 30px rgba(28,79,224,.28);

  --ease: cubic-bezier(.4, 0, .15, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.bg-mist { background: var(--mist); }
.bg-ink  { background: var(--ink); color: #DCE4F5; }
.bg-blue-tint { background: var(--blue-tint); }

/* ---------- Type scale ---------- */
.display {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  color: var(--ink-soft);
  line-height: 1.55;
  font-weight: 500;
}
.muted { color: var(--slate); }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--blue);
  display: inline-block;
}
.eyebrow--light { color: var(--cyan); }
.eyebrow--light::before { background: var(--cyan); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  padding: .85em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn--primary:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--blue-tint); transform: translateY(-2px); }
.btn--lg { font-size: 1.05rem; padding: 1em 1.8em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .96rem;
  color: var(--ink-soft);
  padding: .55em .9em;
  border-radius: 8px;
  position: relative;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__links a:hover { color: var(--blue); background: var(--blue-tint); }
.nav__links a.active { color: var(--blue); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center;
}
.nav__toggle span { display:block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: .3s var(--ease); }
.nav__toggle span::before, .nav__toggle span::after { content:""; position:absolute; left:0; width:22px; height:2px; background: var(--ink); transition: .3s var(--ease); }
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after  { top: 7px; }
.nav.open .nav__toggle span { background: transparent; }
.nav.open .nav__toggle span::before { top:0; transform: rotate(45deg); }
.nav.open .nav__toggle span::after  { top:0; transform: rotate(-45deg); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__text { font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; letter-spacing: -.02em; color: var(--ink); }
.logo__text b { color: var(--blue); font-weight: 800; }
.logo--light .logo__text { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #AEBAD6; padding-block: 72px 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__grid h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-head); }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer__links a { color: #AEBAD6; font-size: .96rem; transition: color .2s var(--ease); }
.footer__links a:hover { color: #fff; }
.footer__blurb { color: #8493B5; max-width: 30ch; margin-top: 16px; font-size: .96rem; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 26px;
  font-size: .88rem; color: #6F7EA3;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue);
  margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); font-size: .98rem; }

/* ---------- Misc ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  background: var(--blue-tint); color: var(--blue);
  padding: .45em 1em; border-radius: 999px;
}
.divider { height: 1px; background: var(--line); border: 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 14px var(--gut) 26px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform .4s var(--ease);
    z-index: 90;
  }
  .nav.open .nav__links { transform: none; }
  .nav__links a { padding: .9em .4em; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__links li:last-child a { border-bottom: 0; }
  .nav__cta-mobile { margin-top: 14px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
