/* ================================================================
   KAMWANA PAUL AGENCY — styles.css
   Theme: EAAA Alternatives–inspired (navy/blue, white cards)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy:   #0d1b4b;
  --kblue:  #1d4ed8;
  --kblue-d:#1e40af;
  --kblue-a:#3b82f6;
  --gray-50:#f9fafb;
}

*, *::before, *::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--kblue); color: #fff; }

::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--kblue); border-radius: 99px; }

/* ================================================================
   HERO — BACKGROUND IMAGE + OVERLAYS
   Place kamwana-hero.png in the same folder as index.html
   ================================================================ */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('./images/kamwana-hero.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* Subtle slow zoom for atmosphere */
  animation: heroBgZoom 20s ease-in-out infinite alternate;
}
@keyframes heroBgZoom {
  from { transform: scale(1);    }
  to   { transform: scale(1.04); }
}

/* ================================================================
   LOANS SECTION — BACKGROUND IMAGE + OVERLAY
   Uses the same hero image with different tint; swap src if desired
   ================================================================ */
.loans-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('./images/kamwana-hero.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(2px) brightness(.6);
  transform: scale(1.04); /* hide blur edges */
}

/* ================================================================
   NAVBAR
   ================================================================ */
#navbar {
  background: rgba(13,27,75,0);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
#navbar.scrolled {
  background: rgba(13,27,75,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(255,255,255,.07);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

/* When over a white section, nav flips to white */
#navbar.light-nav {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(0,0,0,.06);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
#navbar.light-nav #logoName  { color: var(--navy); }
#navbar.light-nav #logoSub   { color: rgba(13,27,75,.4); }
#navbar.light-nav .nav-lnk   { color: rgba(13,27,75,.55); }
#navbar.light-nav .nav-lnk:hover { color: var(--navy); }
#navbar.light-nav .hbar      { background: var(--navy); }
#navbar.light-nav #navCta1   { color: rgba(13,27,75,.6); border-color: rgba(13,27,75,.2); }
#navbar.light-nav #navCta1:hover { color: var(--navy); border-color: var(--navy); }

/* Hamburger bars */
.hbar {
  display: block;
  width: 20px; height: 1.5px;
  border-radius: 99px;
  transition: all .2s ease;
}
.hbar.w-3 { width: 13px; }

/* ── Grid removed — using real background images now ── */

/* ================================================================
   HERO ANIMATIONS
   ================================================================ */
.hero-animate {
  transition: opacity .6s ease, transform .6s ease;
  transform: translateY(20px);
}
.hero-animate.visible { opacity: 1 !important; transform: translateY(0); }

/* Hero carousel dots */
.hdot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  border: 1.5px solid rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .25s, width .25s;
  flex-shrink: 0;
}
.hdot.active { background: #fff; width: 22px; border-radius: 99px; }

/* Hero feature cards (right column) */
.hero-card {
  display: flex;
  align-items: center;
  gap: .875rem;
  background: rgb(255, 255, 255);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  padding: .875rem 1rem;
  transition: background .2s, border-color .2s;
  cursor: pointer;
}
.hero-card:hover { background: rgba(255, 255, 255, 0.633); border-color: rgba(255,255,255,.18); }
.hero-card-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgb(29, 79, 216);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .85rem; flex-shrink: 0;
}

/* ================================================================
   STATS BAR
   ================================================================ */
.stat-item { text-align: center; }
.stat-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--kblue);
  line-height: 1;
}
.stat-lbl {
  font-size: .7rem;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .3rem;
}

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in,
.reveal-stagger > *.in {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   ABOUT SECTION
   ================================================================ */
.pillar-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .25rem;
  padding: .75rem .5rem;
  background: var(--gray-50);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: .7rem;
  color: #374151;
  font-weight: 500;
  line-height: 1.3;
  transition: background .2s, border-color .2s;
}
.pillar-chip:hover { background: #eff6ff; border-color: #bfdbfe; }

/* ================================================================
   CATEGORIES GRID
   ================================================================ */
.cat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem;
  text-decoration: none;
  transition: border-color .25s, box-shadow .25s, transform .25s;
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--kblue);
  box-shadow: 0 8px 32px rgba(29,78,216,.12);
  transform: translateY(-3px);
}
.cat-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .875rem;
  transition: background .3s;
}
.cat-name {
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .3rem;
}
.cat-sub {
  font-size: .75rem;
  color: #9ca3af;
  line-height: 1.4;
  flex: 1;
  margin-bottom: .875rem;
}
.cat-btn {
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  font-weight: 600;
  color: var(--kblue);
  transition: gap .2s;
}
.cat-card:hover .cat-btn { gap: .3rem; }

/* ================================================================
   ASSET LOANS
   ================================================================ */
.loan-step {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
}
.loan-num {
  font-family: 'DM Sans', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  color: var(--kblue-a);
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.25);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: .02em;
}
.loan-feat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 1.1rem;
  transition: background .2s, border-color .2s;
}
.loan-feat-card:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.15); }
.asset-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .7rem;
  font-weight: 500;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.6);
  border-radius: 99px;
  padding: .3rem .65rem;
}

/* ================================================================
   THREE PILLARS
   ================================================================ */
.pillar-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.pillar-card:hover {
  border-color: var(--kblue);
  box-shadow: 0 8px 32px rgba(29,78,216,.10);
  transform: translateY(-2px);
}
.pillar-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #eff6ff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  transition: background .3s;
}
.read-more-link {
  display: inline-flex;
  align-items: center;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--kblue);
  text-decoration: none;
  transition: gap .2s;
}
.read-more-link:hover { gap: .3rem; }

/* ================================================================
   CONTACT
   ================================================================ */
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
}
.contact-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.map-wrap {
  border-radius: 18px;
  overflow: hidden;
  height: 360px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 30px rgba(0,0,0,.06);
}
@media (min-width: 768px) { .map-wrap { height: 460px; } }

/* Form inputs */
.kform-input {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: .65rem .875rem;
  font-size: .875rem;
  color: #111827;
  outline: none;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  font-family: 'Inter', sans-serif;
}
.kform-input::placeholder { color: #9ca3af; }
.kform-input:focus { border-color: var(--kblue); box-shadow: 0 0 0 3px rgba(29,78,216,.10); }

/* ================================================================
   FAQ
   ================================================================ */
.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: border-color .2s;
}
.faq-item.open { border-color: var(--kblue); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
  font-family: 'DM Sans', sans-serif;
}
.faq-q:hover { background: #f9fafb; }
.faq-item.open .faq-q { background: #eff6ff; }
.faq-item.open .faq-ico { transform: rotate(45deg); }
.faq-ico { transition: transform .25s ease; flex-shrink: 0; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: .8125rem;
  color: #6b7280;
  line-height: 1.6;
  padding: 0 1.1rem;
  transition: max-height .35s ease, padding .25s ease;
}
.faq-item.open .faq-a { max-height: 200px; padding: .75rem 1.1rem 1rem; }

/* ================================================================
   LEGAL TABS
   ================================================================ */
.legal-tab {
  flex: 1;
  padding: .6rem .5rem;
  font-size: .8125rem;
  font-weight: 500;
  color: #6b7280;
  border-radius: 9px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s;
  text-align: center;
  font-family: 'Inter', sans-serif;
}
.legal-tab:hover { background: #f3f4f6; color: var(--navy); }
.legal-tab.active { background: var(--kblue); color: #fff; }

.legal-pane { display: none; }
.legal-pane.active { display: block; }

.legal-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.75rem 2rem;
}
.legal-eff-date { font-size: .75rem; color: #9ca3af; margin-bottom: 1.25rem; }
.legal-h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .5rem;
  margin-top: 1.25rem;
}
.legal-h3:first-of-type { margin-top: 0; }
.legal-p { font-size: .8125rem; color: #6b7280; line-height: 1.65; margin-bottom: .75rem; }
.legal-list { list-style: none; padding: 0; margin: 0 0 .75rem; space-y: .5rem; }
.legal-list li {
  font-size: .8125rem;
  color: #6b7280;
  line-height: 1.6;
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: .4rem;
}
.legal-list li::before { content: '—'; position: absolute; left: 0; color: var(--kblue); }

/* ================================================================
   FOOTER
   ================================================================ */
.footer-h { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.25); margin-bottom: .75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.footer-links li { font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-social {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4);
  transition: all .2s;
}
.footer-social:hover { border-color: rgba(255,255,255,.35); color: #fff; }

/* ================================================================
   TOAST
   ================================================================ */
#toast.show { opacity: 1 !important; transform: translateY(0) !important; pointer-events: auto; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 767px) {
  .map-wrap { height: 280px; }
  .legal-card { padding: 1.25rem; }
}
