/*
Theme Name: KCI Impact
Theme URI: https://kciintegratedventures.org/
Author: KCI Integrated Ventures
Description: A conversion-focused custom WordPress theme for KCI Integrated Ventures.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: kci-impact
*/

:root {
  --kci-purple: #71236b;
  --kci-purple-dark: #451743;
  --kci-orange: #f5822b;
  --kci-red: #e93545;
  --kci-ink: #172033;
  --kci-muted: #5b6475;
  --kci-cream: #fff8f0;
  --kci-lilac: #f6eef7;
  --kci-line: #e8e2e9;
  --kci-white: #ffffff;
  --kci-shadow: 0 18px 50px rgba(39, 20, 44, .11);
  --kci-radius: 22px;
  --kci-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--kci-ink);
  background: var(--kci-white);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--kci-purple); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--kci-purple-dark); }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 .65em; color: var(--kci-ink); font-weight: 780; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.7rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1.2em; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { position: fixed !important; top: 10px; left: 10px; z-index: 99999; width: auto; height: auto; padding: 12px 16px; clip: auto; background: #fff; }
.kci-container { width: min(calc(100% - 40px), var(--kci-width)); margin-inline: auto; }
.kci-narrow { width: min(calc(100% - 40px), 780px); margin-inline: auto; }
.kci-section { padding: clamp(72px, 9vw, 120px) 0; }
.kci-section--soft { background: var(--kci-lilac); }
.kci-section--cream { background: var(--kci-cream); }
.kci-section--dark { color: #fff; background: var(--kci-purple-dark); }
.kci-section--dark h2, .kci-section--dark h3 { color: #fff; }
.kci-eyebrow { margin-bottom: 18px; color: var(--kci-purple); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.kci-section--dark .kci-eyebrow { color: #ffbd7f; }
.kci-lead { max-width: 740px; color: var(--kci-muted); font-size: clamp(1.08rem, 1.8vw, 1.3rem); }
.kci-section--dark .kci-lead { color: #e9dfe9; }
.kci-section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.kci-section-head > div:first-child { max-width: 780px; }

.kci-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px;
  border: 2px solid var(--kci-purple); border-radius: 999px; color: #fff; background: var(--kci-purple);
  font-size: .95rem; font-weight: 750; line-height: 1.2; text-decoration: none; transition: .2s ease;
}
.kci-button:hover { transform: translateY(-2px); color: #fff; background: var(--kci-purple-dark); border-color: var(--kci-purple-dark); box-shadow: 0 10px 24px rgba(69, 23, 67, .18); }
.kci-button--orange { color: #281407; background: var(--kci-orange); border-color: var(--kci-orange); }
.kci-button--orange:hover { color: #281407; background: #ff9b4e; border-color: #ff9b4e; }
.kci-button--ghost { color: var(--kci-purple); background: transparent; }
.kci-button--ghost:hover { color: #fff; }
.kci-button--white { color: var(--kci-purple-dark); background: #fff; border-color: #fff; }
.kci-button--white:hover { color: var(--kci-purple-dark); background: #fff8f0; border-color: #fff8f0; }
.kci-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.kci-announcement { padding: 9px 20px; color: #fff; background: var(--kci-purple-dark); font-size: .84rem; font-weight: 650; text-align: center; }
.kci-announcement a { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(113,35,107,.09); backdrop-filter: blur(14px); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.site-brand { display: flex; align-items: center; gap: 12px; color: var(--kci-ink); font-weight: 800; text-decoration: none; }
.site-brand img { width: 76px; height: 58px; object-fit: contain; }
.site-brand span { max-width: 180px; font-size: .9rem; line-height: 1.2; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--kci-ink); font-size: .92rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--kci-purple); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; color: #fff; background: var(--kci-purple); }

.kci-hero { position: relative; overflow: hidden; padding: clamp(66px, 8vw, 106px) 0 84px; background: linear-gradient(120deg, #fff 0%, #fff 48%, #fff4ea 100%); }
.kci-hero::before { content: ""; position: absolute; top: -180px; right: -150px; width: 480px; height: 480px; border: 80px solid rgba(113,35,107,.07); border-radius: 50%; }
.kci-hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(44px, 7vw, 90px); }
.kci-hero h1 { max-width: 800px; }
.kci-hero h1 em { color: var(--kci-purple); font-style: normal; }
.kci-hero__copy { max-width: 650px; color: var(--kci-muted); font-size: clamp(1.08rem, 1.8vw, 1.28rem); }
.kci-hero__actions { margin-top: 30px; }
.kci-hero__visual { position: relative; min-height: 550px; }
.kci-hero__image { position: absolute; inset: 0 0 38px 48px; width: calc(100% - 48px); height: calc(100% - 38px); object-fit: cover; border-radius: 140px 28px 100px 28px; box-shadow: var(--kci-shadow); }
.kci-hero__card { position: absolute; left: 0; bottom: 0; max-width: 245px; padding: 20px; border-radius: 18px; background: #fff; box-shadow: var(--kci-shadow); }
.kci-hero__card strong { display: block; color: var(--kci-purple); font-size: 1.8rem; line-height: 1; }
.kci-hero__card span { color: var(--kci-muted); font-size: .86rem; }
.kci-trustline { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 26px; color: var(--kci-muted); font-size: .86rem; font-weight: 650; }
.kci-trustline span::before { content: "✓"; margin-right: 8px; color: var(--kci-orange); font-weight: 900; }

.kci-stats { position: relative; z-index: 2; margin-top: -34px; }
.kci-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border-radius: 20px; background: var(--kci-purple); box-shadow: var(--kci-shadow); }
.kci-stat { padding: 28px 22px; color: #fff; text-align: center; }
.kci-stat + .kci-stat { border-left: 1px solid rgba(255,255,255,.2); }
.kci-stat strong { display: block; color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1; }
.kci-stat span { display: block; margin-top: 8px; color: #eadfea; font-size: .83rem; }

.kci-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.kci-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kci-card { padding: clamp(26px, 4vw, 38px); border: 1px solid var(--kci-line); border-radius: var(--kci-radius); background: #fff; box-shadow: 0 8px 30px rgba(39,20,44,.05); }
.kci-card__icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 26px; border-radius: 15px; color: #fff; background: var(--kci-purple); font-size: 1.35rem; font-weight: 850; }
.kci-card--orange .kci-card__icon { color: #2d1705; background: var(--kci-orange); }
.kci-card p { color: var(--kci-muted); }
.kci-card__link { font-weight: 760; }

.kci-pathway { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: clamp(42px, 8vw, 100px); }
.kci-pathway__image { position: relative; }
.kci-pathway__image img { width: 100%; min-height: 520px; object-fit: cover; border-radius: 28px; }
.kci-badge { position: absolute; right: -20px; bottom: 26px; width: 170px; padding: 18px; border-radius: 18px; color: #2d1705; background: var(--kci-orange); font-size: .9rem; font-weight: 750; box-shadow: var(--kci-shadow); }
.kci-steps { display: grid; gap: 24px; margin-top: 32px; }
.kci-step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.kci-step__number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: var(--kci-purple); font-weight: 800; }
.kci-step p { margin: 0; color: var(--kci-muted); }

.kci-program { position: relative; overflow: hidden; min-height: 330px; padding: 32px; border-radius: 24px; background: #fff; border: 1px solid var(--kci-line); }
.kci-program::after { content: ""; position: absolute; right: -38px; bottom: -54px; width: 150px; height: 150px; border: 28px solid rgba(113,35,107,.08); border-radius: 50%; }
.kci-program__tag { display: inline-block; margin-bottom: 52px; padding: 7px 12px; border-radius: 999px; color: var(--kci-purple); background: var(--kci-lilac); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.kci-program p { color: var(--kci-muted); }

.kci-gallery { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-template-rows: 240px 240px; gap: 16px; }
.kci-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.kci-gallery img:first-child { grid-row: 1 / 3; }
.kci-gallery img:nth-child(4) { grid-column: 2 / 4; }

.kci-partner-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: clamp(34px, 6vw, 62px); border-radius: 28px; color: #fff; background: linear-gradient(115deg, var(--kci-purple-dark), var(--kci-purple)); }
.kci-partner-band h2 { max-width: 760px; color: #fff; }
.kci-partner-band p { max-width: 690px; color: #eadfea; }
.kci-logo-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.kci-logo-list span { padding: 9px 13px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #fff; font-size: .78rem; }

.kci-page-hero { padding: clamp(72px, 9vw, 120px) 0; background: linear-gradient(130deg, var(--kci-lilac), #fff8f0); }
.kci-page-hero__inner { max-width: 880px; }
.kci-page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.7rem); }
.kci-page-content { padding: 80px 0 110px; }
.kci-prose { max-width: 820px; }
.kci-prose h2 { margin-top: 1.5em; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.kci-prose h3 { margin-top: 1.6em; }
.kci-prose p, .kci-prose li { color: var(--kci-muted); }
.kci-prose li { margin-bottom: .55em; }
.kci-feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 36px 0; padding: 0; list-style: none; }
.kci-feature-list li { padding: 20px; border-radius: 16px; background: var(--kci-lilac); }

.kci-event-hero { position: relative; overflow: hidden; color: #fff; background: var(--kci-purple-dark); }
.kci-event-hero h1 { color: #fff; }
.kci-event-hero .kci-lead { color: #eadfea; }
.kci-date-chip { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 28px; padding: 10px 16px; border-radius: 999px; color: #2d1705; background: var(--kci-orange); font-weight: 800; }
.kci-event-meta { display: flex; flex-wrap: wrap; gap: 14px 26px; color: #eadfea; font-size: .9rem; }
.kci-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: timeline; }
.kci-timeline__item { padding: 28px; border: 1px solid var(--kci-line); border-radius: 20px; background: #fff; }
.kci-timeline__item::before { counter-increment: timeline; content: "0" counter(timeline); display: block; margin-bottom: 34px; color: var(--kci-orange); font-weight: 850; }

.kci-form-wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(36px, 7vw, 80px); align-items: start; }
.kci-form-card { padding: clamp(26px, 4vw, 44px); border: 1px solid var(--kci-line); border-radius: 24px; background: #fff; box-shadow: var(--kci-shadow); }
.kci-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.kci-field { display: grid; gap: 7px; }
.kci-field--full { grid-column: 1 / -1; }
.kci-field label { color: var(--kci-ink); font-size: .88rem; font-weight: 750; }
.kci-field input, .kci-field select, .kci-field textarea { width: 100%; padding: 13px 14px; border: 1px solid #cfc6d0; border-radius: 10px; color: var(--kci-ink); background: #fff; }
.kci-field input:focus, .kci-field select:focus, .kci-field textarea:focus { outline: 3px solid rgba(113,35,107,.14); border-color: var(--kci-purple); }
.kci-field textarea { min-height: 150px; resize: vertical; }
.kci-form-note { color: var(--kci-muted); font-size: .82rem; }
.kci-honeypot { position: absolute; left: -9999px; }
.kci-alert { margin-bottom: 24px; padding: 16px 18px; border-radius: 12px; font-weight: 650; }
.kci-alert--success { color: #174d32; background: #e7f7ee; }
.kci-alert--error { color: #7b2525; background: #fdecec; }
.kci-contact-list { display: grid; gap: 18px; margin-top: 28px; }
.kci-contact-item { padding: 20px; border-radius: 16px; background: var(--kci-lilac); }
.kci-contact-item small { display: block; color: var(--kci-muted); }

.site-footer { padding: 72px 0 24px; color: #d9cfdb; background: #241323; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.1fr .6fr .6fr .8fr; gap: 40px; padding-bottom: 52px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer h3 { font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer__brand img { width: 118px; margin-bottom: 18px; }
.site-footer__brand p { max-width: 360px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }

@media (max-width: 980px) {
  .admin-bar .site-header { top: 46px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: fixed; inset: 84px 0 auto; display: none; padding: 30px 20px 40px; background: #fff; box-shadow: var(--kci-shadow); }
  .admin-bar .site-nav { top: 130px; }
  .site-nav.is-open { display: grid; }
  .site-nav ul { display: grid; gap: 8px; }
  .site-nav li a { display: block; padding: 10px 0; font-size: 1.1rem; }
  .site-nav .kci-button { margin-top: 12px; }
  .kci-hero__grid, .kci-pathway, .kci-form-wrap { grid-template-columns: 1fr; }
  .kci-hero__visual { min-height: 460px; }
  .kci-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .kci-stat:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
  .kci-stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,.2); }
  .kci-grid-3, .kci-timeline { grid-template-columns: 1fr 1fr; }
  .kci-partner-band { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .kci-container, .kci-narrow { width: min(calc(100% - 28px), var(--kci-width)); }
  .site-header__inner { min-height: 72px; }
  .site-brand span { display: none; }
  .site-brand img { width: 66px; height: 50px; }
  .site-nav { top: 72px; }
  .admin-bar .site-nav { top: 118px; }
  .kci-hero { padding-top: 52px; }
  .kci-hero__visual { min-height: 380px; }
  .kci-hero__image { inset: 0 0 30px 24px; width: calc(100% - 24px); height: calc(100% - 30px); border-radius: 80px 22px 70px 22px; }
  .kci-hero__card { max-width: 205px; padding: 16px; }
  .kci-badge { right: 0; }
  .kci-stats__grid, .kci-grid-2, .kci-grid-3, .kci-timeline, .kci-form-grid, .kci-feature-list { grid-template-columns: 1fr; }
  .kci-stat + .kci-stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
  .kci-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 170px 170px; }
  .kci-gallery img:first-child { grid-column: 1 / 3; grid-row: auto; }
  .kci-gallery img:nth-child(4) { grid-column: 1 / 3; }
  .kci-section-head { display: block; }
  .kci-section-head .kci-actions { margin-top: 24px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
