/* ===== Globalt ===== */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f3f4f6;
  color: #1f2937;
  line-height: 1.;
}

/* ===== Header ===== */
header {
  background-color: #111827;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 180px; /* styr höjden så att logga och nav hamnar jämnt */
}

.site-logo {
  height: 140px;
  object-fit: contain;
  margin: 0;
  filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  mix-blend-mode: lighten;
  transition: none;
}

/* Navigering centrerad horisontellt & vertikalt */
nav {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #60a5fa;
}

.header-subtext {
  color: #d1d5db;
  font-size: 1.1rem;
  margin-top: 1rem;
  font-weight: 300;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: none;
  padding: 0;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  text-align: center;
  padding: 4rem 1rem;
  background: url('images/mlk.jpg') center/cover no-repeat;
  color: white;
  z-index: 1;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 2rem;
  background-color: #3b82f6; /* blå */
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-btn:hover {
  background-color: #2563eb; /* mörkare blå vid hover */
  transform: scale(1.05);
}

/* ===== Container ===== */
.container {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: auto;
}

.container h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* ===== Tjänster Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ===== Service Box ===== */
.service-box {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background-color: white;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.service-box:hover {
  transform: scale(1.03);
}

.service-box img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-box h3 {
  text-align: center;
  background: #f9fafb;
  margin: 0;
  padding: 1rem;
  font-size: 1.2rem;
}

.service-desc {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 24, 39, 0.95);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.5;
  transition: bottom 0.4s ease;
  box-sizing: border-box;
}

.service-box:hover .service-desc {
  bottom: 0;
}

.service-desc p {
  margin-bottom: 0.8rem;
}

.service-desc .price {
  font-weight: bold;
  color: #60a5fa;
}

/* ===== Footer ===== */
.custom-footer {
  background: linear-gradient(rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.95)), url('images/footer-bg.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 4rem 1rem;
  font-family: 'Segoe UI', sans-serif;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-column {
  flex: 1 1 300px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.footer-column:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.footer-column h3,
.footer-column h4 {
  margin-top: 0;
  font-weight: 600;
}

.footer-column p {
  margin: 0.5rem 0;
}

/* Ikonlänkar */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  color: #f9fafb;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.social-link i {
  font-size: 1.2rem;
  color: #e1306c;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover i {
  transform: scale(1.2);
  color: #ff4c94;
}

.social-link:hover {
  color: #ff4c94;
  text-decoration: underline;
}

/* Google Maps ikonen */
.social-link.maps i {
  color: #34a853;
}

.social-link.maps:hover i {
  color: #7fd978;
}

/* ===== Formulär Sektion ===== */
.form-section {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem;
  background: transparent;
  box-shadow: none;
  border-radius: 10px;
}

.form-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #111827;
}

.form-group {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.form-group i {
  margin-right: 0.8rem;
  color: #6b7280;
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.form-group input,
.form-group select {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  outline: none;
  color: #111827;
}

/* ===== Knapp ===== */
.submit-btn {
  display: block;
  width: 100%;
  background-color: #111827;
  color: white;
  padding: 0.9rem;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.submit-btn:hover {
  background-color: #374151;
}

/* ===== Feedback ===== */
.success {
  color: green;
  text-align: center;
  margin-top: 1rem;
}

.error {
  color: red;
  text-align: center;
  margin-top: 1rem;
}

/* ===== Hero Small ===== */
.hero-small {
  padding: 6rem 1rem;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('images/bokahero.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
}

.hero-small h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-small p {
  font-size: 1.1rem;
  color: #f3f4f6;
}

/* ===== Footer Ikon Animation ===== */
.insta-link i {
  transition: transform 0.3s ease;
}

.insta-link:hover i {
  transform: scale(1.2) rotate(-5deg);
  color: #e1306c;
}

/* ===== Google Maps Länk ===== */
.map-link {
  display: inline-block;
  margin-top: 1rem;
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
}

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

/* ===== Responsivt ===== */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .social-link {
    justify-content: center;
  }
}
.copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #d1d5db;
  font-weight: 400;
}
.price {
  display: block;
  margin-top: 5px;
  font-weight: bold;
}
.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  background-color: #2563eb; /* blå */
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tag .remove-tag {
  cursor: pointer;
  background: transparent;
  border: none;
  color: white;
  font-weight: bold;
}
.dropdown-wrapper {
  position: relative;
}

.dropdown-toggle {
  background-color: #f3f4f6;
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  color: #111827;
}

.dropdown-menu {
  position: absolute;
  top: 105%;
  left: 0;
  z-index: 1000;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: max-content;
  display: none;
}

.dropdown-menu li {
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-menu li:hover {
  background-color: #f3f4f6;
}

/* Visa meny när wrapper har klass "open" */
.dropdown-wrapper.open .dropdown-menu {
  display: block;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .social-link {
    justify-content: center;
  }

  /* ===== Nytt för header och meny ===== */
  header {
    flex-direction: column;  /* logga och nav staplas */
    align-items: center;
    height: auto;           /* ta bort fast höjd */
    padding: 1rem;
  }

  .site-logo {
    height: 100px;           /* mindre logga på mobil */
  }

  nav {
    position: static;       /* ta bort absolute */
    transform: none;
    margin-top: 1rem;
  }

  nav ul {
    flex-direction: column; /* menyposter vertikalt */
    gap: 0.5rem;
    align-items: center;
  }
}
