/* ajahumm.com – nordisk, rolig og tillitsvekkende */

:root {
  --bg: #f6f3ee;
  --surface: #ece6dc;
  --ink: #1d2630;
  --text: #39424b;
  --muted: #6b7178;
  --line: #dcd4c7;
  --accent: #2e4a5e;
  --accent-ink: #ffffff;
  --sand: #a8927a;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 11vw, 140px);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (hover: hover) { a:hover { color: var(--ink); } }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1.2em; }

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

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.4em;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--text);
  max-width: 34em;
}

/* Header og navigasjon */

header {
  border-bottom: 1px solid var(--line);
}
header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
@media (hover: hover) { .brand:hover { color: var(--ink); } }

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
}
nav a {
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid transparent;
}
@media (hover: hover) { nav a:hover { color: var(--ink); border-bottom-color: var(--line); } }
nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Knapper */

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 2px;
  transition: background 0.2s ease;
}
@media (hover: hover) { .button:hover { background: var(--ink); color: var(--accent-ink); } }

.link-arrow {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
@media (hover: hover) { .link-arrow:hover { border-bottom-color: var(--ink); } }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 2.2em;
}

/* Seksjoner */

section { padding: var(--section) 0; }
section + section { border-top: 1px solid var(--line); }
.surface { background: var(--surface); border-top: 0 !important; }
.surface + section { border-top: 0; }

.section-head { max-width: 40em; margin-bottom: clamp(40px, 6vw, 64px); }

/* Hero */

.hero { padding-top: clamp(56px, 8vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero h1 { margin-bottom: 0.45em; }
.hero figure { margin: 0; }
.hero-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }

/* Fakta-linje */

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.facts strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 10px;
}
.facts span { font-size: 0.92rem; color: var(--muted); }

/* Kunder */

.clients {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--muted);
}

/* Kort / tjenester */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
}
.card { border-top: 1px solid var(--ink); padding-top: 28px; }
.card .num {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--sand);
  margin-bottom: 18px;
}
.card ul { padding-left: 1.1em; margin: 0 0 1.2em; }
.card li { margin-bottom: 0.3em; }

/* To kolonner med bilde */

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.split figure { margin: 0; }
/* Bildet fyller samme høyde som innholdet ved siden av */
.split.fill { align-items: stretch; }
.split.fill figure { position: relative; min-height: 280px; }
.split.fill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split.fill + p { margin-top: 32px; }
/* Hvit fotobakgrunn smelter inn i sidebakgrunnen */
.blend { mix-blend-mode: multiply; }

/* Resultater */

.results { display: grid; gap: 0; }
.result {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.result:last-child { border-bottom: 1px solid var(--line); }
.result .figure {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--ink);
}
.result .figure small {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  margin-top: 14px;
}
.result p:last-child { margin-bottom: 0; }

/* Sitater */

.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 5vw, 72px);
}
blockquote { margin: 0; }
blockquote p {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink);
}
blockquote footer {
  font-size: 0.88rem;
  color: var(--muted);
}
blockquote footer::before { content: "— "; }

.statement {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.statement p {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.35;
  color: var(--ink);
}

/* Steg */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
}
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 24px; }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--sand);
  margin-bottom: 12px;
}
.steps h3 { font-size: 1.25rem; }

/* Lister med årstall */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time, .timeline .year { font-size: 0.9rem; color: var(--muted); }

/* Kontakt */

.contact-list { margin: 0 0 2em; }
.contact-list dt {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  margin-top: 28px;
}
.contact-list dd {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--ink);
}
.contact-list dd a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
@media (hover: hover) { .contact-list dd a:hover { border-bottom-color: var(--ink); } }

/* Avsluttende oppfordring */

.cta { text-align: center; }
.cta .wrap { max-width: 760px; }
.cta .lead { margin: 0 auto; }
.cta .actions { justify-content: center; }

/* Juridisk side */

.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }

/* Footer */

body > footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 0.88rem;
  color: var(--muted);
}
body > footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}
body > footer p { margin: 0; }
body > footer .footer-note { flex-basis: 100%; font-size: 0.8rem; }
body > footer a { color: var(--muted); }

/* Mobil */

@media (max-width: 860px) {
  .hero-grid, .split, .split.reverse { grid-template-columns: 1fr; }
  .hero figure { order: -1; max-width: 420px; }
  .split figure { max-width: 420px; }
  .split.fill figure { min-height: 0; max-width: none; aspect-ratio: 3 / 2; }
  .grid-3, .steps, .quotes { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .result { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  header .wrap { flex-direction: column; align-items: flex-start; }
  nav ul { gap: 4px 20px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .contact-list dd { font-size: 1.3rem; overflow-wrap: anywhere; }
}
