/* ==========================================================================
   Kenya Skys Credit Ltd — Design System
   Brand colors sampled directly from the current logo.
   ========================================================================== */

:root {
  --sky: #00AEEB;          /* vivid sky blue — backgrounds, icons, accents ONLY */
  --sky-dark: #0090C4;
  --sky-tint: #E8F6FF;      /* pale section background */
  --sky-tint-2: #D6F0FF;
  --royal: #2E3192;         /* royal blue — headings, text-safe, CTAs */
  --royal-dark: #21245F;
  --royal-deep: #171A45;
  --ink: #1B2438;           /* body text, near-navy charcoal */
  --ink-soft: #4A5470;
  --white: #FFFFFF;
  --gold: #F2A93B;          /* small warm accent for a few highlights only */
  --border: #DCEBF7;
  --shadow: 0 10px 30px rgba(23, 26, 69, 0.10);
  --shadow-lg: 0 20px 50px rgba(23, 26, 69, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--royal-deep);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--royal); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky-dark);
  background: var(--sky-tint);
  border: 1px solid var(--sky-tint-2);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sky);
}

.section { padding: 88px 0; }
.section--tint { background: var(--sky-tint); }
.section--royal {
  background: linear-gradient(135deg, var(--royal-deep), var(--royal) 70%);
  color: var(--white);
}
.section--royal h2, .section--royal h3 { color: var(--white); }
.section--royal p { color: rgba(255,255,255,.82); }
.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--royal); color: var(--white); box-shadow: 0 12px 24px rgba(46,49,146,.28); }
.btn--primary:hover { background: var(--royal-dark); box-shadow: 0 16px 30px rgba(46,49,146,.36); transform: translateY(-2px); }
.btn--sky { background: var(--sky); color: var(--white); box-shadow: 0 12px 24px rgba(0,174,235,.32); }
.btn--sky:hover { background: var(--sky-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--royal); border-color: var(--royal); }
.btn--ghost:hover { background: var(--royal); color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover { background: var(--white); color: var(--royal); border-color: var(--white); }
.btn--block { width: 100%; justify-content: center; }

/* ===================== Header / Nav ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--royal-deep); font-size: 1.05rem; }
.brand img { height: 44px; width: 44px; }
.brand small { display: block; font-family: 'Inter', sans-serif; font-weight: 500; font-size: .68rem; color: var(--sky-dark); letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a.active { background: var(--sky-tint); color: var(--royal); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  position: relative;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--royal-deep);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle::before { top: 15px; }
.nav-toggle span { top: 21px; }
.nav-toggle::after { top: 27px; }
.nav-toggle.is-open::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open::after { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle.is-open span { opacity: 0; }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--royal-deep) 0%, var(--royal) 55%, var(--sky-dark) 100%);
  color: var(--white);
  padding: 72px 0 0;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.hero-copy .eyebrow { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); color: var(--white); }
.hero-copy .eyebrow::before { background: var(--sky); }
.hero h1 { color: var(--white); }
.hero-copy p.lead { color: rgba(255,255,255,.86); font-size: 1.12rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: 'Poppins', sans-serif; font-size: 1.6rem; color: var(--white); }
.hero-stats div span { font-size: .85rem; color: rgba(255,255,255,.7); }

.hero-media { position: relative; align-self: end; }
.hero-media img {
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: -20px -20px 0 -20px;
  background: var(--sky);
  opacity: .18;
  border-radius: 32px 32px 0 0;
  z-index: 1;
}
.hero-badge {
  position: absolute;
  left: -24px;
  bottom: 28px;
  z-index: 3;
  background: var(--white);
  color: var(--ink);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .85rem;
  font-weight: 600;
  max-width: 230px;
}
.hero-badge .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--sky-tint); display: grid; place-items: center; flex-shrink: 0; font-size: 1.2rem; }

/* Page hero (inner pages, no photo, shorter) */
.page-hero {
  background: linear-gradient(150deg, var(--royal-deep), var(--royal) 80%);
  color: var(--white);
  padding: 64px 0 92px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 60ch; margin: 0 auto; }
.page-hero .eyebrow { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); color: var(--white); }
.page-hero .eyebrow::before { background: var(--sky); }

/* ===================== Trust strip ===================== */
.trust-strip { background: var(--royal-deep); padding: 22px 0; }
.trust-strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.trust-strip li { color: rgba(255,255,255,.88); font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.trust-strip li .ic { color: var(--sky); font-size: 1.1rem; }

/* ===================== Grids & Cards ===================== */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: flex-start; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .ic {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--sky-tint);
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: .95rem; }

/* Photo sector cards */
.sector-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  transition: transform .25s ease, box-shadow .25s ease;
}
.sector-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.sector-card img { width: 100%; height: 100%; object-fit: cover; }
.sector-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(23,26,69,.92) 0%, rgba(23,26,69,.15) 55%, rgba(23,26,69,0) 75%);
  display: flex; align-items: flex-end;
  padding: 22px;
}
.sector-card h3 { color: var(--white); font-size: 1.08rem; margin: 0; }
.sector-card span { color: var(--sky); display: block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }

/* Values */
.value-tile { text-align: center; padding: 26px 16px; }
.value-tile .ic {
  margin: 0 auto 16px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--royal));
  display: grid; place-items: center;
  color: var(--white);
  font-size: 1.5rem;
}
.value-tile h3 { font-size: 1.02rem; }

/* Two-col content block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split.reverse .split-media { order: 2; }

/* Timeline (About story) */
.timeline { display: grid; gap: 22px; margin-top: 8px; }
.timeline-item { display: flex; gap: 18px; }
.timeline-item .yr {
  flex-shrink: 0;
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--royal);
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
}
.timeline-item p { margin: 0; }
.timeline-item strong { color: var(--royal-deep); display: block; margin-bottom: 2px; }

/* Management team */
.staff-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px 22px;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}
.staff-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.staff-avatar {
  width: 92px; height: 92px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-tint), var(--sky-tint-2));
  border: 2px dashed var(--sky-dark);
  display: grid; place-items: center;
  color: var(--royal);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
}
.staff-card h3 { font-size: 1rem; margin-bottom: 4px; }
.staff-card .role-tag { color: var(--sky-dark); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.staff-card .soon { display: inline-block; margin-top: 10px; font-size: .74rem; color: var(--ink-soft); background: var(--sky-tint); padding: 3px 10px; border-radius: 999px; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--royal-deep), var(--royal));
  border-radius: 28px;
  padding: 56px;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 60ch; margin: 0 auto 28px; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===================== Footer ===================== */
.site-footer { background: var(--royal-deep); color: rgba(255,255,255,.78); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 40px; width: 40px; }
.footer-brand span { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--white); }
.footer-col h4 { color: var(--white); font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .92rem; }
.footer-col a:hover { color: var(--sky); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; font-size: .92rem; align-items: flex-start; }
.footer-contact .ic { color: var(--sky); flex-shrink: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: .82rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,.6); }

/* ===================== Forms ===================== */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: var(--royal-deep); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: .96rem;
  color: var(--ink);
  background: #FAFDFF;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(0,174,235,.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: 8px; }
.form-status { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .92rem; font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #E5F8EE; color: #146C43; border: 1px solid #BEE9CF; }
.form-status.err { background: #FDECEC; color: #B02A2A; border: 1px solid #F5C6C6; }

/* ===================== Contact page extras ===================== */
.contact-info-list { display: grid; gap: 20px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item .ic {
  width: 50px; height: 50px; flex-shrink: 0;
  border-radius: 14px; background: var(--sky-tint);
  display: grid; place-items: center; font-size: 1.3rem;
}
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ===================== WhatsApp float button ===================== */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(37,211,102,.42);
  font-size: 1.7rem;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ===================== Scroll reveal =====================
   Hidden state only applies once JS has confirmed it's running (html.js,
   set synchronously in <head>) and will animate elements back in via
   IntersectionObserver. If JS is slow, blocked, or disabled, content is
   simply visible by default — it never depends on JS to be readable. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===================== Utilities ===================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-num { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--royal); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; margin: 0 auto; }
  .hero-badge { left: 10px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--6 { grid-template-columns: repeat(3, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 4px;
  }
  .nav-links.is-open a { width: 100%; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
  .grid--6 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 40px 24px; }
  .hero-stats { gap: 22px; }
}

@media (max-width: 520px) {
  .grid--2 { grid-template-columns: 1fr; }
  .grid--3, .grid--4, .grid--6 { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn, .btn--block-mobile { width: 100%; justify-content: center; }
}
