body {
  margin: 0;
  font-family: 'Playfair Display', serif;
  background-color: #fff;
  color: #111;
  overflow-x: hidden;
}

/* Loader */
.loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }

.circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  position: absolute;
  opacity: 0.85;
  animation: rotate 2.5s linear infinite;
}
.circle1 { background-color: #0a1f1f; }
.circle2 { background-color: #6b4c7a; animation-direction: reverse; }

@keyframes rotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Header */
.site-header {
  text-align: center;
  padding: 4rem 1rem 2rem;
}
.site-title {
  font-size: 4rem;
  font-weight: 700;
  margin: 0;
}
.site-tagline {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.35rem;
  color: #666;
  margin-top: 0.7rem;
  letter-spacing: 0;
  line-height: 1.35;
}

/* Menu */
.menu-container {
  text-align: center;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.nav-menu li {
  margin: 0;
}

.nav-menu li a {
  display: inline-block;
  text-decoration: none;
  color: #111;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  padding: 1.6rem 2.8rem;
  background-color: #fff;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Hover (endast desktop) */
.nav-menu li a:hover {
  background-color: #0a1f1f;
  color: #fff;
}

.nav-menu li a.active {
  background-color: #fff;
  color: #111;
  font-weight: 400;
}

/* Mobile menu */
.menu-toggle { display: none; }

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    background-color: #0a1f1f;
    color: #fff;
    border: none;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
  }

  .navbar {
    display: none;
    background-color: #0a1f1f;
    width: 90%;
    max-width: 400px;
    margin: 0 auto 1rem auto;
    border-radius: 0 0 6px 6px;
  }

  .navbar.active { display: block; }

  .menu-container { border: none; }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  /* 🔧 Fix: ingen bakgrund alls för länkarna i mobilmenyn */
  .nav-menu li a {
    background-color: transparent !important;
    color: #fff !important;
    width: 100%;
    display: block;
    padding: 0.8rem 0;
  }

  /* 🔧 Ingen hoverfärg heller i mobilmenyn */
  .nav-menu li a:hover {
    background-color: transparent !important;
    color: #fff !important;
  }
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}
.carousel-track {
  display: flex;
  transition: transform 1.2s cubic-bezier(0.45, 0.05, 0.35, 1);
  gap: 0.5rem; /* Liten luft mellan bilder */
}
.slide {
  flex: 0 0 auto;
  width: 100%;
}
.slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 3px;
}

.slide-text {
  text-align: center;
  padding: 1.2rem 0;
}
.slide-text .category {
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05rem;
  color: #0a1f1f;
  margin-bottom: 0.6rem;
}
.slide-text h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #111;
  margin: 0.2rem 0 0.4rem;
}
.slide-text .date {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.05rem;
  color: #888;
  margin-top: 0.1rem;
}

@media (min-width: 1024px) { .slide { width: calc((100% / 3) - 0.33rem); } }
@media (min-width: 600px) and (max-width: 1023px) { .slide { width: calc(50% - 0.25rem); } }
@media (max-width: 599px) { .slide { width: 100%; } }

/* Carousel buttons */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.85);
  width: 3rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #111;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.4s ease, background-color 0.3s ease;
}
.carousel:hover .carousel-button { opacity: 1; }
.carousel-button.left { left: 0; }
.carousel-button.right { right: 0; }
.carousel-button:hover { background-color: rgba(255,255,255,0.95); }

/* Hero section */
.hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* Subpages */
.subpage { background-color: #fff; color: #222; }
.about-content, .contact-content {
  max-width: 850px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
}
.about-content img, .contact-content img {
  width: 60%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 2rem;
}
.about-text h2, .contact-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.about-text p, .contact-text p {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* Contact form */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto 0;
}
input, textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  border-radius: 4px;
}
button {
  background-color: #0a1f1f;
  color: #fff;
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
button:hover { background-color: #133030; }

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid #eee;
  background-color: #fafafa;
  color: #444;
}
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 1.5rem auto;
}
.social-icons svg:hover { fill: #0a1f1f; }