:root {
  --bg-1: #0d2a0d;
  --bg-2: #071508;
  --gold: #d4af37;
  --gold-soft: #c9a227;
  --text-main: #e8dfc0;
  --text-soft: #a8c192;
  --surface: rgba(10, 26, 10, 0.9);
  --surface-strong: rgba(7, 18, 7, 0.88);
  --border: rgba(201, 162, 39, 0.32);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", sans-serif;
  min-height: 100vh;
  color: var(--text-main);
  overflow-x: hidden;
  background: linear-gradient(160deg, var(--bg-1) 0%, #0a1f0a 50%, var(--bg-2) 100%);
}

body.lightbox-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 48%, rgba(42, 94, 42, 0.35) 0%, transparent 58%),
    radial-gradient(ellipse at 78% 18%, rgba(24, 66, 24, 0.4) 0%, transparent 56%),
    radial-gradient(ellipse at 65% 80%, rgba(8, 35, 8, 0.52) 0%, transparent 52%);
  z-index: -2;
}

.sparkles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, #f4e37f 0%, var(--gold-soft) 60%, transparent 100%);
  animation: twinkle var(--dur, 4s) var(--delay, 0s) infinite ease-in-out;
  opacity: 0;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.3);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  background: var(--surface-strong);
  border-bottom: 1px solid rgba(201, 162, 39, 0.22);
  backdrop-filter: blur(10px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--gold);
  transition: transform 200ms ease, opacity 200ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.logo {
  font-family: "Dancing Script", cursive;
  font-size: 1.8rem;
  color: var(--gold);
  line-height: 1.05;
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.4);
}

.logo span {
  display: block;
  margin-top: 2px;
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #9e7f3d;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  color: #c8d8b0;
  position: relative;
  transition: color 220ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 240ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--gold);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  width: 100%;
}

.site-nav.is-open {
  display: flex;
}

main {
  width: min(1300px, 100% - 32px);
  margin-inline: auto;
}

section {
  padding: 72px 0 22px;
}

.hero-section {
  text-align: center;
}

.hero-title {
  font-family: "Cinzel Decorative", cursive;
  font-size: clamp(2.1rem, 4.8vw, 3.9rem);
  color: var(--gold);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.35), 0 1px 4px rgba(0, 0, 0, 0.7);
}

.section-title {
  text-align: center;
  font-family: "Cinzel Decorative", cursive;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--gold);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.28);
}

.gold-divider {
  margin: 14px auto 0;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 3px;
  font-size: 0.82rem;
  color: var(--gold-soft);
  text-align: center;
}

.gold-divider::before,
.gold-divider::after {
  content: "";
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.hero-carousel-wrap {
  position: relative;
  margin: 40px auto 18px;
  overflow: hidden;
  border-radius: 8px;
}

.hero-carousel {
  display: flex;
  transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  min-width: 100%;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  height: 500px;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.78) saturate(1.2);
}

.hero-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 28px 22px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  font-family: "Cinzel", serif;
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 1.1rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.5);
  background: rgba(0, 0, 0, 0.52);
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 200ms ease, border-color 200ms ease;
  z-index: 2;
}

.carousel-btn.prev {
  left: 12px;
}

.carousel-btn.next {
  right: 12px;
}

.carousel-btn:hover {
  background: rgba(201, 162, 39, 0.25);
  border-color: var(--gold);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.7);
  background: rgba(201, 162, 39, 0.25);
  transition: transform 220ms ease, background 220ms ease;
  cursor: pointer;
}

.dot.active {
  transform: scale(1.25);
  background: var(--gold);
}

.gallery-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.art-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(15, 40, 15, 0.95) 0%, rgba(8, 25, 8, 0.98) 100%);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.art-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 24px rgba(201, 162, 39, 0.16);
  border-color: rgba(201, 162, 39, 0.68);
}

.art-image-button {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
}

.art-image-button::after {
  content: "Trykk for stor visning";
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-main);
  letter-spacing: 1px;
  font-size: 0.72rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.art-card:hover .art-image-button::after,
.art-image-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.art-image-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.art-card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  display: block;
  padding: 12px;
  background: rgba(5, 14, 5, 0.72);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 3, 0.86);
  backdrop-filter: blur(10px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  padding: 24px;
  border: 1px solid rgba(201, 162, 39, 0.34);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(14, 35, 14, 0.95) 0%, rgba(6, 16, 6, 0.98) 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.lightbox-figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 24px;
}

.lightbox-image {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(4, 12, 4, 0.72);
}

.lightbox-caption {
  display: grid;
  gap: 12px;
}

.lightbox-title {
  font-family: "Cinzel", serif;
  color: var(--gold);
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.lightbox-description {
  color: var(--text-soft);
  line-height: 1.7;
}

.lightbox-price {
  font-family: "Cinzel", serif;
  color: var(--text-main);
  font-size: 1.1rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(201, 162, 39, 0.42);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--gold);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(201, 162, 39, 0.2);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.lightbox-close {
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
}

.lightbox-nav {
  top: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.5rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: -22px;
}

.lightbox-next {
  right: -22px;
}

.card-body {
  padding: 18px 18px 22px;
  text-align: center;
}

.card-title {
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 8px;
}

.card-desc {
  color: var(--text-soft);
  line-height: 1.56;
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.card-price {
  color: var(--text-main);
  margin-bottom: 14px;
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
}

.card-price span {
  color: var(--gold);
}

.card-contact,
.kontakt-email {
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  color: #0d2a0d;
  background: linear-gradient(135deg, #c9a227, #e8c84a, #a87c1a);
  padding: 10px 24px;
  border-radius: 4px;
  transition: opacity 220ms ease, box-shadow 220ms ease;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.3);
}

.card-contact:hover,
.kontakt-email:hover {
  opacity: 0.86;
  box-shadow: 0 8px 22px rgba(201, 162, 39, 0.45);
}

.about-section,
.contact-section {
  width: min(780px, 100%);
  margin-inline: auto;
  text-align: center;
}

.om-meg-text {
  margin-top: 28px;
  line-height: 1.85;
  color: #afc690;
  font-size: 0.98rem;
}

.om-meg-text strong {
  color: var(--gold);
}

.kontakt-box {
  margin-top: 30px;
  padding: 38px 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(15, 40, 15, 0.9) 0%, rgba(8, 25, 8, 0.95) 100%);
}

.kontakt-box p {
  color: #a3be86;
  line-height: 1.8;
  margin-bottom: 20px;
}

.contact-note {
  margin-top: 20px;
  font-size: 0.84rem;
  color: rgba(163, 190, 134, 0.75);
}

.site-footer {
  margin-top: 34px;
  text-align: center;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  padding: 28px 20px;
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: rgba(170, 139, 66, 0.78);
}

@media (max-width: 960px) {
  .site-header {
    padding: 14px 18px;
    gap: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(201, 162, 39, 0.16);
    border-radius: 14px;
    background: rgba(6, 14, 6, 0.86);
  }

  .site-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
  }

  .site-nav a::after {
    display: none;
  }

  main {
    width: min(100% - 24px, 900px);
  }

  section {
    padding: 54px 0 18px;
  }

  .hero-carousel-wrap {
    margin-top: 28px;
  }

  .hero-slide {
    height: 360px;
  }

  .hero-slide-caption {
    padding: 22px 18px 16px;
    font-size: 0.98rem;
  }

  .lightbox-dialog {
    width: min(100%, 880px);
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }
}

@media (max-width: 800px) {
  .logo {
    max-width: calc(100% - 64px);
    font-size: 1.45rem;
  }

  .logo span {
    font-size: 0.56rem;
    letter-spacing: 2.6px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .hero-slide {
    height: 300px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .kontakt-box {
    padding: 28px 20px;
  }

  .gold-divider::before,
  .gold-divider::after {
    width: 42px;
  }

  .gold-divider {
    max-width: 100%;
    padding-inline: 10px;
    letter-spacing: 1.6px;
    font-size: 0.74rem;
    line-height: 1.5;
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .art-card img {
    height: 280px;
  }

  .card-body {
    padding: 16px;
  }

  .card-contact,
  .kontakt-email {
    width: 100%;
    text-align: center;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-dialog {
    padding: 18px;
  }

  .lightbox-figure {
    grid-template-columns: 1fr;
  }

  .lightbox-image {
    max-height: 58vh;
  }

  .lightbox-caption {
    gap: 10px;
  }

  .lightbox-title {
    font-size: 1.2rem;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-prev {
    left: 18px;
  }

  .lightbox-next {
    right: 18px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding: 12px 12px 14px;
  }

  main {
    width: calc(100% - 16px);
  }

  section {
    padding: 42px 0 14px;
  }

  .hero-slide {
    height: 240px;
  }

  .hero-slide-caption {
    font-size: 0.84rem;
    letter-spacing: 1px;
  }

  .carousel-btn.prev {
    left: 8px;
  }

  .carousel-btn.next {
    right: 8px;
  }

  .art-card img {
    height: 220px;
    padding: 10px;
  }

  .art-image-button::after {
    right: 10px;
    bottom: 10px;
    opacity: 1;
    transform: none;
    font-size: 0.66rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-desc,
  .kontakt-box p,
  .om-meg-text {
    font-size: 0.92rem;
  }

  .site-footer {
    padding: 22px 14px;
    font-size: 0.68rem;
    letter-spacing: 1px;
    line-height: 1.6;
  }

  .lightbox-dialog {
    padding: 14px 14px 72px;
    border-radius: 14px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
    bottom: 12px;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }
}
