/* Jökulbrim — handlaginn húsasmiður */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/newsreader.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/sourcesans3.woff2") format("woff2");
}

:root {
  --ink: #14262e;
  --soft: #3d4c54;
  --teal: #0c4a62;
  --deep: #083246;
  --deeper: #071e28;
  --paper: #f3efe7;
  --white: #fbf9f5;
  --line: #d8d1c5;
  --focus: #0b6e8c;
  --header: 4.6rem;
  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --pad: clamp(1.15rem, 4vw, 2rem);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

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

a:hover {
  color: var(--deep);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.02em;
  hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--pad);
  top: -4rem;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 4px;
}

.skip:focus {
  top: 0.75rem;
}

.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;
}

.wrap {
  width: min(var(--wrap), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

section[id] {
  scroll-margin-top: calc(var(--header) + 0.75rem);
}

.section h2 {
  font-size: clamp(2.05rem, 4.2vw, 3.15rem);
  max-width: 18em;
}

.lede {
  max-width: 40rem;
  color: var(--soft);
  font-size: 1.125rem;
}

.section-head {
  display: grid;
  gap: 0.85rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 249, 245, 0.94);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
}

.header.is-stuck {
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
}

.header-bar {
  display: flex;
  align-items: center;
  min-height: var(--header);
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 86px;
  height: auto;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand-word {
  width: 148px;
  height: auto;
}

.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  color: var(--soft);
  line-height: 1.2;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  white-space: nowrap;
}

.header-call:hover {
  background: var(--deep);
  color: #fff;
}

.header-call svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 0.15s ease, top 0.15s ease, background 0.15s ease;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before {
  top: -6px;
}

.burger::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .burger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0.25rem var(--pad) 0.8rem;
}

.nav[data-open="true"] {
  display: block;
}

.nav a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

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

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--header));
  color: #fff;
  overflow: hidden;
  background: var(--deep);
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: 68% center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 30, 40, 0.18) 0%, rgba(7, 30, 40, 0.28) 38%, rgba(7, 30, 40, 0.9) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(40rem, calc(100% - var(--pad) * 2));
  margin-left: max(var(--pad), calc((100% - var(--wrap)) / 2));
  margin-right: auto;
  padding: 2.5rem 0 calc(1.75rem + env(safe-area-inset-bottom));
}

.hero .kicker {
  color: #e7d7bc;
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.1rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 0.96;
  max-width: 12em;
  text-wrap: balance;
}

.hero-lead {
  margin-top: 1.1rem;
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: #f4efe6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.45rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 4px;
  border: 1.5px solid transparent;
  text-decoration: none;
  font-weight: 650;
  line-height: 1.1;
  cursor: pointer;
  background: transparent;
}

.btn-light {
  background: #f4efe6;
  color: var(--deep);
}

.btn-light:hover {
  background: #fff;
  color: var(--deep);
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-teal {
  background: var(--teal);
  color: #fff;
}

.btn-teal:hover {
  background: var(--deep);
  color: #fff;
}

.btn-line {
  color: var(--deep);
  border-color: var(--deep);
  background: transparent;
}

.btn-line:hover {
  background: var(--deep);
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  color: #efe6d8;
  font-size: 0.95rem;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e7d7bc;
  flex: 0 0 auto;
}

/* Services */

.services-section {
  background: var(--paper);
}

.services {
  display: grid;
  gap: 0.85rem;
}

.service {
  background: var(--white);
  padding: 1.35rem 1.2rem 1.4rem;
  border: 1px solid transparent;
  min-height: 100%;
}

.service:hover {
  border-color: #c5d4dc;
}

.service svg {
  width: 42px;
  height: 42px;
  color: var(--teal);
  margin-bottom: 0.9rem;
}

.service h3 {
  font-family: var(--sans);
  font-weight: 680;
  font-size: 1.15rem;
  letter-spacing: 0;
  margin-bottom: 0.4rem;
}

.service p {
  color: var(--soft);
  font-size: 1rem;
}

/* Statement */

.statement {
  background: var(--deep);
  color: #f7f3ec;
}

.statement .kicker {
  color: #e7d7bc;
}

.statement h2 {
  max-width: 14em;
  color: #fff;
}

.statement-lead {
  max-width: 42rem;
  margin-top: 1.1rem;
  font-size: 1.15rem;
  color: #efe8dc;
}

.steps {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.step {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: #e7d7bc;
  margin-bottom: 0.25rem;
}

.step h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 680;
  letter-spacing: 0;
  margin-bottom: 0.3rem;
}

.step p {
  color: #e4dccf;
  font-size: 0.98rem;
}

.statement .btn {
  margin-top: 1.8rem;
}

/* Gallery */

.gallery {
  display: grid;
  gap: 0.75rem;
}

.shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #d9d3c7;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  color: #fff;
  text-align: left;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.shot-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 2rem 0.95rem 0.8rem;
  background: linear-gradient(transparent, rgba(7, 24, 32, 0.78));
}

.shot-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e7d7bc;
}

.shot-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.1;
}

.shot:hover img,
.shot:focus-visible img {
  transform: scale(1.03);
}

/* About */

.about-section {
  background: var(--paper);
}

.about-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.portrait {
  margin: 0;
  max-width: 420px;
}

.portrait img {
  width: 100%;
  height: auto;
  background: #d9d3c7;
  aspect-ratio: 1;
  object-fit: cover;
}

.portrait figcaption {
  margin-top: 0.65rem;
  font-weight: 650;
}

.about-copy {
  display: grid;
  gap: 1rem;
}

.about-copy h2 {
  max-width: 12em;
}

.about-name {
  font-weight: 680;
  font-size: 1.15rem;
}

.about-facts {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.4rem;
  color: var(--soft);
}

.about-facts a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.about-facts a:hover {
  color: var(--teal);
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 1rem;
}

.form-card,
.contact-aside {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.form-card {
  background: var(--paper);
}

.form-card h2 {
  margin-bottom: 0.45rem;
}

.form-intro {
  color: var(--soft);
  margin-bottom: 1.2rem;
}

.form {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field label {
  font-weight: 650;
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cfc6b8;
  border-radius: 4px;
  background: #fff;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--teal);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #8d2f2f;
}

.field-error {
  margin: 0;
  color: #8d2f2f;
  font-size: 0.92rem;
  font-weight: 600;
}

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

.form-note,
.form-status {
  margin: 0;
  color: var(--soft);
  font-size: 0.95rem;
}

.form-status:empty {
  display: none;
}

.form-status.is-ok {
  color: var(--deep);
  font-weight: 650;
}

.form-status.is-err {
  color: #8d2f2f;
  font-weight: 650;
}

.form-status a {
  font-weight: 700;
}

.contact-aside {
  background: var(--deep);
  color: #f7f3ec;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-aside h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #fff;
}

.contact-phone {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.contact-phone:hover {
  color: #e7d7bc;
}

.contact-mail {
  color: #f4efe6;
  font-weight: 650;
  text-decoration: none;
  font-size: 1.1rem;
}

.contact-mail:hover {
  color: #fff;
}

.contact-aside p {
  color: #e4dccf;
}

.aside-list {
  display: grid;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 0.6rem;
}

.aside-list h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e7d7bc;
  margin-bottom: 0.2rem;
}

.aside-list p {
  color: #f7f3ec;
}

.contact-aside :focus-visible,
.statement :focus-visible,
.hero :focus-visible,
.footer :focus-visible,
.shot:focus-visible {
  outline-color: #f4efe6;
}

/* Footer */

.footer {
  background: var(--deeper);
  color: #efe8dc;
  padding: 2.5rem 0 calc(1.6rem + env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer .brand-tag {
  color: #c9c0b2;
}

.footer-name {
  margin-top: 0.9rem;
  font-weight: 650;
  color: #fff;
}

.footer a {
  color: #f4efe6;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer-nav {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.footer-meta {
  display: grid;
  gap: 0.2rem;
  color: #d9d0c3;
}

.footer-base {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #b7aea0;
  font-size: 0.92rem;
}

/* Lightbox */

#lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #07141c;
  color: #fff;
}

#lightbox::backdrop {
  background: #07141c;
}

body.is-lightbox {
  overflow: hidden;
}

body.is-lightbox .header {
  visibility: hidden;
}

.lb {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0.75rem;
}

.lb-close,
.lb-nav {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  min-width: 48px;
  min-height: 48px;
  border-radius: 4px;
  cursor: pointer;
}

.lb-close:hover,
.lb-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lb-top {
  display: flex;
  justify-content: flex-end;
}

.lb-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.4rem;
  min-height: 0;
}

.lb-stage img {
  justify-self: center;
  max-width: min(1100px, 100%);
  max-height: calc(100svh - 9rem);
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.lb-caption {
  text-align: center;
  margin: 0.4rem 0 0;
  font-size: 1rem;
  color: #f4efe6;
}

/* 404 */

.missing {
  min-height: calc(100svh - var(--header));
  display: grid;
  align-content: center;
  padding: 3rem 0 4rem;
}

.missing h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0.4rem 0 0.8rem;
}

.missing p {
  max-width: 36rem;
  color: var(--soft);
  margin-bottom: 1.3rem;
}

.missing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

button:disabled {
  opacity: 0.65;
  cursor: progress;
}

@media (max-width: 419px) {
  .header .brand-mark,
  .header .brand-tag {
    display: none;
  }

  .header-call span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .header-call {
    padding-inline: 0.7rem;
  }
}

@media (min-width: 420px) {
  .brand-mark {
    width: 104px;
  }

  .brand-word {
    width: 176px;
  }
}

@media (min-width: 680px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

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

  .nav {
    display: block;
    position: static;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .nav ul {
    display: flex;
    align-items: center;
    gap: 0.2rem;
  }

  .nav a {
    border: 0;
    padding: 0.45rem 0.7rem;
    font-size: 1rem;
  }

  .header-actions {
    margin-left: 0.4rem;
  }

  .hero {
    align-items: center;
  }

  .hero-scrim {
    background: linear-gradient(
      90deg,
      rgba(7, 30, 40, 0.9) 0%,
      rgba(7, 30, 40, 0.72) 34%,
      rgba(7, 30, 40, 0.18) 64%,
      rgba(7, 30, 40, 0.28) 100%
    );
  }

  .hero-copy {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .services {
    grid-template-columns: repeat(6, 1fr);
  }

  .service {
    grid-column: span 2;
  }

  .service:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .service:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .gallery {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .gallery li:first-child {
    grid-row: 1 / span 2;
  }

  .gallery li:first-child .shot {
    height: 100%;
    aspect-ratio: auto;
    min-height: 100%;
  }

  .about-grid {
    grid-template-columns: 0.78fr 1.22fr;
    gap: 3.5rem;
  }

  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    align-items: start;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .header,
  .nav-toggle,
  .hero-actions,
  .btn,
  #lightbox {
    display: none !important;
  }

  .hero {
    min-height: 0;
    color: #000;
    background: #fff;
  }

  .hero-scrim,
  .hero-media {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
