/* =========================================================
   Bånkestad — Lead Generation
   Design system: Nordic professional
   Palette: deep navy ink + warm amber + pine trust green
   Type: Bricolage Grotesque (display) / Inter (body)
   ========================================================= */

:root {
  --ink: #0D1B2A;
  --navy: #16324F;
  --steel: #3E5C76;
  --steel-soft: #4C7FB0;
  --cloud: #F4F6F8;
  --paper: #FFFFFF;
  --line: #E2E7ED;
  --amber: #E0A83B;
  --amber-deep: #C88F22;
  --pine: #2E7D5B;
  --pine-soft: #E8F3EE;
  --danger: #C0492F;

  --text: #16232F;
  --muted: #5A6B7A;
  --on-dark: #EAF1F7;
  --on-dark-muted: #A9BACB;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.06), 0 2px 8px rgba(13, 27, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(13, 27, 42, 0.10);
  --shadow-lg: 0 30px 70px rgba(13, 27, 42, 0.18);

  --maxw: 1160px;
  --gap: clamp(1rem, 3vw, 2.5rem);

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.2rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--cloud { background: var(--cloud); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--ink h1,
.section--ink h2,
.section--ink h3 { color: var(--paper); }

.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--amber); color: var(--ink); box-shadow: 0 6px 18px rgba(224, 168, 59, 0.35); }
.btn--primary:hover { background: var(--amber-deep); box-shadow: 0 10px 26px rgba(224, 168, 59, 0.45); }
.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark:hover { background: var(--navy); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: var(--cloud); }
.btn--ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,0.28); }
.btn--ghost-light:hover { border-color: var(--paper); background: rgba(255,255,255,0.06); }
.btn--block { width: 100%; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; cursor: pointer; }
.brand__mark { width: 40px; height: 40px; border-radius: 11px; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.03em; color: var(--ink); }
.brand__name span { color: var(--amber-deep); }

.nav__links { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--steel);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.nav__link:hover { color: var(--ink); background: var(--cloud); }
.nav__link.is-active { color: var(--ink); font-weight: 600; }
.nav__cta { display: flex; align-items: center; gap: 0.6rem; }

.lang-toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--steel); padding: 0.4rem 0.7rem; transition: background .15s ease, color .15s ease;
}
.lang-toggle button.is-active { background: var(--ink); color: var(--paper); }
.lang-toggle button:not(.is-active):hover { background: var(--cloud); color: var(--ink); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 82% 18%, rgba(224,168,59,0.16), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(76,127,176,0.20), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.hero h1 {
  color: var(--paper);
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero__sub { color: var(--on-dark-muted); font-size: 1.15rem; max-width: 46ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; }
.trust-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--on-dark); }
.trust-item svg { flex: none; color: var(--amber); }

/* pipeline signature card */
.pipeline {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-lg);
}
.pipeline__title { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 1.3rem; }
.pipeline__step { display: flex; gap: 1rem; align-items: flex-start; position: relative; padding-bottom: 1.5rem; }
.pipeline__step:last-child { padding-bottom: 0; }
.pipeline__dot {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(224,168,59,0.15); color: var(--amber);
  font-weight: 700; font-family: var(--font-display);
  border: 1px solid rgba(224,168,59,0.35);
}
.pipeline__step:not(:last-child)::before {
  content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--steel-soft), transparent);
}
.pipeline__body strong { display: block; color: var(--paper); font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 0.15rem; }
.pipeline__body span { font-size: 0.9rem; color: var(--on-dark-muted); }
.pipeline__badge {
  margin-top: 1.4rem; display: flex; align-items: center; gap: 0.7rem;
  background: rgba(46,125,91,0.16); border: 1px solid rgba(46,125,91,0.4);
  border-radius: 12px; padding: 0.75rem 1rem; color: #BEE9D5; font-size: 0.9rem; font-weight: 500;
}
.pipeline__badge svg { color: #5FCf9c; flex: none; }

/* ---------- Logos / stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--ink); letter-spacing: -0.03em; }
.stat__label { font-size: 0.9rem; color: var(--muted); }

/* ---------- Section heading ---------- */
.sec-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfd8e2; }
.card__icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--cloud); color: var(--navy); margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.97rem; }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step {
  position: relative; padding: 1.6rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
}
.step__n {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ink); color: var(--amber); margin-bottom: 1rem;
}
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: 0.93rem; margin-bottom: 0; }

/* ---------- Guarantee band ---------- */
.guarantee { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; }
.seal {
  width: 128px; height: 128px; border-radius: 50%; flex: none;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 40%, var(--pine), #1f5c41);
  color: #eafaf2; box-shadow: 0 20px 40px rgba(46,125,91,0.35);
  border: 3px solid rgba(255,255,255,0.25);
}
.seal strong { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.seal span { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; }

/* ---------- Form ---------- */
.form-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.form-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--ink); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem; font-family: var(--font-body); font-size: 0.98rem;
  border: 1.5px solid var(--line); border-radius: 11px; background: var(--paper); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(224,168,59,0.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--amber-deep); }
.check a { color: var(--navy); font-weight: 600; text-decoration: underline; cursor: pointer; }

.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.8rem; }
.form-msg { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: 11px; font-size: 0.92rem; font-weight: 500; }
.form-msg--ok { background: var(--pine-soft); color: #1f6a4b; border: 1px solid #bfe6d5; }
.form-msg--err { background: #FBEAE5; color: #9a3520; border: 1px solid #f2c9bd; }
.field-err { display: block; color: var(--danger); font-size: 0.82rem; margin-top: 0.3rem; }
.input-bad { border-color: var(--danger) !important; }

.form-aside .tick { display: flex; gap: 0.7rem; margin-bottom: 1rem; align-items: flex-start; }
.form-aside .tick svg { color: var(--pine); flex: none; margin-top: 3px; }
.form-aside .tick strong { display: block; color: var(--ink); font-family: var(--font-display); }
.form-aside .tick span { color: var(--muted); font-size: 0.93rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--navy), var(--ink));
  border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--on-dark); text-align: center;
}
.cta-band h2 { color: var(--paper); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { color: var(--on-dark-muted); max-width: 52ch; margin: 0 auto 1.8rem; }

/* ---------- Legal / content pages ---------- */
.page-hero { background: var(--cloud); border-bottom: 1px solid var(--line); padding: clamp(2.6rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero .lead { margin: 0; }
.doc { max-width: 780px; }
.doc h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.doc h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.4rem; }
.doc .meta { color: var(--muted); font-size: 0.9rem; }
.callout {
  border-left: 3px solid var(--amber); background: var(--cloud);
  padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; margin: 1.4rem 0;
}
.callout strong { color: var(--ink); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.info-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem;
}
.info-card svg { color: var(--amber-deep); flex: none; margin-top: 2px; }
.info-card strong { display: block; color: var(--ink); font-family: var(--font-display); margin-bottom: 0.15rem; }
.info-card a, .info-card span { color: var(--muted); }
.info-card a:hover { color: var(--navy); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.25rem 0; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__q span { flex: none; color: var(--amber-deep); font-size: 1.4rem; transition: transform .2s ease; }
.faq__item.is-open .faq__q span { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { color: var(--muted); padding-bottom: 1.25rem; margin: 0; }
.faq__item.is-open .faq__a { max-height: 320px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-muted); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer__brand .brand__name { color: var(--paper); }
.footer p { color: var(--on-dark-muted); font-size: 0.92rem; max-width: 34ch; }
.footer h4 { color: var(--paper); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; margin-bottom: 1rem; }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: 0.55rem; }
.footer__links a { color: var(--on-dark-muted); font-size: 0.93rem; cursor: pointer; transition: color .15s ease; }
.footer__links a:hover { color: var(--amber); }
.footer address { font-style: normal; color: var(--on-dark-muted); font-size: 0.92rem; line-height: 1.7; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
}
.footer__bottom a { cursor: pointer; }
.footer__bottom a:hover { color: var(--amber); }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.hide { display: none !important; }
.spin { animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .pipeline { max-width: 460px; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1rem; }
  .form-split, .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
/* Collapse the top nav into a mobile menu a little earlier, so longer
   Swedish labels never crowd the header. */
@media (max-width: 900px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: flex; }
  .mobile-open .nav__links {
    display: flex; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.6rem clamp(1.1rem, 4vw, 2.2rem) 1.2rem; box-shadow: var(--shadow-md);
  }
  .mobile-open .nav__link { padding: 0.85rem 0.4rem; border-bottom: 1px solid var(--line); white-space: normal; }
}
@media (max-width: 720px) {
  .guarantee { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cards, .steps, .stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
