/* ==========================================================================
   Kingswell & Partners — Design System v2
   "Editorial Luxury": split-screen hero, numbered index rows, flowing tag
   lists, thin rule dividers instead of boxed cards/bands. Dark base + a
   single sharp gold accent. Function-critical class names (.faq-*, .nav-*,
   .site-header, .reveal) are kept stable for js/main.js + js/animations.js.
   Type: Playfair Display (headings) + Inter (body)
   ========================================================================== */

:root {
  --kp-black: #0a0b09;
  --kp-ink: #14170f;
  --kp-panel: #1c1f18;
  --kp-line: rgba(245, 242, 234, 0.1);
  --kp-line-strong: rgba(245, 242, 234, 0.22);

  --kp-white: #f6f2e7;
  --kp-text: #cfccc0;
  --kp-grey: #939086;

  --kp-green-900: #12241c;
  --kp-green-800: #1f3b2f;
  --kp-green-050: #1a2620;

  --kp-gold: #c9a227;
  --kp-gold-light: #e6c65c;
  --kp-gold-dark: #97791f;

  --font-serif: "Playfair Display", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--kp-text);
  background-color: var(--kp-black);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--kp-white);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

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

.container-kp {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

hr.rule {
  border: none;
  border-top: 1px solid var(--kp-line);
  margin: 0;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--kp-gold-light);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--kp-gold-light);
  display: inline-block;
}

/* ---------- Links & buttons ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--kp-white);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--kp-line-strong);
  transition: color 0.3s, border-color 0.3s;
}
.link-arrow .arrow { transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--kp-gold-light); border-color: var(--kp-gold-light); }
.link-arrow:hover .arrow { transform: translateX(6px); }
.link-arrow.gold { color: var(--kp-gold-light); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border: 1px solid var(--kp-gold);
  color: var(--kp-gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-ghost:hover {
  background: var(--kp-gold);
  color: var(--kp-black);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(201, 162, 39, 0.4);
}
.btn-ghost.light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--kp-white);
}
.btn-ghost.light:hover {
  background: var(--kp-white);
  color: var(--kp-black);
  border-color: var(--kp-white);
  box-shadow: none;
}
.btn-ghost.sm { padding: 11px 22px; font-size: 0.7rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 11, 9, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--kp-line);
  transition: background 0.3s, border-color 0.3s;
}
.site-header.is-scrolled {
  background: var(--kp-black);
  border-color: var(--kp-line-strong);
}
.navbar-kp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}
.brand-kp { display: flex; align-items: center; gap: 12px; }
.brand-kp img { height: 34px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 42px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kp-text);
  position: relative;
  padding: 4px 0 12px;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 3px;
  border-radius: 50%;
  background: var(--kp-gold);
  transition: width 0.3s var(--ease), left 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--kp-gold-light); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 4px; left: calc(50% - 2px); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--kp-white);
  transition: all 0.3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ---------- Split hero (home) ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 86vh;
}
.hero-split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 5vw 90px 24px;
}
.hero-split-text .eyebrow { margin-bottom: 22px; }
.hero-split-text h1 {
  font-size: clamp(2.5rem, 4.2vw, 4rem);
  max-width: 620px;
  margin-bottom: 26px;
}
.hero-split-text p.lead {
  color: var(--kp-grey);
  max-width: 500px;
  font-size: 1.08rem;
  margin-bottom: 42px;
}
.hero-actions { display: flex; gap: 36px; align-items: center; flex-wrap: wrap; }
.hero-split-media { position: relative; overflow: hidden; background: var(--kp-black); }
.hero-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.08) brightness(0.82);
}
.hero-split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 11, 9, 0.35) 0%, rgba(10, 11, 9, 0) 18%),
              linear-gradient(0deg, rgba(10, 11, 9, 0.55) 0%, rgba(10, 11, 9, 0) 30%);
}

/* ---------- Minimal interior page banner (no photo) ---------- */
.page-banner-min {
  padding: 175px 0 70px;
  border-bottom: 1px solid var(--kp-line);
}
.page-banner-min h1 {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  max-width: 780px;
}
.breadcrumb-kp {
  margin-top: 22px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--kp-grey);
}
.breadcrumb-kp a { color: var(--kp-text); }
.breadcrumb-kp a:hover { color: var(--kp-gold-light); }

/* ---------- Sections ---------- */
.section { padding: 130px 0; }
.section-sm { padding: 90px 0; }
.section-tint { background: var(--kp-ink); }
.section-line-top { border-top: 1px solid var(--kp-line); }
.section-line-bottom { border-bottom: 1px solid var(--kp-line); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 76px;
}
.section-head p { color: var(--kp-grey); font-size: 1.03rem; margin: 0; }
.section-head.centered {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.section-head.centered .eyebrow { justify-content: center; }

/* ---------- Index rows (replaces icon cards) ---------- */
.index-list { border-top: 1px solid var(--kp-line); }
.index-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 26px;
  padding: 32px 0;
  border-bottom: 1px solid var(--kp-line);
  transition: padding-left 0.35s var(--ease);
}
.index-row:hover { padding-left: 14px; }
.index-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--kp-gold);
  transition: color 0.3s;
}
.index-row:hover .index-num { color: var(--kp-gold-light); }
.index-row h3 { font-size: 1.22rem; margin-bottom: 8px; }
.index-row p { color: var(--kp-grey); margin: 0; max-width: 620px; font-size: 0.96rem; }
.index-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}

/* ---------- Tag flow (industries) ---------- */
.tag-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  color: var(--kp-white);
  line-height: 1.7;
}
.tag-flow .sep {
  color: var(--kp-gold);
  margin: 0 22px;
  font-family: var(--font-sans);
  font-size: 1.1rem;
}
.tag-flow .tag { transition: color 0.25s; }
.tag-flow .tag:hover { color: var(--kp-gold-light); }

/* ---------- Media block (replaces split-media frame) ---------- */
.media-block { position: relative; height: 100%; min-height: 380px; }
.media-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05) brightness(0.88);
}
.media-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--kp-black);
  color: var(--kp-gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 20px;
}
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

/* ---------- Mission / Vision split ---------- */
.mv-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--kp-line);
  border-bottom: 1px solid var(--kp-line);
}
.mv-split > div { padding: 60px 56px; }
.mv-split > div:first-child { border-right: 1px solid var(--kp-line); }
.mv-split h3 { font-size: 1.5rem; margin-bottom: 18px; }
.mv-split p { color: var(--kp-grey); margin: 0; }

/* ---------- Stats row ---------- */
.stats-row {
  display: flex;
  border-top: 1px solid var(--kp-line);
  border-bottom: 1px solid var(--kp-line);
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 56px 12px;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--kp-line);
}
.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.6vw, 2.8rem);
  color: var(--kp-gold-light);
  display: block;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kp-grey);
}

/* ---------- FAQ (kept functional class names for main.js) ---------- */
.faq-item { border-bottom: 1px solid var(--kp-line); }
.faq-item:first-child { border-top: 1px solid var(--kp-line); }
.faq-question {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 28px 0;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--kp-white);
}
.faq-question .faq-num {
  font-size: 0.95rem;
  color: var(--kp-gold);
  flex-shrink: 0;
}
.faq-question .faq-icon {
  margin-left: auto;
  flex-shrink: 0;
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  color: var(--kp-gold-light);
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 300;
  transition: transform 0.35s var(--ease);
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: none;
  color: var(--kp-gold-light);
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-answer-inner { padding: 0 0 28px 34px; color: var(--kp-grey); max-width: 640px; }

/* ---------- CTA (plain, no photo) ---------- */
.cta-plain { padding: 130px 0; text-align: center; }
.cta-plain h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 760px;
  margin: 0 auto 24px;
}
.cta-plain p { color: var(--kp-grey); max-width: 560px; margin: 0 auto 40px; }
.cta-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; align-items: center; }

/* ---------- Forms ---------- */
.form-kp label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kp-grey);
  margin-bottom: 10px;
  display: block;
}
.form-kp .form-control {
  width: 100%;
  padding: 14px 2px;
  border: none;
  border-bottom: 1px solid var(--kp-line-strong);
  background: transparent;
  color: var(--kp-white);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  border-radius: 0;
  transition: border-color 0.25s;
}
.form-kp .form-control::placeholder { color: var(--kp-grey); }
.form-kp .form-control:focus { outline: none; border-color: var(--kp-gold); }
.form-kp textarea.form-control { resize: vertical; min-height: 110px; }
.form-group { margin-bottom: 30px; }

/* ---------- Contact info list ---------- */
.contact-info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 26px 0;
  border-bottom: 1px solid var(--kp-line);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .index-num { padding-top: 2px; }
.contact-info-item h4 { color: var(--kp-white); font-size: 0.98rem; margin-bottom: 6px; }
.contact-info-item p,
.contact-info-item a { color: var(--kp-grey); font-size: 0.94rem; margin: 0; }
.contact-info-item a:hover { color: var(--kp-gold-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--kp-black);
  color: var(--kp-grey);
  padding: 100px 0 0;
  border-top: 1px solid var(--kp-line);
}
.footer-word {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  color: var(--kp-white);
  margin-bottom: 8px;
}
.footer-tagline { color: var(--kp-gold-light); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 50px; }
.footer-heading {
  color: var(--kp-white);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 14px; }
.footer-links a { font-size: 0.92rem; color: var(--kp-grey); transition: color 0.25s, padding-left 0.25s; }
.footer-links a:hover { color: var(--kp-gold-light); padding-left: 4px; }
.social-links { display: flex; gap: 12px; margin-top: 8px; }
.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--kp-line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kp-white);
  transition: all 0.3s;
}
.social-links a:hover { background: var(--kp-gold); border-color: var(--kp-gold); color: var(--kp-black); }
.footer-bottom {
  margin-top: 70px;
  padding: 26px 0;
  border-top: 1px solid var(--kp-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--kp-grey);
}
.footer-bottom a:hover { color: var(--kp-gold-light); }

/* ---------- Utilities ---------- */
.text-gold { color: var(--kp-gold); }
.divider-gold { width: 60px; height: 1px; background: var(--kp-gold); margin: 24px 0; }

/* ---------- Reveal-on-scroll (kept for animations.js) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
