
:root {
  --bg: #f8fbfd;
  --surface: #ffffff;
  --bg-alt: #eef5f9;
  --bg-accent: #e6f0f6;
  --text: #12324a;
  --text-strong: #0b2239;
  --muted: #58758b;
  --muted-2: #7b96a9;
  --border: #d7e4ec;
  --brand: #153b5c;
  --brand-dark: #0f2e49;
  --brand-soft: #2d5d84;
  --highlight: #cfe3f0;
  --shadow: 0 18px 40px rgba(21, 59, 92, 0.08);
  --shadow-soft: 0 10px 24px rgba(21, 59, 92, 0.05);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(207, 227, 240, 0.35), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 2rem)); margin: 0 auto; }

.section { padding: 96px 0; border-bottom: 1px solid var(--border); }
.section.alt {
  background:
    linear-gradient(180deg, rgba(238, 245, 249, 0.9) 0%, rgba(248, 251, 253, 0.95) 100%);
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-soft);
  font-weight: 700;
}
h1, h2, h3, h4, p { margin-top: 0; }
h1 {
  font-size: clamp(2.55rem, 5vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text-strong);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.032em;
  color: var(--text-strong);
}
h3 {
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
h4 { color: var(--text-strong); }
p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 760px;
}
p, li {
  color: var(--muted);
  font-size: 1.04rem;
}
strong { color: var(--text-strong); }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 251, 253, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215, 228, 236, 0.95);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 10px 0;
}
.logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex: 0 0 auto;
  color: var(--text-strong);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: nowrap;
}
.nav a {
  color: var(--brand-soft);
  font-size: 0.96rem;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--text-strong);
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  background: var(--brand);
  opacity: 0;
  transform: scaleX(0.6);
  transition: 0.2s ease;
}
.nav a:not(.btn):hover::after,
.nav a:not(.btn):focus-visible::after {
  opacity: 0.9;
  transform: scaleX(1);
}
.nav-cta { margin-left: 10px; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: 0.2s ease;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  border-color: transparent;
}
.btn-primary:hover { filter: brightness(1.03); }
.btn-secondary {
  background: rgba(255,255,255,0.85);
  color: var(--text-strong);
  border-color: var(--highlight);
}
.btn-secondary:hover { border-color: var(--brand-soft); }

.hero-grid, .split-grid, .two-col { display: grid; gap: 48px; align-items: center; }
.hero-grid { grid-template-columns: 1.1fr 0.9fr; }
.split-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
.two-col { grid-template-columns: repeat(2, 1fr); align-items: start; }
.grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--shadow);
}
.card.soft {
  background: linear-gradient(180deg, var(--bg-alt) 0%, #f7fbfe 100%);
  box-shadow: none;
}
.card h3, .card h4 { margin-bottom: 10px; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat {
  color: var(--muted);
  font-size: 0.98rem;
  padding: 10px 0;
}
.stat strong { color: var(--text-strong); }

.list { padding-left: 1.2rem; margin: 14px 0 0; }
.list li { margin-bottom: 10px; }

.service-block {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.2fr 0.8fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--shadow);
}
.kicker {
  color: var(--brand-soft);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.cta-band {
  background: linear-gradient(135deg, #143c5e 0%, #244f75 100%);
  color: #fff;
  border-radius: 32px;
  padding: 52px;
  box-shadow: 0 20px 44px rgba(20, 60, 94, 0.18);
}
.cta-band p, .cta-band li { color: rgba(255,255,255,0.86); }

.footer { padding: 28px 0; background: rgba(238, 245, 249, 0.55); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a {
  color: var(--brand-soft);
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--text-strong); }

.form-grid { display: grid; gap: 18px; }
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-strong);
}
input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255,255,255,0.94);
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, textarea:focus {
  outline: none;
  border-color: #8bb1cb;
  box-shadow: 0 0 0 4px rgba(139, 177, 203, 0.18);
}
textarea { min-height: 140px; resize: vertical; }

.small { font-size: 0.95rem; }
.muted { color: var(--muted); }
.center { text-align: center; }

.hero-panel {
  position: relative;
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(207, 227, 240, 0.55), transparent 45%);
  pointer-events: none;
}
.hero-panel > * { position: relative; z-index: 1; }

@media (max-width: 1100px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0 18px;
  }
  .nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 18px;
  }
}

@media (max-width: 980px) {
  .hero-grid, .split-grid, .two-col, .service-block, .grid-3, .grid-4, .stat-strip {
    grid-template-columns: 1fr;
  }
  .section { padding: 72px 0; }
  .header { position: static; }
  .hero-grid, .split-grid { gap: 34px; }
}

@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 1.25rem)); }
  .section { padding: 56px 0; }
  .card, .service-block { padding: 22px; }
  .cta-band { padding: 28px; border-radius: 24px; }
  .logo { font-size: 1.45rem; }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn, .btn { width: 100%; }
  .button-row { flex-direction: column; }
  h1 { font-size: clamp(2.15rem, 10vw, 3rem); }
  h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  p.lead { font-size: 1.08rem; }
}


/* v7 hero scaling refinements */
.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 36px;
  align-items: center;
}
.hero-copy {
  min-width: 0;
  max-width: 640px;
}
.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.35rem, 4.3vw, 3.85rem);
  line-height: 1.02;
}
.hero-copy .lead {
  max-width: 34rem;
}
.hero-panel {
  min-width: 0;
  padding: 22px;
}
.hero-feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.hero-feature-grid .card {
  padding: 24px;
  min-width: 0;
}
.hero-feature-grid .card h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.7rem);
  line-height: 1.15;
}
.hero-feature-grid .card p {
  font-size: 1rem;
}
@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-copy {
    max-width: 760px;
  }
  .hero-copy h1 {
    max-width: 13ch;
    font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  }
}
@media (max-width: 760px) {
  .hero-feature-grid {
    grid-template-columns: 1fr;
  }
}


/* v8 contact form enhancements */
#form-status {
  border-color: #b8cfdf;
  background: linear-gradient(180deg, #f4f9fc 0%, #edf5fa 100%);
}
#form-status-text {
  color: var(--text-strong);
}
form[novalidate] {
  position: relative;
}


/* v10 absenteeism hybrid section */
.card img {
  border-radius: 12px;
}


/* v12 polish + resilience */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { overflow-x: hidden; }
.card, .service-block, .cta-band {
  overflow: hidden;
}
img, svg {
  max-width: 100%;
  height: auto;
}


.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  height: 56px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo img {
    height: 44px;
  }
}
