/* ===================== FONTS ===================== */
@font-face {
  font-family: "D-DIN";
  src: url("/ke/media/assets/fonts/D-DIN.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "D-DIN";
  src: url("/ke/media/assets/fonts/D-DIN-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===================== VARIABLES ===================== */
:root {
  --red: #A32A29;
  --red-dark: #8c1421;
  --orange: #F4AB7A;
  --orange-dark: #d97a3f;
  --navy: #0a1f38;
  --navy-light: #16375c;
  --sky: #a9c6dd;
  --cream: #FDF6F1;
  --dark: #1c1c1c;
  --grey: #6b6b6b;
  --font: "D-DIN", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
}

img, svg { max-width: 100%; display: block; }

.btn {
  display: inline-block;
  border: none;
  border-radius: 26px;
  padding: 0.75rem 1.75rem;
  font-weight: 400;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.2); }

.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }

.btn-small { padding: 0.5rem 1.4rem; font-size: 0.85rem; }

.section-heading {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--dark);
  max-width: 900px;
  margin: 0 auto 1rem;
  padding: 0 1.5rem;
}

.section-heading--light { color: #fff; }

/* ===================== NAVBAR ===================== */
.navbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.5px;
}
.logo-img {
  height: 56px;
  width: auto;
}

/* ===================== HERO ===================== */
.hero-visual {
  position: relative;
  min-height: clamp(500px, 75vh, 760px);
  overflow: hidden;
  background-image: url("/ke/media/assets/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero-visual-img {
  display: none;
}

.hero-content {
  position: absolute;
  top: 67%;
  left: 46%;
  width: min(380px, 42%);
}

.hero-subtitle {
  color: #fff;
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ===================== INTRO ===================== */
.intro {
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.intro-text {
  max-width: 700px;
  margin: 0 auto 1rem;
  color: var(--dark);
  font-size: 1rem;
}

/* ===================== TOOLS ===================== */
.tools {
  background: var(--cream);
  padding: 5rem 1.5rem;
}
.tools-subtext {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--dark);
  font-size: 1rem;
}

.tools-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.tool-card {
  position: relative;
  border-radius: 40px;
  padding: 2rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.tool-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.7) 100%);
  z-index: -1;
}
.tool-card-eyebrow {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.tool-card h3 {
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}
.tool-card-eyebrow, .tool-card h3, .tool-card p { max-width: 80%; }
.tool-card p { font-size: 1rem; opacity: 0.9; margin-bottom: 1.25rem; }
.tool-card .btn { align-self: flex-start; }

.tool-card--capital::before { background-image: url("/ke/media/assets/toolcard1.png"); }
.tool-card--loans::before { background-image: url("/ke/media/assets/toolcard2.png"); }
.tool-card--market::before { background-image: url("/ke/media/assets/toolcard3.png"); }
.tool-card--advisory::before { background-image: url("/ke/media/assets/toolcard4.png"); }

/* ===================== PROCESS ===================== */
.process {
  background: var(--red);
  padding: 5rem 1.5rem;
}
.process-grid {
  max-width: 1100px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  color: #fff;
}
.process-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0 auto 1.2rem;
}
.process-step h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.process-step p { font-size: 1rem; opacity: 0.9; }

/* ===================== LEAD MODAL ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 12, 8, 0.6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1.5rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 3rem;
  width: 100%;
  max-width: 760px;
  margin: auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--orange);
  cursor: pointer;
}

.modal-title { font-size: 2.75rem; font-weight: 400; color: var(--dark); margin-bottom: 0.5rem; }
.modal-subtitle { font-size: 1rem; color: var(--dark); margin-bottom: 2rem; }

.modal-toggle { margin-bottom: 2rem; }
.modal-toggle .form-radio-label { display: block; margin-bottom: 0.75rem; }

.form-section-heading {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--dark);
  margin: 0 0 1rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-row:last-child { margin-bottom: 0; }
.form-row--single { grid-template-columns: 1fr; }

.contact-form input,
.contact-form select {
  padding: 0.95rem 1.5rem;
  border: 1px solid #ddd;
  border-radius: 30px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--dark);
  background: #fff;
  width: 100%;
}
.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpolygon points='0,0 12,0 6,8' fill='%23A32A29'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  background-size: 12px 8px;
  padding-right: 3rem;
}
.contact-form input:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--red);
}

.form-radio-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.form-radio-label { font-size: 0.95rem; color: var(--dark); margin-right: 0.5rem; }
.radio-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--dark);
  cursor: pointer;
}
.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
}
.radio-dot {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--red);
  border-radius: 4px;
  background: #fff;
  transition: background-color 0.15s ease;
}
.radio-option input[type="radio"]:checked ~ .radio-dot {
  background: var(--red);
}

.contact-form .btn-red { align-self: flex-start; margin-top: 0.5rem; }
.form-status { font-size: 0.9rem; color: var(--red); min-height: 1.2em; }

/* ===================== FOOTER ===================== */
.footer {
  background: #6b6b6b;
  color: #fff;
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}
.footer-item { display: flex; align-items: center; gap: 0.5rem; }
.footer-icon-img { width: 28px; height: 28px; }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.footer-social img { width: 28px; height: 28px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero-visual { min-height: 560px; }
  .tools-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
}

/* Below 600px, cropping a 16:9 image to a fixed short height cuts off the
   baked-in headline no matter how it's positioned — show it uncropped at
   full width instead, stacked above the subtitle/CTA. */
@media (max-width: 700px) {
  .hero-visual {
    min-height: 0;
    background-image: none;
    display: flex;
    flex-direction: column;
  }
  .navbar { background: var(--navy); }
  .hero-visual-img {
    display: block;
    width: 100%;
    height: auto;
    order: 2;
  }
  .hero-content {
    position: static;
    order: 3;
    width: auto;
    background: var(--navy);
    padding: 1.75rem 1.5rem 2rem;
  }
  .hero-subtitle { text-shadow: none; }
}

@media (max-width: 520px) {
  .navbar { padding: 1.2rem 1.5rem; }
  .process-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; text-align: center; }

  .tool-card { min-height: 260px; padding: 1.5rem; }
  .tool-card h3 { font-size: 1.5rem; }
  .tool-card-eyebrow, .tool-card h3, .tool-card p { max-width: 88%; }

  .modal-overlay { padding: 0; }
  .modal { border-radius: 0; min-height: 100vh; padding: 2.5rem 1.5rem; }
  .modal-title { font-size: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}

.thank-you-panel {
  text-align: center;
  padding: 2rem 0;
}
.thank-you-panel .btn { margin-top: 1rem; }
