/* Skattalausnir — vefur
   Litir og letur úr vörumerkjabók Skattalausnir (v1.0). */

:root {
  --paper: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #6B6963;
  --rule: #CFCCC2;
  --tint: #F2F1EC;
  --accent: #1A1A1A; /* Tvöfalt undirstrik. Skógargrænt: #1F8A5B */
  --display: Constantia, "Sitka Banner", Georgia, "Times New Roman", serif;
  --body: Verdana, Geneva, "DejaVu Sans", sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 15px; line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--muted); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

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

/* Haus */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  padding-top: 32px; padding-bottom: 22px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.wordmark {
  font-family: var(--display); font-size: 32px; line-height: 1; color: var(--ink);
  text-decoration: none; padding-bottom: 6px; border-bottom: 5px double var(--accent);
}
.wordmark:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 14px; }
.nav a { text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* Merkimiðar */
.label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Hnappar */
.btns { display: flex; flex-wrap: wrap; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px;
  font: inherit; font-size: 14px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink);
}
.btn:hover { background: var(--tint); color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: #3A3A3A; color: var(--paper); }

/* Forsíða — opnun */
.hero {
  padding-top: 112px; padding-bottom: 96px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 64px; align-items: end;
}
.hero .label { margin-bottom: 20px; }
.hero h1 { font-family: var(--display); font-size: 60px; line-height: 1.08; letter-spacing: -0.01em; }
.hero .lead { margin-top: 28px; max-width: 34em; font-size: 17px; }
.hero .btns { margin-top: 40px; }

/* Skilgreiningalistar (stutt staðreyndayfirlit) */
.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; }

/* Kaflar með rómverskum tölum */
.section { padding-top: 48px; padding-bottom: 96px; }
.section-head { display: flex; gap: 20px; align-items: baseline; border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.section-head .num { font-family: var(--display); font-size: 18px; color: var(--muted); }
.section-head h2 { font-family: var(--display); font-size: 34px; }

/* Þjónustuyfirlit á forsíðu */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); column-gap: 48px; }
.services article { padding: 32px 0; border-bottom: 1px solid var(--rule); }
.services h3 { font-family: var(--body); font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.services p { margin-bottom: 16px; }
.services a { font-size: 14px; }

/* Starfsfólk */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; padding-top: 36px; }
.people img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--tint); border: 1px solid var(--rule); }
.people h3 { font-family: var(--display); font-size: 22px; margin: 20px 0 6px; }
.people a { font-size: 14px; }

/* Spurningar */
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; padding: 22px 32px 22px 0; min-height: 44px; position: relative;
  font-family: var(--display); font-size: 21px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 20px; font-family: var(--body); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 24px; max-width: 46em; }

/* Samskipti og form */
.contact { border-top: 1px solid var(--rule); }
.contact .wrap { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 64px; }
.contact h2 { font-family: var(--display); font-size: 40px; line-height: 1.15; margin-bottom: 20px; }
.contact .intro { margin-bottom: 32px; max-width: 30em; }
address { font-style: normal; font-size: 14px; line-height: 1.9; }

.form { display: grid; gap: 20px; }
.form label { display: grid; gap: 6px; font-size: 13px; }
.form .opt { color: var(--muted); }
.form input, .form textarea, .form select {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--ink); border-radius: 0; padding: 0 12px; min-height: 46px; width: 100%;
}
.form textarea { padding: 10px 12px; resize: vertical; }
.form input[type="date"] { max-width: 240px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.form .note { font-size: 13px; color: var(--muted); }
.form .note a { color: var(--muted); }
.form-status { font-size: 14px; }

/* Undirsíður */
.page-head { padding-top: 88px; padding-bottom: 56px; }
.page-head h1 { font-family: var(--display); font-size: 52px; line-height: 1.1; }
.page-head .label { margin-bottom: 16px; }

.service-block {
  border-top: 1px solid var(--ink); padding: 40px 0 56px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 64px;
}
.service-block:last-of-type { border-bottom: 1px solid var(--ink); }
.service-block .num { font-family: var(--display); font-size: 18px; color: var(--muted); margin-bottom: 6px; }
.service-block h2 { font-family: var(--display); font-size: 30px; line-height: 1.2; }
.service-block p { margin-bottom: 16px; }
.service-block ul { margin: 0; padding-left: 20px; }
.service-block .hint { margin-top: 20px; font-size: 13px; color: var(--muted); }

.cta { padding: 72px 0 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center; }
.cta h2 { font-family: var(--display); font-size: 30px; margin-bottom: 12px; }
.cta p { max-width: 32em; }

.contact-page { padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 64px; }
.contact-page .form { border-top: 1px solid var(--ink); padding-top: 24px; }
.map-link { display: inline-block; margin-top: 24px; font-size: 14px; }

.prose { max-width: 46em; padding-bottom: 96px; }
.prose h2 { font-family: var(--display); font-size: 24px; margin: 40px 0 12px; }
.prose p, .prose ul { margin: 0 0 14px; }

/* Fótur */
.site-footer { border-top: 5px double var(--accent); }
.site-footer .wrap {
  padding-top: 24px; padding-bottom: 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 12px; color: var(--muted);
}
.site-footer a { color: var(--muted); }

/* Símar */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .wordmark { font-size: 28px; }
  .hero { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .hero h1 { font-size: 40px; }
  .page-head { padding-top: 56px; }
  .page-head h1 { font-size: 38px; }
  .section-head h2 { font-size: 28px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .contact .wrap { padding-top: 64px; padding-bottom: 64px; }
  .services, .hero, .contact .wrap, .contact-page, .cta, .service-block { grid-template-columns: 1fr; }
}

/* Um okkur */
.about { padding-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px 48px; font-size: 16px; }
.about p { max-width: 36em; }

/* Persónuverndarstefna */
.page-head .meta { margin-top: 14px; font-size: 13px; color: var(--muted); }
.prose .summary { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 8px 0 24px; margin-bottom: 8px; }
.prose .summary h2 { margin-top: 16px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.table-scroll { overflow-x: auto; margin: 0 0 14px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.prose thead th { border-bottom: 1.5px solid var(--ink); font-weight: 700; }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; } }
@media print { .site-header nav, .site-footer { display: none; } }
