/* CA KP Bhagat site theme (blue): colours, type, cards, buttons, hero and motion.
   Loaded after tailwind.css; fonts (Geist, PT Mono) come from Google Fonts in each page head. */


:root {
  --kp-blue: #0067ed;
  --kp-deep: #004691;
  --kp-ink: #1e1e1f;
  --kp-bg: #fafafa;
  --kp-line: #e2e3e6;
  --kp-muted: #5c6066;
  --kp-ease: cubic-bezier(.135, .9, .15, 1);
}

/* ---------- Type ---------- */
body, .font-sans, .font-heading { font-family: 'Geist', -apple-system, sans-serif !important; }
body { background: var(--kp-bg) !important; color: var(--kp-ink) !important; }
h1, h2 { font-weight: 500 !important; letter-spacing: -0.045em !important; }
h1 { line-height: 1.04 !important; }
h2 { line-height: 1.1 !important; }
h3, h4 { font-weight: 500 !important; letter-spacing: -0.02em !important; }
h1.text-4xl, h1[class*="text-5xl"], h1[class*="text-6xl"], h1[class*="3.5rem"] { font-size: clamp(2.6rem, 4.6vw, 4.6rem) !important; }
h2[class*="2.75rem"], h2[class*="text-5xl"] { font-size: clamp(2.1rem, 3.3vw, 3.4rem) !important; }
.font-bold { font-weight: 500 !important; }
.text-muted { color: var(--kp-muted) !important; }
.text-charcoal { color: var(--kp-ink) !important; }
.text-primary { color: var(--kp-blue) !important; }
.bg-primary { background-color: var(--kp-deep) !important; }
.bg-primary\/10, .bg-primary\/\[0\.07\] { background-color: rgba(0, 103, 237, .08) !important; }
.bg-gray-50, .bg-slate-50 { background-color: var(--kp-bg) !important; }
.border-border-subtle { border-color: var(--kp-line) !important; }
::selection { background: rgba(0, 103, 237, .18); }

/* Section labels: capitals in a soft blue pill with a small dot ("• OUR SERVICES") */
.kp-eyebrow {
  font-family: 'Geist', -apple-system, sans-serif !important;
  font-size: 11.5px !important; font-weight: 600 !important;
  letter-spacing: .12em !important; text-transform: uppercase !important;
  display: inline-flex !important; align-items: center; gap: .55rem; width: fit-content !important;
  padding: .42rem .85rem !important; border-radius: 999px !important;
  background: rgba(0, 103, 237, .08) !important; color: var(--kp-blue) !important;
}
.kp-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--kp-blue); flex: none; display: block !important; }
.kp-eyebrow > span.rounded-full { display: none !important; }
.kp-dark .kp-eyebrow, .bg-dark .kp-eyebrow, .kp-night .kp-eyebrow, .kp-blue .kp-eyebrow, .kp-bluecard .kp-eyebrow { background: rgba(255, 255, 255, .14) !important; color: #fff !important; }
.kp-dark .kp-eyebrow::before, .bg-dark .kp-eyebrow::before, .kp-night .kp-eyebrow::before, .kp-blue .kp-eyebrow::before, .kp-bluecard .kp-eyebrow::before { background: #7fb6ff !important; }
.kp-eyebrow.block, div.kp-eyebrow { display: flex !important; }
.text-center > .kp-eyebrow.block, .text-center > div.kp-eyebrow { margin-left: auto; margin-right: auto; }

/* ---------- Shapes ---------- */
[class*="rounded-2xl"], [class*="rounded-3xl"] { border-radius: .5rem !important; }
[class*="rounded-xl"] { border-radius: .375rem !important; }
.shadow-xl, .shadow-lg, .shadow-sm { box-shadow: none !important; }

/* Corner-dot motif */
.kp-dots {
  --dot: rgba(255,255,255,.9);
  background-image:
    radial-gradient(circle, var(--dot) 0 1.6px, transparent 2.2px),
    radial-gradient(circle, var(--dot) 0 1.6px, transparent 2.2px),
    radial-gradient(circle, var(--dot) 0 1.6px, transparent 2.2px),
    radial-gradient(circle, var(--dot) 0 1.6px, transparent 2.2px) !important;
  background-size: 8px 8px !important;
  background-repeat: no-repeat !important;
  background-position: 9px 9px, calc(100% - 9px) 9px, 9px calc(100% - 9px), calc(100% - 9px) calc(100% - 9px) !important;
}
.kp-dots-light { --dot: #b9bec6; }

/* Frosted glass card */
.kp-glass {
  background-color: rgba(255, 255, 255, .12) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 0 !important; border-radius: .5rem !important;
  color: #fff !important;
}
p.kp-glass { padding: 1.5rem 1.75rem !important; font-size: 1rem !important; line-height: 1.55 !important; max-width: 34rem !important; }

/* ---------- Buttons: pill with a round blue arrow ---------- */
.kp-btn {
  display: inline-flex !important; align-items: center !important; justify-content: space-between !important;
  gap: 1rem !important; padding: .35rem .35rem .35rem 1.3rem !important;
  border-radius: 3rem !important; border: 0 !important; box-shadow: none !important;
  background: var(--kp-deep) !important; color: #fff !important;
  font-weight: 500 !important; font-size: .95rem !important; letter-spacing: -.01em;
  transition: background-color .45s var(--kp-ease) !important;
}
.kp-btn .kp-arrow {
  width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--kp-blue);
  display: grid; place-items: center; flex: none; transition: transform .9s var(--kp-ease);
}
.kp-btn .kp-arrow svg { width: 15px; height: 15px; stroke: #fff; }
.kp-btn:hover .kp-arrow { transform: rotate(45deg); }
.kp-btn-ghost { background: #e6e7ea !important; color: var(--kp-ink) !important; }
.kp-dark .kp-btn-ghost, .bg-dark .kp-btn-ghost { background: rgba(150, 156, 166, .35) !important; color: #fff !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#main-header .kp-btn { font-size: .85rem !important; padding: .25rem .25rem .25rem 1rem !important; }
#main-header .kp-btn .kp-arrow { width: 1.9rem; height: 1.9rem; }

/* ---------- Header: frosted bar ---------- */
#main-header {
  background: rgba(64, 68, 76, .42) !important;
  -webkit-backdrop-filter: blur(14px) !important; backdrop-filter: blur(14px) !important;
  border: 0 !important; box-shadow: none !important; height: 4.25rem !important;
}
#main-header nav a { color: rgba(255,255,255,.82) !important; font-weight: 400 !important; }
#main-header nav a[aria-current] { color: #fff !important; font-weight: 500 !important; }
#main-header nav a > span { background: #fff !important; height: 1px !important; }
#main-header a[href^="mailto"] { color: rgba(255,255,255,.8) !important; }
#main-header #mobile-menu-toggle { color: #fff !important; }
.kp-logo-tile { background: #fff; border-radius: 4px; padding: 3px; display: inline-flex; margin-top: -3px; }

/* ---------- Hero: moving blurred colour field ---------- */
.kp-hero { position: relative !important; overflow: hidden !important; background: #1d2433 !important; color: #fff; }
.kp-hero::before {
  content: ''; position: absolute; inset: -6%; z-index: 0;
  background: var(--hero-img) center / cover no-repeat;
  animation: kpDrift 22s ease-in-out infinite alternate;
}
.kp-hero > * { position: relative; z-index: 1; }
.kp-hero > .absolute { display: none !important; }
@keyframes kpDrift { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.12) translate(-3%, 2%); } }
.kp-hero-home { --hero-img: url('../images/theme/hero-home.jpg'); min-height: 100vh; display: flex; align-items: flex-end; padding-top: 8rem !important; padding-bottom: 4.5rem !important; }
.kp-hero-home > div { width: 100%; }
.kp-hero-inner { --hero-img: url('../images/theme/hero-inner.jpg'); padding-top: 10rem !important; padding-bottom: 6rem !important; }
.kp-hero-quiet { --hero-img: url('../images/theme/hero-quiet.jpg'); padding-top: 10rem !important; padding-bottom: 5rem !important; }
.kp-hero h1, .kp-hero h2, .kp-hero h3, .kp-hero b, .kp-hero .text-charcoal { color: #fff !important; }
.kp-hero .text-muted, .kp-hero p { color: rgba(255,255,255,.84) !important; }
.kp-hero .bg-white { background-color: rgba(18, 28, 48, .38) !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 0 !important; color: #fff !important; }
.kp-hero .bg-slate-200 { background: rgba(255,255,255,.18) !important; color: #fff !important; border-color: transparent !important; }
.kp-hero .bg-primary:not(.kp-btn) { background-color: var(--kp-blue) !important; }
.kp-hero img { border-radius: .5rem; }

/* Article page: dark band behind the title block */
.kp-article { padding-top: 10rem !important; }
.kp-article-head { position: relative; display: flow-root; }
.kp-article-head::before { content: ''; position: absolute; z-index: -1; top: -10rem; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw;
  background: #1d2433 url('../images/theme/hero-quiet.jpg') center / cover; }
.kp-article-head h1, .kp-article-head .text-charcoal { color: #fff !important; }
.kp-article-head .text-muted, .kp-article-head a { color: rgba(255,255,255,.8) !important; }
.kp-article-head .text-primary { color: #9cc6ff !important; }
body { overflow-x: clip; }

/* ---------- Dark sections ---------- */
.bg-dark { background-color: #05070b !important; }
section.bg-dark:not(.kp-cta) { background-image: url('../images/theme/lines.svg') !important; background-repeat: no-repeat !important; background-size: 55% auto !important; background-position: 105% 50% !important; }
.bg-dark-card {
  background-color: transparent !important;
  background: linear-gradient(165deg, #2148a8 0%, #163a8e 45%, #0d2a6c 100%) !important;
  border: 0 !important; border-radius: .5rem !important;
}
.bg-dark-card.kp-dots, .kp-bluecard { color: #fff !important; border: 0 !important; background-repeat: no-repeat !important; background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 1.6px, transparent 2.2px),
    radial-gradient(circle, rgba(255,255,255,.9) 0 1.6px, transparent 2.2px),
    radial-gradient(circle, rgba(255,255,255,.9) 0 1.6px, transparent 2.2px),
    radial-gradient(circle, rgba(255,255,255,.9) 0 1.6px, transparent 2.2px),
    linear-gradient(165deg, #2148a8 0%, #163a8e 45%, #0d2a6c 100%) !important;
  background-size: 8px 8px, 8px 8px, 8px 8px, 8px 8px, 100% 100% !important;
  background-position: 9px 9px, calc(100% - 9px) 9px, 9px calc(100% - 9px), calc(100% - 9px) calc(100% - 9px), 0 0 !important; }
.bg-dark .bg-white\/10:not(.kp-eyebrow) { background: rgba(0, 103, 237, .9) !important; border-radius: .3rem !important; }
.bg-dark .text-white\/60, .bg-dark .text-white\/50 { color: rgba(255,255,255,.72) !important; }

/* Closing call-to-action: network graphic */
.kp-cta { background: #06122c url('../images/theme/plexus.jpg') center / cover no-repeat !important; }
.kp-cta > .absolute { display: none !important; }
.kp-cta h2 { font-size: clamp(2.2rem, 3.6vw, 3.6rem) !important; }

/* ---------- Blue statement band ---------- */
.kp-blue {
  background: linear-gradient(100deg, #0a3a8c 0%, #0f4fb3 50%, #1b6ae0 100%) !important;
  color: #fff !important; border: 0 !important;
}
.kp-blue h2, .kp-blue h3, .kp-blue .text-charcoal, .kp-blue [class*="text-5xl"], .kp-blue .text-primary { color: #fff !important; }
.kp-blue .text-muted, .kp-blue p { color: rgba(255,255,255,.82) !important; }
.kp-blue .bg-white, .kp-blue .bg-slate-50 { background: rgba(255,255,255,.1) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-color: rgba(255,255,255,.14) !important; }
.kp-blue [class*="border-r"] { border-color: rgba(255,255,255,.22) !important; }
.kp-blue [class*="text-5xl"], .kp-blue [class*="text-4xl"].font-bold { font-weight: 300 !important; letter-spacing: -.05em !important; }
.kp-blue input { background: rgba(255,255,255,.12) !important; border-color: rgba(255,255,255,.3) !important; color: #fff !important; }

/* ---------- Logos: full colour ---------- */
.marquee-container::before { background: linear-gradient(to right, var(--kp-bg), rgba(250,250,250,0)) !important; }
.marquee-container::after { background: linear-gradient(to left, var(--kp-bg), rgba(250,250,250,0)) !important; }

/* ---------- Forms: underline fields ---------- */
form input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]), form select, form textarea {
  background: transparent !important; border: 0 !important; border-bottom: 1px solid #c9ccd1 !important;
  border-radius: 0 !important; padding-left: 0 !important; padding-right: 0 !important; box-shadow: none !important;
}
.kp-blue form input, .bg-dark form input { border-bottom-color: rgba(255,255,255,.4) !important; }
form button[type="submit"] { border-radius: 3rem !important; background: var(--kp-deep) !important; }

/* ---------- Footer: deep blue with grid lines ---------- */
footer.bg-dark {
  background-color: var(--kp-deep) !important;
  background-image: linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px) !important;
  background-size: 92px 92px !important;
}
footer .text-white\/50, footer .text-white\/40 { color: rgba(255,255,255,.8) !important; }
footer [class*="border-white"] { border-color: rgba(255,255,255,.18) !important; }

/* ---------- Motion: Shah BV-style easing ---------- */
.reveal { transform: translateY(20px); transition: opacity .9s var(--kp-ease), transform .9s var(--kp-ease) !important; }
.whatsapp-float { box-shadow: none !important; }
@media (prefers-reduced-motion: reduce) { .kp-hero::before { animation: none !important; } }

/* Night section (black with line art) holding blue glass cards */
.kp-night { background: #05070b url('../images/theme/lines.svg') no-repeat 105% 50% / 55% auto !important; color: #fff; border: 0 !important; }
.kp-night h2, .kp-night h3, .kp-night .text-charcoal { color: #fff !important; }
.kp-night .text-muted, .kp-night p { color: rgba(255,255,255,.74) !important; }
.kp-bluecard h3, .kp-bluecard .text-charcoal { color: #fff !important; }
.kp-bluecard .text-muted, .kp-bluecard p { color: rgba(255,255,255,.8) !important; }
.kp-bluecard a, .kp-bluecard .text-primary { color: #fff !important; }


form input[class]:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]), form select[class], form textarea[class] { background-color: transparent !important; border: 0 !important; border-bottom: 1px solid #c9ccd1 !important; border-radius: 0 !important; padding-left: 0 !important; }
.kp-blue form input[class] { border-bottom-color: rgba(255,255,255,.5) !important; color: #fff !important; }

/* ---------- Cursor dot (as on shahbv.com): small blue dot that glides after the mouse ---------- */
.kp-cursor { position: fixed; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--kp-blue); pointer-events: none; z-index: 9999; opacity: 0; will-change: transform;
  transition: opacity .3s, width .35s var(--kp-ease), height .35s var(--kp-ease), margin .35s var(--kp-ease), background-color .35s; }
.kp-cursor.on { opacity: 1; }
.kp-cursor.link { width: 28px; height: 28px; margin: -14px 0 0 -14px; background: rgba(0, 103, 237, .35); }
@media (hover: none), (pointer: coarse) { .kp-cursor { display: none; } }

.legal h2 { font-family: 'Geist', -apple-system, sans-serif !important; font-weight: 500 !important; letter-spacing: -.02em !important; }

/* ---------- Motion: first-visit colour curtain + word-by-word headlines (see js/theme.js) ---------- */
html.kp-curtain::before { content: ''; position: fixed; inset: 0; z-index: 10000; background: var(--kp-deep); transition: transform 1s cubic-bezier(.77, 0, .18, 1); }
html.kp-curtain::after { content: ''; position: fixed; inset: 0; z-index: 10001; background: url('../images/wordmark-light.png') center / auto 30px no-repeat;
  animation: kpLogoIn .7s var(--kp-ease) .15s both; }
@keyframes kpLogoIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
html.kp-curtain.kp-open::before { transform: translateY(-100%); }
html.kp-curtain.kp-open::after { animation: none; opacity: 0; }
#main-header { transition: transform .9s var(--kp-ease), opacity .9s !important; }
html.kp-curtain:not(.kp-open) #main-header { transform: translateY(-100%); opacity: 0; }
html.kp-curtain:not(.kp-open) .kp-hero .reveal { opacity: 0 !important; transform: translateY(20px) !important; }
html.kp-anim h1:not(.kp-split), html.kp-anim h2:not(.kp-split) { opacity: 0; }
.kp-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.kp-w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--kp-ease); }
.kp-shown .kp-w > span { transform: none; }

/* Small phones: the three stat tiles (About, "bench strength") stack, one per row */
@media (max-width: 480px) {
  .kp-blue .grid-cols-3 { grid-template-columns: 1fr !important; gap: .6rem !important; }
  .kp-blue .grid-cols-3 > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .75rem; text-align: left !important; padding: .9rem 1.1rem !important; }
  .kp-blue .grid-cols-3 > div > :first-child { margin: 0 !important; min-width: 3.6rem; }
}

/* Small phones: keep section labels on one line */
@media (max-width: 480px) {
  .kp-eyebrow { font-size: 10px !important; letter-spacing: .06em !important; padding: .38rem .7rem !important; gap: .45rem; }
}
