/* ============================================================
   Meberg Legeveiledning – stilark
   ------------------------------------------------------------
   ENKEL REDIGERING:
   - Farger og typografi styres av variablene rett under.
   - Endre én verdi her, og hele nettsiden oppdateres.
   - Ingen eksterne fonter, ingen sporing, ingen JavaScript.
   ============================================================ */

:root {
  /* Farger – hentet fra logoen (marineblå + grønn) */
  --bg: #f7f4ee;            /* varm off-white bakgrunn */
  --surface: #fffefb;       /* kort og paneler */
  --surface-soft: #eef4f1;  /* rolige infofelt */
  --ink: #1d2a33;           /* brødtekst */
  --muted: #5b6a74;         /* dempet tekst */
  --line: #e4ddd0;          /* delelinjer og rammer */
  --navy: #16395f;          /* overskrifter, dyp blå */
  --green: #1e7a6d;         /* aksentfarge */
  --green-dark: #135c52;    /* lenker, hover */
  --green-soft: #e3efeb;    /* lys grønn flate */
  --amber: #8a6116;         /* statusmerke-tekst */
  --amber-bg: #faf3e3;      /* statusmerke-bakgrunn */
  --alert: #9c2b2b;         /* akutt-informasjon */

  /* Typografi */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Form */
  --radius: 14px;
  --shadow: 0 14px 40px rgba(22, 57, 95, 0.07);
}

/* ---------- Grunnlag ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

.site-header, main, .site-footer {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Topp / header ---------- */

.site-header { padding: 22px 0 0; }

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--line);
  padding: 4px;
}

.brand-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1.1;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  letter-spacing: .2px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid #e8d4a4;
  font-weight: 650;
  font-size: .88rem;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9a93f;
}

nav[aria-label="Hovedmeny"] {
  display: flex;
  gap: 4px 22px;
  flex-wrap: wrap;
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
}

nav[aria-label="Hovedmeny"] a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

nav[aria-label="Hovedmeny"] a:hover,
nav[aria-label="Hovedmeny"] a[aria-current="page"] {
  color: var(--green-dark);
  border-color: var(--green);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 30px;
  max-width: 760px;
}

.hero--center { text-align: left; }

.eyebrow {
  color: var(--green-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  margin: 0 0 18px;
}

h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--navy);
  margin: 0 0 22px;
}

.lead {
  font-size: 1.22rem;
  line-height: 1.65;
  color: var(--ink);
  max-width: 680px;
  margin: 0 0 14px;
}

.hero .small { max-width: 620px; }

.tree-band {
  min-height: clamp(220px, 32vw, 360px);
  margin: 18px 0 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(29, 42, 51, .38), rgba(29, 42, 51, .05) 48%, rgba(29, 42, 51, .16)),
    url("assets/tre-bakgrunn.jpg") center 45% / cover no-repeat;
  box-shadow: var(--shadow);
}

/* ---------- Typografi ellers ---------- */

h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 14px;
}

h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 8px;
}

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

.small { color: var(--muted); font-size: .93rem; }

.section {
  padding: 34px 0;
}

.section + .section { border-top: 1px solid var(--line); }

.section-intro {
  max-width: 640px;
  color: var(--muted);
  margin-bottom: 26px;
}

/* ---------- Kort og flater ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card ul, .callout ul {
  margin: 0;
  padding-left: 1.2rem;
}

.card li, .callout li { margin: 6px 0; }

/* Rolig informasjonsfelt */
.callout {
  background: var(--surface-soft);
  border: 1px solid #cfe0da;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 26px 0;
}

/* Statusfelt (under etablering) */
.callout--status {
  background: var(--amber-bg);
  border-color: #e8d4a4;
}

/* Akutt hjelp */
.callout--alert {
  background: #fdf3f1;
  border-color: #e6c4bd;
}

.callout--alert strong { color: var(--alert); }

/* ---------- Steg (slik fungerer det) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  counter-reset: steg;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  counter-increment: steg;
}

.step::before {
  content: counter(steg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

/* ---------- To kolonner (passer / passer ikke) ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.split .card--no {
  background: #faf7f3;
}

/* ---------- Priskort ---------- */

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.price-card .price {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 6px 0 2px;
}

.price-card .price span {
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--muted);
  font-weight: 450;
}

/* ---------- FAQ ---------- */

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin: 0 0 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 24px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
  position: relative;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green-dark);
  font-size: 1.4rem;
  font-weight: 400;
}

details[open] summary::after { content: "–"; }

details .answer {
  padding: 0 24px 20px;
  color: var(--ink);
}

/* ---------- Portrett ---------- */

.portrait-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

.portrait-row--wide {
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
}

.portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.portrait--soft {
  border-radius: 22px;
}

@media (max-width: 720px) {
  .portrait-row { grid-template-columns: 1fr; }
  .portrait { max-width: 240px; }
}

/* ---------- Knapper ---------- */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: white;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .2px;
}

.button:hover { background: #0f2c4b; color: white; }

.button.secondary {
  background: transparent;
  color: var(--navy);
}

.button.secondary:hover { background: var(--surface-soft); }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 48px;
  padding: 34px 0 64px;
  color: var(--muted);
  font-size: .95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.footer-grid strong { color: var(--navy); }

.footer-legal {
  margin-top: 26px;
  font-size: .87rem;
  color: var(--muted);
}

/* ---------- Mobil ---------- */

@media (max-width: 720px) {
  .hero { padding: 48px 0 20px; }
  .brand-row { align-items: flex-start; }
  .status-pill { white-space: normal; }
  .card, .step, .price-card { padding: 22px; }
}
