* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  background-color: #fff;
}

html {
  scroll-behavior: smooth;
}

/*-------------------*/
/*NAVIGATION*/
/*-------------------*/

.logo {
  height: 108px;
  width: auto;
  display: block;
  object-fit: contain;

  margin-left: 12px;
  padding: 0;
}

nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-link {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.link {
  text-decoration: none;
  color: #3d3d3d;
  font-size: 18px;
  position: relative;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #b62f3b;
  transition: 0.3s;
}

.link:hover::after {
  width: 100%;
}

.link:hover {
  transition: 0.3s ease;
  transform: scale(1.04);
  color: #b62f3b;
}

.link-tjänst {
  margin-bottom: 24px;
}
#tjänster {
  scroll-margin-top: 120px; /* Anpassa efter navbarens höjd */
}
.dropdown {
  position: relative;
  display: inline-block;
  border-radius: 12px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  /*padding: 12px 16px;*/
  border-radius: 0 0 12px 12px;
  /*border: 1px solid rgba(182, 47, 59, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);*/
  z-index: 1001;
  white-space: nowrap;
  min-width: 220px;
  text-align: left;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dropdown:hover .dropdown-toggle::after,
.dropdown:focus-within .dropdown-toggle::after {
  width: 100%;
}

.dropdown:hover .dropdown-toggle,
.dropdown:focus-within .dropdown-toggle {
  color: #b62f3b;
}

.dropdown-item {
  color: #4e4e4e;
  font-size: 18px;
  text-decoration: none;
  padding: 4px 0;
  display: block;
}

.drop1 {
  margin-top: 12px;
}

.dropdown-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #b62f3b;
  transition: 0.3s;
}

.dropdown-item:hover {
  color: #b62f3b;
  transform: scale(1.04);
  transition: 0.3s ease;
}

.dropdown:hover > .dropdown-toggle {
  color: #b62f3b;
}

.button {
  border-radius: 12px;
  padding: 6px;
  padding-left: 16px;
  padding-right: 16px;
  background-color: #b62f3b;
  color: #fff;
  border: none;
  font-size: 18px;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.contact-btn {
  display: flex;
  flex-direction: row;
  justify-content: end;
  margin-right: 48px;
  text-decoration: none;
}

.button:hover {
  background-color: #a42a35;
  transition: transform 0.3s ease;
  transform: scale(1.04);
}

/*-------------------*/
/*HERO*/
/*-------------------*/

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-image {
  position: relative;
  width: 750px;
  height: 600px;
  overflow: hidden;
  border-radius: 16px;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-photo {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.hero-photo.active {
  opacity: 1;
  z-index: 2;
}

/*------------------

-*/

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-left: 108px;
  margin-right: 108px;
}

.left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text {
  font-size: 54px;
  font-weight: 600;
  color: #2b2b2b;
  line-height: 1.1;
  margin-bottom: 16px;
  line-height: 1.3;
}

.forstarad {
  color: #111;
  /* text-decoration: underline;
  text-decoration-color: #b62f3b;*/
  font-size: 1.3em;
}

.andrarad {
  color: #111;
  /*text-decoration: underline;
  text-decoration-color: #b62f3b;*/
  font-size: 1.3em;
}

.tredjerad {
  color: #b62f3b;
  text-decoration: none;
  text-decoration-color: #b62f3b;
  font-size: 1.3em;
}

.sub-text {
  font-size: 18px;
  line-height: 1.6;
  max-width: 420px;
}

.button-hero {
  display: inline-block;
  border-radius: 12px;
  padding: 14px 28px;
  background-color: #b62f3b;
  color: #fff;
  border: none;
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.button-hero:hover {
  background-color: #a42a35;
  transition: transform 0.3s ease;
  transform: scale(1.04);
}

.contact-btn-hero {
  align-self: flex-start;
  margin-right: 48px;
}
.bygg-btn {
  align-self: flex-end;
}
/*-------------------*/
/*FEATURES*/
/*-------------------*/

.features {
  margin-top: 54px;
}

.fastigheter,
.bygg {
  height: 400px;
  margin-left: 108px;
  margin-right: 108px;
  border-radius: 12px;
  margin-top: 108px;
  font-size: 18px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}

.bygg {
  margin-top: 90px;
}

.service {
  margin-bottom: 200px;
}

/*-------------------*/
/*FASTIGHETER*/
/*-------------------*/

.hero-fast {
  margin-bottom: 16px;
  font-size: 40px;
}

.text-fast {
  margin-bottom: 16px;
  line-height: 1.6;
}

.right-fast {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 16px;
  /*border: 4px solid #b62f3b;*/
  border-radius: 8px;
  max-width: 750px;
}

.left-fast {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
}

.carousel-frame {
  position: relative;
  display: inline-block;
  width: 500px;
}

.fastigheter-bild,
.bygg-bild-container {
  position: relative;
  width: 500px;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
}

.fast-bild,
.bygg-bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(100%);
  transition:
    transform 0.8s ease,
    opacity 0.8s ease;
  z-index: 1;
}

.fast-bild.active,
.bygg-bild.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.fast-bild.is-exiting,
.bygg-bild.is-exiting {
  opacity: 0;
  transform: translateX(-100%);
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
  align-items: center;
  pointer-events: auto;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background-color: #c8c8c8;
  padding: 0;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease;
  box-shadow: none;
}

.carousel-dot.active {
  background-color: #b62f3b;
  transform: scale(1.2);
}

.fast-icon {
  font-size: 24px;
  color: #fff;
  background-color: #b62f3b;
}

.fast {
  display: flex;
  align-items: center;
  justify-content: start;
  color: #fff;
  padding-bottom: 4px;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 4px;
  background-color: #b62f3b;
  border-radius: 32px;
  margin-bottom: 16px;
}

.heading-fast {
  color: #fff;
  padding-bottom: 8px;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 8px;
  background-color: #b62f3b;
}

.button-icon {
  font-size: 24px;
  color: #fff;
  background-color: #b62f3b;
}

.fast-btn {
  display: flex;
  align-items: center;
  justify-content: start;
}

.fast-btn:hover {
  background-color: #a42a35;
  transition: transform 0.3s ease;
  transform: scale(1.04);
}

.bygg {
  margin-bottom: 90px;
  margin-left: 108px;
  margin-right: 108px;
  border-radius: 12px;
  font-size: 18px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  width: 90%;
  max-width: 900px;

  background: white;
  padding: 25px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);

  z-index: 9999;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-buttons button {
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

#acceptCookies {
  background: #222;
  color: white;
}

#rejectCookies {
  background: #eee;
}

.fastighetsservice {
  margin-top: 36px;
  margin-bottom: 54px;
}

/*-------------------*/
/*FOOTER*/
/*-------------------*/

.footer-cl {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
  gap: 50px;
}

.logo-footer {
  height: auto;
  width: 240px;
  display: block;
  object-fit: contain;

  margin-left: 12px;
  padding: 0;
}

.link-foot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.footer-heading {
  font-size: 20px;
  font-weight: 700;
  color: #2b2b2b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.footer-link {
  text-decoration: none;
  color: #3d3d3d;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.link-te {
  color: #b62f3b;
  text-decoration: underline;
}

.footer-link:hover {
  transform: scale(1.089);
  color: #b62f3b;
}

.hero-footer {
  gap: 16px;
}

.footer-text {
  max-width: 280px;
  line-height: 1.6;
  color: #555;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-bottom {
  border-top: 1px solid #ddd;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  justify-self: center;
}

.social-icon {
  font-size: 24px;
  color: #b62f3b;
  transition: transform 0.3s ease;
}

.kontakt-icon {
  font-size: 18px;
  color: #b62f3b;
  transition: transform 0.3s ease;
}
