/* ============================================
   Advokat Drake — calm dark blue redesign
   Quiet, editorial. No neon, no glow.
============================================ */

:root {
  /* Default — Midnight (calm dark blue) */
  --bg:        oklch(0.165 0.022 252);     /* deep navy-charcoal */
  --bg-elev:   oklch(0.215 0.024 252);     /* card surface */
  --bg-deep:   oklch(0.125 0.020 252);     /* deeper panel */
  --ink:       oklch(0.955 0.008 250);     /* off-white */
  --ink-soft:  oklch(0.76 0.014 250);
  --ink-mute:  oklch(0.55 0.014 250);
  --line:      oklch(0.30 0.022 252);
  --line-soft: oklch(0.24 0.022 252);

  --brand:     oklch(0.78 0.07 235);       /* soft sky-blue, no neon */
  --brand-2:   oklch(0.55 0.08 245);       /* deeper blue for fills */

  /* Type */
  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Spacing */
  --pad-x: clamp(20px, 5vw, 80px);
  --max: 1320px;
}

/* Slate — lighter dark mode, less blue */
[data-theme="slate"] {
  --bg: oklch(0.18 0.008 260);
  --bg-elev: oklch(0.23 0.010 260);
  --bg-deep: oklch(0.14 0.008 260);
  --ink: oklch(0.96 0.006 260);
  --ink-soft: oklch(0.77 0.010 260);
  --ink-mute: oklch(0.57 0.012 260);
  --line: oklch(0.32 0.012 260);
  --line-soft: oklch(0.26 0.012 260);
  --brand: oklch(0.78 0.05 230);
  --brand-2: oklch(0.55 0.07 240);
}

/* Bone — light contrast option */
[data-theme="bone"] {
  --bg: oklch(0.97 0.006 90);
  --bg-elev: oklch(0.99 0.004 90);
  --bg-deep: oklch(0.93 0.008 90);
  --ink: oklch(0.20 0.012 260);
  --ink-soft: oklch(0.42 0.018 260);
  --ink-mute: oklch(0.60 0.018 260);
  --line: oklch(0.86 0.008 90);
  --line-soft: oklch(0.91 0.006 90);
  --brand: oklch(0.40 0.08 245);
  --brand-2: oklch(0.30 0.10 248);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--brand); color: var(--bg-deep); }

/* ---- Type ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--brand);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}
.serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
}
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
.display {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(46px, 7vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.h2 {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.h3 {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.012em;
}
.italic { font-style: italic; }
.accent-text {
  color: var(--brand);
  font-style: italic;
}
.lede {
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---- Layout ---- */
section { padding: clamp(72px, 9vw, 130px) var(--pad-x); position: relative; }
.wrap { max-width: var(--max); margin: 0 auto; position: relative; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.003em;
  border: 1px solid transparent;
  transition: background 180ms, color 180ms, border-color 180ms;
}
.btn-primary {
  background: var(--brand);
  color: oklch(0.14 0.02 252);
}
.btn-primary:hover { background: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-soft); background: var(--bg-elev); }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms, background 200ms;
}
.nav.scrolled {
  border-bottom-color: var(--line-soft);
  background: color-mix(in oklch, var(--bg) 92%, transparent);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.012em;
}
.nav-mark {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: oklch(0.14 0.02 252);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  font-weight: 380;
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 150ms;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.nav-cta .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
}
@media (max-width: 1100px) {
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  .nav-cta span:last-child { display: none; }
}

/* ---- Hero ---- */
.hero {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(60px, 8vw, 100px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.hero-eyebrow .line {
  flex: 1; height: 1px;
  background: var(--line);
  max-width: 100px;
}
.hero h1 { margin-bottom: 26px; }
.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 36px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 36px;
  max-width: 540px;
}
.hero-meta dt {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.hero-meta dd { margin: 0; font-size: 15px; color: var(--ink); }
.hero-cta {
  display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap;
}

.hero-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid var(--line);
}
.hero-photo .frame { position: absolute; inset: 0; }
.hero-photo .tag {
  position: absolute;
  bottom: 16px; left: 16px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 11px;
  background: color-mix(in oklch, var(--bg) 85%, transparent);
  color: var(--ink);
  padding: 7px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line);
}
.hero-photo .tag .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand);
}

/* ---- Placeholder ---- */
.placeholder {
  position: relative;
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in oklch, var(--ink) 5%, transparent),
      color-mix(in oklch, var(--ink) 5%, transparent) 1px,
      transparent 1px,
      transparent 9px
    ),
    var(--bg-elev);
  display: grid;
  place-items: center;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}
.placeholder span {
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

/* ---- Pillars ---- */
.pillars {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px var(--pad-x);
  background: var(--bg-elev);
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.pillars .item {
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 21px);
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 12px;
}
.pillars .item .sym {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brand);
  font-size: 1.05em;
}
.pillars .sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--ink-mute);
}

/* ---- Section header ---- */
.section-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 80px);
  margin-bottom: clamp(40px, 6vw, 72px);
  align-items: end;
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 18px; }
}
.section-head .title-block .eyebrow { margin-bottom: 16px; display: block; }

/* ---- Practice areas ---- */
.areas {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.4vw, 22px);
}
.area {
  grid-column: span 6;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: clamp(26px, 2.8vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 200ms;
}
.area:hover { border-color: var(--ink-mute); }
.area:nth-child(1), .area:nth-child(4) { grid-column: span 7; }
.area:nth-child(2), .area:nth-child(3) { grid-column: span 5; }
@media (max-width: 860px) {
  .area, .area:nth-child(n) { grid-column: span 12; }
}
.area .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.area .num .glyph {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--brand);
  background: var(--bg-deep);
}
.area h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 380;
}
.area p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.area .area-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  color: var(--ink-mute);
}
.area .area-foot .link {
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500;
}
.area .area-foot .link:hover { color: var(--brand); }
.area .area-foot .link .arrow { transition: transform 200ms; display: inline-block; }
.area:hover .area-foot .link .arrow { transform: translateX(3px); }

/* ---- Fri rettshjelp band ---- */
.rettshjelp {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rettshjelp .grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 860px) {
  .rettshjelp .grid { grid-template-columns: 1fr; }
}
.rettshjelp p { color: var(--ink-soft); font-size: 16.5px; max-width: 52ch; }
.rettshjelp .check-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 12px;
}
.rettshjelp .check-list li {
  display: flex; align-items: start; gap: 14px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.rettshjelp .check-list .mark {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 1px solid var(--line);
  color: var(--brand);
  border-radius: 50%;
  display: grid; place-items: center;
  margin-top: 2px;
  font-size: 10px;
}
.rettshjelp .calc {
  background: var(--bg-elev);
  border-radius: 6px;
  padding: 26px;
  border: 1px solid var(--line);
}
.rettshjelp .calc .row {
  display: flex; justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
  align-items: baseline;
}
.rettshjelp .calc .row:last-child { border-bottom: 0; padding-bottom: 0; }
.rettshjelp .calc .row .key {
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rettshjelp .calc .row .val {
  color: var(--ink);
  font-weight: 400;
  font-family: var(--serif);
  font-size: 16px;
}
.rettshjelp .calc h4 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.012em;
  font-weight: 400;
}
.rettshjelp .calc .sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

/* ---- Advokater ---- */
.lawyers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 44px);
}
@media (max-width: 860px) {
  .lawyers { grid-template-columns: 1fr; }
}
.lawyer {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
}
.lawyer .portrait {
  aspect-ratio: 4/5;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid var(--line);
}
.lawyer .role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
  display: flex; justify-content: space-between;
  align-items: center;
}
.lawyer h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 36px);
  letter-spacing: -0.02em;
  font-weight: 360;
  margin-bottom: 14px;
}
.lawyer h3 .last {
  font-style: italic;
  color: var(--brand);
}
.lawyer .bio {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.lawyer .info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: auto;
}
.lawyer .info dt {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 4px;
}
.lawyer .info dd { margin: 0; font-size: 14.5px; color: var(--ink); }
.lawyer .info dd a { border-bottom: 1px solid var(--line); }
.lawyer .info dd a:hover { border-color: var(--brand); color: var(--brand); }

/* ---- Process ---- */
.process {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
@media (max-width: 860px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .process-steps { grid-template-columns: 1fr; }
}
.process-step {
  background: var(--bg-deep);
  padding: clamp(22px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}
.process-step .step-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brand);
  font-size: 17px;
}
.process-step h4 {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.012em;
  font-weight: 420;
  margin: 0;
}
.process-step p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.process-step .meta {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---- Quote ---- */
.quote {
  padding-top: clamp(80px, 8vw, 110px);
  padding-bottom: clamp(80px, 8vw, 110px);
}
.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.quote blockquote .mark {
  font-style: italic;
  color: var(--brand);
}
.quote cite {
  display: block;
  margin-top: 32px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---- Contact ---- */
.contact {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.contact .grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 88px);
}
@media (max-width: 860px) {
  .contact .grid { grid-template-columns: 1fr; }
}
.contact-form { display: grid; gap: 16px; }
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input, .field select, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 11px 0;
  font: inherit;
  font-size: 16px;
  font-family: var(--serif);
  outline: none;
  transition: border-color 200ms;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-bottom-color: var(--brand);
}
.field input::placeholder, .field textarea::placeholder {
  color: var(--ink-mute);
}
.field select { -webkit-appearance: none; appearance: none; cursor: pointer; }
.field select option { background: var(--bg-deep); color: var(--ink); }
.field textarea { resize: vertical; min-height: 80px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.contact .send {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand);
  color: oklch(0.14 0.02 252);
  padding: 14px 24px;
  border-radius: 999px;
  border: 0;
  font-weight: 500;
  font-size: 14.5px;
  align-self: start;
  transition: background 180ms;
}
.contact .send:hover { background: var(--ink); }

.contact-side {
  display: flex; flex-direction: column; gap: 16px;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  background: var(--bg-elev);
}
.contact-card .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.contact-card .big {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.018em;
  font-weight: 380;
  line-height: 1.15;
  color: var(--ink);
}
.contact-card a.big { display: inline-block; }
.contact-card a.big:hover { color: var(--brand); }
.contact-card .sub {
  margin-top: 10px;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.55;
}
.contact-card .availability {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-card .availability .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: oklch(0.75 0.12 145);
}

/* ---- Footer ---- */
footer {
  padding: clamp(40px, 5vw, 60px) var(--pad-x);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
}
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
.foot-grid h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin: 0 0 14px;
}
.foot-grid p, .foot-grid a, .foot-grid li { font-size: 14.5px; color: var(--ink-soft); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a:hover { color: var(--ink); }
.foot-brand {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 380;
}
.foot-bottom {
  max-width: var(--max);
  margin: 44px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex-wrap: wrap; gap: 12px;
}
