/* Kansagra Partners — repo-maintained additions on top of the Webflow CSS.
   Scope: mobile hardening, properties grid, new homepage sections, new pages. */

/* ---------- Global mobile hardening ---------- */
html, body { overflow-x: hidden; }
img, video { max-width: 100%; }

@media (max-width: 767px) {
  /* Decorative background-video blocks are heavy and add nothing on phones */
  .video-lightbox-creative.w-background-video { display: none; }
  .big-text { font-size: 34px; line-height: 1.25; }
}

/* ---------- Properties page: strict 3 / 2 / 1 tile grid ---------- */
.hero-projects .grid-team {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 40px 24px;
}
@media (max-width: 991px) {
  .hero-projects .grid-team { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 767px) {
  .hero-projects .grid-team { grid-template-columns: 1fr !important; }
}

/* ---------- Homepage SEO H1 (eyebrow style above hero tagline) ---------- */
.kp-eyebrow-h1 {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8f8f8f;
  font-weight: 500;
  margin: 0 0 28px;
}

/* ---------- Shared building blocks for new sections/pages ---------- */
.kp-section { padding: 96px 5%; }
@media (max-width: 767px) { .kp-section { padding: 56px 20px; } }

.kp-container { max-width: 1140px; margin: 0 auto; }
.kp-narrow { max-width: 760px; }

.kp-intro-copy { font-size: 20px; line-height: 1.6; color: #d7d7d7; max-width: 820px; }
@media (max-width: 767px) { .kp-intro-copy { font-size: 17px; } }

/* Stat bar — light band */
.kp-stats { background: #f5f4f2; color: #101010; }
.kp-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; text-align: center; max-width: 1000px; margin: 0 auto;
}
.kp-stat-number { font-size: 44px; line-height: 1.1; font-weight: 500; }
.kp-stat-label { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: #5c5c5c; margin-top: 8px; }
@media (max-width: 767px) {
  .kp-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .kp-stat-number { font-size: 32px; }
}

/* Where we operate */
.kp-markets-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 991px) { .kp-markets-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .kp-markets-grid { grid-template-columns: 1fr; } }
.kp-market-card {
  border: 1px solid #2b2b2b; padding: 28px 24px; text-decoration: none;
  color: inherit; display: block; transition: border-color .25s ease, background .25s ease;
}
.kp-market-card:hover { border-color: #6d6d6d; background: #161616; }
.kp-market-card h3 { margin: 0 0 10px; font-size: 22px; font-weight: 500; }
.kp-market-card p { margin: 0; color: #a8a8a8; font-size: 15px; line-height: 1.55; }

/* Dual CTA */
.kp-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 767px) { .kp-cta-grid { grid-template-columns: 1fr; } }
.kp-cta-card { border: 1px solid #2b2b2b; padding: 44px 36px; }
.kp-cta-card h3 { margin: 0 0 14px; font-size: 26px; font-weight: 500; }
.kp-cta-card p { color: #a8a8a8; line-height: 1.6; margin: 0 0 26px; }
@media (max-width: 767px) { .kp-cta-card { padding: 32px 24px; } }

/* Generic content pages (investors, careers, services/*, markets, insights) */
.kp-page-hero { padding: 140px 5% 60px; }
@media (max-width: 767px) { .kp-page-hero { padding: 110px 20px 40px; } }
.kp-page-hero h1 { font-size: 52px; line-height: 1.1; font-weight: 400; margin: 0 0 18px; max-width: 900px; }
@media (max-width: 767px) { .kp-page-hero h1 { font-size: 34px; } }
.kp-page-hero .kp-sub { color: #a8a8a8; font-size: 19px; line-height: 1.6; max-width: 720px; }

.kp-prose { color: #cfcfcf; font-size: 17px; line-height: 1.7; }
.kp-prose h2 { font-size: 30px; font-weight: 500; margin: 48px 0 16px; color: #fff; }
.kp-prose h3 { font-size: 22px; font-weight: 500; margin: 32px 0 12px; color: #fff; }
.kp-prose p { margin: 0 0 18px; }
.kp-prose ul { margin: 0 0 18px 20px; padding: 0; }
.kp-prose li { margin-bottom: 10px; }
.kp-prose a { color: #fff; }

.kp-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 991px) { .kp-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .kp-card-grid { grid-template-columns: 1fr; } }
.kp-card { border: 1px solid #2b2b2b; padding: 26px 22px; color: inherit; text-decoration: none; display: block; transition: border-color .25s ease; }
.kp-card:hover { border-color: #6d6d6d; }
.kp-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 500; }
.kp-card p { margin: 0; color: #a0a0a0; font-size: 14.5px; line-height: 1.55; }
.kp-card .kp-card-meta { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: #7c7c7c; margin-bottom: 12px; }

/* Simple forms on new pages */
.kp-form { max-width: 560px; }
.kp-form label { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #9a9a9a; margin: 22px 0 6px; }
.kp-form input[type="text"], .kp-form input[type="email"], .kp-form input[type="tel"],
.kp-form select, .kp-form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid #3a3a3a;
  color: #fff; font-size: 16px; padding: 10px 2px; border-radius: 0; -webkit-appearance: none;
}
.kp-form textarea { min-height: 120px; resize: vertical; }
.kp-form input:focus, .kp-form select:focus, .kp-form textarea:focus { outline: none; border-bottom-color: #ffffff; }
.kp-form select option { color: #111; }

/* Reveal fallback (used by kp-fixes.js when a Webflow interaction never fires) */
.kp-reveal { opacity: 1 !important; transform: none !important; transition: opacity .6s ease, transform .6s ease; }

/* Footer address line */
.kp-footer-address { color: #8f8f8f; font-size: 13px; margin-bottom: 6px; }
