/*
Theme Name: KairoPact
Theme URI: https://kairopact.com
Author: KairoPact Private Limited
Description: Official KairoPact WordPress theme — Bionic Execution Infrastructure for Social Impact. Pixel-faithful port of the Vite React site.
Version: 1.0.0
License: Proprietary
Text Domain: kairopact
*/

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
/* Google Font loaded dynamically via kp_load_google_font() in functions.php */

/* ============================================================
   CSS CUSTOM PROPERTIES  (design tokens mirrored from index.css)
   ============================================================ */
:root {
  --background:        hsl(0 0% 100%);
  --foreground:        hsl(225.2 55.6% 30%);
  --card:              hsl(0 0% 100%);
  --card-foreground:   hsl(225.2 55.6% 30%);
  --primary:           hsl(221.4 44.7% 18.4%);       /* #1A2744 navy */
  --primary-foreground:hsl(0 0% 100%);
  --secondary:         hsl(35 100% 95%);
  --secondary-foreground: hsl(225.2 55.6% 30%);
  --muted:             hsl(220 20% 90%);
  --muted-foreground:  hsl(0 0% 0%);
  --accent:            hsl(32 95% 52%);               /* #F5850C amber */
  --accent-foreground: hsl(0 0% 100%);
  --destructive:       hsl(0 84% 60%);
  --border:            hsl(220 13% 91%);
  --input:             hsl(220 13% 91%);
  --ring:              hsl(225.2 55.6% 30%);
  --radius:            0.5rem;
  --cream:             hsl(35 100% 95%);

  --nova-gradient:  linear-gradient(135deg, hsl(32 95% 52%) 0%, hsl(25 100% 45%) 100%);
  --subtle-gradient: linear-gradient(180deg, hsl(35 100% 95%) 0%, hsl(0 0% 100%) 100%);
  --hero-gradient:  linear-gradient(135deg, #1A2744 0%, #141E33 100%);

  --shadow-sm:   0 1px 2px 0 hsl(225.2 55.6% 30% / 0.05);
  --shadow-md:   0 4px 6px -1px hsl(225.2 55.6% 30% / 0.08), 0 2px 4px -1px hsl(225.2 55.6% 30% / 0.04);
  --shadow-lg:   0 10px 15px -3px hsl(225.2 55.6% 30% / 0.08), 0 4px 6px -2px hsl(225.2 55.6% 30% / 0.04);
  --shadow-xl:   0 20px 25px -5px hsl(225.2 55.6% 30% / 0.1), 0 10px 10px -5px hsl(225.2 55.6% 30% / 0.04);
  --shadow-card: 0 0 0 1px hsl(220 13% 91%), 0 2px 4px hsl(225.2 55.6% 30% / 0.04);
  --shadow-card-hover: 0 0 0 1px hsl(32 95% 52% / 0.3), 0 8px 16px hsl(225.2 55.6% 30% / 0.08);

  --brand-blue:  #223777;
  --brand-grey:  #B2B9C8;
  --nova-default:hsl(32 95% 52%);
  --nova-light:  hsl(32 95% 65%);
  --nova-dark:   hsl(25 100% 45%);

  --section-max:  1280px;
  --section-px:   1.5rem;          /* 24px */
  --section-px-lg:3rem;            /* 48px */
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--foreground);
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.section-container {
  max-width: var(--section-max);
  margin: 0 auto;
  padding-left: var(--section-px);
  padding-right: var(--section-px);
}

@media (min-width: 1024px) {
  .section-container {
    padding-left: var(--section-px-lg);
    padding-right: var(--section-px-lg);
  }
}

.section-padding { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px)  { .section-padding { padding-top: 6rem; padding-bottom: 6rem; } }
@media (min-width: 1024px) { .section-padding { padding-top: 8rem; padding-bottom: 8rem; } }

.py-12-16 { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .py-12-16 { padding-top: 4rem; padding-bottom: 4rem; } }

.gradient-text {
  background: var(--nova-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-balance { text-wrap: balance; }

/* ============================================================
   BUTTON SYSTEM
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-nova {
  background: var(--nova-gradient);
  color: #fff;
  border-color: transparent;
}
.btn-nova:hover { opacity: 0.9; color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}
.btn-outline:hover { background: var(--muted); }

.btn-hero {
  background: #fff;
  color: var(--primary);
  border-color: transparent;
}
.btn-hero:hover { background: rgba(255,255,255,0.9); color: var(--primary); }

.btn-hero-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.btn-sm  { font-size: 0.8125rem; padding: 0.375rem 0.875rem; }
.btn-lg  { font-size: 1rem;      padding: 0.75rem 1.5rem; }
.btn-xl  { font-size: 1.0625rem; padding: 0.875rem 1.75rem; }
.btn-full { width: 100%; }

/* ============================================================
   CARD BASE
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { box-shadow: var(--shadow-card-hover); border-color: hsl(32 95% 52% / 0.3); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes carouselSlide {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulseGlow {
  0%,100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.animate-fade-in     { animation: fadeIn 0.6s ease-out forwards; }
.animate-carousel    { animation: carouselSlide 0.6s ease-out forwards; }
.animate-pulse-glow  { animation: pulseGlow 3s ease-in-out infinite; }

/* ============================================================
   ▌ NAVBAR — dark by default, white on scroll, consistent on all pages
   ============================================================ */
#kp-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}

/* ── Tagline strip ─────────────────────────────────────────── */
.kp-tagline-strip {
  width: 100%;
  text-align: center;
  padding: 0.375rem 1rem;
  transition: background 0.3s, border-color 0.3s;
  background: #1A2744;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.kp-tagline-strip p {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.45);
}
#kp-header.scrolled .kp-tagline-strip {
  background: rgb(224,228,234);
  border-bottom-color: rgba(0,0,0,0.08);
}
#kp-header.scrolled .kp-tagline-strip p {
  color: rgba(34,55,119,0.55);
}

/* ── Main nav bar ──────────────────────────────────────────── */
.kp-navbar {
  transition: all 0.3s ease;
  background: #1A2744;
}
#kp-header.scrolled .kp-navbar {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  border-bottom: 1px solid var(--border);
}

.kp-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 1024px) { .kp-navbar-inner { height: 5rem; } }

.kp-logo { display: flex; align-items: center; flex-shrink: 0; margin-right: 1.5rem; }
.kp-logo img { height: 2.5rem; width: auto; }
@media (min-width: 1024px) { .kp-logo img { height: 3rem; } }

/* ── Desktop nav links ─────────────────────────────────────── */
.kp-nav-links {
  display: none;
  align-items: center;
  gap: 0.125rem;
  flex: 1;
}
@media (min-width: 1024px) { .kp-nav-links { display: flex; } }

.kp-nav-link, .kp-nav-dropdown-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  color: rgba(255,255,255,0.8);
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  cursor: pointer;
}
.kp-nav-link:hover, .kp-nav-dropdown-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
#kp-header.scrolled .kp-nav-link,
#kp-header.scrolled .kp-nav-dropdown-btn {
  color: var(--muted-foreground);
}
#kp-header.scrolled .kp-nav-link:hover,
#kp-header.scrolled .kp-nav-dropdown-btn:hover {
  color: var(--foreground);
  background: var(--muted);
}
.kp-nav-link.active, .kp-nav-dropdown-btn.active { color: var(--accent) !important; }

/* ── Chevron ───────────────────────────────────────────────── */
.kp-chevron {
  width: 14px; height: 14px;
  transition: transform 0.2s;
  opacity: 0.6;
  display: inline-block;
}
.kp-dropdown-wrap.open .kp-chevron { transform: rotate(180deg); opacity: 0.9; }

/* ── Dropdown menu ─────────────────────────────────────────── */
.kp-dropdown-wrap { position: relative; }
.kp-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  margin-top: 0.5rem;
  width: 20rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  padding: 0.375rem;
  z-index: 200;
}
.kp-dropdown-wrap.open .kp-dropdown-menu { display: block; }
.kp-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--foreground);
  transition: background 0.15s;
}
.kp-dropdown-item:hover { background: var(--muted); }
.kp-dropdown-item .item-label { font-size: 0.875rem; font-weight: 500; }
.kp-dropdown-item .item-desc  { font-size: 0.75rem; color: var(--muted-foreground); }

/* ── Desktop CTA ───────────────────────────────────────────── */
.kp-desktop-cta { display: none; flex-shrink: 0; }
@media (min-width: 1024px) { .kp-desktop-cta { display: block; text-align: right; } }
.kp-desktop-cta .cta-subtext {
  font-size: 0.625rem;
  margin-top: 0.25rem;
  color: rgba(255,255,255,0.4);
}
#kp-header.scrolled .kp-desktop-cta .cta-subtext { color: var(--muted-foreground); }

/* ── Hamburger ─────────────────────────────────────────────── */
.kp-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: var(--radius);
  border: none;
  background: none;
  color: rgba(255,255,255,0.8);
  transition: background 0.2s;
}
.kp-hamburger:hover { background: rgba(255,255,255,0.1); }
#kp-header.scrolled .kp-hamburger { color: var(--foreground); }
#kp-header.scrolled .kp-hamburger:hover { background: var(--muted); }
@media (min-width: 1024px) { .kp-hamburger { display: none; } }

/* ── Mobile menu ───────────────────────────────────────────── */
.kp-mobile-menu {
  display: none;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.kp-mobile-menu.open { display: block; }
.kp-mobile-menu-inner { padding: 1rem 0; }
.kp-mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  border-radius: var(--radius);
  transition: background 0.15s;
}
.kp-mobile-link:hover { background: var(--muted); }
.kp-mobile-link.active { color: var(--accent); }
.kp-mobile-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  border-radius: var(--radius);
  border: none;
  background: none;
  transition: background 0.15s;
}
.kp-mobile-dropdown-btn:hover { background: var(--muted); }
.kp-mobile-submenu {
  display: none;
  margin-left: 1rem;
  border-left: 2px solid var(--border);
  padding-left: 0.5rem;
}
.kp-mobile-submenu.open { display: block; }
.kp-mobile-submenu a {
  display: block;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
  border-radius: var(--radius);
  transition: background 0.15s;
}
.kp-mobile-submenu a:hover { background: var(--muted); }
.kp-mobile-cta-wrap {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.kp-mobile-cta-wrap .cta-subtext {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* Header spacer — matches tagline (28px) + navbar (64px mobile / 80px desktop) */
.kp-header-spacer { height: 92px; }
@media (min-width: 1024px) { .kp-header-spacer { height: 108px; } }

/* ============================================================
   ▌ HERO CAROUSEL
   ============================================================ */
#kp-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: #1A2744;
  overflow: hidden;
}

.kp-hero-inner {
  padding-top: 6rem;
  padding-bottom: 6rem;
  position: relative;
  z-index: 10;
  width: 100%;
}
@media (min-width: 1024px) {
  .kp-hero-inner { padding-top: 8rem; padding-bottom: 8rem; }
}

.kp-hero-slide-wrap {
  max-width: 48rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) { .kp-hero-slide-wrap { min-height: 320px; } }

.kp-hero-slide {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.kp-slide-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.kp-slide-headline {
  font-size: clamp(1.875rem, 5vw, 3.125rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.kp-slide-headline .highlight { color: var(--accent); font-weight: 700; }

.kp-slide-subline {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 40rem;
}
@media (min-width: 1024px) { .kp-slide-subline { font-size: 1.125rem; } }

.kp-slide-spacer { flex: 1; min-height: 1.5rem; }

.kp-slide-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}

.kp-trust-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
}

/* Carousel dots */
.kp-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.kp-dot {
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.3);
  width: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.kp-dot.active { width: 2rem; background: var(--accent); }

/* Credibility strip */
.kp-hero-cred {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
}
.kp-hero-cred p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* ============================================================
   ▌ STATS BAR
   ============================================================ */
#kp-stats {
  background: #1A2744;
  padding: 3rem 0;
}
@media (min-width: 1024px) { #kp-stats { padding: 4rem 0; } }

.kp-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px)  { .kp-stats-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .kp-stats-grid { grid-template-columns: repeat(4,1fr); } }

.kp-stat { text-align: center; }
@media (min-width: 640px) { .kp-stat { text-align: left; } }
.kp-stat-figure {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
  line-height: 1;
}
@media (min-width: 1024px) { .kp-stat-figure { font-size: 2.5rem; } }
.kp-stat-body  { font-size: 0.875rem; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 0.5rem; }
.kp-stat-source{ font-size: 0.75rem; color: rgba(255,255,255,0.4); font-style: italic; }

/* ============================================================
   ▌ PAIN POINTS
   ============================================================ */
#kp-pain { background: var(--background); padding: 3rem 0; }
@media (min-width: 1024px) { #kp-pain { padding: 4rem 0; } }

.kp-pain-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
@media (min-width: 640px) { .kp-pain-title { font-size: 1.875rem; } }

.kp-pain-intro {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto 2rem;
  text-align: center;
  line-height: 1.7;
}
@media (min-width: 640px) { .kp-pain-intro { font-size: 1rem; } }

.kp-pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .kp-pain-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .kp-pain-grid { grid-template-columns: repeat(4,1fr); } }

.kp-pain-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
}

.kp-pain-icon { color: var(--accent); flex-shrink: 0; }
.kp-pain-text { font-size: 0.875rem; font-weight: 500; line-height: 1.6; color: var(--foreground); }
.kp-pain-link { font-size: 0.75rem; color: var(--accent); font-weight: 500; margin-top: auto; transition: text-decoration 0.15s; }
.kp-pain-link:hover { text-decoration: underline; }

/* ============================================================
   ▌ SPEED TIERS
   ============================================================ */
#kp-speed { background: #F7F7F7; padding: 3rem 0; }
@media (min-width: 1024px) { #kp-speed { padding: 4rem 0; } }

.kp-speed-header { text-align: center; margin-bottom: 2rem; }
.kp-speed-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) { .kp-speed-header h2 { font-size: 1.875rem; } }
.kp-speed-header p { color: var(--muted-foreground); max-width: 28rem; margin: 0 auto; }

.kp-speed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .kp-speed-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .kp-speed-grid { grid-template-columns: repeat(4,1fr); } }

.kp-tier-icon   { color: var(--accent); margin-bottom: 0.75rem; }
.kp-tier-time   { font-size: 0.75rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.kp-tier-name   { font-size: 1rem; font-weight: 600; color: var(--foreground); margin-bottom: 0.5rem; }
.kp-tier-desc   { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; flex: 1; margin-bottom: 1rem; }

.kp-blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin-top: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
.kp-blockquote p  { font-size: 1rem; line-height: 1.7; font-style: italic; color: var(--foreground); margin-bottom: 0.5rem; }
@media (min-width: 1024px) { .kp-blockquote p { font-size: 1.125rem; } }
.kp-blockquote footer { font-size: 0.875rem; color: #6B7280; }

/* ============================================================
   ▌ WHO WE SERVE
   ============================================================ */
#kp-who-serve { background: var(--background); padding: 3rem 0; }
@media (min-width: 1024px) { #kp-who-serve { padding: 4rem 0; } }

.kp-serve-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.025em;
  margin-bottom: 0;
}
@media (min-width: 640px) { .kp-serve-title { font-size: 1.875rem; } }

.kp-serve-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 640px) { .kp-serve-grid { grid-template-columns: repeat(3,1fr); } }

.kp-serve-icon   { color: var(--accent); margin-bottom: 0.75rem; }
.kp-serve-name   { font-size: 1rem; font-weight: 600; color: var(--foreground); margin-bottom: 0.5rem; }
.kp-serve-desc   { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.kp-serve-link   { font-size: 0.875rem; color: var(--accent); font-weight: 500; margin-top: auto; }
.kp-serve-link:hover { text-decoration: underline; }

/* ============================================================
   ▌ OUR PRODUCTS
   ============================================================ */
#kp-products { background: #F7F7F7; padding: 3rem 0; }
@media (min-width: 1024px) { #kp-products { padding: 4rem 0; } }

.kp-products-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .kp-products-title { font-size: 1.875rem; } }

.kp-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px)  { .kp-products-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .kp-products-grid { grid-template-columns: repeat(3,1fr); } }

.kp-products-footer { text-align: center; }
.kp-products-footer a { font-size: 0.875rem; color: var(--accent); font-weight: 500; }
.kp-products-footer a:hover { text-decoration: underline; }

/* ============================================================
   ▌ WHERE WE WORK
   ============================================================ */
#kp-where { background: #1A2744; padding: 3rem 0; }
@media (min-width: 1024px) { #kp-where { padding: 4rem 0; } }

.kp-where-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
@media (min-width: 640px) { .kp-where-title { font-size: 1.875rem; } }
.kp-where-intro { color: rgba(255,255,255,0.6); font-size: 0.875rem; max-width: 40rem; margin: 0 auto 2rem; text-align: center; line-height: 1.7; }
@media (min-width: 640px) { .kp-where-intro { font-size: 1rem; } }

.kp-where-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1.25rem;
}
@media (min-width: 1024px) { .kp-where-grid { grid-template-columns: repeat(4,1fr); } }

.kp-where-card {
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.kp-where-emoji { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.kp-where-name  { font-size: 0.875rem; font-weight: 600; color: #fff; }

/* ============================================================
   ▌ WHY KAIROPACT
   ============================================================ */
#kp-why { background: var(--background); padding: 3rem 0; }
@media (min-width: 1024px) { #kp-why { padding: 4rem 0; } }

.kp-why-wrap { max-width: 56rem; margin: 0 auto; }
.kp-why-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .kp-why-title { font-size: 1.875rem; } }

.kp-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 1024px) { .kp-why-grid { grid-template-columns: repeat(2,1fr); } }

.kp-bullet-list { display: flex; flex-direction: column; gap: 1rem; }
.kp-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.kp-bullet-check { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.kp-bullet p { font-size: 0.875rem; line-height: 1.6; color: var(--foreground); }

/* Bionic explainer panel */
.kp-bionic-panel {
  border-radius: 0.5rem;
  padding: 1.5rem;
  border-left: 8px solid var(--accent);
  background: #1A2744;
  margin-bottom: 2rem;
}
@media (min-width: 1024px) { .kp-bionic-panel { padding: 2rem; } }

.kp-bionic-label {
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}
.kp-bionic-body { color: rgba(255,255,255,0.8); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.5rem; }

/* ============================================================
   ▌ FINAL CTA SECTION
   ============================================================ */
#kp-final-cta {
  background: #1A2744;
  padding: 3rem 0;
}
@media (min-width: 1024px) { #kp-final-cta { padding: 4rem 0; } }

.kp-final-cta-inner { text-align: center; max-width: 40rem; margin: 0 auto; }
.kp-final-cta-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
@media (min-width: 640px) { .kp-final-cta-inner h2 { font-size: 1.875rem; } }
.kp-final-cta-inner p { color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; }
.kp-final-cta-trust { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 0.75rem; }

/* ============================================================
   ▌ CONTACT SECTION
   ============================================================ */
#kp-contact {
  background: var(--primary);
  padding: 4rem 0 5rem;
  overflow: hidden;
  scroll-margin-top: 7rem;
}

.kp-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .kp-contact-grid { grid-template-columns: repeat(2,1fr); gap: 4rem; }
}

.kp-contact-overline {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,133,12,0.65);
  font-weight: 500;
  display: block;
  margin-bottom: 1rem;
}
.kp-contact-divider {
  width: 3rem; height: 3px; border-radius: 2px;
  background: var(--nova-gradient);
  margin-bottom: 1.25rem;
}
.kp-contact-heading {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
@media (min-width: 640px) { .kp-contact-heading { font-size: 2.25rem; } }
.kp-contact-body { color: rgba(255,255,255,0.45); line-height: 1.7; font-weight: 300; margin-bottom: 2rem; }
.kp-contact-book-sub { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-bottom: 1.5rem; margin-top: 0.75rem; }
.kp-contact-hint { font-size: 0.75rem; color: rgba(255,255,255,0.4); font-style: italic; margin-bottom: 0.75rem; }
.kp-contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.kp-contact-email:hover { color: var(--accent); }

/* Contact form */
.kp-form { display: flex; flex-direction: column; gap: 1rem; }
.kp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.kp-form-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.375rem;
}
.kp-form-input, .kp-form-textarea, .kp-form-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}
.kp-form-input::placeholder, .kp-form-textarea::placeholder { color: rgba(255,255,255,0.2); }
.kp-form-input:focus, .kp-form-textarea:focus, .kp-form-select:focus {
  border-color: rgba(245,133,12,0.5);
}
.kp-form-textarea { resize: vertical; min-height: 100px; }
.kp-form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1rem; padding-right: 2.5rem; cursor: pointer; }
.kp-form-select option { background: #1A2744; color: #fff; }
.kp-form-error { font-size: 0.75rem; color: hsl(0 84% 60%); margin-top: 0.25rem; }
.kp-form-privacy { font-size: 0.75rem; color: rgba(255,255,255,0.3); text-align: center; padding-top: 0.25rem; }
.kp-form-impactmatch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  padding-top: 0.5rem;
  transition: color 0.2s;
}
.kp-form-impactmatch:hover { color: var(--accent); }

/* ============================================================
   ▌ SWIFT MODAL
   ============================================================ */
.kp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 640px) {
  .kp-modal-overlay { align-items: center; }
}
.kp-modal-overlay.open { display: flex; }

.kp-modal {
  background: var(--primary);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 100%;
  max-width: 32rem;
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 1.5rem;
  position: relative;
}
@media (min-width: 640px) {
  .kp-modal { border-radius: 0.75rem; }
}

.kp-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem;
}
.kp-modal-close:hover { color: #fff; }

.kp-modal h3 { font-size: 1.125rem; font-weight: 600; color: #fff; margin-bottom: 0.75rem; padding-right: 1.5rem; line-height: 1.4; }
.kp-modal-desc  { font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 0.75rem; }
.kp-modal-trust { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-bottom: 0.375rem; }
.kp-modal-ctas  { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }

/* ============================================================
   ▌ FOOTER (FooterV5 replica)
   ============================================================ */
#kp-footer {
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.kp-footer-inner { padding: 3rem 0; }
@media (min-width: 1024px) { .kp-footer-inner { padding: 4rem 0; } }

.kp-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .kp-footer-grid { grid-template-columns: repeat(3,1fr); } }

.kp-footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}
.kp-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.kp-footer-col a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.kp-footer-col a:hover { color: var(--accent); }

.kp-footer-geo {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-bottom: 1.5rem;
}

.kp-footer-copy-wrap {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.kp-footer-tagline {
  font-size: 0.625rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.kp-footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  line-height: 1.6;
}

.kp-footer-legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
@media (min-width: 640px) { .kp-footer-legal { flex-direction: row; } }

.kp-footer-legal-links { display: flex; align-items: center; gap: 1.5rem; }
.kp-footer-legal-links a { font-size: 0.75rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.kp-footer-legal-links a:hover { color: var(--accent); }

.kp-footer-ai-links { display: flex; align-items: center; gap: 1rem; }
.kp-footer-ai-links a { font-size: 0.625rem; color: rgba(255,255,255,0.2); transition: color 0.2s; }
.kp-footer-ai-links a:hover { color: rgba(255,255,255,0.4); }

/* ============================================================
   ▌ TICKER BAR (bonus: site-wide tagline ticker)
   ============================================================ */
.kp-ticker {
  overflow: hidden;
  background: var(--accent);
  padding: 0.5rem 0;
}
.kp-ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}
.kp-ticker-track:hover { animation-play-state: paused; }
.kp-ticker-item {
  white-space: nowrap;
  padding: 0 2.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
}
.kp-ticker-sep { color: rgba(255,255,255,0.5); padding: 0 0.5rem; }

/* ============================================================
   ▌ WORDPRESS ALIGNMENT / UTILITY
   ============================================================ */
.wp-block-image img { max-width: 100%; height: auto; }
.alignnone { margin: 0; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignleft   { float: left; margin: 0 1.5rem 1rem 0; }
.alignright  { float: right; margin: 0 0 1rem 1.5rem; }


/* Screen reader only */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%; left: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-size: 0.875rem;
}
.skip-link:focus { top: 0; }

/* Forms success/error states */
.kp-form-success { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.4); border-radius: var(--radius); padding: 1rem; color: #4ade80; font-size: 0.875rem; text-align: center; }
.kp-form-fail    { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  border-radius: var(--radius); padding: 1rem; color: hsl(0 84% 60%); font-size: 0.875rem; text-align: center; }
