/* Copied from the Réttur dagsins site (sv-veitingar/site/site.css) so both brands share one look.
   Shared by every page: tokens, base, type, buttons, nav, footer, logo wall, tags.
   Page-specific layout lives in each page's <style> or in vidskiptavinir/client.css.
   Breakpoints used across the site: 960px (nav collapses), 860px (columns stack), 520px (small phones). */
:root {
  --oat: #f2eee3;
  --lichen: #dfe5da;
  --rye: #ebdfcb;
  --rye-deep: #e4d6bf;
  --paper: #fbf9f3;
  --ticket: #fffdf6;
  --fjord: #13344a;
  --ember: #ff6b3d;
  --ember-ink: #d9532a; /* deeper ember for the orange "Dagsins" in the logo, so it holds on oat */
  --ink: #161a17;
  --ink-soft: #3b3f3a;
  --stone: #5c5c54;
  --faint: #8c8c82;
  --error: #b3261e;
  --line: rgba(22, 26, 23, .16);

  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --accent: 'Fraunces', Georgia, serif;
  --text: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --r-img: 20px;
  --r-card: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--oat); color: var(--ink);
  font-family: var(--text); font-size: 16px; line-height: 1.5; letter-spacing: .012em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); }
.display { font-family: var(--display); font-weight: 400; font-size: clamp(52px, 9vw, 128px); line-height: .86; letter-spacing: -.03em; }
/* Subpage page titles (the homepage hero uses .display) */
.title { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 7.6vw, 104px); overflow-wrap: break-word; line-height: .88; letter-spacing: -.03em; }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5.6vw, 72px); line-height: .9; letter-spacing: -.02em; }
.h3 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; letter-spacing: -.015em; }
h1, h2, .display, .title, .h2, .h3 { text-wrap: balance; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; max-width: 44ch; }
.muted { color: var(--stone); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 16px/1 var(--text); letter-spacing: .02em; text-decoration: none; white-space: nowrap; padding: 17px 26px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ember); color: var(--ink); }
.btn-outline { border-color: var(--fjord); color: var(--fjord); padding: 12px 20px; font-size: 14px; }
.btn-outline:hover { background: var(--fjord); color: var(--oat); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); padding: 15px 22px; }
.btn-outline-dark:hover { background: var(--ink); color: var(--oat); }

/* ---------- Focus ---------- */
:focus-visible { outline: 2px solid var(--fjord); outline-offset: 3px; border-radius: 4px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(242, 238, 227, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: .86; text-decoration: none; color: var(--fjord); }
/* Stacked logo: "Réttur" in the grotesk over an indented, orange italic serif "Dagsins" */
.logo b { font-family: var(--display); font-weight: 500; font-size: 27px; letter-spacing: -.035em; }
.logo i { font-family: var(--accent); font-weight: 400; font-size: 22.5px; letter-spacing: -.01em; padding-left: .89em; color: var(--ember-ink); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fjord); text-decoration: underline; text-underline-offset: 6px; }
.menu-btn { display: none; align-items: center; gap: 8px; font: 700 14px var(--text); color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.menu-btn i { width: 14px; height: 2px; background: currentColor; position: relative; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 14px; height: 2px; background: currentColor; }
.menu-btn i::before { top: -5px; } .menu-btn i::after { top: 5px; }
.nav.open .menu-btn i { background: transparent; }
.nav.open .menu-btn i::before { top: 0; transform: rotate(45deg); } .nav.open .menu-btn i::after { top: 0; transform: rotate(-45deg); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn, .menu-btn { min-height: 44px; }

/* ---------- Footer ---------- */
footer { padding: 48px 0 32px; font-size: 14px; }
.foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.foot ul { list-style: none; display: flex; gap: 24px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
/* Footer wordmark: the logo's two words on one line (the nav, footer logo and password screen stay stacked) */
.wordmark { display: flex; flex-wrap: nowrap; align-items: baseline; gap: .18em; font-family: var(--display); font-size: calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 5.9); /* "Réttur Dagsins" is ~5.5em wide: fills the footer width */ line-height: .82; letter-spacing: -.05em; color: var(--fjord); margin: 40px 0 24px; padding-bottom: .16em; /* room for the italic g's descender */ }
.wordmark i { font-family: var(--accent); font-weight: 400; font-size: .83em; letter-spacing: -.02em; color: var(--ember-ink); }
@media (min-width: 700px) { .wordmark { font-size: calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 5); } }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--stone); }
.legal a { color: inherit; font-weight: 700; }

/* ---------- Logo wall: client logos in a ruled grid (homepage, Um okkur, client pages) ---------- */
.logo-wall { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-wall li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-wall a { position: relative; height: clamp(110px, 11vw, 140px); display: grid; place-items: center; padding: 24px; text-decoration: none; transition: background .3s; }
.logo-wall a:hover, .logo-wall a:focus-visible { background: var(--paper); }
.logo-wall img { height: calc(var(--h, 26px) * var(--logo-scale, 1)); width: auto; max-width: 90%; object-fit: contain; filter: brightness(0); opacity: .78; transition: filter .3s, opacity .3s, transform .3s; }
.logo-wall a:hover img, .logo-wall a:focus-visible img { filter: none; opacity: 1; }
/* Full client walls (homepage, Um okkur): 4 × 2 grid filled column by column, so the alphabetical
   order reads down each column then left to right (Alvotech above Arion…); the eighth cell asks for a quote */
.logo-wall.wall-grid { grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.logo-cta a { align-content: center; gap: 6px; text-align: center; color: var(--fjord); }
.logo-cta b { font-family: var(--display); font-weight: 400; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.01em; line-height: 1.1; color: var(--ink); }
.logo-cta span { font-size: 14px; font-weight: 700; }
/* "Fleiri mötuneyti" on client pages: six logos in one row, so a little smaller */
.others .logo-wall { --logo-scale: .66; }
@media (min-width: 861px) and (max-width: 1100px) { .logo-wall.wall-grid { --logo-scale: .85; } .others .logo-wall { --logo-scale: .5; } }
@media (min-width: 861px) and (max-width: 1000px) { .logo-wall.wall-grid { --logo-scale: .72; } .others .logo-wall { --logo-scale: .44; } }
/* Logo sizes: each SVG has different proportions, padding and weight. These heights give every
   wordmark roughly the same letter height as the VÍS logo (Icelandair's letters are only about a third
   of its frame; the tail fin is the rest). The walls, client page header and phone layout all scale from --h. */
img[src$="alvotech.svg"] { --h: 36px; }
img[src$="arion.svg"] { --h: 32px; }
img[src$="icelandair.svg"] { --h: 48px; }
img[src$="marel.svg"] { --h: 23.5px; }
img[src$="sjova.svg"] { --h: 37px; }
img[src$="vis.svg"] { --h: 36px; }
img[src$="ossur.svg"] { --h: 28px; }

/* ---------- Client quote: one per client page, one featured on the homepage ---------- */
.quote { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: clamp(16px, 3vw, 40px); align-content: start; background: var(--paper); border-radius: var(--r-card); padding: clamp(24px, 4vw, 48px); }
.quote::before { content: "\201C"; grid-row: span 4; font-family: var(--accent); font-style: italic; font-weight: 200; font-size: clamp(96px, 9vw, 132px); line-height: .8; margin-top: -.06em; color: var(--ember); }
.quote blockquote { margin: 12px 0 0; font-family: var(--display); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; letter-spacing: -.005em; max-width: 58ch; }
.quote figcaption { margin-top: 22px; font-size: 15px; color: var(--stone); display: flex; align-items: center; gap: 14px; }
/* Small round portrait of the person quoted */
.quote-face { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.quote figcaption b { display: block; color: var(--ink); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
/* Faint lines standing in for the quote text */
.quote-lines { display: grid; gap: 14px; margin-top: 18px; }
.quote-lines i { display: block; height: 14px; border-radius: 7px; background: rgba(22, 26, 23, .08); }
.quote-lines i:nth-child(2) { width: 88%; }
.quote-lines i:nth-child(3) { width: 56%; }

/* ---------- Placeholders: values and photos still to come from SV ---------- */
.ph { display: inline-block; font-family: var(--text); font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--stone); background: rgba(255, 255, 255, .3); border: 1px dashed rgba(92, 92, 84, .55); border-radius: 6px; padding: 3px 9px; letter-spacing: .02em; vertical-align: middle; }
/* "Dæmi" tag on stock photos that will be replaced */
.demo-tag, .ph-tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(242, 238, 227, .88); backdrop-filter: blur(6px); color: var(--ink); font: 700 11px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .quote { grid-template-columns: 1fr; }
  .quote::before { grid-row: auto; font-size: 96px; height: .45em; margin-top: -.05em; }
}
@media (max-width: 860px) {
  .logo-wall, .logo-wall.wall-grid { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  /* Two narrow columns: shrink every logo by the same amount so the wide ones aren't squeezed alone */
  .logo-wall, .others .logo-wall { --logo-scale: .7; }
  .logo-wall a { padding: 20px 12px; }
  .logo-wall li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--oat); border-bottom: 1px solid var(--line); padding: 4px var(--gutter) 12px; box-shadow: 0 20px 30px -24px rgba(22, 26, 23, .4); }
  .nav.open .nav-links { display: flex; }
  .nav-links li + li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 15px 0; font-size: 15px; }
}
/* Small phones: the stacked logo, slightly smaller; menu button shrinks to its icon */
@media (max-width: 520px) {
  /* Long Icelandic words (e.g. "rannsóknarstofunni") must still fit a 320px screen */
  .title { font-size: clamp(32px, 10.5vw, 48px); }
  .nav-inner { gap: 12px; }
  .logo b { font-size: 23px; }
  .logo i { font-size: 19px; }
  .nav-actions { gap: 8px; }
  .nav .btn-outline { padding: 10px 14px; font-size: 13px; }
  .menu-btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
