/* Kingsley Search Group — classic US executive search */
:root {
  --ink: #0f1c2e;
  --ink-soft: #2a3d52;
  --paper: #f6f3ec;
  --paper-deep: #ebe6dc;
  --line: #c9c0b0;
  --brass: #9a7b4f;
  --brass-light: #c4a574;
  --white: #ffffff;
  --header-bg: #0c2340;
  --header-border: rgba(255, 255, 255, 0.12);
  --header-link: rgba(255, 255, 255, 0.88);
  --header-link-hover: #ffffff;
  --header-link-active: #e8d4b0;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif: "Cormorant Garamond", "Georgia", serif;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.75rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  z-index: 10000;
}

.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 4px 20px rgba(12, 35, 64, 0.25);
}

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline-color: var(--header-link-active);
}

.header-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  color: var(--header-link-hover);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--header-link-hover);
  opacity: 0.92;
}

.logo-img {
  display: block;
  height: 2.65rem;
  width: auto;
  max-width: min(11.5rem, 52vw);
}

.site-header .logo-img {
  height: 3.75rem;
  max-width: min(16rem, 58vw);
}

.logo-mark {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--header-link-active);
}

.footer-brand .logo-img {
  height: 3.75rem;
  max-width: 16rem;
  margin-bottom: 0.35rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--header-link-hover);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--header-link);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}

.site-nav a:hover {
  color: var(--header-link-hover);
}

.site-nav a[aria-current="page"] {
  color: var(--header-link-active);
  font-weight: 600;
}

.header-cta {
  display: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--header-link-hover);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0.55rem 1rem;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.header-cta:hover {
  background: var(--header-link-hover);
  color: var(--header-bg);
  border-color: var(--header-link-hover);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block !important;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
  }

  .header-cta {
    display: inline-block;
  }
}

@media (max-width: 899px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    padding: 1rem 1.25rem 1.25rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  }

  .site-nav.is-open {
    display: block;
  }
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section--ink {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
}

.section--ink h2,
.section--ink h3 {
  color: var(--white);
}

.section--paper-deep {
  background: var(--paper-deep);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  margin-bottom: 0;
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-rule {
  width: 1px;
  height: 120px;
  background: var(--brass);
  display: none;
}

.hero-meta {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--brass);
  margin-top: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn--primary:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
}

.hero-caption {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  max-width: 14rem;
  box-shadow: 8px 8px 0 rgba(15, 28, 46, 0.06);
}

@media (min-width: 900px) {
  .hero {
    padding: 4.5rem 0 5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr auto 1.1fr;
    gap: 3rem;
  }

  .hero-rule {
    display: block;
  }
}

/* Cards & grids */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 28, 46, 0.08);
}

.card-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--brass-light);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--brass-light);
  font-weight: 500;
}

@media (min-width: 640px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .stat-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Process */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.process-list li {
  position: relative;
  padding: 0 0 2rem 3.5rem;
  border-left: 1px solid var(--line);
  margin-left: 1rem;
}

.process-list li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.process-list li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: -1rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--brass);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brass);
}

/* Team */
.team-grid {
  display: grid;
  gap: 2rem;
}

.team-member img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(20%);
  border: 1px solid var(--line);
}

.team-member figcaption {
  padding-top: 1rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--brass);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Page header */
.page-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 18ch;
}

.split-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-block {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem;
}

.contact-block address {
  font-style: normal;
  line-height: 1.8;
}

/* Legal */
.legal-doc {
  max-width: 42rem;
  padding: 3rem 0 5rem;
}

.legal-doc h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}

.legal-doc h2:first-of-type {
  margin-top: 1.5rem;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.site-footer a {
  color: var(--brass-light);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-mark {
  color: var(--white);
}

.footer-brand .logo-sub {
  color: var(--brass-light);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 1rem 1.25rem;
  box-shadow: 0 -8px 24px rgba(15, 28, 46, 0.08);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner__actions button {
  flex: 1 1 auto;
  min-width: 8rem;
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-family: var(--font-sans);
}

.cookie-banner__actions button[data-consent="accept"] {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 28, 46, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal.is-open {
  display: flex;
}

.cookie-modal__panel {
  background: var(--white);
  border: 1px solid var(--line);
  max-width: 28rem;
  width: 100%;
  padding: 1.5rem;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--paper-deep);
  font-size: 0.9rem;
}

.cookie-toggle input:disabled {
  accent-color: var(--brass);
}

/* Placeholder images */
.img-placeholder {
  background: linear-gradient(135deg, var(--paper-deep) 0%, #ddd6c8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card:hover {
    transform: none;
  }
}
