/* =========================================================
   Ale Bygg & Entreprenad AB
   style.css — delad stilmall för alla sidor
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Ljust läge (standard) */
  --bg:         #EDEAE3;
  --surface:    #F8F6F1;
  --ink:        #221A10;
  --muted:      #6E6355;
  --line:       #D6D0C3;
  --line-soft:  #E2DDD2;
  --gold:       #9E6E1E;   /* kontraststark guld för text på ljust */
  --gold-mark:  #C9922F;   /* loggans guld — för ytor och linjer */

  /* Mörka partier (samma i båda lägen — loggans värld) */
  --timber:      #1B130B;
  --timber-2:    #241A0F;
  --timber-line: #3A2C1B;
  --on-timber:   #F3EDE2;
  --on-timber-muted: #A99A84;
  --gold-lt:     #E3BB6B;

  /* Form */
  --radius: 3px;
  --maxw: 1140px;
  --gut: clamp(20px, 5vw, 56px);

  /* Typografi */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #14100A;
    --surface:   #1D170F;
    --ink:       #F1EBE0;
    --muted:     #A79A89;
    --line:      #33291D;
    --line-soft: #261E15;
    --gold:      #DCA744;
    --gold-mark: #C9922F;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg:        #14100A;
  --surface:   #1D170F;
  --ink:       #F1EBE0;
  --muted:     #A79A89;
  --line:      #33291D;
  --line-soft: #261E15;
  --gold:      #DCA744;
  --gold-mark: #C9922F;
  color-scheme: dark;
}

/* ---------- Grund ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); letter-spacing: -0.01em; }

p { margin: 0; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--gold-mark);
  outline-offset: 3px;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.stack { display: flex; flex-direction: column; gap: 20px; }
.prose { max-width: 63ch; display: flex; flex-direction: column; gap: 18px; }
.prose p { color: var(--muted); font-size: 1.05rem; }
.lede { color: var(--muted); font-size: 1.05rem; }

.dark-block {
  background: var(--timber);
  color: var(--on-timber);
}
.dark-block p { color: var(--on-timber-muted); }

/* ---------- Etiketter (ritningsmanér) ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 120px;
  background: var(--line);
}
.dark-block .eyebrow { color: var(--gold-lt); }
.dark-block .eyebrow::after { background: var(--timber-line); }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--gold { background: var(--gold-mark); color: #1B130B; }
.btn--gold:hover { background: var(--gold-lt); }

.btn--outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--gold-mark); color: var(--gold); }

.dark-block .btn--outline,
.hero .btn--outline,
.pagehead .btn--outline,
.cta-band .btn--outline,
.site-footer .btn--outline { border-color: var(--timber-line); color: var(--on-timber); }

.dark-block .btn--outline:hover,
.hero .btn--outline:hover,
.pagehead .btn--outline:hover,
.cta-band .btn--outline:hover,
.site-footer .btn--outline:hover { border-color: var(--gold-lt); color: var(--gold-lt); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sidhuvud ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--timber);
  border-bottom: 1px solid var(--timber-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--on-timber);
  padding-block: 10px;
}
.brand img { width: 46px; height: 46px; }
.brand b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
  display: block;
}
.brand .brand-text > span {
  display: block;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-timber-muted);
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none;
  color: var(--on-timber);
  font-size: .95rem;
  padding: 9px 14px;
  border-radius: var(--radius);
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--gold-lt); }
.nav a[aria-current="page"] { color: var(--gold-lt); }
.nav .btn { margin-left: 8px; padding: 11px 20px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--timber-line);
  border-radius: var(--radius);
  color: var(--on-timber);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--timber-2);
    border-bottom: 1px solid var(--timber-line);
    padding: 8px var(--gut) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--timber-line); border-radius: 0; }
  .nav .btn { margin: 14px 0 0; justify-content: center; border-bottom: 0; }
  .site-header { position: relative; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--timber);
  color: var(--on-timber);
  overflow: hidden;
  border-bottom: 1px solid var(--timber-line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--timber-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--timber-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .45;
  mask-image: radial-gradient(120% 90% at 78% 20%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 78% 20%, #000 10%, transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(52px, 8vw, 96px);
}
.hero h1 { color: var(--on-timber); }
.hero h1 em {
  font-style: normal;
  color: var(--gold-lt);
}
.hero-lead {
  color: var(--on-timber-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 52ch;
}
.hero-mark {
  justify-self: center;
  width: min(320px, 72vw);
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.45));
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--timber-line);
}
.hero-facts div {
  padding: 18px 28px 18px 0;
  border-right: 1px solid var(--timber-line);
}
.hero-facts div + div { padding-left: 28px; }
.hero-facts div:last-child { border-right: 0; }

@media (max-width: 720px) {
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div,
  .hero-facts div + div {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--timber-line);
  }
  .hero-facts div:last-child { border-bottom: 0; }
}
.hero-facts b {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-lt);
  font-variant-numeric: tabular-nums;
}
.hero-facts b.sm {
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0;
  max-width: 34ch;
}
.hero-facts span {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-timber-muted);
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { width: min(230px, 58vw); order: -1; justify-self: start; }
}

/* ---------- Sidhuvud för undersidor ---------- */
.pagehead {
  background: var(--timber);
  color: var(--on-timber);
  padding-block: clamp(44px, 6vw, 76px);
  border-bottom: 1px solid var(--timber-line);
}
.pagehead h1 { color: var(--on-timber); max-width: 20ch; }
.pagehead p {
  color: var(--on-timber-muted);
  max-width: 58ch;
  margin-top: 16px;
  font-size: 1.08rem;
}
.pagehead .eyebrow { color: var(--gold-lt); margin-bottom: 20px; }
.pagehead .eyebrow::after { background: var(--timber-line); }

/* ---------- Tjänsteregister (hårfina linjer, inga kort) ---------- */
.service-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.service-index > a {
  display: block;
  text-decoration: none;
  padding: 26px 24px 30px 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background-color .18s ease;
}
.service-index > a:hover { background: var(--surface); }
.service-index h3 { margin-bottom: 8px; }
.service-index p { color: var(--muted); font-size: .97rem; }
.service-index .num {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}

/* ---------- Områden ---------- */
.areas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.area-list { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.area-list li {
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--timber-line);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
}
.area-list li span {
  font-family: var(--mono);
  font-weight: 400;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-timber-muted);
}
.area-list ul { margin: 0; padding: 0; }
@media (max-width: 760px) { .areas { grid-template-columns: 1fr; } }

/* ---------- Process (äkta ordningsföljd) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-top: 44px;
  border-top: 2px solid var(--gold-mark);
}
.step { padding: 26px 24px 28px 0; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step b {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) {
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .step:last-child { border-bottom: 0; }
}

/* ---------- Detaljerade tjänster (undersida) ---------- */
.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.service-detail:last-of-type { border-bottom: 0; }
.service-detail h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.service-detail .eyebrow { margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; padding: 0; list-style: none; }
.tags li {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 12px;
}
@media (max-width: 760px) { .service-detail { grid-template-columns: 1fr; } }

/* ---------- Värderingar ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}
.value {
  background: var(--bg);
  padding: 28px 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.value h3 { font-size: 1.1rem; }
.value p { color: var(--muted); font-size: .97rem; }

/* ---------- Fakta-lista ---------- */
.facts { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; }
.facts div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Formulär ---------- */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }

.form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label .req { color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  width: 100%;
  transition: border-color .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--gold-mark); outline: none; box-shadow: 0 0 0 3px rgba(201,146,47,.18); }
textarea { min-height: 150px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }

.file-drop {
  font-family: var(--body);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
  text-align: center;
  cursor: pointer;
  display: block;
  transition: border-color .15s ease, background-color .15s ease;
}
.file-drop:hover { border-color: var(--gold-mark); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop b { display: block; font-family: var(--display); font-size: 1rem; }
.file-drop small { color: var(--muted); font-size: .85rem; }
#file-list { color: var(--gold); font-family: var(--mono); font-size: .78rem; margin-top: 8px; }

.form-note { font-size: .87rem; color: var(--muted); }
.form-status { font-size: .95rem; padding: 14px 16px; border-radius: var(--radius); display: none; }
.form-status.ok { display: block; background: rgba(201,146,47,.14); border: 1px solid var(--gold-mark); color: var(--ink); }
.form-status.err { display: block; background: rgba(160,50,30,.12); border: 1px solid #A0321E; color: var(--ink); }

.aside-card {
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold-mark);
  padding: 26px 24px 30px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aside-card h3 { font-size: 1.1rem; }
.aside-card p, .aside-card li { color: var(--muted); font-size: .95rem; }
.aside-card ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }

/* ---------- Kontaktkanaler ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.contact-grid > a, .contact-grid > div {
  padding: 28px 26px 32px 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-grid .k {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-grid .v {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  letter-spacing: -0.01em;
  word-break: break-word;
}
.contact-grid small { color: var(--muted); font-size: .9rem; }
.contact-grid > a:hover .v { color: var(--gold); }

/* ---------- Personkort (kontaktsidan) ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold-mark);
  margin-top: 36px;
}
.person {
  background: var(--bg);
  padding: clamp(26px, 3.5vw, 40px);
}
.person h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.person-bio {
  color: var(--muted);
  font-size: 1rem;
  margin: 12px 0 22px;
  max-width: 46ch;
}
.person dl { margin: 0; display: flex; flex-direction: column; gap: 0; }
.person dl > div {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
}
.person dt {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  flex: 0 0 74px;
}
.person dd { margin: 0; min-width: 0; }
.person dd a {
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.person dd a:hover { color: var(--gold); }

@media (max-width: 560px) {
  .person dl > div { flex-direction: column; align-items: flex-start; gap: 5px; }
  .person dt { flex: none; }
  .person dd a { font-size: .95rem; }
}

/* ---------- CTA-band ---------- */
.cta-band { background: var(--timber-2); color: var(--on-timber); border-block: 1px solid var(--timber-line); }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: clamp(40px, 6vw, 64px);
}
.cta-inner h2 { color: var(--on-timber); max-width: 18ch; }
.cta-inner p { color: var(--on-timber-muted); max-width: 44ch; margin-top: 10px; }

/* ---------- Bildplats ---------- */
.photo-slot {
  border: 1px dashed var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
  padding: 20px;
}
.photo-slot b { font-family: var(--mono); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }
.photo-slot small { font-size: .85rem; }

/* ---------- Enskilda foton ---------- */
.foto {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
}

/* ---------- Projektgalleri ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
  margin-top: 40px;
}
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
}
.gallery figcaption {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.gallery .photo-slot { aspect-ratio: 4 / 3; }
.gallery--wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.gallery button {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  display: block;
  width: 100%;
  position: relative;
}
.gallery button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: rgba(27, 19, 11, 0);
  transition: background-color .2s ease;
}
.gallery button:hover::after { background: rgba(27, 19, 11, .18); }

/* ---------- Bildvisning ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  margin: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(14, 10, 5, .985);
}
.lightbox[open] { display: flex; }
.lightbox img {
  max-width: min(100%, 1400px);
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox figcaption {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-lt);
  text-align: center;
}
.lightbox .rakna {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--on-timber-muted);
}
.lb-knapp {
  position: absolute;
  background: rgba(243, 237, 226, .1);
  border: 1px solid rgba(243, 237, 226, .25);
  color: var(--on-timber);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s ease, border-color .15s ease;
}
.lb-knapp:hover { background: rgba(243, 237, 226, .2); border-color: var(--gold-lt); }
.lb-forra { left: clamp(10px, 3vw, 36px); top: 50%; transform: translateY(-50%); }
.lb-nasta { right: clamp(10px, 3vw, 36px); top: 50%; transform: translateY(-50%); }
.lb-stang { top: clamp(10px, 3vw, 28px); right: clamp(10px, 3vw, 28px); }

@media (max-width: 560px) {
  .lb-knapp { width: 44px; height: 44px; font-size: 1.2rem; }
  .lb-forra { top: auto; bottom: 20px; left: 24px; transform: none; }
  .lb-nasta { top: auto; bottom: 20px; right: 24px; transform: none; }
  .lightbox img { max-height: 62vh; }
}

/* ---------- Sidfot ---------- */
.site-footer {
  background: var(--timber);
  color: var(--on-timber);
  border-top: 1px solid var(--timber-line);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-block: clamp(44px, 6vw, 68px);
}
.footer-top h4 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-timber-muted);
  margin-bottom: 16px;
}
.footer-top ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-top a { text-decoration: none; color: var(--on-timber); font-size: .97rem; }
.footer-top a:hover { color: var(--gold-lt); }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { width: 74px; }
.footer-brand p { color: var(--on-timber-muted); font-size: .95rem; max-width: 36ch; }
.footer-bottom {
  border-top: 1px solid var(--timber-line);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-timber-muted);
}
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--gold-mark);
  color: #1B130B;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }
