/* KPO Intelligence — site styles
   Palette taken from the brand kit: charcoal, mid grey, light grey on white. */
:root {
  --ink: #333333;        /* logo dark half, wordmark */
  --grey: #8c8c8c;       /* logo light half */
  --light: #cccccc;      /* banner shapes */
  --mist: #f4f4f4;       /* section backgrounds */
  --line: #e4e4e4;
  --muted: #5f5f5f;      /* body copy secondary (AA on white) */
  --bg: #ffffff;
  --radius: 4px;
  --max: 1120px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 400; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1rem;
}
.lead { font-size: 1.25rem; color: var(--muted); max-width: 40rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  font: 500 1rem var(--font);
  text-decoration: none;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: #000; border-color: #000; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--grey); outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; font-weight: 400; font-size: 1rem; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--grey); }
.nav .btn { padding: .55rem 1.1rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; text-align: center; border-bottom: 1.5px solid var(--ink); padding: .8rem; }
}

/* Sections */
section { padding: 96px 0; }
@media (max-width: 600px) { section { padding: 64px 0; } }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .lead { color: var(--light); }
.section--dark .btn { background: #fff; color: var(--ink); border-color: #fff; }
.section--dark .btn:hover { background: var(--light); border-color: var(--light); }
.section-head { max-width: 44rem; margin-bottom: 3rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 120px 0 128px; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-shapes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
@media (max-width: 800px) { .hero-shapes { display: none; } .hero { padding: 72px 0 80px; } }

.page-hero { padding: 96px 0 56px; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .page-hero { padding: 64px 0 40px; } }

/* Grids & cards */
.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); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.card p { color: var(--muted); font-size: 1rem; margin: 0; }
.card .shape { width: 36px; height: 36px; margin-bottom: 1.25rem; }
.card-link { display: inline-block; margin-top: 2.5rem; font-weight: 400; }

/* Process steps */
.steps { counter-reset: step; }
.step { border-top: 2px solid var(--ink); padding-top: 20px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block; font-size: .9rem; font-weight: 500;
  color: var(--grey); margin-bottom: .5rem;
}
.step p { color: var(--muted); font-size: 1rem; margin: 0; }

/* Principles list */
.principles { list-style: none; padding: 0; margin: 0; }
.principles li { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.principles li:first-child { border-top: 1px solid var(--line); }
.principles h3 { margin: 0; }
.principles p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .principles li { grid-template-columns: 1fr; gap: 6px; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 40px 22px 0; position: relative;
  font-size: 1.1rem; font-weight: 400;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 14px; height: 14px; margin-top: -10px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details p { color: var(--muted); padding-bottom: 12px; max-width: 46rem; }

/* Services page */
.service { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding: 64px 0; border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; }
.service ul { padding-left: 1.2rem; margin: 0 0 1.2rem; color: var(--muted); }
.service li { margin-bottom: .35rem; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .95rem; }
.meta span { color: var(--grey); }
@media (max-width: 800px) { .service { grid-template-columns: 1fr; gap: 16px; padding: 48px 0; } }

/* Team */
.person .photo {
  aspect-ratio: 1/1; background: var(--mist); overflow: hidden;
  border: 1px dashed var(--light); border-radius: var(--radius);
  display: grid; place-items: center; color: var(--grey); font-size: .9rem;
  margin-bottom: 1.25rem;
}
.person h3 { margin-bottom: .2rem; }
.person .role { color: var(--grey); font-size: .95rem; margin-bottom: .8rem; }
.person p { color: var(--muted); font-size: 1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.cal-embed { width: 100%; min-height: 560px; overflow: auto; margin-bottom: .75rem; }
.cal-placeholder {
  min-height: 520px; border: 1px dashed var(--light); border-radius: var(--radius);
  background: var(--mist); display: grid; place-items: center; text-align: center;
  color: var(--grey); padding: 24px;
}
form label { display: block; font-size: .95rem; font-weight: 400; margin-bottom: .35rem; }
form input, form textarea {
  width: 100%; font: 300 1rem var(--font); color: var(--ink);
  padding: .75rem .9rem; border: 1px solid var(--light); border-radius: var(--radius);
  background: #fff; margin-bottom: 1.1rem;
}
form textarea { min-height: 140px; resize: vertical; }
.small { font-size: .85rem; color: var(--muted); }

/* Prose (privacy) */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; font-weight: 500; margin-top: 2.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.note {
  background: var(--mist); border-left: 3px solid var(--grey);
  padding: 14px 18px; font-size: .95rem; margin-bottom: 2rem;
}

/* CTA band */
.cta { text-align: center; }
.cta .lead { margin: 0 auto 2rem; }

/* Footer */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); font-size: .95rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer img { height: 36px; width: auto; margin-bottom: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { margin-top: 40px; color: var(--grey); font-size: .85rem; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; }
.person .photo:has(img) { border: 0; }
.card--cta { background: var(--ink); border-color: var(--ink); color: #fff; text-decoration: none; display: flex; flex-direction: column; transition: background .15s; }
.card--cta p { color: var(--light); }
.card--cta:hover { background: #000; }
.card--cta .card-arrow { margin-top: auto; padding-top: 1.5rem; font-weight: 500; }
.expect { padding-left: 1.2rem; color: var(--muted); margin: 0; }
.expect li { margin-bottom: .5rem; }
