/* Klarifi — shared stylesheet */

@font-face {
  font-family: 'DejaVu Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dejavu-serif-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DejaVu Serif';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/dejavu-serif-700.woff2') format('woff2');
}

:root {
  --ink: #17181c;
  --muted: #5a5d66;
  --teal: #2e7a7f;
  --teal-light: #499fa4;
  --teal-wash: rgba(73, 159, 164, 0.08);
  --bg: #ffffff;
  --card: #f5f5f4;
  --border: #e4e4e1;
  --footer-bg: #fafafa;
  --dash: #a1a4ac;
  --max: 1200px;
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3, p, ul { margin: 0; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: #256469; }

img, svg { max-width: 100%; display: block; }

.serif {
  font-family: 'DejaVu Serif', Georgia, 'Times New Roman', serif;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  flex: none;
  padding: 12px 12px 0;
  background: var(--bg);
}

.site-header .bar {
  max-width: calc(var(--max) + 64px);
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 16px 0 18px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px -14px rgba(23, 24, 28, 0.22);
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.logo svg { width: 21px; height: 24px; }

.logo span {
  font-family: 'DejaVu Serif', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

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

.primary-nav {
  display: none;
}

.header-cta {
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  box-sizing: border-box;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover { background: #256469; color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal-light);
}
.btn-secondary:hover { background: var(--teal-wash); color: var(--teal); }

.btn-large {
  height: 56px;
  padding: 0 32px;
  border-radius: 8px;
  font-size: 17px;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  flex: none;
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Desktop-only services mega-menu: hidden below 900px, positioned/opened above */
.services-menu { display: none; }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg);
  padding: 0 12px 24px;
}
.mobile-nav.open {
  display: flex;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 55;
  border-top: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

body.nav-open { overflow: hidden; }

.mobile-nav > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}

/* Desktop nav (>=900px) */
@media (min-width: 900px) {
  .site-header { padding: 16px 0 8px; }
  .site-header .bar {
    height: 64px;
    padding: 0 32px;
    border-radius: 16px;
    gap: 56px;
  }
  .logo svg { width: 26.2px; height: 30px; }
  .logo span { font-size: 27px; }
  .logo-img { height: 30px; }

  .primary-nav {
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .nav-link {
    display: flex;
    align-items: center;
    height: 62px;
    padding-top: 2px;
    box-sizing: border-box;
    border-bottom: 2px solid transparent;
    color: var(--ink);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
  }
  .nav-link:hover { color: var(--teal); }
  .nav-link.active { border-bottom-color: var(--teal-light); color: var(--teal); }

  .nav-services {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 62px;
    padding: 2px 0 0;
    box-sizing: border-box;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    color: var(--ink);
    font-family: inherit;
    font-weight: 500;
    font-size: 15px;
  }
  .nav-services:hover { color: var(--teal); }
  .nav-services[aria-expanded="true"] { color: var(--teal); border-bottom-color: var(--teal-light); }
  .nav-services svg { transition: transform .15s ease; }
  .nav-services[aria-expanded="true"] svg { transform: rotate(180deg); }

  .btn { height: 44px; padding: 0 22px; font-size: 15px; border-radius: 10px; }

  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }

  .services-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    z-index: 60;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 28px 56px -24px rgba(23, 24, 28, 0.28);
    padding: 12px;
    flex-direction: column;
    gap: 2px;
  }
  .services-menu.open { display: flex; }
  .services-menu a {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--ink);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
  }
  .services-menu a:hover { background: var(--card); color: var(--teal); }
}

/* ---------- Sections / typography ---------- */

main { flex: 1 1 auto; display: flex; flex-direction: column; }

.eyebrow {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

h1.page-title {
  font-family: 'DejaVu Serif', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 780px;
}

.section { padding: 56px 0; }
.section-tight { padding: 56px 0 32px; }
.section-band {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid var(--teal-light);
  border-radius: 999px;
  background: var(--teal-wash);
  color: var(--teal);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 200px;
  padding: 28px;
  box-sizing: border-box;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease;
}
.card:hover { border-color: var(--teal-light); }

.card h3 {
  font-family: 'DejaVu Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.card p { font-size: 16px; line-height: 1.6; color: var(--muted); }

.card-arrow { display: inline-flex; color: var(--teal); }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 700px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cta-band {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 0;
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  text-align: center;
}

.placeholder-note {
  font-weight: 600;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  border: 1px dashed var(--dash);
  border-radius: 6px;
  display: inline-block;
}

/* ---------- Footer ---------- */

.site-footer {
  flex: none;
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 32px 20px 40px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: var(--muted); }

.footer-links { display: flex; flex-direction: column; }
.footer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}
.footer-links a.accent { color: var(--teal); font-weight: 600; }

@media (min-width: 700px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .footer-links { flex-direction: row; gap: 28px; }
  .footer-links a { min-height: auto; }
}

/* ---------- Utility layout blocks used across pages ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 56px; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 480px; align-items: center; gap: 64px; }
}

.hero-illustration-box {
  position: relative;
}

.hero-kicker {
  position: absolute;
  left: 0;
  bottom: 16px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  padding-right: 12px;
}

.hero-illustration {
  display: block;
  width: 100%;
  height: auto;
}

.services-panel { display: flex; flex-direction: column; gap: 16px; }

.services-panel .services-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.services-panel .card-lite {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 36px;
  box-sizing: border-box;
  background: #eef3f1;
  border: 1px solid var(--border);
  border-radius: 20px;
}

.services-panel .card-lite a {
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--teal);
  text-decoration: none;
}
.services-panel .card-lite a:hover { color: #256469; }

.stack { display: flex; flex-direction: column; gap: 16px; }

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.stat .num {
  font-family: 'DejaVu Serif', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.3rem);
  letter-spacing: -0.01em;
  color: var(--teal-light);
}
.stat .label { font-size: 14px; line-height: 1.5; color: var(--muted); }

.portrait-placeholder {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--dash);
  border-radius: 12px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 16px;
}

.breadcrumb {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb .sep { padding: 0 6px; }

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li svg { flex: none; margin-top: 3px; color: var(--teal-light); }
.check-list li span { font-size: 17px; line-height: 1.6; color: var(--ink); }

.offering-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 780px;
}
.offering-list li {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.offering-list li:last-child { padding-bottom: 0; }
.offering-list h3 {
  font-family: 'DejaVu Serif', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.offering-list p {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

body { display: flex; flex-direction: column; min-height: 100vh; }
