/* Test á Vinna branch */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Grunntónar skv. stílhandbók v4 — blá palletta */
  --navy:        #16305C;
  --navy-dark:   #0E2038;
  --moss:        #2E5CA6;
  --moss-light:  #4B78C0;

  /* Accent — aðeins áherslulitur, aldrei stór bakgrunnur */
  --amber:       #2A62E0;
  --amber-mid:   #1D48B0;
  --amber-light: #5C8FEE;
  --amber-pale:  #E8EFFC;

  /* Hlutlægir / kaldir bakgrunnar */
  --cream:       #EEF2F8;  /* svalt ljósblátt */
  --neutral:     #F5F7FA;  /* hlutlægur */
  --warm-white:  #FFFFFF;

  /* Textalitir */
  --ink:         #172233;
  --ink-soft:    #3C4757;
  --ink-muted:   #6B7686;
  --rule:        #DCE3EC;

  /* Leturgerðir skv. stílhandbók */
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Lato', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--warm-white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ——— NAV ——— */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 4rem;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-color: var(--rule); }
.nav-logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.nav-logo-img {
  height: 76px;
  width: auto;
  display: block;
}
.footer-logo-img {
  height: 76px;
  width: auto;
  display: block;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--amber); }

/* ——— HERO ——— */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
}
.hero-left {
  background: var(--navy);
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem 5rem 7rem 4rem;
  position: relative; overflow: hidden;
}

.hero-tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 2rem;
}
.hero-heading {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
.hero-heading em {
  font-style: italic;
  font-weight: 400;
  color: #9DC0FF;
}
.hero-sub {
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.75;
  color: #ffffff;
  max-width: 42ch;
  margin-bottom: 1.5rem;
}
.hero-sub-2 {
  font-size: 0.98rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-bottom: 3rem;
  font-style: italic;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--amber);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  width: fit-content;
}
.btn-primary:hover {
  background: var(--amber-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(42,98,224,0.35);
}
.btn-primary .arrow { font-style: normal; transition: transform 0.2s; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.hero-experience {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin-bottom: 2.5rem;
  border-left: 2px solid var(--amber-light);
  padding-left: 1rem;
}
.hero-right {
  background: var(--cream);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 4.5rem 6rem 5rem;
}
.hero-sell-label {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero-sell-heading {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1.25rem;
  max-width: 24ch;
  letter-spacing: -0.01em;
}
.hero-sell-body {
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 42ch;
  margin-bottom: 2.5rem;
}
.hero-sell-points {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 3rem;
}
.hsp-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}
.hsp-item:last-child { border-bottom: 1px solid var(--rule); }
.hsp-marker {
  color: var(--amber);
  font-size: 0.9rem;
  padding-top: 0.15rem;
  min-width: 1rem;
  font-weight: 700;
}
.hsp-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.hsp-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: transparent;
  color: var(--moss);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border: 1.5px solid var(--moss);
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  width: fit-content;
}
.btn-secondary:hover { background: var(--moss); color: #fff; transform: translateY(-1px); }
.btn-secondary .arrow { font-style: normal; transition: transform 0.2s; }
.btn-secondary:hover .arrow { transform: translateX(3px); }

/* ——— GRUNNUR KAFLA ——— */
section { padding: 7rem 4rem; }
.section-label {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  max-width: 26ch;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.section-body {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.8;
}

/* ——— VANDAMÁLIÐ ——— */
#vandamal {
  background: var(--warm-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.vandamal-intro { padding-top: 0.5rem; }
.vandamal-intro .section-body { margin-bottom: 1.25rem; }

.vl-list { margin-top: 1rem; }
.vl-item {
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding: 1.6rem 0;
  border-top: 1px solid var(--rule);
}
.vl-item:last-child { border-bottom: 1px solid var(--rule); }
.vl-num {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--amber);
  min-width: 1.5rem;
  padding-top: 0.1rem;
}
.vl-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.vl-desc {
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ——— ÞJÓNUSTA ——— */
#thjonusta {
  background: var(--neutral);
  color: var(--ink);
}
#thjonusta .section-label { color: var(--moss); }
#thjonusta .section-heading { color: var(--navy); max-width: 30ch; }
#thjonusta .section-body {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  max-width: none;
}
.thjonusta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.thj-card {
  background: #fff;
  padding: 2.5rem;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--amber);
  border-radius: 2px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.thj-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(27,46,74,0.08);
}
.thj-icon {
  width: 40px; height: 40px;
  background: var(--amber-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.thj-icon svg {
  width: 18px; height: 18px;
  stroke: var(--amber);
  fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.thj-tag {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-mid);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.thj-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.thj-fit {
  font-size: 0.86rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.thj-items {
  margin-top: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  padding-top: 1.2rem;
}
.thj-items li {
  font-size: 0.86rem;
  color: var(--ink);
  padding: 0.32rem 0 0.32rem 1.1rem;
  position: relative;
  line-height: 1.55;
}
.thj-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}



/* ——— UM MIG ——— */

/* ——— UM GH RÁÐGJÖF ——— */
#um-mig {
  background: var(--warm-white);
  display: block;
}

.um-mig-left {
  width: 100%;
  margin-bottom: 1rem;
}

.um-mig-left .section-heading {
  max-width: 30ch;
  margin-bottom: 1.75rem;
}

/* Þægileg lesbreidd fyrir megintexta */
#um-mig .section-body,
#um-mig .um-mig-body-2 {
  max-width: 72ch;
}

.um-mig-left .section-body {
  margin-bottom: 2rem;
}

.um-mig-body-2 {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 1.6rem;
}

.um-mig-body-2 strong {
  color: var(--navy);
  font-weight: 700;
}

/* Millifyrirsagnir */
.um-mig-subheading {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  max-width: 36ch;
  margin: 3rem 0 1rem;
  letter-spacing: -0.01em;
}

/* Greiningarspurningar */
.um-mig-questions {
  max-width: 68ch;
  margin: 0 0 2rem;
  padding: 1.4rem 0 1.4rem 1.35rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.um-mig-questions li {
  color: var(--ink-soft);
  line-height: 1.65;
  padding-left: 0.25rem;
  margin-bottom: 0.45rem;
}

.um-mig-questions li:last-child {
  margin-bottom: 0;
}

.um-mig-questions li::marker {
  color: var(--amber);
}

/* Kjarnalína / sérstaða */
.um-mig-principles {
  max-width: 72ch;
  font-size: 1.02rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0.25rem 0 2.75rem;
}

/* Sérsvið */
.um-mig-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 72ch;
  margin-top: 2.25rem;
}

.field-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-mid);
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--amber-pale);
  background: var(--amber-pale);
  border-radius: 2px;
}

/* ——— SAMBAND ——— */
#samband {
  background: var(--navy);
  text-align: center;
  padding: 8rem 4rem;
  position: relative;
  overflow: hidden;
}
#samband::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(42,98,224,0.22) 0%, transparent 70%);
  pointer-events: none;
}
#samband > * { position: relative; z-index: 1; }
#samband .section-label {
  display: block;
  color: var(--amber-light);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.samband-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  max-width: 28ch;
  margin: 0 auto 1.5rem;
  letter-spacing: -0.01em;
}
.samband-body {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.92);
  max-width: 48ch;
  margin: 0 auto 3.5rem;
  line-height: 1.8;
}
.contact-cards {
  display: flex; justify-content: center; gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.75rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 2px;
  text-decoration: none;
  color: #fff;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  background: rgba(255,255,255,0.04);
}
.contact-card:hover {
  border-color: var(--amber-light);
  background: rgba(92,143,238,0.1);
  transform: translateY(-2px);
}
.contact-icon { color: var(--amber-light); font-size: 1.1rem; }
.contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-bottom: 0.1rem;
}
.contact-value { font-weight: 700; color: #fff; }

/* ——— FÓTUR ——— */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.60);
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
footer a { color: rgba(255,255,255,0.45); text-decoration: none; }
footer a:hover { color: rgba(255,255,255,0.85); }
.footer-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}

/* ——— FADE-IN ——— */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ——— SKJÁAÐLÖGUN ——— */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 6rem 2rem 4rem; }
  .hero-right { padding: 3rem 2rem; }
  section { padding: 5rem 2rem; }
  #vandamal, #um-mig { grid-template-columns: 1fr; gap: 3rem; }
  .thjonusta-grid { grid-template-columns: 1fr; }
  .thj-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .thj-card:last-child { border-bottom: none; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }

  #um-mig .section-body,
  #um-mig .um-mig-body-2,
  .um-mig-principles,
  .um-mig-questions,
  .um-mig-fields {
    max-width: 100%;
  }

  .um-mig-subheading {
    margin-top: 2.35rem;
  }

  .um-mig-questions {
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   VIÐBÆTUR — lagfæringar fyrir birtingu
   ═══════════════════════════════════════════════════════════ */

/* ——— Hámarksbreidd efnis á breiðum skjám ———
   Bakgrunnur helst heilbreiður en textinn hættir að teygjast. */
#vandamal,
#thjonusta,
#um-mig {
  padding-inline: max(4rem, calc((100% - 1500px) / 2));
}

/* ——— Fastur hausur: rétt hæð og akkerisstökk ——— */
#hero { padding-top: 116px; }
section { scroll-margin-top: 116px; }

/* ——— Farsímavalmynd ——— */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.6; fill: none; }

/* ——— Lyklaborðsleiðsögn ——— */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ——— Þéttari reynslulínur í hetjuhluta ——— */
.hero-experience { margin-bottom: 1rem; }
.hero-experience:last-of-type { margin-bottom: 2.5rem; }

/* ——— UM GH RÁÐGJÖF: tveir dálkar ——— */
#um-mig {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 5rem;
  align-items: start;
}
.um-mig-left { margin-bottom: 0; }

.um-mig-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--amber);
  border-radius: 2px;
  padding: 2rem;
}
.um-mig-photo {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1.75rem;
  border-radius: 2px;
}
.um-mig-card-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.15rem;
}
.um-mig-card-role {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
}
.um-mig-facts dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-mid);
  margin-bottom: 0.25rem;
}
.um-mig-facts dd {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.um-mig-facts dd:last-child { margin-bottom: 0; }

/* ——— Minni hreyfing ef notandi kýs það ——— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .thj-card:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .contact-card:hover { transform: none; }
}

/* ——— Skjáaðlögun fyrir viðbætur ——— */
@media (max-width: 1200px) {
  #um-mig { grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; }
}

@media (max-width: 900px) {
  #vandamal,
  #thjonusta,
  #um-mig { padding-inline: 2rem; }

  #hero { padding-top: 92px; }
  section { scroll-margin-top: 92px; }

  .nav-toggle { display: block; }
  .nav-logo-img, .footer-logo-img { height: 52px; }

  nav {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-bottom: 0.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--rule); }
  .nav-links a { display: block; padding: 0.85rem 0; }

  #um-mig { grid-template-columns: 1fr; gap: 3rem; }
  .um-mig-card { max-width: 420px; }

  .thj-card { border-bottom: 1px solid var(--rule); }
}

/* ——— INNRI ÚTTEKT: borði undir þjónustukössunum ——— */
.innri-uttekt {
  margin-top: 1.25rem;
  background: var(--navy);
  border-top: 3px solid var(--amber);
  border-radius: 2px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}
.iu-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 0.75rem;
}
.iu-heading {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.iu-body {
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.75;
  color: #ffffff;
  margin-bottom: 1.5rem;
}
.iu-note {
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  border-left: 2px solid var(--amber-light);
  padding-left: 1rem;
}
.iu-list {
  list-style: none;
  margin-bottom: 1.75rem;
}
.iu-list li {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.95);
  line-height: 1.6;
  padding: 0.85rem 0 0.85rem 1.25rem;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.iu-list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.15); }
.iu-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.3rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber-light);
}
.iu-list strong { color: #fff; font-weight: 700; }
.iu-meta {
  font-size: 0.83rem;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.82);
}

@media (max-width: 900px) {
  .innri-uttekt {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
}
