/* ============================================================
   Birget AS — nettside
   Natural-tone, classic-serif system. Direction: Skog.
   ============================================================ */

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

:root {
  --accent: #a8512e;            /* muted terracotta — a quiet nod to Sámi red */

  /* Skog — cool stone-sage, Spectral. Quiet and grounded. */
  --paper: #e9eae3;
  --surface: #f3f3ec;
  --ink: #23271f;
  --muted: #5b6155;
  --faint: #7b8074;
  --line: #cdd1c4;
  --line-soft: #dadcd0;

  --font-head: "Spectral", Georgia, serif;
  --font-body: "Spectral", Georgia, serif;
  --head-weight: 600;

  --maxw: 1060px;
  --gutter: clamp(20px, 5vw, 56px);
}

html { font-size: 18px; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: var(--head-weight); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

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

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

/* ============================================================
   Logo
   ============================================================ */
.logo { display: inline-flex; align-items: center; gap: 0.55em; text-decoration: none; color: var(--ink); }
.logo.stacked { flex-direction: column; gap: 0.7em; }
.mark { display: block; width: 1.4em; height: 1.4em; overflow: visible; }
.mark .edge { stroke: currentColor; fill: none; }
.mark .facet { fill: var(--accent); }
.wordmark { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.04em; line-height: 1; }

/* ============================================================
   Header
   ============================================================ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.site-head .logo .mark { width: 1.5rem; height: 1.5rem; }
.site-head .wordmark { font-size: 1.4rem; letter-spacing: 0.08em; }
.head-mail {
  font-family: var(--font-head); font-size: 1rem; text-decoration: none; color: var(--muted);
  border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color .2s ease, border-color .2s ease;
}
.head-mail:hover { color: var(--ink); border-color: var(--accent); }

/* ============================================================
   Intro
   ============================================================ */
.intro { padding-top: clamp(56px, 10vw, 120px); padding-bottom: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 840px) { .intro { grid-template-columns: 1.12fr 0.88fr; } }
.intro-figure { display: flex; justify-content: center; }
.intro-figure .deco { width: clamp(170px, 25vw, 290px); height: auto; overflow: visible; }
.intro-figure .deco .edge { stroke: var(--line); fill: none; }
.intro-figure .deco .facet { fill: var(--accent); opacity: 0.15; }
@media (max-width: 839px) { .intro-figure { display: none; } }
.intro h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-top: 1.1rem;
  max-width: 20ch;
  text-wrap: balance;
}
.intro .intro-text {
  margin-top: 1.6rem;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 50ch;
}
.intro-actions { margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem; white-space: nowrap;
  font-family: var(--font-head); font-size: 1.02rem; letter-spacing: 0.02em; text-decoration: none;
  padding: 0.68rem 1.4rem; background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); transition: background-color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Diamond rule
   ============================================================ */
.rule { display: flex; align-items: center; justify-content: center; gap: 0; width: 100%; }
.rule .line { height: 1px; flex: 1; background: var(--line); }
.rule .diamonds { display: flex; gap: 9px; padding: 0 14px; }
.rule .diamonds i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--accent); }
.rule .diamonds i:nth-child(even) { background: var(--accent); }

/* ============================================================
   Tjenester
   ============================================================ */
.services { padding-block: clamp(44px, 7vw, 80px); }
.services .eyebrow { margin-bottom: clamp(28px, 4vw, 44px); }
.svc-grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 40px); }
@media (min-width: 720px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc { display: flex; flex-direction: column; gap: 0.6rem; }
.svc-no {
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.14em;
  color: var(--accent);
}
.svc h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.2; }
.svc p { color: var(--muted); font-size: 1.05rem; }

/* ============================================================
   Contact / footer
   ============================================================ */
.contact {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(48px, 7vw, 80px);
}
.contact .eyebrow { margin-bottom: 1rem; }
.contact h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; }
.contact .lead { margin-top: 1.1rem; color: var(--muted); font-size: 1.15rem; max-width: 42ch; }
.contact-actions { margin-top: 1.8rem; }

.detail-row {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr; gap: 1.2rem;
  border-top: 1px solid var(--line); padding-top: 1.4rem;
}
@media (min-width: 640px) { .detail-row { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.detail .k {
  font-family: var(--font-head); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--faint); display: block; margin-bottom: 0.3rem;
}
.detail .v { font-size: 1.08rem; }
.detail .v a { text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.detail .v a:hover { color: var(--accent); }

.site-foot { padding-block: 1.8rem; }
.site-foot .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.4rem; color: var(--faint); font-size: 0.88rem;
}
.site-foot .status { font-family: var(--font-head); letter-spacing: 0.04em; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
