/* ============================================================
   Trygg Økonomi — felles stilark
   Palett: rolig helseblå (primær), varm isblå (aksent),
   off-white / snøhvit (nøytral), dyp skifer (tekst)
   ============================================================ */

:root {
  --ink: #16283a;          /* dyp skiferblå — brødtekst */
  --ink-soft: #44586c;     /* sekundær tekst */
  --primary: #1d4e7c;      /* helseblå */
  --primary-deep: #12375c; /* mørkere blå for bad / footer */
  --accent: #6fb3d9;       /* isblå aksent */
  --accent-wash: #eaf3f9;  /* lyseblå vask */
  --paper: #fdfeff;        /* snøhvit bakgrunn */
  --cream: #f5f6f2;        /* varm off-white seksjonsbakgrunn */
  --line: #d8e2ea;         /* kantlinjer */
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px rgba(18, 55, 92, 0.10);
  font-size: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--primary-deep);
  font-weight: 600;
}

p { max-width: 62ch; }
strong { color: var(--primary-deep); }

a { color: var(--primary); }

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

.wrap {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 254, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
}

.brand-mark svg { display: block; }

.brand-name {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--primary-deep);
  letter-spacing: 0.01em;
}

.brand-tag {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.site-nav a:hover { color: var(--primary-deep); }
.site-nav a:focus-visible { outline-offset: 4px; }
.site-nav a[aria-current="page"] {
  color: var(--primary-deep);
  border-bottom-color: var(--accent);
}

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(160deg, var(--accent-wash) 0%, var(--paper) 58%);
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.4rem);
  margin-bottom: 1.4rem;
}

.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}

.hero-cta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

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

.btn-solid:hover {
  background: var(--primary-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  border-color: var(--primary);
  color: var(--primary-deep);
  background: transparent;
}

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

.hero-side {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1.7rem 1.7rem 1.2rem;
}

.hero-side h2 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.hero-side ul {
  list-style: none;
}

.hero-side li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.hero-side li:first-child { border-top: none; }

.hero-side li svg {
  flex: none;
  margin-top: 0.2rem;
}

.hero-side li strong { color: var(--ink); }

/* ---------- seksjoner ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.section-cream { background: var(--cream); border-block: 1px solid var(--line); }

.section-head {
  max-width: 56ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin-bottom: 0.9rem;
}

.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* Om Ozren — as imetrisk (tekst venstre, kort høyre) */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-text p + p { margin-top: 1rem; }

.about-text p { color: var(--ink-soft); }
.about-text strong { color: var(--primary-deep); }

.fact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.fact-card figure { position: relative; }

.fact-numbers {
  background: var(--primary-deep);
  color: #fff;
  padding: 1.4rem 1.6rem;
  display: flex;
  gap: 2rem;
}

.fact-numbers .num {
  font-family: "Lora", Georgia, serif;
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
}

.fact-numbers .lbl {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bcd5ea;
}

/* Utfordringen — redaksjonelle to kolonner med tallmarkør */
.problem-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.problem-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.problem-item .idx {
  font-family: "Lora", Georgia, serif;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.2;
}

.problem-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.problem-item p { color: var(--ink-soft); font-size: 0.98rem; }

/* Løsningen — hvem løsningen betjener */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.audience {
  background: #fff;
  padding: 1.6rem 1.4rem;
}

.audience h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.audience p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: none;
  line-height: 1.5;
}

/* ---------- kontakt ---------- */
.contact-band {
  background: var(--primary-deep);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 5rem) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-band .eyebrow { color: var(--accent); }

.contact-band h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  color: #fff;
  margin-bottom: 1rem;
}

.contact-band p { color: #c9dcec; }

.contact-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  color: var(--primary-deep);
  font-weight: 700;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  align-self: flex-start;
  transition: transform .15s ease, box-shadow .15s ease;
}

.mail-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }

.contact-note {
  font-size: 0.85rem;
  color: #9fc4de;
}

.contact-side {
  border-left: 2px solid rgba(111, 179, 217, 0.4);
  padding-left: 1.6rem;
}

.contact-side h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.contact-side li {
  list-style: none;
  color: #c9dcec;
  font-size: 0.95rem;
  padding: 0.45rem 0;
}

.contact-side li::before {
  content: "—";
  color: var(--accent);
  margin-right: 0.6rem;
}

/* ---------- footer ---------- */
.site-footer {
  background: #0d2438;
  color: #9db4c7;
  padding: 2.2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-brand .brand-name { color: #fff; }

.footer-note {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.footer-note .footer-note__line { display: block; }

.footer-note a { text-decoration: underline; text-underline-offset: 2px; }

.site-footer a { color: #bcd5ea; }

/* ---------- innsyns-animasjon (subtil) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .mail-btn { transition: none; }
}

/* ---------- responsivt ---------- */
@media (max-width: 900px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .audience:last-child { grid-column: span 2; }
}

@media (max-width: 760px) {
  .header-inner { flex-direction: column; align-items: flex-start; padding: 0.9rem 0 0.7rem; }
  .site-nav ul { flex-wrap: wrap; gap: 0.4rem 1.3rem; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .fact-numbers { justify-content: flex-start; }
  .problem-item { grid-template-columns: 3rem 1fr; }
  .footnote-mail { word-break: break-word; }
}

@media (max-width: 560px) {
  .audience-grid { grid-template-columns: 1fr; }
  .audience:last-child { grid-column: auto; }
  .fact-numbers { flex-direction: column; gap: 1rem; }
}
