/* Crane Finance — global stylesheet */
:root {
  --ink: #2c3035;
  --ink-soft: #5a6168;
  --header: #2f3338;
  --header-2: #3a3f45;
  --orange: #e87820;
  --orange-hover: #d06614;
  --orange-ink: #fff;
  --hero-gray: #c5cdd3;
  --hero-gray-2: #b7c1c9;
  --paper: #f4f6f8;
  --white: #fff;
  --line: #d7dee3;
  --blue: #2f6fb8;
  --max: 1200px;
  --header-h: 80px;
  --focus: #e87820;
  --danger: #8a2b12;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { text-decoration: underline; }

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 10000;
  background: var(--orange);
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { left: 8px; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--header);
  color: #fff;
  min-height: var(--header-h);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand img { width: 36px; height: 36px; }
.brand span { color: var(--orange); }

.nav-primary ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 14px;
}
.nav-primary a {
  color: #e8ebee;
  text-decoration: none;
}
.nav-primary a:hover,
.nav-primary a[aria-current="page"] { color: #fff; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  padding: 12px 22px;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: inherit;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-lg { padding: 14px 26px; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
  margin: 0 auto;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--hero-gray) 0%, var(--hero-gray-2) 100%);
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: 1fr minmax(280px, 42%);
  align-items: stretch;
  overflow: hidden;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}
.hero-copy .inner {
  width: min(560px, calc(100% - 48px));
  margin-left: max(16px, calc((100vw - var(--max)) / 2));
}
h1, h2, h3 {
  letter-spacing: -0.03em;
  line-height: 1.15;
}
h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.lead {
  margin: 0 0 22px;
  color: #f3f6f8;
  font-size: 1.08rem;
  max-width: 520px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.micro { margin: 12px 0 0; font-size: 13px; color: #3e4650; }
.hero-photo {
  position: relative;
  background:
    linear-gradient(90deg, var(--hero-gray-2) 0%, transparent 18%),
    url("images/hero-lendumo-woman.jpg") right center / cover no-repeat;
  min-height: 420px;
}

/* Bands */
.band { padding: 72px 0; }
.band + .band { border-top: 1px solid var(--line); }
.band-alt { background: var(--paper); }
.band-dark { background: var(--header); color: #eef1f4; }
.band-dark .sub,
.band-dark p { color: #c9d0d6; }

.kicker {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 8px;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin: 0 0 12px; }
.sub { color: var(--ink-soft); max-width: 640px; margin: 0 0 28px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.checks { margin: 0; padding: 0; list-style: none; }
.checks li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
}
.checks li::before { content: "✓"; color: var(--orange); font-weight: 800; flex-shrink: 0; }

/* Pillars / cards */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 18px;
  text-decoration: none;
  color: inherit;
}
.tile:hover { border-color: var(--orange); text-decoration: none; }
.tile h3 { margin: 0 0 8px; font-size: 1.1rem; }
.tile p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
.article-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
  background: var(--paper);
}
.tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f7ece1;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 12px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 18px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}
.step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
blockquote {
  margin: 0;
  background: #fff;
  border-radius: 8px;
  padding: 22px;
  border: 1px solid var(--line);
}
blockquote p { margin: 0 0 10px; }
blockquote footer { color: var(--ink-soft); font-size: 13px; font-weight: 700; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 1.6rem;
  color: var(--orange);
}
.stat span { font-size: 13px; color: var(--ink-soft); }

/* Calculator */
.calc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  max-width: 640px;
}
.calc label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 6px; }
.calc input[type="range"],
.calc select {
  width: 100%;
  margin-bottom: 16px;
}
.calc select,
.calc input[type="number"] {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  background: #fff;
}
.calc-out {
  background: var(--paper);
  border-radius: 8px;
  padding: 16px;
  margin-top: 8px;
}
.calc-out strong { font-size: 1.6rem; color: var(--orange); }

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 8px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--ink-soft); margin: 10px 0 4px; }

.cta-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--header);
  color: #fff;
  border-radius: 10px;
  padding: 32px;
}
.cta-end h2 { color: #fff; margin: 0 0 6px; }
.cta-end p { margin: 0; color: #c9d0d6; }
.mt-lg { margin-top: 28px; }
.mt-md { margin-top: 20px; }

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0 0;
  font-size: 14px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
}
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #9aa3aa;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Page header (inner pages) */
.page-hero {
  background: var(--paper);
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  color: var(--ink);
  text-shadow: none;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}
.page-hero .lead { color: var(--ink-soft); }

/* Article */
.article-wrap { max-width: 720px; margin: 0 auto; padding: 36px 0 64px; }
.article-wrap h1 { color: var(--ink); text-shadow: none; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.article-meta { color: var(--ink-soft); font-size: 14px; margin: 0 0 20px; }
.article-hero-img {
  width: 100%;
  border-radius: 10px;
  margin: 0 0 24px;
  background: var(--paper);
}
.article-wrap h2 { margin-top: 32px; }
.article-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 16px 0 24px;
}
.article-wrap th,
.article-wrap td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}
.article-wrap th { background: var(--paper); }
.related { margin-top: 40px; }
.related ul { padding-left: 18px; }
.author-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--paper);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 24px;
  font-size: 14px;
}

/* Legal layout */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 32px 0 64px;
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--paper);
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
}
.toc h2 { font-size: 0.95rem; margin: 0 0 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: block;
  padding: 6px 8px;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 4px;
}
.toc a:hover,
.toc a.is-active {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.legal-content h2 { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Apply */
.apply-form-wrapper {
  position: relative;
  z-index: 0;
  isolation: isolate;
  max-width: 860px;
  margin: 0 auto;
}
.apply-form-wrapper *,
.apply-form-wrapper iframe {
  z-index: auto !important;
}
#_lg_form_ {
  position: relative;
  z-index: 0;
}
.warning-box {
  max-width: 860px;
  margin: 24px auto 0;
  border: 1px solid #f0c9b4;
  background: #fff7f2;
  color: var(--danger);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 0.95rem;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
}
.fee-table th,
.fee-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}
.fee-table th { background: var(--paper); }

/* Footer */
footer.site {
  background: #24282c;
  color: #b7bfc6;
  padding: 44px 0 22px;
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 22px;
}
footer.site h3 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 10px;
}
footer.site a { color: #eef1f4; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site p { margin: 0 0 10px; }
.ola-badge {
  display: inline-block;
  margin-top: 8px;
  border: 1px solid #4a5158;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  color: #eef1f4;
}
.disclaimer {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid #3a4046;
  font-size: 12px;
  line-height: 1.65;
  color: #8e979f;
}
.copy { margin-top: 12px; font-size: 13px; color: #8e979f; }

/* Forms */
.contact-form {
  display: grid;
  gap: 12px;
  max-width: 560px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}
.contact-form textarea { min-height: 140px; }

/* Responsive */
@media (max-width: 1024px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .brand { font-size: 1rem; min-width: 0; }
  .brand img { width: 28px; height: 28px; }
  .nav-actions .btn-orange { padding: 10px 12px; font-size: 13px; white-space: nowrap; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-primary {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--header-2);
    padding: 12px 16px 20px;
  }
  .nav-primary.is-open { display: block; }
  .nav-primary ul { flex-direction: column; gap: 12px; }
  .nav-actions .btn-ghost { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy .inner {
    margin: 0 auto;
    width: min(var(--max), calc(100% - 32px));
    padding: 28px 0 20px;
  }
  h1 { color: var(--ink); text-shadow: none; }
  .lead { color: var(--ink-soft); }
  .hero-photo { min-height: 280px; order: -1; }
  .split,
  .quotes,
  .tiles,
  .tiles-3,
  .stats,
  .steps,
  .foot-grid,
  .cta-end,
  .legal-layout { grid-template-columns: 1fr; }
  .cta-end { text-align: center; flex-direction: column; }
  .toc { position: static; }
}

@media (max-width: 480px) {
  .band { padding: 48px 0; }
  .tiles,
  .steps { grid-template-columns: 1fr; }
  .hero-photo { min-height: 220px; }
}
