/* ==========================================================================
   Tveir.is — stílblað
   Byggt á hönnunarviðmiði (design_handoff_tveir_website).
   Ein responsive útfærsla: skalast frá 390px (mobile) upp í 1180px (desktop).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --ink: #1c3050;          /* navy — aðaltexti og dökk kort */
  --soft: #7189ac;         /* undirtexti */
  --acc: #5b93f0;          /* accent */
  --acc-hover: #4a83e2;
  --accs: #e7f0fd;         /* ljósblátt fill */
  --acc-on-navy: #9dc0f7;  /* undirtexti á navy */
  --bg: #f2f8fe;
  --sur: #fff;
  --line: rgba(28, 48, 80, .08);

  --sh-card: 0 2px 10px rgba(28, 48, 80, .06);
  --sh-drop: 0 12px 30px rgba(28, 48, 80, .16);
  --sh-navy: 0 8px 24px rgba(28, 48, 80, .18);
  --sh-btn: 0 4px 14px rgba(91, 147, 240, .35);
  --sh-nav: 0 6px 22px rgba(28, 48, 80, .08);

  --r-card: 16px;
  --r-block: 24px;
  --r-input: 12px;
  --r-pill: 999px;

  --gut: clamp(16px, 2.8vw, 32px);   /* hliðarbil */
  --sec: clamp(30px, 4.4vw, 52px);   /* lóðrétt bil milli kafla */

  --f-head: 'Fraunces', Georgia, serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Fljótandi leturskalar: mobile 390px  ->  desktop 1180px */
:root {
  --fs-h1-hero: clamp(33px, 20.7px + 3.17vw, 58px);
  --fs-h1-page: clamp(34px, 23.1px + 2.79vw, 56px);
  --fs-h2: clamp(27px, 20.6px + 1.65vw, 40px);
  --fs-h2-sm: clamp(25px, 20.6px + 1.14vw, 34px);
  --fs-h3: clamp(16px, 14.5px + 0.38vw, 19px);
  --fs-lead: clamp(16px, 14.5px + 0.38vw, 19px);
}

/* --------------------------------------------------------------------------
   2. Grunnur
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--f-head);
  font-weight: 600;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -.015em;
}

h1 em, h2 em { font-style: italic; color: var(--acc); }

p { margin: 0; }

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

a { color: var(--acc); }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--gut);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: var(--r-pill); text-decoration: none; font-size: 14px;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

.lead {
  color: var(--soft);
  font-size: var(--fs-lead);
  text-wrap: pretty;
}

.section-title {
  font-size: var(--fs-h2);
  text-align: center;
  margin: 0 0 clamp(22px, 2.6vw, 30px);
}

.drag-hint {
  text-align: center;
  font-size: clamp(11.5px, 11px + .13vw, 13px);
  color: var(--soft);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   3. Hnappar, pillur, kort
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; flex: none; white-space: nowrap; line-height: 1;
  background: var(--acc); color: #fff;
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  padding: 15.5px 26px;
  font: 500 16px/1 var(--f-body);
  text-decoration: none; cursor: pointer;
  box-shadow: var(--sh-btn);
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--acc-hover); color: #fff; }
.btn:active { transform: translateY(1px); }

.btn--lg { font-size: clamp(16px, 15.5px + .19vw, 17px); padding: 17px 30px; }
.btn--sm { font-size: clamp(13.5px, 13px + .19vw, 15px); padding: 12px 20px; min-height: 44px; }
.btn--block { width: 100%; }

.btn--ghost {
  background: rgba(255, 255, 255, .55);
  color: var(--ink);
  border-color: var(--acc);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--acc); color: #fff; }

.btn--white {
  background: #fff; color: var(--ink); box-shadow: none;
}
.btn--white:hover { background: #eef4ff; color: var(--ink); }

.badge {
  display: inline-block;
  background: var(--accs); color: var(--acc);
  font: 500 13px/1 var(--f-body);
  padding: 8px 14px; border-radius: var(--r-pill);
}

.card {
  background: var(--sur);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
}

.card--navy {
  background: var(--ink);
  border-color: transparent;
  color: #fff;
}

/* --------------------------------------------------------------------------
   4. Myndaslott — sýnir merkimiða þar til alvöru mynd er sett inn
   -------------------------------------------------------------------------- */
.slot {
  position: relative;
  overflow: hidden;
  background: var(--accs);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.slot::before {
  content: attr(data-label);
  padding: 0 14px;
  font: 500 12px/1.4 var(--f-body);
  letter-spacing: .04em;
  color: rgba(28, 48, 80, .38);
}
.slot > img,
.slot > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Vantar skrána -> fela og láta merkimiðann standa eftir */
.slot > img.is-missing,
.slot > video.is-missing { display: none; }

/* --------------------------------------------------------------------------
   5. Haus / pillu-nav
   -------------------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  padding-top: clamp(14px, 1.7vw, 20px);
  padding-bottom: 4px;
  background: linear-gradient(to bottom, var(--bg) 72%, rgba(242, 248, 254, 0));
}

.pillnav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 10px 10px 10px clamp(18px, 2vw, 24px);
  box-shadow: var(--sh-nav);
}

.pillnav__logo { display: block; line-height: 0; }
.pillnav__logo img { height: clamp(16px, 1.6vw, 19px); width: auto; }

.pillnav__links {
  display: none;
  align-items: center;
  gap: clamp(18px, 2.2vw, 26px);
}
.pillnav__links a {
  color: var(--soft);
  text-decoration: none;
  font-size: clamp(14px, 13px + .21vw, 15.5px);
  white-space: nowrap;
}
.pillnav__links a:hover,
.pillnav__links a[aria-current="page"] { color: var(--ink); }

.pillnav__right { display: flex; align-items: center; gap: 10px; }

@media (min-width: 900px) {
  .pillnav__links { display: flex; }
}

/* Hamborgari */
.burger {
  display: flex; flex-direction: column; justify-content: center; gap: 4.5px;
  width: 44px; height: 44px; padding: 0 13px;
  background: none; border: 0; cursor: pointer;
}
.burger span {
  display: block; height: 1.5px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (min-width: 900px) { .burger { display: none; } }

/* Mobile valmynd */
.mobilemenu {
  margin-top: 10px;
  background: var(--sur);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--sh-drop);
  padding: 8px;
  display: flex; flex-direction: column;
}
.mobilemenu[hidden] { display: none; }
.mobilemenu a {
  display: flex; align-items: center; min-height: 48px;
  padding: 0 16px; border-radius: 12px;
  color: var(--ink); text-decoration: none;
  font-size: 16px; font-weight: 500;
}
.mobilemenu a:hover { background: var(--accs); }

@media (min-width: 900px) { .mobilemenu { display: none !important; } }

/* --------------------------------------------------------------------------
   6. Dropdown ("Hafa samband ▾")
   -------------------------------------------------------------------------- */
.dropdown { position: relative; }

.dropdown__toggle[aria-expanded="true"] { background: var(--acc-hover); }
.dropdown__toggle .caret { font-size: .72em; }

.dropdown__menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 266px; max-width: min(300px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-drop);
  padding: 8px;
  display: flex; flex-direction: column;
  text-align: left;
  z-index: 30;
}
.dropdown__menu[hidden] { display: none; }
.dropdown__menu a {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 14px; border-radius: 11px;
  text-decoration: none; color: var(--ink);
}
.dropdown__menu a:hover { background: var(--accs); }
.dropdown__menu strong { font-size: 15px; font-weight: 500; }
.dropdown__menu span { font-size: 12px; color: var(--soft); line-height: 1.4; }

/* Miðjaður dropdown (í CTA blokk) */
.dropdown--center .dropdown__menu {
  right: auto; left: 50%; transform: translateX(-50%);
  min-width: 300px;
}
@media (max-width: 560px) {
  .dropdown--center { display: block; }
  .dropdown--center .dropdown__menu {
    left: 0; right: 0; transform: none; min-width: 0; max-width: none;
  }
}

/* --------------------------------------------------------------------------
   7. Hero (bento)
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 1.4vw, 16px);
  padding-top: clamp(24px, 3.2vw, 36px);
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.35fr 1fr; align-items: stretch; }
}

.hero__main {
  padding: clamp(26px, 3.4vw, 40px) clamp(22px, 3.4vw, 40px);
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start;
  gap: clamp(16px, 1.9vw, 22px);
}
.hero__main h1 { font-size: var(--fs-h1-hero); line-height: 1.13; }
.hero__main .lead { max-width: 460px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 560px) {
  .hero__actions { width: 100%; flex-direction: column; align-items: stretch; }
  .hero__actions .dropdown, .hero__actions .btn { width: 100%; }
  .hero__actions .dropdown__menu { left: 0; right: 0; min-width: 0; max-width: none; }
}

.hero__side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.4vw, 16px);
}
.hero__note { padding: clamp(18px, 2vw, 24px); display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.hero__note b { font-size: clamp(17px, 14.5px + .64vw, 22px); font-weight: 500; line-height: 1.25; }
.hero__note span { font-size: clamp(11.5px, 11px + .19vw, 13px); color: var(--soft); line-height: 1.45; }
.hero__note.card--navy b { color: #fff; }
.hero__note.card--navy span { color: rgba(255, 255, 255, .7); }

.reel {
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(28, 48, 80, .12);
}

/* --------------------------------------------------------------------------
   8. Lógóstrimill
   -------------------------------------------------------------------------- */
.trust {
  margin-top: clamp(12px, 1.4vw, 16px);
  overflow: hidden;
  padding: clamp(34px, 4.4vw, 52px) 0 clamp(36px, 4.7vw, 56px);
}
.trust h2 {
  font-size: var(--fs-h2);
  text-align: center;
  margin: 0 0 clamp(22px, 2.6vw, 30px);
  padding-inline: 16px;
  text-wrap: balance;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 52s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

.marquee__group {
  display: flex; align-items: center;
  gap: clamp(12px, 1.5vw, 18px);
  padding-right: clamp(12px, 1.5vw, 18px);
}

.logo-chip {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  height: 64px; width: 150px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  font: 500 12.5px/1.2 var(--f-body);
  color: rgba(28, 48, 80, .45);
  text-align: center;
  padding: 0 12px;
}
.logo-chip img {
  position: absolute; inset: 0; margin: auto;
  max-height: 40px; max-width: 108px;
  width: auto; height: auto;
  object-fit: contain;
}
.logo-chip img.is-missing { display: none; }
/* Nafnið er einungis varaskeifa — hverfur um leið og lógóið hleðst */
.logo-chip:has(img:not(.is-missing)) { color: transparent; }


@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   9. Láréttar raðir (verkefni á forsíðu + þjónusta)
   -------------------------------------------------------------------------- */
.section { padding: var(--sec) 0; }

/* Fastur haus má ekki hylja það sem tenglar stökkva á */
main [id] { scroll-margin-top: clamp(88px, 8vw, 108px); }

.hscroll {
  display: flex;
  gap: clamp(14px, 1.6vw, 18px);
  overflow-x: auto;
  padding: 6px 2px 18px;
  scrollbar-width: thin;
  /* Enginn snap-stuðningur: röðin er endalaus lykkja og snap slæst á
     móti stökkinu sem heldur henni gangandi. */
  scroll-snap-type: none;
  overscroll-behavior-x: contain;
}
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-thumb { background: rgba(28, 48, 80, .16); border-radius: 999px; }

.work-tile {
  flex: none;
  width: clamp(160px, 19.5vw, 230px);
  scroll-snap-align: start;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(28, 48, 80, .14);
  background: var(--accs);
  text-decoration: none;
  color: inherit;
}
.work-tile .slot { width: 100%; height: clamp(285px, 34.7vw, 410px); }
.work-tile__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 16px 16px;
  background: linear-gradient(to top, rgba(28, 48, 80, .88), rgba(28, 48, 80, 0));
  pointer-events: none;
}
.work-tile__cat { font-size: 11px; color: rgba(255, 255, 255, .7); margin-bottom: 4px; }
.work-tile__name {
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(15px, 13.1px + .49vw, 19px);
  line-height: 1.2; color: #fff;
}

/* Þjónusta */
.services-rail { overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; }
.services-rail::-webkit-scrollbar { height: 6px; }
.services-rail::-webkit-scrollbar-thumb { background: rgba(28, 48, 80, .16); border-radius: 999px; }
.services {
  display: flex; gap: 14px;
  width: max-content;
  margin: 0 auto;
}
.service {
  flex: none;
  width: clamp(156px, 14.6vw, 172px);
  scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
.service__icon {
  width: clamp(96px, 9.8vw, 116px); height: clamp(96px, 9.8vw, 116px);
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(28, 48, 80, .1);
  display: flex; align-items: center; justify-content: center;
  color: var(--acc);
}
.service__icon svg { width: clamp(34px, 3.5vw, 42px); height: clamp(34px, 3.5vw, 42px); }
.service h3 { font-size: clamp(16px, 14.5px + .38vw, 19px); }
.service p { font-size: clamp(12px, 11.8px + .06vw, 12.5px); line-height: 1.45; color: var(--soft); max-width: 166px; }

/* --------------------------------------------------------------------------
   10. Teymið
   -------------------------------------------------------------------------- */
.team {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 760px) { .team { grid-template-columns: repeat(3, 1fr); } }

.member {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--ink);
  box-shadow: var(--sh-navy);
  min-height: clamp(210px, 19.5vw, 240px);
  padding: clamp(24px, 2.4vw, 28px);
  display: flex; flex-direction: column; justify-content: flex-end;
}

/* Upphafsstafirnir eru skreyting — vatnsmerki í stað ljósmyndar */
.member__mono {
  position: absolute; top: clamp(14px, 1.5vw, 18px); right: clamp(16px, 1.7vw, 20px);
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(78px, 8.5vw, 100px);
  line-height: .8;
  letter-spacing: -.045em;
  color: rgba(91, 147, 240, .22);
  pointer-events: none; user-select: none;
}

.member__name {
  position: relative;
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(21px, 20.5px + .13vw, 22px);
  line-height: 1.2;
  color: #fff;
}
.member__role {
  position: relative;
  font-size: 12.5px;
  color: var(--acc-on-navy);
  margin-top: 5px;
}
.member__desc {
  position: relative;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .62);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* --------------------------------------------------------------------------
   11. Navy CTA blokk
   -------------------------------------------------------------------------- */
.cta {
  background: var(--ink);
  border-radius: clamp(20px, 2vw, 24px);
  padding: clamp(44px, 6vw, 72px) clamp(20px, 2.7vw, 32px);
  text-align: center;
  box-shadow: var(--sh-navy);
}
.cta h2 { font-size: var(--fs-h2); color: #fff; margin: 0 0 26px; }

/* --------------------------------------------------------------------------
   12. Fótur
   -------------------------------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--line);
  margin-top: var(--sec);
  padding: clamp(22px, 2.4vw, 26px) 0 clamp(26px, 2.7vw, 30px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  font-size: clamp(12.5px, 12.2px + .06vw, 13px);
  color: var(--soft);
}
.site-foot nav { display: flex; gap: 26px; flex-wrap: wrap; }
.site-foot a { color: var(--soft); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .site-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-foot nav { flex-direction: column; gap: 0; }
  .site-foot nav a { min-height: 44px; display: flex; align-items: center; }
}

/* --------------------------------------------------------------------------
   13. Verkefnasíða
   -------------------------------------------------------------------------- */
.page-head { padding-top: clamp(38px, 5.4vw, 64px); }
.page-head h1 { font-size: var(--fs-h1-page); }
.page-head .lead { max-width: 560px; margin-top: 16px; }

.filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: clamp(18px, 2vw, 24px);
}
.filter {
  font: 400 14px/1 var(--f-body);
  background: #fff; color: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 12px 18px;
  min-height: 44px;
  display: inline-flex; align-items: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filter:hover { border-color: var(--acc); color: var(--ink); }
.filter[aria-pressed="true"] {
  background: var(--acc); color: #fff; font-weight: 500;
  border-color: var(--acc);
}

/* Listi yfir viðskiptavini — lógó, nafn, bransi, flokkur */
.clientlist {
  list-style: none;
  margin: clamp(22px, 2.9vw, 34px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.clientlist__row {
  position: relative;
  display: grid;
  grid-template-columns: clamp(104px, 11vw, 132px) 1fr auto;
  align-items: center;
  gap: clamp(14px, 1.7vw, 20px);
  padding: clamp(14px, 1.5vw, 18px) clamp(8px, 1vw, 12px);
  border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}
.clientlist__row:hover { background: rgba(255, 255, 255, .7); }
.clientlist__row[hidden] { display: none; }

.clientlist__logo {
  display: flex; align-items: center; justify-content: center;
  height: clamp(52px, 5.4vw, 62px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--sh-card);
}
.clientlist__logo img {
  max-height: 32px; max-width: 88px;
  width: auto; height: auto;
  object-fit: contain;
}

.clientlist__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.clientlist__name {
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(18px, 16.5px + .38vw, 21px);
  line-height: 1.25;
}
.clientlist__branch { font-size: 13px; color: var(--soft); }

/* Röð sem vísar á vefinn sem við gerðum — allur reiturinn er smellanlegur */
.clientlist__link { color: inherit; text-decoration: none; }
.clientlist__link::after { content: ""; position: absolute; inset: 0; }
.clientlist__row:has(.clientlist__link):hover .clientlist__name { color: var(--acc); }
.clientlist__ext {
  display: inline-block;
  font-size: .7em;
  color: var(--acc);
  transform: translateY(-.15em);
  margin-left: 2px;
}

.clientlist__cats {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: flex-end;
}
.clientlist__cat {
  font-size: 12.5px;
  color: var(--acc);
  background: var(--accs);
  padding: 7px 13px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

@media (max-width: 620px) {
  .clientlist__row {
    grid-template-columns: 88px 1fr;
    row-gap: 10px;
    padding-block: 16px;
  }
  .clientlist__cats { grid-column: 2; justify-content: flex-start; }
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--soft);
  padding: 40px 0;
}
.no-results[hidden] { display: none; }

/* --------------------------------------------------------------------------
   14. Form
   -------------------------------------------------------------------------- */
.form-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.7vw, 32px);
  align-items: start;
  margin-top: clamp(26px, 3.4vw, 40px);
}
@media (min-width: 900px) { .form-layout { grid-template-columns: 1.25fr .75fr; } }

.form-card { padding: clamp(22px, 2.7vw, 32px); }

.form-grid { display: flex; flex-direction: column; gap: clamp(16px, 1.5vw, 18px); }

.field-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > span, .fieldset > legend { font-size: 13px; color: var(--soft); }

.field input,
.field textarea {
  font: 400 15px/1.5 var(--f-body);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  padding: 13px 15px;
  outline: none;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(113, 137, 172, .75); }
.field input:focus, .field textarea:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px rgba(91, 147, 240, .16);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #d4574f; }

.fieldset {
  border: 0; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  font: 400 13px/1 var(--f-body);
  background: var(--accs); color: var(--acc);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 8px 14px;
  min-height: 44px;
  display: inline-flex; align-items: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.chip:hover { background: #d8e8fd; }
.chip[aria-pressed="true"] {
  background: var(--acc); color: #fff; font-weight: 500;
}

/* Honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status {
  font-size: 14px;
  border-radius: var(--r-input);
  padding: 12px 15px;
  line-height: 1.5;
}
.form-status[hidden] { display: none; }
.form-status--ok { background: #e6f4ea; color: #1e6b34; }
.form-status--err { background: #fdeceb; color: #a3312a; }

.info-col { display: flex; flex-direction: column; gap: 18px; }
.info-card { padding: 24px; }
.info-card__label { font-size: 12px; color: var(--acc); margin-bottom: 10px; }
.info-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.info-card ul a { color: var(--ink); text-decoration: none; }
.info-card ul a:hover { color: var(--acc); }
.info-card--navy h2 { font-size: 19px; color: #fff; line-height: 1.25; }
.info-card--navy p { font-size: 13px; color: rgba(255, 255, 255, .7); margin-top: 8px; line-height: 1.5; }

@media (max-width: 620px) {
  .info-card ul { gap: 0; }
  .info-card ul a { min-height: 44px; display: flex; align-items: center; }
}

/* Starter kit form (navy blokk) */
.kit-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 820px) { .kit-grid { grid-template-columns: repeat(3, 1fr); } }
.kit-card { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.kit-card__num { font-size: 13px; color: var(--acc); }
.kit-card h3 { font-size: 19px; }
.kit-card p { font-size: 13.5px; line-height: 1.55; color: var(--soft); }

.form-navy {
  padding: clamp(22px, 2.9vw, 34px);
  display: flex; flex-direction: column; gap: 20px;
}
.form-navy h2 { font-size: clamp(24px, 21.5px + .63vw, 28px); color: #fff; line-height: 1.2; }
.form-navy > div > p { font-size: 16px; color: rgba(255, 255, 255, .7); margin-top: 8px; line-height: 1.55; }
.form-navy__inner {
  background: #fff;
  border-radius: var(--r-card);
  padding: clamp(20px, 2.2vw, 26px);
  display: flex; flex-direction: column; gap: 16px;
}

@media (max-width: 560px) {
  .form-submit { width: 100%; }
}

/* --------------------------------------------------------------------------
   16. Síðari lagfæringar
   -------------------------------------------------------------------------- */

/* „Draga til hliðar" á aðeins við þar sem fingur skrunar — ekki á tölvu */
@media (min-width: 900px) {
  .drag-hint { display: none; }
}

/* --------------------------------------------------------------------------
   17. Tölur (Tveir í tölum)
   -------------------------------------------------------------------------- */
.stats {
  margin-top: clamp(12px, 1.4vw, 16px);
  background: var(--ink);
  border-radius: clamp(20px, 2vw, 24px);
  box-shadow: var(--sh-navy);
  padding: clamp(30px, 4vw, 52px) clamp(14px, 2.4vw, 32px);
  display: grid;
  /* Ein röð, jafnir dálkar — óháð því hve margar tölurnar eru */
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: clamp(10px, 1.6vw, 24px);
  text-align: center;
}

.stat { min-width: 0; }

.stat__num {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(30px, 11px + 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
}

.stat__label {
  margin-top: clamp(8px, 1vw, 12px);
  font-size: clamp(12.5px, 11.5px + .26vw, 15px);
  line-height: 1.35;
  color: rgba(255, 255, 255, .62);
  text-wrap: balance;
}
.stat__label em { font-style: normal; color: var(--acc-on-navy); }

/* --------------------------------------------------------------------------
   18. Tungumálarofi
   -------------------------------------------------------------------------- */
.langsw {
  display: inline-flex;
  flex: none;
  padding: 3px;
  gap: 2px;
  background: var(--accs);
  border-radius: var(--r-pill);
}

.langsw__btn {
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--soft);
  font: 500 12.5px/1 var(--f-body);
  letter-spacing: .02em;
  padding: 8px 10px;
  border-radius: var(--r-pill);
  transition: background .15s ease, color .15s ease;
}
.langsw__btn:hover { color: var(--ink); }
.langsw__btn.is-on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(28, 48, 80, .12);
}

/* Á þröngum skjá er plássið í nav-inu naumt */
@media (max-width: 420px) {
  .langsw { padding: 2px; }
  .langsw__btn { padding: 7px 7px; font-size: 11.5px; }
}

/* Stækkar efnið um 1 cm og miðjar það aftur. object-fit: cover heldur
   hlutföllunum, svo þetta klippir af brúnunum í stað þess að teygja. */
.slot > .slot-zoom {
  width: calc(100% + 1cm);
  height: calc(100% + 1cm);
  max-width: none;   /* annars heldur hnattræna img/video reglan breiddinni í 100% */
  inset: -0.5cm;
}
