/* =========================================================
   KP Treasury — Global Stylesheet
   Brand: Deep Aubergine anchor, warm porcelain base
   Font: Space Grotesk (Google Fonts)
   ========================================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Backgrounds */
  --porcelain:    #F8F6F2;
  --warm-stone:   #F3EEE7;
  --mist-blue:    #EEF4FF;
  --chalk-white:  #FCFBF8;

  /* Brand colours */
  --aubergine:    #1E1738;
  --graphite:     #2B3045;
  --apricot:      #FFC857;
  --coral:        #FF6F61;
  --turquoise:    #1ED6D1;
  --cobalt:       #315BFF;

  /* Typography */
  --font:         'Space Grotesk', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-w:        1140px;
  --section-py:   80px;
  --section-py-sm: 48px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--porcelain);
  color: var(--graphite);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--aubergine); text-decoration: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--aubergine);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 700; margin-bottom: 20px; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }

p + p { margin-top: 16px; }

.subhead {
  font-size: 1.05rem;
  color: var(--graphite);
  opacity: .85;
  max-width: 640px;
}

.label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--aubergine);
  opacity: .55;
  margin-bottom: 10px;
}

/* ---------- Sections ---------- */
.section          { padding: var(--section-py) 0; }
.section--stone   { background: var(--warm-stone); }
.section--mist    { background: var(--mist-blue); }
.section--aubergine { background: var(--aubergine); color: var(--porcelain); }
.section--aubergine h2,
.section--aubergine h3,
.section--aubergine .label { color: var(--porcelain); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--aubergine);
  padding: 0 28px;
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.nav__logo { height: 64px; width: auto; }
.nav__links { display: flex; gap: 32px; align-items: center; }
.nav__links a {
  color: var(--porcelain);
  font-size: .9rem;
  font-weight: 500;
  opacity: .85;
  transition: opacity .2s;
}
.nav__links a:hover { opacity: 1; }
.nav__links a.active {
  color: var(--coral);
  opacity: 1;
}
.nav__links a.btn-nav {
  background: var(--apricot);
  color: var(--aubergine);
  padding: 8px 22px;
  border-radius: 6px;
  font-weight: 600;
  opacity: 1;
}
.nav__links a.btn-nav:hover { background: #f0ba3e; }

/* Mobile menu */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--porcelain);
  margin: 6px 0;
  transition: .3s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
  border: none;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--apricot);
  color: var(--aubergine);
}
.btn--primary:hover { background: #f0ba3e; }

.btn--outline {
  background: transparent;
  color: var(--aubergine);
  border: 2px solid var(--aubergine);
}
.btn--outline:hover { background: var(--aubergine); color: var(--porcelain); }

.btn--white {
  background: var(--porcelain);
  color: var(--aubergine);
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__text { max-width: 540px; }
.hero__text h1 { margin-bottom: 20px; }
.hero__text p  { margin-bottom: 28px; }
.hero__img img {
  width: 100%;
  border-radius: 12px;
}
.hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Pain points ---------- */
.pain-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.pain-card {
  background: var(--chalk-white);
  border-radius: 10px;
  padding: 28px 24px;
  border-left: 4px solid var(--apricot);
}
.pain-card p {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--graphite);
}

/* ---------- Feature / Value Grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 36px;
}
.feature-card {
  background: var(--chalk-white);
  border-radius: 10px;
  padding: 32px 28px;
}
.feature-card .icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.1rem; }
.feature-card p  { font-size: .92rem; line-height: 1.6; }

/* ---------- Engagement Models (How We Work) ---------- */
.models {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.model-card {
  background: var(--chalk-white);
  border-radius: 10px;
  padding: 32px 28px;
  border-top: 4px solid var(--turquoise);
}
.model-card h3 { color: var(--aubergine); }

/* ---------- Why / Differentiators ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.diff-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.diff-card .num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--aubergine);
  color: var(--apricot);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
}
.diff-card h4 { margin-bottom: 6px; }
.diff-card p  { font-size: .92rem; line-height: 1.55; }

/* ---------- Service Overview Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.service-card {
  background: var(--chalk-white);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30,23,56,.08);
}
.service-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.service-card__body {
  padding: 24px 22px;
}
.service-card__body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card__body p  { font-size: .88rem; line-height: 1.55; margin-bottom: 14px; }
.service-card__body .link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--aubergine);
}
.service-card__body .link::after { content: ' →'; }

/* ---------- Triggers (When You Need Us) ---------- */
.triggers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 36px;
}
.trigger-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.trigger-group h3 .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.trigger-item {
  margin-bottom: 18px;
}
.trigger-item h4 { font-size: .98rem; margin-bottom: 4px; }
.trigger-item p  { font-size: .88rem; line-height: 1.55; }

/* ---------- Service Detail Sections ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.service-detail--reverse { direction: rtl; }
.service-detail--reverse > * { direction: ltr; }

.service-detail__img img { border-radius: 12px; }
.service-detail__content .label { margin-bottom: 8px; }
.service-detail__content h2 { margin-bottom: 16px; }

.ab-block {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--chalk-white);
  border-radius: 8px;
  border-left: 4px solid var(--turquoise);
}
.ab-block + .ab-block { margin-top: 14px; }
.ab-block h4 { color: var(--aubergine); margin-bottom: 6px; font-size: .95rem; }
.ab-block p  { font-size: .9rem; line-height: 1.6; }

.results-list {
  margin-top: 24px;
  list-style: none;
}
.results-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: .92rem;
  line-height: 1.55;
}
.results-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--apricot);
}

.case-example {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--chalk-white);
  border-radius: 8px;
  border-left: 4px solid var(--coral);
}
.case-example h4 { font-size: .9rem; color: var(--coral); margin-bottom: 6px; }
.case-example p  { font-size: .88rem; line-height: 1.55; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.about-photo {
  width: 100%;
  border-radius: 12px;
  background: var(--warm-stone);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--graphite);
  font-size: .9rem;
  text-align: center;
  padding: 20px;
}
.credential-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.credential-chips span {
  background: var(--warm-stone);
  color: var(--aubergine);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 500;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 36px;
}
.testimonial-card {
  background: var(--chalk-white);
  border-radius: 10px;
  padding: 32px 28px;
  position: relative;
}
.testimonial-card .quote-mark {
  font-size: 3rem;
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 12px;
}
.testimonial-card p {
  font-size: .92rem;
  line-height: 1.6;
  font-style: italic;
}
.testimonial-card .highlight {
  font-weight: 700;
  font-style: italic;
  color: var(--coral);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--aubergine);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d0cdc6;
  border-radius: 6px;
  font-family: var(--font);
  font-size: .95rem;
  background: var(--chalk-white);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--aubergine);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info { padding-top: 8px; }
.contact-info p { margin-bottom: 16px; font-size: .95rem; }
.contact-info a { color: var(--aubergine); font-weight: 500; }
.contact-info a:hover { color: var(--coral); }

/* ---------- Footer ---------- */
.footer {
  background: var(--aubergine);
  color: var(--porcelain);
  padding: 40px 0;
  text-align: center;
  font-size: .85rem;
  opacity: .85;
}
.footer a { color: var(--apricot); }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0  { margin-bottom: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-prose { max-width: 720px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --section-py: 56px; }
  .hero__grid,
  .service-detail,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero__img { order: -1; }
  .service-detail--reverse { direction: ltr; }
  .about-photo { max-width: 220px; }
}

@media (max-width: 680px) {
  :root { --section-py: 40px; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--aubergine);
    padding: 20px 28px;
    gap: 16px;
  }
  .nav__toggle { display: block; }
  .hero__buttons { flex-direction: column; }
  .features, .models, .diff-grid, .services-grid, .triggers, .pain-points {
    grid-template-columns: 1fr;
  }
}
