/* KF Consultancy — brand design system
   Warm, sophisticated, strategic, credible, calm, premium but approachable.
   Deep burgundy signature colour used sparingly against warm ivory,
   muted stone/taupe neutrals and charcoal editorial type. */

:root {
  /* Brand palette */
  --ivory: #faf6f0;
  --ivory-deep: #f2ece2;
  --paper: #fffdf9;
  --stone: #e4dccd;
  --stone-line: #d9cfbd;
  --taupe: #a99d89;
  --taupe-deep: #685e50;
  --charcoal: #2b2621;
  --charcoal-soft: #4a4237;
  --burgundy: #6d1f3a;
  --burgundy-deep: #521731;
  --burgundy-tint: #f4e6ea;
  --burgundy-tint-line: #e6c9d1;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1180px;
  --radius: 2px;
  --shadow-soft: 0 20px 60px -30px rgba(43, 38, 33, 0.35);
}

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); font-weight: 480; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; color: var(--charcoal-soft); }
p.lead { font-size: 1.2rem; color: var(--charcoal); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--burgundy);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--burgundy);
  color: var(--paper);
  border-color: var(--burgundy);
}
.btn-primary:hover { background: var(--burgundy-deep); border-color: var(--burgundy-deep); }

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-secondary:hover { background: var(--charcoal); color: var(--paper); }

.btn-ghost {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy-tint-line);
  padding: 11px 22px;
  font-size: 0.88rem;
}
.btn-ghost:hover { background: var(--burgundy-tint); border-color: var(--burgundy); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stone-line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--charcoal);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.wordmark .mark-kf {
  color: var(--burgundy);
  font-style: italic;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}
.main-nav a.nav-link {
  text-decoration: none;
  color: var(--charcoal-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a.nav-link:hover,
.main-nav a.nav-link[aria-current="page"] {
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.main-nav li.nav-cta-item { display: flex; align-items: center; }
.main-nav a.nav-cta { padding: 12px 24px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  padding: 9px 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--charcoal);
  margin: 4px 0;
}

/* Hero */
.hero {
  padding: 96px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--burgundy-tint), transparent 70%);
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7.5fr) minmax(0, 4fr);
  gap: 64px;
  align-items: end;
}
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 46ch; margin-bottom: 32px; }
.hero-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--taupe-deep);
}
.hero-aside {
  border-left: 1px solid var(--stone-line);
  padding-left: 32px;
}
.hero-aside p { font-size: 0.98rem; }
.hero-stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-stat-list li {
  padding-top: 14px;
  border-top: 1px solid var(--stone-line);
  font-size: 0.92rem;
  color: var(--charcoal-soft);
}
.hero-stat-list li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 2px;
}

/* Sections */
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--ivory-deep); }
.section-dark {
  background: var(--charcoal);
  color: var(--ivory);
}
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark p { color: #cfc6ba; }
.section-burgundy {
  background: var(--burgundy);
  color: var(--paper);
}
.section-burgundy h2 { color: var(--paper); }
.section-burgundy p { color: #f0d9e0; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Problem section */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 8px;
}
.problem-card {
  padding-top: 22px;
  border-top: 1px solid var(--stone-line);
}
.problem-card .num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--burgundy);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
  border-color: var(--burgundy-tint-line);
}
.service-card .service-index {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--taupe);
  font-size: 0.95rem;
}
.service-card h3 { margin-bottom: 4px; }
.service-card .service-tagline {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 2px;
}
.service-card p { font-size: 0.97rem; margin-bottom: 0.6em; }
.service-card .service-link {
  margin-top: auto;
  padding-top: 14px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--charcoal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-card .service-link::after { content: "\2192"; transition: transform 0.2s ease; }
.service-card .service-link:hover::after { transform: translateX(4px); }
.service-card .service-link:hover { color: var(--burgundy); }

/* Insight / why-clarity section */
.insight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 48px;
}
.insight-list li {
  padding-left: 26px;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.4;
  color: var(--paper);
}
.insight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 1px;
  background: var(--burgundy);
}
.section-dark .insight-list li::before { background: #cfa9b4; }

/* About / founder */
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.founder-portrait {
  aspect-ratio: 4 / 5;
  background: linear-gradient(155deg, var(--burgundy) 0%, var(--burgundy-deep) 60%, var(--charcoal) 130%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.founder-portrait .initials {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 5.5rem;
  color: rgba(255, 253, 249, 0.92);
  letter-spacing: 0.02em;
}
.founder-portrait::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 253, 249, 0.22);
}
.founder-credentials {
  list-style: none;
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--stone-line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.founder-credentials li {
  font-size: 0.92rem;
  color: var(--charcoal-soft);
  padding-left: 18px;
  position: relative;
}
.founder-credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 1px;
  background: var(--burgundy);
}

/* Process steps */
.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  counter-reset: step;
}
.process-step { position: relative; padding-top: 28px; }
.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--burgundy);
  position: absolute;
  top: 0;
  left: 0;
}
.process-step h3 { margin-top: 14px; }

/* CTA band */
.cta-band {
  text-align: center;
  padding: 90px 0;
}
.cta-band h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 30px; }

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: #cfc6ba;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 253, 249, 0.14);
}
.footer-grid .wordmark { color: var(--paper); }
.footer-grid .wordmark .mark-kf { color: #e2a4b5; }
.footer-grid p { color: #ada398; font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #efe9e0;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #cfc6ba; text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #aca297;
}

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.contact-info-card {
  background: var(--paper);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info-card dl { margin: 20px 0 0; }
.contact-info-card dt {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe-deep);
  margin-top: 18px;
}
.contact-info-card dd { margin: 4px 0 0; font-size: 1rem; color: var(--charcoal); }
.contact-info-card dd a { color: var(--burgundy); text-decoration: none; }
.contact-info-card dd a:hover { text-decoration: underline; }

form.enquiry-form {
  background: var(--paper);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.form-row .hint { font-weight: 400; color: var(--taupe-deep); font-size: 0.8rem; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  background: var(--ivory);
  color: var(--charcoal);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--burgundy);
  outline-offset: 1px;
  background: var(--paper);
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 0.82rem; color: var(--taupe-deep); margin-top: -6px; margin-bottom: 20px; }
.form-privacy-note { font-size: 0.8rem; color: var(--taupe-deep); margin: -4px 0 16px; }
.form-privacy-note a { color: var(--burgundy); text-decoration: underline; }
/* Netlify Forms honeypot: visually hidden (clipped to a single pixel,
   not display:none -- some spam bots specifically skip display:none
   fields, which would defeat the point), removed from the
   accessibility tree (aria-hidden) and unreachable by keyboard
   (tabindex="-1") -- it exists only to catch bots that fill in every
   field indiscriminately. */
.honeypot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form-status {
  margin-top: 18px;
  font-size: 0.92rem;
  padding: 14px 16px;
  border-radius: var(--radius);
  display: none;
}
.form-status.visible { display: block; }
.form-status.success { background: var(--burgundy-tint); color: var(--burgundy-deep); border: 1px solid var(--burgundy-tint-line); }

/* Service detail blocks (services page) */
.service-detail {
  padding: 72px 0;
  border-top: 1px solid var(--stone-line);
}
.service-detail:first-of-type { border-top: none; }
.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.service-detail ul.check-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-detail ul.check-list li {
  padding-left: 24px;
  position: relative;
  font-size: 0.96rem;
  color: var(--charcoal-soft);
}
.service-detail ul.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--burgundy);
  font-size: 0.85rem;
}
.suited-box {
  margin-top: 26px;
  padding: 20px 22px;
  background: var(--ivory-deep);
  border-left: 2px solid var(--burgundy);
  font-size: 0.92rem;
  color: var(--charcoal-soft);
}
.suited-box strong { color: var(--charcoal); }

/* Page hero (non-home) */
.page-hero { padding: 72px 0 56px; }
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero p.lead { max-width: 60ch; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--burgundy);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { border-left: none; border-top: 1px solid var(--stone-line); padding-left: 0; padding-top: 28px; }
  .problem-grid, .services-grid, .process-list { grid-template-columns: 1fr; }
  .insight-list { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-portrait { max-width: 280px; }
  .contact-layout { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .main-nav ul { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header.nav-open .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--stone-line);
    padding: 16px 20px 24px;
  }
  .site-header.nav-open .main-nav { position: static; }
  .site-header.nav-open .main-nav a.nav-link { padding: 10px 0; border-bottom: 1px solid var(--stone-line); width: 100%; }
  .site-header.nav-open .main-nav li.nav-cta-item { margin-top: 14px; }
  .site-header.nav-open .main-nav a.nav-cta { width: 100%; }
  .hero { padding: 56px 0 60px; }
  .section { padding: 60px 0; }
  .form-two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
