/* ═══════════════════════════════════════════════════
   Sjálfvirk v21c
   ═══════════════════════════════════════════════════ */

:root {
  --bg: #faf8f4;
  --surface: #f0e9dc;
  --ink: #292723;
  --muted: #625d56;
  --line: #ded9d0;
  --accent: #ac3d26;
  --accent-dark: #8e3320;
  --display: 'Libre Baskerville', Georgia, serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ─── Skip link ─── */
.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  background: var(--ink);
  color: white;
  padding: 12px 16px;
  z-index: 200;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.skip:focus { top: 10px; }

/* ─── Layout ─── */
.wrap { width: min(1200px, calc(100% - 40px)); margin: auto; }
.wrap--404 { padding: clamp(48px, 10vw, 120px) 0; }

/* ─── Header ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand img { width: 160px; height: 36px; }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  font-size: 13px;
}

nav a {
  text-decoration: none;
  padding: 10px 8px;
  border-radius: 3px;
  transition: color 150ms ease;
}

nav a:hover { color: var(--accent); }

.header-cta {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  padding: 9px 16px;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.header-cta:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ─── Typography ─── */
h1, h2, h3 { line-height: 1.13; letter-spacing: -0.035em; overflow-wrap: break-word; }
h1, h2 { font-family: var(--display); }
h1 { font-size: clamp(46px, 6.6vw, 88px); font-weight: 400; }
h2 { font-size: clamp(35px, 4vw, 52px); font-weight: 400; }
h3 { font-size: 22px; letter-spacing: -0.02em; font-weight: 700; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ─── Hero ─── */
.hero { padding: 80px 0 50px; }
.hero h1 { max-width: 950px; }

.intro {
  font-size: 18px;
  max-width: 610px;
  margin-top: 28px;
  line-height: 1.6;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
}

/* ─── Buttons ─── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 16px 22px;
  font-size: 14px;
  line-height: 1.5;
  transition: background 150ms ease, transform 100ms ease;
}

.button:hover { background: var(--accent-dark); text-decoration: none; }
.button:active { transform: translateY(1px); }

.secondary {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.secondary:hover { text-decoration: underline; }

/* ─── Hero extras ─── */
.scope {
  font-size: 12px;
  color: var(--muted);
  max-width: 520px;
  margin-top: 22px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* ─── Placeholder notices ─── */
.vantar {
  display: inline-block;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  padding: 3px 8px;
  font-size: 12px;
  font-style: italic;
  font-family: system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
}

.vantar-block {
  display: block;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  color: #92400e;
  padding: 10px 14px;
  font-size: 13px;
  font-style: italic;
  font-family: system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 16px;
  line-height: 1.5;
}

/* ─── Sections ─── */
section.content { padding: 80px 0; border-top: 1px solid var(--line); }
section.alt-bg { background: var(--surface); }

.section-heading { margin-bottom: 40px; }
.section-heading p:last-child {
  margin-top: 20px;
  max-width: 590px;
  color: var(--muted);
}

/* ─── Cases ─── */
.case-grid { display: grid; gap: 20px; }

.case {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
  transition: box-shadow 150ms ease;
}

.case:hover { box-shadow: 0 2px 14px rgba(41,39,35,0.07); }

.client { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.case h3 { margin-bottom: 24px; }

.comparison {
  display: grid;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.comparison p { font-size: 15px; line-height: 1.55; }
.comparison strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}
.after strong { color: var(--accent); }

.build { margin-top: 20px; font-size: 14px; color: var(--muted); }
.build strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  margin-bottom: 7px;
}

.cta-mid {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

/* ─── Services ─── */
.service-grid,
.process-grid {
  display: grid;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-grid article, .process-grid li { min-width: 0; }
.service-grid h3, .process-grid h3 { font-size: 20px; }
.service-grid p, .process-grid p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 14px;
}

.number {
  display: block;
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 22px;
}

.process-grid li {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.process-grid .duration {
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 12px;
}

/* ─── FAQ ─── */
.faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-list li { border-top: 1px solid var(--line); }
.faq-list li:last-child { border-bottom: 1px solid var(--line); }

.faq-list details { padding: 0; }

.faq-list summary {
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  padding: 20px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.01em;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::marker { display: none; }

.faq-list summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 200ms ease;
  line-height: 1;
}

.faq-list details[open] > summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 24px;
  max-width: 680px;
}

.faq-answer p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
}

.faq-answer p + p { margin-top: 10px; }

/* ─── Founder ─── */
.founder-inner {
  display: grid;
  gap: 32px;
  align-items: start;
}

.portrait-img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 20%;
}

.founder h2 { font-size: clamp(32px, 4vw, 42px); }
.founder .role { margin: 12px 0 22px; font-size: 14px; color: var(--muted); }
.founder .personal { max-width: 650px; font-size: 18px; line-height: 1.65; }
.founder .personal + .personal { margin-top: 16px; }
.founder .personal + p:not(.personal) { margin-top: 22px; }

/* ─── Contact ─── */
.contact {
  background: var(--surface);
  padding: 48px;
}

.contact h2 { max-width: 680px; }
.contact .intro { font-size: 17px; margin-top: 20px; max-width: 590px; color: var(--muted); }
.email { display: block; margin-top: 20px; font-size: 18px; font-weight: 700; }
.reply { margin-top: 8px; color: var(--muted); font-size: 13px; }
.social { margin-top: 16px; font-size: 13px; }
.social a { color: var(--accent); font-weight: 600; text-decoration: none; }
.social a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 12px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
}

.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--ink); }

/* ─── 650px+ ─── */
@media (min-width: 650px) {
  .wrap { width: min(1200px, calc(100% - 80px)); }
  .comparison { grid-template-columns: 1fr 1fr; }
  .service-grid, .process-grid { grid-template-columns: 1fr 1fr; }
  .founder-inner { grid-template-columns: 220px 1fr; }
  .contact { padding: 60px; }
}

/* ─── 1000px+ ─── */
@media (min-width: 1000px) {
  header { padding: 24px 0; }
  .hero { padding: 100px 0 60px; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .case { padding: 32px; }
  .service-grid, .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
  section.content { padding: 100px 0; }
  .section-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
    margin-bottom: 48px;
  }
  .section-heading .eyebrow { grid-column: 1 / -1; }
  .section-heading p:last-child { margin: 0; align-self: center; }
  .header-cta { margin-left: 16px; }
  .faq-list summary { font-size: 19px; }
}

/* ─── max 649px ─── */
@media (max-width: 649px) {
  nav { width: 100%; justify-content: space-between; gap: 0 2px; font-size: 11px; order: 3; }
  nav a { padding: 10px 4px; font-size: 11px; }
  .header-cta { padding: 8px 12px; font-size: 12px; }
  .hero { padding-top: 48px; }
  .trust { gap: 8px 20px; margin-top: 36px; }
  .button { padding: 15px 18px; }
  .contact { padding: 28px 22px; }
  .founder h2 { font-size: 32px; }
  .service-grid { gap: 34px; }
  .portrait-img { max-width: 180px; margin: 0 auto; }
  .founder-inner { gap: 16px; }
  .case { padding: 20px; }
  .faq-list summary { font-size: 15px; padding: 16px 0; }
  .cta-banner { padding: 24px 0; }
  .cta-banner--mid { padding: 32px 0; }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ─── CTA Banners ─── */
.cta-banner {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.cta-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
}

.cta-banner p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.35;
  max-width: 620px;
  letter-spacing: -0.02em;
}

.cta-banner-link {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  padding: 9px 16px;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}

.cta-banner-link:hover {
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

.cta-banner--subtle { background: var(--surface); }

.cta-banner--mid {
  padding: 44px 0;
  text-align: center;
}

.cta-banner--mid p {
  margin: auto;
  font-style: italic;
  color: var(--muted);
}

.cta-banner--dark {
  background: var(--ink);
  border-color: var(--ink);
}

.cta-banner--dark p { color: var(--bg); }

.cta-banner-link--light {
  border-color: rgba(250,248,244,0.45);
  color: var(--bg);
}

.cta-banner-link--light:hover {
  background: var(--bg);
  color: var(--ink);
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Kort: greindir vefir (lifandi mynd frá sitemoved.com) ─── */
.kort-mynd { display: block; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); overflow: hidden; }
.kort-mynd img { display: block; width: 100%; height: auto; }
.kort-mynd:hover { border-color: var(--accent); }
.kort-tengill { margin-top: 16px; }
.kort-tengill a { color: var(--accent); font-weight: 600; text-decoration: none; }
.kort-tengill a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ─── Biðlisti fyrir ráðgjöf ─── */
.bidlisti { margin-top: 40px; padding: 32px 0 0; border-top: 1px solid var(--line); max-width: 640px; }
.bidlisti[hidden] { display: none; }
.bidlisti h3 { font-family: var(--display); font-size: 22px; line-height: 1.3; }
.bidlisti-inngangur { margin-top: 8px; color: var(--muted); }
.bidlisti-form { display: grid; gap: 16px; margin-top: 24px; }
.bidlisti-form label > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.bidlisti-form input[type="text"],
.bidlisti-form input[type="email"],
.bidlisti-form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
}
.bidlisti-form textarea { resize: vertical; min-height: 110px; }
.bidlisti-form input:focus-visible,
.bidlisti-form textarea:focus-visible,
.bidlisti-form button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.bidlisti-samthykki { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.bidlisti-samthykki input { margin-top: 4px; flex: none; }
.bidlisti-form .bidlisti-samthykki > span { display: inline; font-weight: 400; margin: 0; }
.bidlisti-form .button { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.bidlisti-form .button:disabled { opacity: 0.65; cursor: not-allowed; }
.bidlisti-form .button:disabled:hover,
.bidlisti-form .button:disabled:active { background: var(--accent); transform: none; }
.bidlisti-stada { font-size: 13px; color: var(--muted); margin: 0; }
.bidlisti-stada:empty { display: none; }
.bidlisti-smatt { font-size: 12px; color: var(--muted); }
.bidlisti-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bidlisti-villa { margin-top: 16px; color: var(--accent); font-weight: 700; }
