/* ============================================
   Advokat Drake — elden.no inspired
============================================ */
:root {
  --dark:   #0D0F14;
  --darker: #050609;
  --bg:     #F7F7FF;
  --bg2:    #EDEDF5;
  --ink:    #050609;
  --muted:  #6B6B80;
  --line:   #D8D8E8;
  --brand:  #A4243B;
  --sans:   "Manrope", system-ui, sans-serif;
  --serif:  "Newsreader", "Times New Roman", serif;
  --pad:    clamp(24px, 6vw, 96px);
  --max:    1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.page { min-height: 100vh; }

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  height: 68px;
  background: var(--darker);
}
.nav-logo { height: 38px; width: auto; filter: brightness(0) invert(1); }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  position: relative; display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
  color: rgba(255,255,255,0.6);
  padding: 8px 16px; border-radius: 4px;
  transition: color 200ms, background 200ms;
  will-change: transform;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-links a.active { color: #fff; }
.nav-cta {
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  color: #fff; background: var(--brand);
  padding: 9px 20px; border-radius: 4px;
  transition: opacity 180ms;
}
.nav-cta:hover { opacity: 0.88; }
@media (max-width: 700px) { .nav-links { display: none; } }

/* ---- Hero ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero {
  background: var(--darker);
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("https://images.squarespace-cdn.com/content/v1/693c00e75411f87cbb96afc9/a26763d3-0a4c-4d75-91b4-f212eaf39523/6P7A1776.jpg");
  background-size: cover; background-position: center 30%;
  opacity: 0.5;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5,6,9,0.2) 0%, rgba(5,6,9,0.5) 50%, rgba(5,6,9,0.96) 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 180px; opacity: 0.5; pointer-events: none;
}
.hero-inner {
  position: absolute; bottom: 0; left: 0; right: 0;
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad) 80px; width: 100%;
}
.hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 8vw, 104px);
  line-height: 1.02; letter-spacing: -0.025em;
  color: #fff; margin-bottom: 30px;
  max-width: 13ch;
  text-wrap: balance;
  animation: fadeUp 0.9s 0.1s ease both;
  opacity: 0; animation-fill-mode: both;
}
.hero-sub {
  font-size: 18px; color: rgba(255,255,255,0.55); line-height: 1.7;
  max-width: 44ch; margin-bottom: 36px; font-weight: 400;
  will-change: opacity, transform;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; will-change: opacity, transform; }

.hero-photo-section { position: relative; height: 560px; overflow: hidden; }
.hero-photo-section img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.hero-photo-caption {
  position: absolute; bottom: 20px; left: var(--pad);
  background: rgba(5,6,9,0.7); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1); padding: 8px 16px;
  border-radius: 3px; font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 0.04em;
}
.hero-stats {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.1); max-width: 100%; padding: 0 var(--pad);
  animation: fadeIn 1s 0.6s ease both; opacity: 0; animation-fill-mode: both;
}
.hero-stat { padding: 28px 48px 28px 0; }
.hero-stat + .hero-stat { border-left: 1px solid rgba(255,255,255,0.08); padding-left: 48px; }
.hero-stat .n { font-family: var(--serif); font-size: 48px; font-weight: 300; color: #fff; letter-spacing: -0.03em; line-height: 1; }
.hero-stat .d { font-size: 12px; color: rgba(255,255,255,0.38); margin-top: 8px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { padding: 22px 0; }
  .hero-stat + .hero-stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); padding-left: 0; }
  .hero-photo-section { height: 320px; }
}

/* ---- Section ---- */
.section { padding: 96px var(--pad); }
.section-dark { background: var(--dark); }
.section-warm { background: var(--bg2); }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; display: block; }
.section h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4vw, 54px); line-height: 1.08; letter-spacing: -0.018em; color: var(--ink); margin-bottom: 48px; }
.section-dark h2 { color: #fff; }
.section p { color: var(--muted); font-size: 15.5px; line-height: 1.75; max-width: 58ch; }
.section-dark p { color: rgba(255,255,255,0.55); }

/* ---- Practice areas ---- */
.areas-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
.area-cell { padding: 40px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 200ms; cursor: default; }
.area-cell:hover { background: var(--bg2); }
.area-cell:nth-child(2n) { border-right: none; }
.area-num { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--brand); margin-bottom: 14px; }
.area-cell h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 12px; color: var(--ink); }
.area-cell p { font-size: 14.5px; color: var(--muted); line-height: 1.65; max-width: none; margin: 0; }
.area-tag { display: inline-block; margin-top: 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
@media (max-width: 640px) { .areas-grid { grid-template-columns: 1fr; } .area-cell { border-right: none; } }

/* ---- Lawyers ---- */
.lawyers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: rgba(255,255,255,0.08); margin-top: 48px; }
.lawyer-cell { background: rgba(255,255,255,0.04); padding: 48px 40px; display: grid; grid-template-columns: 160px 1fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .lawyers-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .lawyer-cell { grid-template-columns: 1fr; gap: 20px; } }
.lawyer-img { aspect-ratio: 3/4; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,0.06); }
.lawyer-img img { width: 100%; height: 100%; object-fit: cover; }
.lawyer-cell h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; color: #fff; margin-bottom: 4px; letter-spacing: -0.01em; }
.lawyer-role { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.lawyer-bio { font-size: 14.5px; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 24px; }
.lawyer-info { display: grid; gap: 10px; }
.lawyer-info a { font-size: 13.5px; color: rgba(255,255,255,0.7); font-weight: 500; }
.lawyer-info a:hover { color: var(--brand); }

/* ---- Legal aid ---- */
.aid-layout { display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: start; }
@media (max-width: 860px) { .aid-layout { grid-template-columns: 1fr; gap: 48px; } }
.aid-list { list-style: none; display: grid; gap: 0; margin-top: 8px; }
.aid-list li { display: flex; gap: 16px; font-size: 15.5px; color: var(--muted); font-weight: 500; line-height: 1.55; padding: 20px 0; border-bottom: 1px solid var(--line); }
.aid-list li:last-child { border-bottom: none; }
.aid-tick { color: var(--brand); font-weight: 800; flex-shrink: 0; }
.aid-box { background: var(--dark); border-radius: 6px; padding: 36px; color: #fff; }
.aid-box .aid-box-title { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); margin-bottom: 20px; }
.aid-table { width: 100%; border-collapse: collapse; }
.aid-table td { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 14.5px; }
.aid-table td:first-child { color: rgba(255,255,255,0.45); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.aid-table td:last-child { text-align: right; color: #fff; font-weight: 600; }
.aid-table tr:last-child td { border-bottom: none; }
.aid-note { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 18px; line-height: 1.6; }

/* ---- Contact ---- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
@media (max-width: 700px) { .contact-layout { grid-template-columns: 1fr; gap: 48px; } }
.contact-form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg2); border: 2px solid transparent; border-radius: 6px;
  color: var(--ink); padding: 12px 16px; font: 500 15px/1.5 var(--sans);
  outline: none; transition: border-color 180ms; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--line); }
.field select { appearance: none; cursor: pointer; }
.field textarea { resize: vertical; min-height: 110px; }
.contact-details { display: grid; gap: 36px; }
.contact-item .ci-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.contact-item .ci-val { font-family: var(--serif); font-size: 26px; font-weight: 300; color: var(--ink); line-height: 1.15; }
.contact-item .ci-sub { font-size: 13.5px; color: var(--muted); margin-top: 5px; font-weight: 500; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em; border-radius: 4px; transition: all 180ms; }
.btn-light { background: #fff; color: var(--darker); }
.btn-light:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.btn-outline-light { border: 2px solid rgba(255,255,255,0.3); color: #fff; }
.btn-outline-light:hover { border-color: #fff; transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #8B1E32; transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* ── Home: Intro ── */
.home-intro { padding: 112px var(--pad); background: var(--bg); }
.home-intro-grid { display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: center; max-width: var(--max); margin: 0 auto; }
@media (max-width: 860px) { .home-intro-grid { grid-template-columns: 1fr; gap: 48px; } .home-intro-img { max-width: 340px; } }
.home-intro-img { border-radius: 6px; overflow: hidden; aspect-ratio: 3/4; }
.home-intro-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── Home: Services ── */
.home-services { padding: 112px var(--pad); background: var(--bg2); }
.home-services-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: var(--max); margin: 0 auto 60px; flex-wrap: wrap; }
.home-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; max-width: var(--max); margin: 0 auto; }
@media (max-width: 860px) { .home-services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .home-services-grid { grid-template-columns: 1fr; } }
.home-service-card { background: var(--bg); padding: 36px 28px 32px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: background 180ms; position: relative; }
.home-service-card:hover { background: var(--bg2); }
.home-service-num { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--brand); }
.home-service-card h3 { font-size: 19px; margin: 0; }
.home-service-card p { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0; flex: 1; max-width: none; }
.home-service-arrow { margin-top: 20px; font-size: 18px; color: var(--brand); transition: transform 200ms; align-self: flex-end; }
.home-service-card:hover .home-service-arrow { transform: translate(3px, -3px); }

/* ── Home: Quote ── */
.home-quote { background: var(--dark); padding: 100px var(--pad); text-align: center; }
.home-quote blockquote { font-family: var(--serif); font-size: clamp(22px, 3.5vw, 38px); font-weight: 300; color: #fff; line-height: 1.4; letter-spacing: -0.01em; max-width: 22ch; margin: 0 auto; }
.home-quote cite { display: block; margin-top: 28px; font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }

/* ── Home: CTA band ── */
.home-cta-band { background: var(--darker); padding: 80px var(--pad); }
.home-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; max-width: var(--max); margin: 0 auto; }
.home-cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 40px); }
.home-cta-band p { color: rgba(255,255,255,0.55); max-width: 40ch; }
.home-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ── Footer ── */
.footer { background: var(--darker); }
.footer-top { padding: 80px var(--pad) 64px; }
.footer-grid { display: grid; grid-template-columns: 260px 160px 160px 200px; gap: 64px; width: fit-content; margin: 0 auto; align-items: start; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; width: 100%; max-width: 600px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; width: 100%; } }
.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.foot-logo { height: 52px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.42); line-height: 1.7; max-width: 28ch; }



.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); margin-bottom: 20px; display: block; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 150ms; }
.footer-col ul a:hover { color: #fff; }
.footer-col address { font-style: normal; font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.8; }
.footer-hours p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 24px var(--pad); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; max-width: var(--max); margin: 0 auto; text-align: center; }
.footer-bottom-inner span, .footer-bottom-inner a { font-size: 12.5px; color: rgba(255,255,255,0.28); font-weight: 500; }
.footer-bottom-inner a:hover { color: rgba(255,255,255,0.6); }

/* ── Drake icon decorations ── */
.hero-icon-wm {
  position: absolute;
  right: calc(var(--pad) - 10px);
  bottom: 96px;
  pointer-events: none;
  z-index: 1;
}
.hero-icon-wm img {
  width: clamp(120px, 16vw, 220px);
  height: auto;
  opacity: 0.06;
}
@media (max-width: 760px) { .hero-icon-wm { display: none; } }

.section-icon {
  display: block;
  width: 30px;
  height: auto;
  margin-bottom: 22px;
  opacity: 0.95;
}
.section-dark .section-icon { opacity: 0.9; }

.quote-icon {
  display: block;
  width: 44px;
  height: auto;
  margin: 0 auto 30px;
  opacity: 0.85;
}

.footer-bottom-mark {
  width: 16px;
  height: auto;
  opacity: 0.85;
}

.footer-emergency {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 13px 20px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 4px;
  align-self: flex-start;
  transition: border-color 220ms ease, background 220ms ease;
}
.footer-emergency:hover { border-color: var(--brand); background: rgba(164,36,59,0.10); }
.footer-emergency-icon { display: flex; color: var(--brand); flex-shrink: 0; }
.footer-emergency-icon svg { width: 22px; height: 22px; display: block; }
.footer-emergency-text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.footer-emergency-label { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.footer-emergency-num { font-size: 16px; font-weight: 600; color: #fff; letter-spacing: 0.01em; }
