/* ============================================================
   REKAST — design tokens
   Palette sampled directly from the REKAST brand mark.
   ============================================================ */
:root{
  --navy:        #013A6F;
  --navy-deep:   #06233D;
  --navy-strong: #022C56;
  --ice:         #CCE4F9;
  --ice-pale:    #F2F8FD;
  --paper:       #FFFFFF;
  --ink:         #0E2238;
  --slate:       #4F6B81;
  --line:        #D9E6F1;

  --font-display: "Zilla Slab", Georgia, serif;
  --font-body:    "Inter", -apple-system, "Segoe UI", sans-serif;

  --wrap: 1140px;
  --radius: 4px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--navy-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1{ font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2{ font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3{ font-size: 1.15rem; font-weight: 600; }

p{ margin: 0 0 1em; max-width: 62ch; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
img{ max-width: 100%; display: block; }

a{ color: var(--navy); }

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

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus{ left: 0; }

:focus-visible{
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary{
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover{ background: var(--navy-strong); }
.btn-ghost{
  background: transparent;
  color: var(--navy-deep);
  border-color: var(--line);
}
.btn-ghost:hover{ border-color: var(--navy); }

/* ============================================================
   Header
   ============================================================ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand-mark{ height: 54px; width: auto; }

.primary-nav{
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a{
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav a:hover{ color: var(--navy); }
.primary-nav .nav-cta{
  background: var(--navy);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 600;
}
.primary-nav .nav-cta:hover{ background: var(--navy-strong); color: #fff; }

.menu-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span{
  display: block;
  height: 2px;
  width: 24px;
  background: var(--navy-deep);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero{
  padding: 72px 0 80px;
  background: linear-gradient(180deg, var(--ice-pale) 0%, #ffffff 100%);
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.hero-copy h1{ margin-bottom: 0.45em; }
.hero-lede{
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 46ch;
}
.hero-actions{
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.lender-card{
  background: var(--navy-deep);
  color: var(--ice);
  padding: 32px 30px;
  border-radius: var(--radius);
}
.lender-card-label{
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ice);
  opacity: 0.72;
  margin-bottom: 10px;
}
.lender-card-headline{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.25;
}
.lender-card-body{
  font-size: 0.97rem;
  color: var(--ice);
  margin-bottom: 18px;
}
.lender-card-foot{
  font-size: 0.86rem;
  color: var(--ice);
  opacity: 0.82;
  border-top: 1px solid rgba(204,228,249,0.25);
  padding-top: 16px;
  margin: 0;
}

/* ============================================================
   Generic section rhythm
   ============================================================ */
.section{ padding: 84px 0; }
.section-tint{ background: var(--ice-pale); }
.section-intro{
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 68ch;
  margin-bottom: 44px;
}

/* ---------- About ---------- */
.about-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.about-intro p{ color: var(--slate); }
.pillar-list{
  display: grid;
  gap: 28px;
}
.pillar-list li{
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.pillar-list p{ color: var(--slate); margin: 0; }

/* ---------- When we step in : stage track ---------- */
.stage-track{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.stage{
  position: relative;
  padding: 28px 22px 0 0;
  border-top: 3px solid var(--navy);
}
.stage-dot{
  position: absolute;
  top: -3px;
  left: 0;
  width: 11px;
  height: 11px;
  background: var(--navy);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.stage:first-child .stage-dot{ transform: translate(0, -50%); }
.stage h3{ margin-bottom: 10px; }
.stage p{ color: var(--slate); font-size: 0.95rem; margin: 0; }

/* ---------- Capabilities ---------- */
.capabilities-grid{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.capabilities-intro p{ color: var(--slate); }
.capability-list{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.capability-list li{
  border-top: 1px solid var(--line);
  padding: 20px 20px 20px 0;
}
.capability-list h3{ margin-bottom: 6px; }
.capability-list p{ color: var(--slate); font-size: 0.95rem; margin: 0; }

/* ---------- How we work : process flow ---------- */
.process-flow{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.process-flow li{
  border-top: 3px solid var(--navy);
  padding-top: 18px;
  position: relative;
}
.process-num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.process-flow h3{ margin-bottom: 8px; }
.process-flow p{ color: var(--slate); font-size: 0.93rem; margin: 0; }

/* ---------- Transactions ---------- */
.case-row{
  border-top: 1px solid var(--line);
  padding: 34px 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
}
.case-row:last-child{ border-bottom: 1px solid var(--line); }
.case-head h3{ margin-bottom: 6px; }
.case-tag{
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0;
}
.case-body{ color: var(--slate); margin-bottom: 10px; max-width: none; }
.case-outcome{
  grid-column: 1 / -1;
  max-width: none;
  font-size: 0.92rem;
  color: var(--navy-deep);
  font-weight: 500;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   Footer / contact
   ============================================================ */
.site-footer{
  background: var(--navy-deep);
  color: var(--ice);
  padding: 56px 0 40px;
}
.footer-inner{ text-align: center; }
.footer-logo{
  height: 44px;
  width: auto;
  margin: 0 auto 24px;
}
.footer-tagline{
  color: #fff;
  font-size: 1.02rem;
  margin: 0 auto 14px;
}
.footer-tagline a{
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
}
.footer-tagline a:hover{
  text-decoration-color: #fff;
}
.footer-tagline strong{ font-weight: 700; }
.footer-address{
  color: var(--ice);
  opacity: 0.85;
  font-size: 0.92rem;
  margin: 0 auto 20px;
}
.footer-copyright{
  font-size: 0.8rem;
  color: var(--ice);
  opacity: 0.6;
  margin: 24px auto 0;
  border-top: 1px solid rgba(204,228,249,0.2);
  padding-top: 20px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px){
  .menu-toggle{ display: flex; }

  .primary-nav{
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .primary-nav.is-open{ display: flex; }
  .primary-nav a{
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav .nav-cta{
    margin-top: 12px;
    text-align: center;
    border: none;
  }

  .hero-grid,
  .about-grid,
  .capabilities-grid{
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .stage-track{ grid-template-columns: 1fr; }
  .stage{
    border-top: none;
    border-left: 3px solid var(--navy);
    padding: 0 0 28px 22px;
  }
  .stage-dot{
    top: 0;
    left: -3px;
    transform: translate(-50%, -50%);
  }
  .stage:first-child .stage-dot{ transform: translate(-50%, -50%); }

  .process-flow{ grid-template-columns: 1fr; gap: 28px; }
  .process-flow li{
    border-top: none;
    border-left: 3px solid var(--navy);
    padding: 0 0 0 20px;
  }

  .capability-list{ grid-template-columns: 1fr; }

  .case-row{ grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 560px){
  .section{ padding: 60px 0; }
  .hero{ padding: 48px 0 56px; }
  .hero-actions{ flex-direction: column; }
  .btn{ text-align: center; }
}


/* ============================================================
   Whatsapp-link
   ============================================================ */

.whatsapp-link{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  color: var(--ice);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 auto 20px;
}
.whatsapp-link:hover{ color: #fff; }
.whatsapp-link svg{ flex-shrink: 0; }
.email-link{ margin-top: 14px; }