:root {
  --ink: #132033;
  --muted: #5b6675;
  --paper: #f7f5ef;
  --white: #ffffff;
  --blue: #0d3b66;
  --blue-dark: #082941;
  --teal: #1d7874;
  --gold: #d8a840;
  --line: rgba(19, 32, 51, 0.14);
  --shadow: 0 22px 60px rgba(8, 41, 65, 0.18);
  --radius: 8px;
}

:root[data-theme="steel"] {
  --ink: #102235;
  --muted: #596879;
  --paper: #f4f7f8;
  --blue: #17456f;
  --blue-dark: #102b44;
  --teal: #2f7890;
  --gold: #c59d48;
  --line: rgba(16, 34, 53, 0.14);
  --shadow: 0 22px 60px rgba(16, 43, 68, 0.18);
}

:root[data-theme="graphite"] {
  --ink: #181b1f;
  --muted: #626a70;
  --paper: #f4f2ed;
  --blue: #2e343a;
  --blue-dark: #15191d;
  --teal: #52656b;
  --gold: #b8924b;
  --line: rgba(24, 27, 31, 0.15);
  --shadow: 0 22px 60px rgba(21, 25, 29, 0.2);
}

:root[data-theme="forest"] {
  --ink: #16231d;
  --muted: #5c6b62;
  --paper: #f5f5ef;
  --blue: #204c45;
  --blue-dark: #102c28;
  --teal: #3d7865;
  --gold: #c49a43;
  --line: rgba(22, 35, 29, 0.14);
  --shadow: 0 22px 60px rgba(16, 44, 40, 0.18);
}

:root[data-theme="light"] {
  --ink: #17212b;
  --muted: #63707a;
  --paper: #fbfaf6;
  --blue: #24506d;
  --blue-dark: #e8ecec;
  --teal: #286f72;
  --gold: #a97c2b;
  --line: rgba(23, 33, 43, 0.13);
  --shadow: 0 22px 60px rgba(36, 80, 109, 0.16);
}

:root[data-theme="copper"] {
  --ink: #201b18;
  --muted: #695f58;
  --paper: #f7f3ec;
  --blue: #4e3931;
  --blue-dark: #231b18;
  --teal: #87624c;
  --gold: #c0844a;
  --line: rgba(32, 27, 24, 0.14);
  --shadow: 0 22px 60px rgba(35, 27, 24, 0.18);
}

:root[data-theme="brick"] {
  --ink: #231b1a;
  --muted: #6d5e5b;
  --paper: #f6f1eb;
  --blue: #65372f;
  --blue-dark: #2b1816;
  --teal: #7c4a3f;
  --gold: #c2934b;
  --line: rgba(35, 27, 26, 0.14);
  --shadow: 0 22px 60px rgba(43, 24, 22, 0.18);
}

:root[data-theme="sand"] {
  --ink: #202225;
  --muted: #686761;
  --paper: #f7f2e8;
  --blue: #565048;
  --blue-dark: #262620;
  --teal: #78705f;
  --gold: #b68d3f;
  --line: rgba(32, 34, 37, 0.14);
  --shadow: 0 22px 60px rgba(38, 38, 32, 0.18);
}

:root[data-theme="mono"] {
  --ink: #171717;
  --muted: #666666;
  --paper: #f6f6f4;
  --blue: #2f2f2f;
  --blue-dark: #111111;
  --teal: #555555;
  --gold: #9a9a9a;
  --line: rgba(23, 23, 23, 0.14);
  --shadow: 0 22px 60px rgba(17, 17, 17, 0.18);
}

:root[data-theme="night"] {
  --ink: #151b24;
  --muted: #5e6875;
  --paper: #f5f6f3;
  --blue: #193047;
  --blue-dark: #07131f;
  --teal: #245b68;
  --gold: #b9914b;
  --line: rgba(21, 27, 36, 0.14);
  --shadow: 0 22px 60px rgba(7, 19, 31, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: clamp(190px, 24vw, 310px);
  height: auto;
}

.site-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 4px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.site-nav a:hover {
  color: var(--blue-dark);
  background: var(--white);
}

.header-call {
  color: var(--white);
  background: var(--blue);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 750;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: max(620px, calc(100svh - 128px));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--blue-dark);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 90px);
  padding: 80px 0;
  color: var(--white);
}

.hero-logo {
  display: block;
  width: 430px;
  max-width: 78vw;
  height: auto;
  margin-bottom: 34px;
}

:root[data-theme="light"] .hero {
  background: #eef1f0;
}

:root[data-theme="light"] .hero-content,
:root[data-theme="light"] .hero-copy {
  color: var(--ink);
}

:root[data-theme="light"] .hero-logo {
  content: url("assets/logo-full-black.png");
}

:root[data-theme="light"] .button.secondary {
  color: var(--ink);
  background: rgba(23, 33, 43, 0.06);
  border-color: rgba(23, 33, 43, 0.18);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.55rem, 6vw, 4.75rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 8px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.site-footer div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--teal);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.button:hover,
.header-call:hover {
  transform: translateY(-1px);
}

.section {
  padding: clamp(68px, 10vw, 126px) clamp(18px, 5vw, 70px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: var(--white);
}

.intro p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article {
  min-height: 280px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(19, 32, 51, 0.06);
}

.service-grid p,
.steps span,
.assurance-copy p,
.contact-copy p,
.contact-card span {
  color: var(--muted);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--blue);
  background: rgba(216, 168, 64, 0.2);
  border-radius: 50%;
  font-weight: 850;
}

.assurance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  color: var(--white);
  background: var(--blue-dark);
}

.assurance-copy p {
  color: rgba(255, 255, 255, 0.76);
  max-width: 720px;
  margin: 22px 0;
}

.text-link {
  display: inline-flex;
  color: var(--white);
  border-bottom: 2px solid var(--gold);
  font-weight: 850;
}

.assurance-panel {
  display: flex;
  justify-content: flex-end;
}

.saker-vatten-logo {
  width: min(230px, 58vw);
  padding: 12px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.process {
  background: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  padding: 28px 28px 28px 78px;
  border-top: 1px solid var(--line);
}

.steps li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 28px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-weight: 850;
}

.steps strong,
.steps span {
  display: block;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  padding: clamp(68px, 10vw, 126px) clamp(18px, 5vw, 70px);
  background: var(--teal);
  color: var(--white);
}

.contact .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
}

.contact-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-card a {
  color: var(--ink);
  font-size: clamp(1.32rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 70px);
  color: rgba(255, 255, 255, 0.76);
  background: #071d2e;
}

.site-footer span {
  display: block;
}

.site-footer a,
.site-footer div:last-child span {
  color: var(--white);
}

.footer-logo {
  width: min(310px, 72vw);
  height: auto;
  margin-bottom: 12px;
}

.theme-switcher {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  max-width: min(430px, calc(100vw - 28px));
  padding: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(19, 32, 51, 0.16);
  backdrop-filter: blur(14px);
}

.theme-switcher:not(.is-visible) {
  display: none;
}

.theme-switcher span {
  padding-inline: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.theme-switcher button {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.theme-switcher button[aria-pressed="true"] {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.theme-switcher .theme-close {
  color: var(--muted);
  background: rgba(19, 32, 51, 0.05);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .intro,
  .assurance,
  .contact {
    grid-template-columns: 1fr;
  }

  .assurance-panel {
    justify-content: center;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 70px;
    padding: 12px 14px;
  }

  .header-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  .brand-logo {
    width: min(168px, 44vw);
  }

  .hero {
    min-height: max(640px, calc(100svh - 104px));
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-inline: 16px;
  }

  .hero-actions .button,
  .contact-card .button {
    width: 100%;
  }

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

  .service-grid article {
    min-height: auto;
  }

  .contact-card {
    padding: 18px;
  }

  .site-footer {
    display: grid;
  }

  .theme-switcher {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}
