/* ==========================================================================
   Konkursombudsmannen – stilmall
   ========================================================================== */

@font-face {
  font-family: "General Sans";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("/assets/fonts/GeneralSans-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "General Sans";
  font-style: italic;
  font-weight: 200 700;
  font-display: swap;
  src: url("/assets/fonts/GeneralSans-VariableItalic.woff2") format("woff2");
}

:root {
  --red: #dc0815;
  --red-hover: #e8585f;
  --red-accent: #cc0000;
  --red-accent-hover: #aa0000;
  --ink: #000;
  --ink-soft: #111;
  --grey-bg: #f7f7f7;
  --card-warm: #f6f6f4;
  --form-bg: #f6f6f6;
  --border-input: rgba(0, 0, 0, 0.18);
  --border-input-hover: rgba(0, 0, 0, 0.6);

  --container: 1094px;
  --gutter: 24px;
  --section-y: 80px;

  --fs-h1: clamp(2.125rem, 1.35rem + 2.6vw, 3.4rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.5vw, 2.488rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.44rem);
  --fs-lead: 1.1rem;

  --font: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 480;
  line-height: 1.5;
  letter-spacing: -0.004em;
  font-feature-settings: "ss01";
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  font-feature-settings: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* Layout ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.bg-grey {
  background: var(--grey-bg);
}

.section-title {
  font-size: var(--fs-h2);
  text-align: center;
  margin-bottom: 64px;
}

.eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red-accent);
  line-height: 1.5;
}

.text-link {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.text-link:hover {
  color: var(--red);
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.004em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-lg {
  min-height: 56px;
  padding: 0 32px;
  font-size: 1.05rem;
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: var(--red-hover);
}

.btn-black {
  background: #000;
  color: #fff;
}

.btn-black:hover {
  background: #131414;
}

.btn-white {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.btn-white:hover {
  background: #e6e6e6;
  border-color: #e6e6e6;
}

/* "kko"-knappen (accentröd) */
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red-accent);
  color: #fff;
  padding: 13px 22px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-accent:hover {
  background: var(--red-accent-hover);
}

.phone-line {
  color: #888;
  text-decoration: none;
}

.phone-line span {
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.2s ease;
}

.phone-line:hover span {
  color: var(--red-accent);
}

/* Header ----------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 20;
}

.site-header--overlay {
  position: absolute;
  inset: 0 0 auto 0;
  color: #fff;
}

.site-header--light {
  background: #fff;
  color: var(--red);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
}

.site-header__logo {
  display: block;
  width: 183px;
}

.site-header__logo img {
  width: 183px;
  height: 72px;
}

.site-nav__link {
  font-size: 1rem;
  text-decoration: none;
  color: inherit;
}

.site-nav__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.menu-toggle svg {
  width: 32px;
  height: 32px;
}

.menu-toggle .icon-close {
  display: none;
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--red) url("/assets/img/hero-bg.svg") center / cover no-repeat;
  color: #fff;
  padding: 218px 0 144px;
}

.hero__eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: var(--fs-h1);
  max-width: 1045px;
  margin-bottom: 24px;
}

.hero__text {
  max-width: 836px;
}

.hero__text p {
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.hero__text p + p {
  margin-top: 17px;
}

.hero__text a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.hero .btn {
  margin-top: 44px;
}

/* Vår approach (kko-ts) ------------------------------------------------- */
.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.approach__left {
  background: var(--ink-soft);
  padding: 64px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.approach__left .eyebrow {
  letter-spacing: 2.5px;
  margin-bottom: 18px;
}

.approach__left h2 {
  font-size: var(--fs-h2);
  color: #fff;
  line-height: 1.25;
  margin-bottom: 20px;
}

.approach__divider {
  width: 32px;
  height: 2px;
  background: var(--red-accent);
  margin-bottom: 20px;
}

.approach__intro {
  color: #aaa;
  line-height: 1.8;
}

.approach__right {
  padding: 64px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.approach__right p {
  color: var(--ink-soft);
  line-height: 1.85;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
}

/* Bengt ------------------------------------------------------------------ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__media img {
  width: 100%;
  aspect-ratio: 814 / 686;
  object-fit: cover;
  border-radius: 8px;
}

.about__eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 16px;
}

.about h2 {
  font-size: var(--fs-h2);
  margin-bottom: 32px;
}

.about__text p {
  line-height: 1.6;
}

.about__text p + p {
  margin-top: 16px;
}

.about .btn {
  margin-top: 24px;
}

/* När ekonomin pressar (kko-ep) ---------------------------------------- */
.pressure {
  max-width: var(--container);
  margin-inline: auto;
  padding: 64px 52px;
}

.pressure .eyebrow {
  margin-bottom: 12px;
}

.pressure h2 {
  font-size: var(--fs-h2);
  color: var(--ink-soft);
  line-height: 1.3;
  margin-bottom: 24px;
}

.pressure__body {
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 16px;
}

.pressure__body--emphasis {
  font-weight: 500;
}

.pressure__box {
  background: var(--ink-soft);
  padding: 24px 28px;
  margin: 8px 0 24px;
}

.pressure__box .eyebrow {
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.pressure__box p:last-child {
  color: #ccc;
  line-height: 1.8;
}

.pressure .cta-stack {
  gap: 14px;
  margin-top: 28px;
}

/* Så hjälper vi dig ----------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  background: #fff;
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 24px 24px 56px;
}

.step h3 {
  font-size: var(--fs-h3);
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.step p {
  line-height: 1.6;
}

.steps-cta {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

/* Omdömen (kko-test) ---------------------------------------------------- */
.testimonials {
  padding: 64px 52px;
}

.testimonials .section-title {
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--container);
  margin-inline: auto;
}

.testimonial {
  background: var(--card-warm);
  padding: 28px;
  border-top: 3px solid var(--red-accent);
  display: flex;
  flex-direction: column;
  margin: 0;
}

.testimonial__mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1;
  color: var(--red-accent);
  margin-bottom: 4px;
}

.testimonial blockquote {
  margin: 0 0 24px;
  flex: 1;
}

.testimonial blockquote p {
  color: #444;
  line-height: 1.8;
  font-style: italic;
}

.testimonial figcaption {
  border-top: 1px solid #ddd;
  padding-top: 16px;
}

.testimonial__name {
  display: block;
  font-weight: 600;
  color: var(--ink-soft);
}

.testimonial__role {
  display: block;
  margin-top: 3px;
  color: #999;
  font-size: 0.85em;
}

/* FAQ -------------------------------------------------------------------- */
.faq {
  max-width: 912px;
  margin-inline: auto;
}

.faq .section-title {
  margin-bottom: 72px;
}

.faq__list {
  display: grid;
  gap: 16px;
}

.faq__item {
  background: #fff;
  border: 1px solid var(--red);
  border-radius: 6px;
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.faq__icon {
  flex: none;
  width: 24px;
  height: 24px;
  transition: transform 0.25s ease;
}

.faq__item[open] .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 32px 28px;
  line-height: 1.6;
}

.faq__answer p + p {
  margin-top: 16px;
}

/* Banner ----------------------------------------------------------------- */
.banner {
  padding-block: 40px;
}

.banner__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 40px;
}

.banner img {
  width: 100%;
}

/* Kontakt ---------------------------------------------------------------- */
.contact {
  padding-block: 112px;
}

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

.contact__title {
  font-size: var(--fs-h1);
  margin-bottom: 24px;
}

.contact__text p {
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.contact__text p + p {
  margin-top: 17px;
}

.form-card {
  background: var(--form-bg);
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 32px;
}

.form-card h2,
.form-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 24px;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 580;
  line-height: 1.25;
  margin-bottom: 8px;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  background: #fff;
  color: var(--ink-soft);
  border: 1px solid var(--border-input);
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.15s ease;
}

.field input {
  height: 42px;
  padding: 0 16px;
}

.field textarea {
  min-height: 160px;
  padding: 12px;
  line-height: 1.6;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--border-input-hover);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
  outline: 2px solid rgba(220, 8, 21, 0.25);
  outline-offset: 0;
}

.field--hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-card .btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.form-status {
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  padding: 14px 16px;
  background: #ecf8ef;
  border-left: 3px solid #1b7f3b;
  color: #0d4a22;
}

.form-status.is-error {
  padding: 14px 16px;
  background: #fdecee;
  border-left: 3px solid var(--red);
  color: #7a0710;
}

.form-note {
  margin-top: 16px;
  font-size: 0.75rem;
  color: #666;
  line-height: 1.5;
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--red);
  color: #fff;
  padding: 120px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 412fr 297fr 305fr;
  gap: 40px;
}

.footer__brand img {
  width: 122px;
  height: 48px;
  margin-bottom: 30px;
}

.footer__brand p {
  max-width: 360px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer__brand p + p {
  margin-top: 16px;
}

.footer__brand strong {
  font-weight: 650;
}

.footer__heading {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 4px;
  margin-bottom: 30px;
}

.footer__col a {
  text-decoration: none;
}

.footer__col a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__col a.text-link {
  text-decoration: underline;
}

.footer__col a.text-link:hover {
  color: #fff;
  opacity: 0.85;
}

.footer__bottom {
  margin-top: 130px;
  display: flex;
  justify-content: center;
}

.powered-by {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 600;
}

.powered-by img {
  width: 130px;
  height: auto;
}

/* Responsivt ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .contact__grid {
    gap: 56px;
  }
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .about,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__media {
    max-width: 560px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

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

  .approach__left,
  .approach__right {
    padding: 48px 24px;
  }

  .testimonials {
    padding: 48px var(--gutter);
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --section-y: 56px;
  }

  .site-header__inner {
    min-height: 88px;
  }

  .site-header__logo,
  .site-header__logo img {
    width: 150px;
    height: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--red);
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  }

  .site-header--light .site-nav {
    background: #fff;
    color: var(--red);
    border-top: 1px solid #eee;
  }

  .site-header.is-open .site-nav {
    display: block;
  }

  .site-header.is-open .icon-open {
    display: none;
  }

  .site-header.is-open .icon-close {
    display: block;
  }

  .site-nav__link {
    display: block;
    padding: 12px 0;
    font-size: 1.15rem;
  }

  .hero {
    padding: 136px 0 80px;
  }

  .hero h1 {
    margin-bottom: 20px;
  }

  .hero .btn {
    margin-top: 32px;
  }

  .pressure {
    padding: 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .faq .section-title {
    margin-bottom: 40px;
  }

  .faq__item summary {
    padding: 20px;
  }

  .faq__answer {
    padding: 0 20px 24px;
  }

  .banner__inner {
    padding-inline: 20px;
  }

  .contact {
    padding-block: 64px;
  }

  .form-card {
    padding: 24px 20px;
  }

  .site-footer {
    padding-top: 72px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__heading {
    margin-bottom: 12px;
  }

  .footer__bottom {
    margin-top: 72px;
  }
}

@media (max-width: 600px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    padding-bottom: 32px;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
