/* Solvanta AB — gemensam stil */

/* Typsnitt lagras lokalt (inga anrop till Google Fonts). Samma familjer som tidigare webbplats: Lora och Montserrat. */
@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/lora-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/lora-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/lora-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ledger: #f4f4f3;
  --rule: #dcdad5;
  --ink: #212121;
  --ink-soft: #555555;
  --black: #000000;
  --gold: #c6a263;
  --gold-text: #8a6a2f;
  --pine: #8a6a2f;
  --pine-deep: #6e5424;
  --brass: #c6a263;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.375rem;
  --step-4: clamp(2.5rem, 5.4vw, 3.75rem);

  --measure: 64ch;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "tnum" 0;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--pine); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pine-deep); text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: var(--step-4); font-weight: 400; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1em; max-width: var(--measure); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; }

/* Sidhuvud */
.site-header {
  background: var(--black);
  color: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
}
.brand { display: inline-block; line-height: 0; }
.brand img { width: 11.5rem; height: auto; }

.nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

/* Knappar */
.button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.85rem 1.4rem;
  border-radius: 0;
  background: var(--black);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--black);
  cursor: pointer;
}
.button:hover { background: #333; border-color: #333; color: #fff; text-decoration: none; }
.button.quiet {
  background: transparent;
  color: var(--black);
}
.button.quiet:hover { background: var(--ledger); color: var(--black); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Hero med konsolidering */
.hero { padding-block: clamp(3rem, 8vw, 6rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero h1 { max-width: 15ch; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 34ch; }

.hero-team {
  background: var(--ledger);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-top: 3px solid var(--gold);
}
.hero-team h2 {
  font-size: var(--step-1);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.hero-team ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.hero-team img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 0.75rem;
}
.hero-team strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.hero-team span { display: block; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.4; }

/* Sektioner */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section.tinted { background: var(--ledger); }
.section > .wrap > h2 { max-width: 22ch; }
.section-intro { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; max-width: 46ch; }

.areas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 2rem;
  margin-top: 2.5rem;
}
.areas article {
  border-top: 2px solid var(--gold);
  padding-top: 1.25rem;
}
.areas p { color: var(--ink-soft); }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.steps li { counter-increment: step; border-top: 1px solid var(--rule); padding-top: 1rem; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-size: var(--step-2);
  color: var(--gold-text);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--ink-soft); font-size: 1rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.cta-band { background: var(--black); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6d6d6; }
.cta-band .button { background: var(--gold); color: var(--black); border-color: var(--gold); }
.cta-band .button:hover { background: #d8b878; border-color: #d8b878; color: var(--black); }
.cta-band a:not(.button) { color: #fff; }

/* Sidrubrik på undersidor */
.page-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--rule); }
.page-head h1 { max-width: 24ch; }

/* Tjänster */
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.service:last-child { border-bottom: 0; }
.service h2 { font-size: var(--step-2); }
.service .summary { color: var(--ink-soft); }
.service dl { margin: 0; }
.service dt { font-weight: 600; margin-top: 1.25rem; }
.service dt:first-child { margin-top: 0; }
.service dd { margin: 0.2rem 0 0; color: var(--ink-soft); max-width: 52ch; }

/* Om */
.facts { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.facts li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.facts strong { display: block; font-weight: 600; }
.facts span { color: var(--ink-soft); }
.prose p { font-size: var(--step-0); }
.prose h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }

/* Teamet */
.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 2.5rem;
}
.person .portrait,
.person > img { display: block; }
.person img.portrait {
  width: 100%;
  max-width: 22rem;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.person h3 { font-size: var(--step-2); font-weight: 500; margin-bottom: 0.15rem; }
.person .role { color: var(--gold-text); font-weight: 600; margin-bottom: 1rem; }
.person p { color: var(--ink); }
.person-seal { width: 15rem; height: auto; margin: 0 0 1.25rem; }

/* Sigill */
.seal-pair img { width: 9rem; height: auto; margin-top: 1rem; }
.prose h3 { margin-top: 0; }
.prose h3 + p { margin-bottom: 1.75rem; }
.trust {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}
.trust .srf { width: 15rem; height: auto; }
.trust .rex { width: 4rem; height: 4rem; }
.footer-seal { width: 13rem; height: auto; align-self: center; opacity: 0.85; }

/* Platshållare som Marzena fyller i före lansering */
mark.todo {
  background: #f3e6c4;
  color: var(--ink);
  padding: 0 0.2em;
  border-radius: 2px;
}

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-direct { font-size: var(--step-1); }
.contact-direct a { font-weight: 500; }
form { display: grid; gap: 1.1rem; max-width: 36rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
label .opt { font-weight: 400; color: var(--ink-soft); }
input, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #a9a9a9;
  border-radius: 0;
  padding: 0.75rem 0.85rem;
}
input:focus, textarea:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--ink); }
textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.form-status { margin: 0; padding: 0.9rem 1rem; border-radius: 3px; display: none; }
.form-status.ok { display: block; background: var(--ledger); border-left: 4px solid var(--gold); }
.form-status.err { display: block; background: #fbeeee; border-left: 4px solid #a23b3b; }

/* Sidfot */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer p { margin: 0; }
.site-footer nav ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }

/* Responsivt */
@media (max-width: 60rem) {
  .steps,
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 52rem) {
  .hero .wrap,
  .split,
  .service,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .team { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 34rem) {
  .steps,
  .areas { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .brand small { display: none; }
}
