﻿/*
  Martin Hanssons - statisk webbplats
  Mobil först, snabb att ladda och enkel att bygga vidare på.
*/
:root {
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-light: #ffffff;
  --text: #111111;
  --muted: #222222;
  --accent: #c79b3b;
  --accent-strong: #9b741f;
  --accent-dark: #6f5014;
  --line: rgba(0, 0, 0, 0.16);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
  --radius: 8px;
  --max-width: 1120px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Lato, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.68;
}

body.menu-open {
  overflow: hidden;
}

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

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  color: var(--muted);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
}

.menu-button {
  position: absolute;
  right: 16px;
  display: inline-grid;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.site-nav {
  position: fixed;
  inset: 68px 16px auto;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  padding: 12px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-current {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.site-nav a.is-current {
  box-shadow: inset 0 -2px 0 var(--text);
}

.site-nav .nav-cta {
  background: var(--accent);
  color: #111111;
  text-align: center;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 0;
  background: #ffffff;
}

.hero-background,
.hero-background img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  filter: saturate(0.68) contrast(0.96) brightness(0.94);
}

.hero-overlay {
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 46%, rgba(255, 255, 255, 0.24) 100%);
}

.hero-logo-wrap {
  position: absolute;
  left: 50%;
  bottom: -7%;
  z-index: 2;
  width: min(92vw, 1120px);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(255, 255, 255, 0.62));
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 700;
}

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 12vw, 5.8rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 7vw, 3.55rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.hero-lead {
  max-width: 700px;
  margin-bottom: 28px;
  font-size: clamp(1.1rem, 4vw, 1.35rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #111111;
  box-shadow: 0 14px 36px rgba(240, 163, 58, 0.23);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
}

.section {
  padding: 72px 0;
}


.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.split-section {
  background: #ffffff;
}

.split-section.alt {
  background: #ffffff;
}

.service-section {
  scroll-margin-top: 88px;
  padding: 18px 0;
  transition: background 180ms ease;
}

.service-section .section-inner {
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 34px);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-section.is-active .section-inner {
  border-color: var(--line);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-section .eyebrow {
  margin-bottom: 0;
  font-size: clamp(1.18rem, 2.4vw, 1.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.04em;
}


.text-heading.service-label {
  margin-bottom: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-weight: 900;
  line-height: 1.06;
}


.service-section .rich-text,
.tech-panel > p {
  font-size: clamp(1.08rem, 2.1vw, 1.28rem);
  line-height: 1.62;
}

.split-layout {
  display: grid;
  gap: 22px;
}

.rich-text {
  max-width: 760px;
}

.text-heading {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  font-weight: 700;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.tech-section {
  background: #ffffff;
}

.tech-panel,
.contact-panel {
  display: grid;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.tech-panel p,
.contact-panel p {
  margin-bottom: 0;
}

.contact-section {
  background: #ffffff;
}

.contact-panel {
  background: #ffffff;
}

.contact-details {
  width: 100%;
  color: var(--muted);
  font-weight: 700;
}

.contact-details a:hover,
.site-footer a:hover {
  color: var(--text);
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-inner p {
  margin-bottom: 0;
}

@media (min-width: 720px) {
  .section-inner {
    width: min(100% - 56px, var(--max-width));
  }

  .menu-button {
    display: none;
  }

  .site-header {
    padding: 16px 28px;
    justify-content: center;
  }
.site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav a {
    padding: 9px 10px;
  }

  .site-nav .nav-cta {
    padding-inline: 16px;
  }

  .hero {
    min-height: 100vh;
  }
.contact-panel {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }

  .contact-actions {
    justify-content: flex-end;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1020px) {
  .section {
    padding: 92px 0;
  }

  .service-section {
    padding: 18px 0;
  }
  .hero-logo-wrap {
    width: min(72vw, 1120px);
  }
}

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

#contact-title {
  margin-bottom: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 900;
  line-height: 1.06;
}

.about-page {
  padding-top: 74px;
  background: #ffffff;
}

.about-hero {
  display: grid;
  gap: 0;
}

.about-image-wrap {
  width: 100%;
  max-height: 72vh;
  overflow: hidden;
  background: #f5f5f5;
}

.about-image {
  display: block;
  width: 100%;
  height: min(72vh, 760px);
  object-fit: cover;
  object-position: 50% 18%;
  filter: saturate(0.68) contrast(0.96) brightness(0.94);
}

.about-copy {
  padding-block: clamp(34px, 6vw, 78px);
  max-width: 820px;
}

.about-copy h1 {
  margin-bottom: 24px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: clamp(2rem, 5vw, 4.1rem);
  font-weight: 900;
  line-height: 1.02;
}

.about-copy p:not(.eyebrow) {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.72;
}

@media (min-width: 920px) {
  .about-hero {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
    min-height: 100vh;
    align-items: stretch;
  }

  .about-image-wrap {
    max-height: none;
    height: 100%;
  }

  .about-image {
    height: 100%;
    min-height: calc(100vh - 74px);
  }

  .about-copy {
    align-self: center;
    padding-inline: clamp(34px, 5vw, 82px);
  }
}

