/*
Theme Name: Lunakaffi
Description: Custom theme for Lunakaffi — kaffihús og veisluþjónusta á Egilsstöðum. Ported from the original TanStack/Tailwind design.
Author: Reykjavik Digital
Version: 0.7.2
Text Domain: lunakaffi
*/

:root {
  --radius: 0.25rem;
  --background: oklch(0.98 0.007 80.7);
  --foreground: oklch(0.279 0.026 230.5);
  --card: oklch(1 0 0);
  --primary: oklch(0.342 0.076 238.3);
  --primary-foreground: oklch(0.963 0.012 79.8);
  --muted-foreground: oklch(0.591 0.033 73.6);
  --border: oklch(0.9 0.02 75);
  --sand: oklch(0.843 0.036 70.1);
  --sand-foreground: oklch(0.342 0.076 238.3);
  --cream: oklch(0.963 0.012 79.8);
  --input: oklch(0.88 0.022 75);
  --ring: oklch(0.448 0.096 235.3);
  --destructive: oklch(0.55 0.18 27.3);
  --font-display: "Poiret One", "Century Gothic", sans-serif;
  --font-sans: "Jost", "Futura", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
}

h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  /* height:auto is required so the width/height HTML attributes don't force a
     fixed pixel height once max-width shrinks the image. */
  height: auto;
  display: block;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.container {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- Reveal animations ---------- */

/* Hidden state only under html.js (set inline in the head), so a browser
   without JavaScript still shows everything. */
html.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal.d1 {
  transition-delay: 0.12s;
}

.reveal.d2 {
  transition-delay: 0.24s;
}

.reveal.d3 {
  transition-delay: 0.36s;
}

/* Curtain effect: the inner image is unveiled top-to-bottom while the wrapper
   fades in. The clip-path must sit on the child, not on the observed .reveal
   element itself — a fully clipped target never reaches the
   IntersectionObserver threshold in Chromium. */
html.js .reveal--img img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

html.js .reveal--img.visible img {
  clip-path: inset(0 0 0 0);
}

html.js .reveal--img.d1 img {
  transition-delay: 0.22s;
}

html.js .reveal--img.d2 img {
  transition-delay: 0.34s;
}

/* Wrapper for bare images that need the curtain (they can't clip themselves). */
.reveal-frame {
  display: block;
  width: 100%;
  height: 100%;
}

/* Hero intro (front page and subpage heroes): staggered fade-up on load. */
.hero__eyebrow,
.hero__title,
.hero__text,
.hero__cta {
  opacity: 0;
  animation: lk-fade-up 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__eyebrow {
  animation-delay: 0.15s;
}

.hero__title {
  animation-delay: 0.35s;
}

.hero__text {
  animation-delay: 0.6s;
}

.hero__cta {
  animation-delay: 0.8s;
}

@keyframes lk-fade-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .reveal--img img,
  .hero__eyebrow,
  .hero__title,
  .hero__text,
  .hero__cta {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    clip-path: none !important;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background: color-mix(in oklab, var(--background) 90%, transparent);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.site-header__logo img {
  height: 3rem;
  width: auto;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.site-nav .nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav .nav-menu > li {
  position: relative;
}

.site-nav .nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding-block: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--foreground) 70%, transparent);
  transition: color 0.2s;
}

.site-nav .nav-menu > li > a:hover {
  color: var(--primary);
}

.site-nav .nav-menu > li.menu-item-has-children > a::after {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
}

.site-nav .sub-menu {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 50;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  min-width: 14rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: opacity 0.15s, visibility 0.15s;
}

.site-nav .nav-menu > li:hover > .sub-menu,
.site-nav .nav-menu > li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
}

.site-nav .sub-menu a {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
  transition: background-color 0.2s, color 0.2s;
}

.site-nav .sub-menu a:hover {
  background: var(--cream);
  color: var(--primary);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: var(--primary);
  padding: 0.625rem 1.25rem;
  color: var(--primary-foreground) !important;
  transition: opacity 0.2s;
}

.btn-pill:hover {
  opacity: 0.9;
}

.btn-pill svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.menu-toggle {
  display: inline-flex;
  border: 0;
  background: none;
  padding: 0;
  color: var(--primary);
  cursor: pointer;
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-nav {
  display: none;
  border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background: var(--background);
  padding: 1rem 1.5rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav .nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav .nav-menu > li > a {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}

.mobile-nav .sub-menu {
  margin: 0.75rem 0 0;
  padding: 0 0 0 1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-left: 1px solid var(--border);
}

.mobile-nav .sub-menu a {
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--foreground) 70%, transparent);
}

.mobile-nav__cta {
  margin-top: 1rem;
  display: inline-block;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
}

.hero__img {
  height: 70vh;
  min-height: 420px;
  width: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--primary) 55%, transparent);
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero__content .container {
  width: 100%;
  color: var(--primary-foreground);
}

.hero__eyebrow {
  color: var(--sand);
  margin: 0;
}

.hero__title {
  margin: 1rem 0 0;
  max-width: 42rem;
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: 0.025em;
}

.hero__text {
  margin: 1rem 0 0;
  max-width: 28rem;
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--primary-foreground) 85%, transparent);
}

.hero__cta {
  margin-top: 2rem;
  background: var(--sand);
  color: var(--sand-foreground) !important;
  padding: 0.875rem 1.75rem;
}

.hero__cta svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3.75rem;
  }

  .hero__text {
    font-size: 1rem;
  }
}

/* ---------- Subpage hero variant ---------- */

.hero--page .hero__img {
  height: 44vh;
  min-height: 320px;
}

.hero__text--wide {
  max-width: 36rem;
}

@media (min-width: 768px) {
  .hero--page .hero__title {
    font-size: 3rem;
  }
}

/* ---------- Shared section typography ---------- */

.sec-title {
  margin: 0.75rem 0 0;
  font-size: 1.875rem;
  letter-spacing: 0.025em;
  color: var(--primary);
}

.sec-text {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}

@media (min-width: 768px) {
  .sec-title {
    font-size: 2.25rem;
  }
}

/* ---------- Two-column split section ---------- */

.split {
  display: grid;
  align-items: center;
  gap: 3rem;
  padding-block: 6rem;
}

.split__img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.split__cta {
  margin-top: 2rem;
}

.icon-list {
  margin: 2rem 0 0;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.icon-list svg {
  margin-top: 0.125rem;
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Opening hours band (kaffihús page) ---------- */

.hours-band {
  background: var(--cream);
  padding-block: 6rem;
}

.hours-band__grid {
  display: grid;
  gap: 3rem;
}

.hours-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.hours-list li span:first-child {
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}

.flokkar__img--short {
  height: 16rem;
}

.flokkar__text--fill {
  flex: 1;
}

@media (min-width: 768px) {
  .hours-band__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Matseðill ---------- */

.container--narrow {
  max-width: 56rem;
}

.menu-section {
  padding-block: 6rem;
}

.menu-band {
  background: var(--cream);
  padding-block: 6rem;
}

.menu-section__title {
  margin: 0.75rem 0 0;
  font-size: 2.25rem;
  letter-spacing: 0.025em;
  color: var(--primary);
}

.menu-section__body {
  margin-top: 3rem;
}

.menu-cat + .menu-cat {
  margin-top: 4rem;
}

.menu-cat__title {
  margin: 0;
  font-size: 1.875rem;
  letter-spacing: 0.025em;
  color: var(--primary);
}

.menu-cat__list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.menu-cat__list li {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}

.menu-cat__list li + li {
  margin-top: 1.25rem;
}

.menu-item__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.menu-item__name {
  margin: 0;
  font-size: 1rem;
}

.menu-item__price {
  margin: 0;
  flex-shrink: 0;
  font-size: 0.875rem;
  color: var(--primary);
}

.menu-item__desc {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.menu-cat__note {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.menu-footnote {
  padding-bottom: 2rem;
}

.menu-footnote p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ---------- Generic bands, grids and cards (subpages) ---------- */

.band {
  padding-block: 6rem;
}

.band--cream {
  background: var(--cream);
}

.band--sand {
  background: color-mix(in oklab, var(--sand) 50%, transparent);
}

.grid-split {
  display: grid;
  align-items: center;
  gap: 3rem;
}

.grid-split--start {
  align-items: start;
}

.grid-split__img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.sec-head {
  max-width: 36rem;
}

.cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.icard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.5rem;
}

.icard--flex {
  display: flex;
  flex-direction: column;
}

.icard__icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.icard__title {
  margin: 1rem 0 0;
  font-size: 1.25rem;
  letter-spacing: 0.025em;
  color: var(--primary);
}

.icard__title--lg {
  margin: 0;
  font-size: 1.5rem;
}

.icard__text {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.icard__text--fill {
  flex: 1;
  margin-top: 0.75rem;
}

.icard__link {
  margin-top: 1.25rem;
  align-self: flex-start;
}

.note-box {
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  font-size: 0.875rem;
}

.note-box--card {
  background: var(--card);
}

.note-box--cream {
  background: var(--cream);
}

.note-box--2col {
  display: grid;
  gap: 1.5rem;
}

.note-box__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}

.note-box__item p {
  margin: 0;
}

.note-box__item svg {
  margin-top: 0.125rem;
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.row-list {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  column-gap: 3rem;
  row-gap: 1.25rem;
}

.row-list li {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}

.row-list__name {
  margin: 0;
  font-size: 1rem;
}

.row-list__desc {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.plain-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}

.plain-list li {
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  padding-block: 0.375rem;
}

.plain-list--fill {
  flex: 1;
}

.eyebrow--primary {
  color: var(--primary);
}

.btn-pill--outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary) !important;
  transition: background-color 0.2s, color 0.2s;
}

.btn-pill--outline:hover {
  opacity: 1;
  background: var(--primary);
  color: var(--primary-foreground) !important;
}

.gallery-fig {
  margin: 0;
}

.gallery-fig__frame {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery__link {
  display: block;
}

/* GLightbox: caption bar restyled to match the theme — no white box, just a
   small eyebrow-style line under the image on the dark backdrop. The body
   prefix outweighs GLightbox's own rules, which load after this file. */
body .glightbox-clean .gslide-description {
  background: transparent;
}

body .glightbox-clean .gdesc-inner {
  padding: 0.875rem 1rem 0;
}

body .glightbox-clean .gslide-title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--sand);
}

.gallery-fig img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.gallery-fig:hover img {
  transform: scale(1.05);
}

.gallery-fig figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.actions-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.inline-link {
  color: var(--primary);
  text-underline-offset: 4px;
}

.inline-link:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .cards--sm2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .cards--md2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards--md3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-split {
    grid-template-columns: repeat(2, 1fr);
  }

  .note-box {
    padding: 2.5rem;
  }

  .note-box--2col {
    grid-template-columns: repeat(2, 1fr);
  }

  .row-list--2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards--lg3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards--lg4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Kaffihúsið í dag ---------- */

.today {
  margin-top: -3rem;
  position: relative;
}

.today__card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.today__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.today__title {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.025em;
  color: var(--primary);
}

.today__date {
  margin: 0;
  font-size: 0.875rem;
  text-transform: capitalize;
  color: var(--muted-foreground);
}

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

.today__item {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.today__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--muted-foreground);
}

.today__label svg {
  width: 1rem;
  height: 1rem;
}

.today__value {
  margin: 0.75rem 0 0;
  font-size: 1.125rem;
}

.today__note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .today__card {
    padding: 2.5rem;
  }

  .today__title {
    font-size: 1.875rem;
  }

  .today__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .today__grid--two {
    grid-template-columns: repeat(2, 1fr);
  }
}

.today__more {
  margin-top: 1rem;
  text-align: right;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.link-arrow svg {
  width: 1rem;
  height: 1rem;
}

/* ---------- Flokkar (veisluþjónusta) ---------- */

.flokkar {
  padding-block: 6rem;
}

.flokkar__head {
  max-width: 36rem;
}

.flokkar__title {
  margin: 0.75rem 0 0;
  font-size: 1.875rem;
  letter-spacing: 0.025em;
  color: var(--primary);
}

.flokkar__grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.flokkar__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
}

.flokkar__img-link {
  display: block;
  overflow: hidden;
}

.flokkar__img {
  height: 18rem;
  width: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.flokkar__card:hover .flokkar__img {
  transform: scale(1.05);
}

.flokkar__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  border: 1px solid var(--border);
  border-top: 0;
  padding: 1.5rem;
}

.flokkar__card-title {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.025em;
  color: var(--primary);
}

.flokkar__text {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.flokkar__list {
  margin: 1rem 0 0;
  flex: 1;
  list-style: none;
  padding: 0;
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}

.flokkar__list li {
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  padding-block: 0.375rem;
}

.flokkar__link {
  margin-top: 1.5rem;
  align-self: flex-start;
}

@media (min-width: 768px) {
  .flokkar__title {
    font-size: 2.25rem;
  }

  .flokkar__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Leiga á sal ---------- */

.salur {
  background: var(--cream);
  padding-block: 6rem;
}

.salur__grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}

.salur__img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.salur__title {
  margin: 0.75rem 0 0;
  font-size: 1.875rem;
  letter-spacing: 0.025em;
  color: var(--primary);
}

.salur__text {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}

.salur__list {
  margin: 2rem 0 0;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.salur__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.salur__list svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.salur__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .salur__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .salur__title {
    font-size: 2.25rem;
  }
}

/* ---------- Myndir ---------- */

.gallery {
  padding-block: 6rem;
}

.gallery__title {
  margin: 0.75rem 0 0;
  font-size: 1.875rem;
  letter-spacing: 0.025em;
  color: var(--primary);
}

.gallery__grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.gallery__img {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.gallery__more {
  margin-top: 2rem;
  text-align: right;
}

@media (min-width: 768px) {
  .gallery__title {
    font-size: 2.25rem;
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Um okkur ---------- */

.about {
  background: color-mix(in oklab, var(--sand) 50%, transparent);
  padding-block: 6rem;
}

.about__grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}

.about__title {
  margin: 0.75rem 0 0;
  font-size: 1.875rem;
  letter-spacing: 0.025em;
  color: var(--primary);
}

.about__text {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}

.about__link {
  margin-top: 1.5rem;
}

.about__img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__title {
    font-size: 2.25rem;
  }
}

/* ---------- CTA ---------- */

.cta {
  background: var(--primary);
  color: var(--primary-foreground);
  padding-block: 5rem;
  text-align: center;
}

.cta__inner {
  max-width: 42rem;
}

.cta__title {
  margin: 0;
  font-size: 1.875rem;
  letter-spacing: 0.025em;
}

.cta__text {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--primary-foreground) 80%, transparent);
}

.cta__cta {
  margin-top: 2rem;
  background: var(--sand);
  color: var(--sand-foreground) !important;
  padding: 1rem 2rem;
}

.cta__cta svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 768px) {
  .cta__title {
    font-size: 2.25rem;
  }
}

/* ---------- Fyrirspurn form ---------- */

.f-page {
  background: var(--cream);
}

.f-page__inner {
  max-width: 48rem;
  margin-inline: auto;
  padding: 5rem 1.5rem;
}

.f-page__title {
  margin: 0.75rem 0 0;
  font-size: 2.25rem;
  letter-spacing: 0.025em;
  color: var(--primary);
}

.f-page__intro {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}

.f-card {
  margin-top: 3rem;
  border-radius: var(--radius);
  background: var(--card);
  padding: 2rem;
}

.f-sec {
  margin: 2.5rem 0 0;
  padding: 2rem 0 0;
  border: 0;
  border-top: 1px solid var(--border);
  min-width: 0;
}

.f-sec:first-of-type {
  margin-top: 0;
}

.f-sec__head {
  margin: 0;
  color: var(--primary);
  /* Readability override: the display font is too thin at eyebrow size. */
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}

.f-hint {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.f-pills,
.f-choices,
.f-grid,
.f-stack {
  margin-top: 1.25rem;
}

.f-pills .wpcf7-form-control,
.f-choices .wpcf7-form-control {
  display: grid;
  gap: 0.75rem;
}

.f-pills .wpcf7-form-control {
  display: flex;
  flex-wrap: wrap;
}

.f-card .wpcf7-list-item {
  margin: 0;
}

.f-pills label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.f-pills input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.f-pills label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.f-choices label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.f-choices input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--primary);
}

.f-choices--row .wpcf7-form-control {
  display: flex;
  gap: 1.5rem;
}

.f-grid {
  display: grid;
  gap: 1.25rem;
}

.f-stack {
  display: grid;
  gap: 1.25rem;
}

.f-grid > label,
.f-stack > label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.f-card input[type="text"],
.f-card input[type="email"],
.f-card input[type="tel"],
.f-card input[type="date"],
.f-card input[type="time"],
.f-card textarea {
  width: 100%;
  height: 2.25rem;
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  padding: 0.25rem 0.75rem;
  font: inherit;
  /* 16px, not the design's 14px: iOS Safari auto-zooms the page when a text
     input's font-size is under 16px on focus. Desktop restores 14px below. */
  font-size: 1rem;
  color: var(--foreground);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.f-card input::placeholder,
.f-card textarea::placeholder {
  color: var(--muted-foreground);
}

.f-card input:focus-visible,
.f-card textarea:focus-visible {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05), 0 0 0 1px var(--ring);
}

.f-card textarea {
  height: auto;
  min-height: 3.75rem;
  padding: 0.5rem 0.75rem;
  resize: vertical;
}

.f-submit {
  width: 100%;
  margin-top: 2.5rem;
  border: 0;
  cursor: pointer;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.f-submit:hover {
  opacity: 0.9;
}

.f-card .wpcf7-spinner {
  display: block;
  margin: 0.5rem auto 0;
}

.f-card .wpcf7-not-valid-tip {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--destructive);
}

.f-card .wpcf7-response-output {
  margin: 1.5rem 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.f-card .wpcf7-form.sent .wpcf7-response-output {
  border-color: var(--primary);
  color: var(--primary);
}

.f-card .wpcf7-form.invalid .wpcf7-response-output,
.f-card .wpcf7-form.failed .wpcf7-response-output {
  border-color: var(--destructive);
  color: var(--destructive);
}

@media (min-width: 640px) {
  .f-choices--2col .wpcf7-form-control {
    grid-template-columns: repeat(2, 1fr);
  }

  .f-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .f-card {
    padding: 2.5rem;
  }

  .f-card input[type="text"],
  .f-card input[type="email"],
  .f-card input[type="tel"],
  .f-card input[type="date"],
  .f-card input[type="time"],
  .f-card textarea {
    font-size: 0.875rem;
  }
}

/* ---------- 404 ---------- */

.error-page {
  padding-block: 8rem;
}

.error-page__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.error-page__code {
  margin: 1rem 0 0;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--primary);
}

.error-page__text {
  margin: 1rem 0 0;
  max-width: 28rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.error-page__cta {
  margin-top: 2rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--primary);
  color: var(--primary-foreground);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 4rem;
}

.site-footer__brand {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.28em;
}

.site-footer__tagline {
  margin: 1rem 0 0;
  max-width: 20rem;
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--primary-foreground) 80%, transparent);
}

.site-footer__social {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.site-footer__social a {
  transition: opacity 0.2s;
}

.site-footer__social a:hover {
  opacity: 0.7;
}

.site-footer__social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.site-footer__heading {
  margin: 0;
  color: color-mix(in oklab, var(--primary-foreground) 70%, transparent);
}

.site-footer__contact {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.site-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.site-footer__contact svg {
  margin-top: 0.125rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.site-footer__contact a {
  text-underline-offset: 4px;
}

.site-footer__contact a:hover {
  text-decoration: underline;
}

.site-footer__hours {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.site-footer__hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  padding-bottom: 0.5rem;
}

.site-footer__hours li span:first-child {
  color: color-mix(in oklab, var(--primary-foreground) 80%, transparent);
}

.site-footer__cta {
  margin-top: 1.5rem;
  display: inline-block;
  border-radius: 9999px;
  background: var(--sand);
  padding: 0.625rem 1.25rem;
  color: var(--sand-foreground);
}

.site-footer__bottom {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding-block: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: color-mix(in oklab, var(--primary-foreground) 60%, transparent);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
