:root {
  --brown: #683C11;
  --blue: #009FE3;
  --orange: #E94E1B;
  --dark: #1a1a1a;
  --gray: #f5f5f5;
  --gray-mid: #666;
  --white: #fff;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--dark);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  color: var(--brown);
}

h3 {
  font-size: 1.25rem;
}

section {
  padding: 5rem 0;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: #c43e15;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(233, 78, 27, 0.35);
}

/* ── Header ──────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo {
  height: 36px;
  width: auto;
  display: block;
}

.logo-text {
  height: 30px;
}

.logo-hex {
  height: 36px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.site-nav a {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.25s;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

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

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

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Scroll-trigger animations ────────── */

[data-anim] {
  opacity: 0;
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-anim].is-visible {
  opacity: 1;
  transform: none;
}

[data-anim="fade-up"] {
  transform: translateY(40px);
}

[data-anim="fade-left"] {
  transform: translateX(-40px);
}

[data-anim="fade-right"] {
  transform: translateX(40px);
}

[data-anim="fade-in"] {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-anim] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Scroll-down indicator ──────────── */

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  position: relative;
}

.scroll-indicator span::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 999px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 18px; opacity: 0.3; }
}

/* ── Hero ──────────────────────────── */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  animation: heroZoom 8s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-title-anim {
  animation: fadeUp 0.8s ease-out both;
}

.hero-sub-anim {
  animation: fadeUp 0.8s 0.2s ease-out both;
}

.hero-btn-anim {
  animation: fadeUp 0.8s 0.4s ease-out both;
}

.hero-scroll-anim {
  animation: fadeUp 0.8s 0.7s ease-out both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ── Om mig ──────────────────────────── */

.om {
  background: var(--gray);
}

.om-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.om-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.om-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #333;
}

.om-text p:last-child {
  margin-bottom: 0;
}

/* ── Ydelser ──────────────────────────── */

.ydelser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.ydelse-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
  color: inherit;
  text-decoration: none;
}

.ydelse-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ydelse-img {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.ydelse-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.ydelse-card:hover .ydelse-img img {
  transform: scale(1.05);
}

.ydelse-card h3 {
  padding: 1.25rem 1.5rem 0;
  color: var(--brown);
}

.ydelse-card p {
  padding: 0.75rem 1.5rem 1.5rem;
  color: var(--gray-mid);
  font-size: 0.95rem;
}

/* ── Kontakt ──────────────────────────── */

.kontakt {
  background: var(--gray);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.kontakt-form h2 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.15);
}

.kontakt-info {
  background: var(--gray);
  padding: 2rem;
  border-radius: var(--radius);
}

.kontakt-info h3 {
  margin-bottom: 1.25rem;
  color: var(--brown);
}

.kontakt-info ul {
  list-style: none;
}

.kontakt-info li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.kontakt-info li:last-child {
  margin-bottom: 0;
}

.kontakt-info svg {
  flex-shrink: 0;
  color: var(--blue);
}

.kontakt-info a {
  color: var(--dark);
  font-size: 0.95rem;
}

.kontakt-info a:hover {
  color: var(--orange);
}

/* ── Footer ──────────────────────────── */

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-logo-part {
  display: block;
  width: auto;
}

.footer-logo-text {
  height: 20px;
  filter: brightness(0) invert(1);
}

.footer-logo-hex {
  height: 24px;
}

.site-footer p {
  font-size: 0.85rem;
}

/* ── Lightbox ──────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 6px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: none;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

/* ── Gallery pages ──────────────────────────── */

.gallery-hero {
  padding: 6rem 0 3rem;
  text-align: center;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--blue);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--orange);
}

.gallery-hero h1 {
  color: var(--brown);
  margin-bottom: 0.75rem;
}

.gallery-desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--gray-mid);
  font-size: 1.05rem;
  line-height: 1.6;
}

.gallery-page {
  padding: 2rem 0 5rem;
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-card-img {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-card:hover .gallery-card-img img {
  transform: scale(1.06);
}

.gallery-card-caption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--dark);
  font-weight: 500;
  text-align: center;
}

@media (max-width: 900px) {
  .gallery-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-hero {
    padding: 5rem 0 2rem;
  }

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

  .gallery-desc {
    font-size: 0.95rem;
  }
}

@media (max-width: 900px) {
  .om-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3.5rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .logo-wrap {
    flex-direction: column;
    gap: 0.2rem;
  }

  .logo-hex {
    order: -1;
  }

  .footer-logo-wrap {
    flex-direction: column;
    gap: 0.15rem;
  }

  .footer-logo-hex {
    order: -1;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    padding: 5rem 2rem 2rem;
    transition: right 0.35s ease;
  }

  .site-nav.active {
    right: 0;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .site-nav a {
    font-size: 1.1rem;
  }

  .hero {
    min-height: 100svh;
  }
}
