* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  background-color: #fff;
}
html {
  scroll-behavior: smooth;
}

#fastigheter {
  scroll-margin-top: 100px; /* Anpassa efter navbarens höjd */
}

body {
  overflow-x: hidden;
}

/*-------------------*/
/*NAVIGATION*/
/*-------------------*/

/*-------------------*/
/*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-fastigheter {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  margin-bottom: 150px;
  margin-top: 50px;
}

.left {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 8px;
  margin-left: 108px;
}

.right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-photo {
  position: relative;
  width: 750;
  height: 700px;

  overflow: hidden;
  border-radius: 16px 0 0 16px;
}

.hero-image {
  transform: translateX(80px);
  overflow: hidden;
}

.heading {
  font-size: 54px;
  margin-top: 8px;
}

.framtiden {
  font-size: 54px;
  color: #b62f3b;
}

.under-heading {
  display: flex;
  flex-direction: row;
  gap: 3px;

  font-size: 18px;
  margin-bottom: 18px;
}

.under-heading1 {
  color: #585858;
}

.under-heading2 {
  color: #b62f3b;
  font-weight: 600;
}
.hero-text-fastigheter {
  min-width: 600px;
  font-size: 18px;
  line-height: 1.6;
}

.hero-line {
  width: 460px;
  height: 3px;
  background: #b62f3b;
  margin-bottom: 25px;
}

.hero-button {
  border-radius: 12px;
  padding: 12px;
  padding-left: 24px;
  padding-right: 24px;
  background-color: #b62f3b;
  color: #fff;
  border: none;
  font-size: 18px;
  transition: transform 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
}

.hero-button:hover {
  transform: scale(1.089);
}

.hero-icon {
  font-size: 24px;
  background-color: #b62f3b;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.recension {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
  margin-top: 36px;
  background-color: #fafafa;
}

.card-line {
  width: 3px;
  height: 125px;
  background-color: #e7e7e7;
  border-radius: 12px;
}

.rec-text {
  align-self: center;
  justify-self: center;
  text-align: center;
  color: #3d3d3d;
  min-width: 200px;
}

.rec-icon {
  font-size: 36px;
  color: #b62f3b;
}

.rec-heading {
  font-size: 18px;
  font-weight: 500;
  color: #020202;
}

.line {
  height: 3px;
  width: 40px;
  background-color: #b62f3b;
}

/*-------------------*/
/*Tjänster*/
/*-------------------*/

.hero-tjänster {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  gap: 18px;
  margin-bottom: 24px;
}

.heading-tjänster {
  font-size: 54px;
  color: #111;
}

.under-tjänster {
  color: #b62f3b;
  font-weight: 600;
  font-size: 18px;
}

.text-tjänster {
  font-size: 18px;
  max-width: 400px;
  color: #4e4e4e;
}

.tjänst-card {
  background: white;
  border: 1px solid #ececec;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
  transition: 0.35s;

  padding: 18px;
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  background-color: #fafafa;
  min-height: 480px;
}

.tjänst-card:hover {
  transform: translateY(-8px);
  border-color: #b52d35;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.tjänst-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-left: 108px;
  margin-right: 108px;
  margin-bottom: 108px;
}

.tjänst-icon {
  font-size: 72px;
  color: #b62f3b;
  padding: 24px;
  background-color: #f8eaeb;
  border-radius: 50%;
  margin-bottom: 16px;
}

.tj-line {
  background-color: #b62f3b;
  width: 60px;
  height: 4px;
  border-radius: 20px;
}
.tjänst-card:hover .tj-line {
  width: 120px;
  transition: 0.35s;
}

.tjänst-card:hover .tjänst-icon {
  transform: scale(1.08);
  transition: 0.35s;
}

.tjtext {
  font-size: 18px;
  margin-bottom: 32px;
  color: #4e4e4e;
  max-width: 320px;
  line-height: 1.6;
  background-color: #fafafa;
}

.tjhead {
  font-size: 24px;
  color: #111;
  background-color: #fafafa;
  font-weight: 600;
}

/*-------------------*/
/*BOENDE SEKTION*/
/*-------------------*/

.boende {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-areas: "image text";
  margin-bottom: 150px;
  margin-top: 50px;
}

.boende-left {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 8px;
  margin-right: 108px;
  margin-left: 108px;
  grid-area: text;
}

.mar {
  text-decoration: underline;
  color: #b62f3b;
  font-size: 16px;
}

.right-bo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-area: image;
}

.lght17 {
  color: #b62f3b;
  font-size: 24px;
  font-weight: 600;
}

.hero-photo-bo {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 600px;

  border-radius: 0 16px 16px 0;
}

.hero-image-bo {
  position: relative;
  overflow: hidden;
  /* ensure the container keeps the intended height when slides are absolutely positioned */
  min-height: 600px;
}

.boende-btn {
  margin-top: 48px;
}

.hero-text-bygg-bo {
  font-size: 16px;
  color: #4e4e4e;
  margin-top: 24px;
}
.ledig {
  font-size: 18px;
  color: #4e4e4e;
  line-height: 1.4;
  background-color: #fafafa;
}

.lmar {
  margin-top: 12px;
}

.ledig-btn {
  align-self: flex-start;
}

/* stack slides on top of each other and animate them */
.hero-image-bo .hero-photo-bo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 16px 16px 0;
  opacity: 0;
  transform: translateX(80px);
  transition:
    transform 0.8s cubic-bezier(0.22, 0.9, 0.35, 1),
    opacity 0.8s ease;
  will-change: transform, opacity;
}

/* visible slide (enters from the right) */
.hero-image-bo .hero-photo-bo.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

/* exiting slide (slides slightly left and fades out) */
.hero-image-bo .hero-photo-bo.is-exiting {
  opacity: 0;
  transform: translateX(-40px);
  z-index: 1;
}

/* simple dot controls placed over the images */
.carousel-frame {
  position: relative;
  max-width: 100%;
}
.carousel-dots {
  /* dots hidden as requested */
  display: none !important;
  position: absolute;
  bottom: 12px;
  left: 12px;
  gap: 8px;
  z-index: 5;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.carousel-dot.active {
  background: #b62f3b;
  transform: scale(1.2);
}

/* left column slide-in animation */
.boende-left {
  transform: translateX(-60px);
  opacity: 0;
  transition:
    transform 0.8s cubic-bezier(0.22, 0.9, 0.35, 1),
    opacity 0.8s ease;
}
.boende-left.visible {
  transform: translateX(0);
  opacity: 1;
}

.heading-bo {
  font-size: 54px;
  margin-top: 8px;
}

.framtiden-bo {
  font-size: 54px;
  color: #b62f3b;
}

.under-heading-bo {
  display: flex;
  flex-direction: row;
  gap: 3px;

  font-size: 18px;
  margin-bottom: 18px;
}

.under-heading1-bo {
  color: #585858;
}

.under-heading2-bo {
  color: #b62f3b;
  font-weight: 600;
}
.hero-text-bygg-bo {
  min-width: 600px;
  font-size: 18px;
  line-height: 1.6;
}

.hero-line-bo {
  width: 460px;
  height: 3px;
  background: #b62f3b;
  margin-bottom: 25px;
}

.hero-button-bo {
  border-radius: 8px;
  padding: 12px;
  padding-left: 24px;
  padding-right: 24px;
  background-color: #b62f3b;
  color: #fff;
  border: none;
  font-size: 18px;
  transition: transform 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.ledig-btn {
  border-radius: 8px;
  padding: 12px;
  padding-left: 24px;
  padding-right: 24px;
  background-color: #b62f3b;
  color: #fff;
  border: none;
  font-size: 18px;
  transition: transform 0.3s ease;
  text-decoration: none;
  margin-top: 24px;
  max-width: 309px;
}

.ledig {
  font-size: 16px;
}

.näsby-btn {
  margin-top: 84px;
  max-width: 309px;
}

.buttons-bo {
  background-color: #fafafa;
}

.projekt-button-bo {
  font-size: 16px;
  border: none;
  align-self: center;
  transition: transform 0.3s ease;
}

.projekt-button-bo:hover {
  transform: scale(1.089);
  color: #b62f3b;
}

.hero-button-bo:hover {
  transform: scale(1.089);
}

.hero-icon-bo {
  font-size: 24px;
  background-color: #b62f3b;
}

.card-bo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.recension-bo {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
  margin-top: 36px;
  background-color: #fafafa;
}

.card-line-bo {
  width: 3px;
  height: 125px;
  background-color: #e7e7e7;
  border-radius: 12px;
}

.rec-text-bo {
  align-self: center;
  justify-self: center;
  text-align: center;
  color: #3d3d3d;
  min-width: 200px;
}

.rec-icon-bo {
  font-size: 36px;
  color: #b62f3b;
}

.rec-heading-bo {
  font-size: 18px;
  font-weight: 500;
  color: #020202;
}

.line-bo {
  height: 3px;
  width: 40px;
  background-color: #b62f3b;
}

/*-------------------*/
/*Projekt- SEKTION*/
/*-------------------*/

.projekt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-left: 108px;
  margin-right: 108px;
  margin-bottom: 108px;
  margin-top: 18px;
}

.bio-projekt {
  margin-left: 36px;
  margin-right: 36px;
  margin-top: 36px;
  margin-bottom: 36px;
  background-color: #fafafa;
}

.design-projekt {
  background: white;
  border: 1px solid #ececec;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
  transition: 0.35s;
  min-height: 500px;
  background-color: #fafafa;
}

.design-projekt:hover {
  transform: translateY(-8px);
  border-color: #b52d35;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.projekt-foto-left,
.projekt-foto-right {
  position: relative;
  width: 100%;
  height: 236px;
  object-fit: cover;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.projekt-image {
  position: relative;
  overflow: hidden;
}

.projekt-underhead {
  background-color: #fafafa;
}

.projekt-head {
  background-color: #fafafa;
}

.over-icon1,
.over-icon2 {
  font-size: 18px;
  margin-right: 8px;
}

.projekt-head {
  font-size: 28px;
  margin-bottom: 8px;
  font-weight: 600;
}

.projekt-underhead {
  font-size: 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  color: #4e4e4e;
}

.heading-projekt {
  text-align: center;
  margin-bottom: 18px;
  font-size: 48px;
}
.underheading-projekt {
  text-align: center;
  color: #b62f3b;
  font-size: 18px;
  margin-bottom: 18px;
  font-weight: 600;
}

.text-projekt {
  text-align: center;
  color: #4e4e4e;
  font-size: 18px;
  margin-bottom: 36px;
}

.projekt-line {
  height: 2px;
  width: 100%;
  background-color: #a7a7a7;
  justify-self: center;
  margin-bottom: 18px;
}

.heading-how {
  text-align: center;
  font-size: 48px;
  margin-bottom: 32px;
  color: #111;
}

/*-------------------*/
/*how it works- SEKTION*/
/*-------------------*/

.hero-process {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.under-head {
  font-size: 18px;
  color: #b62f3b;
}

.text-projekt {
  color: #4e4e4e;
}

.heading-how {
  margin-bottom: none;
}

.how-it-works {
  margin-left: 108px;
  margin-right: 108px;
  margin-top: 36px;
  margin-bottom: 108px;
}

.how-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 32px;
  margin-left: 108px;
  margin-right: 108px;
}

.how-steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  transform: translateY(-50%);
  height: 2px;
  background: #b62f3b;
  z-index: 1;
}

.process-icon {
  font-size: 28px;
}

.how-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  width: 100%;
  max-width: 50px;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid #b62f3b;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
  background-color: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.timeline {
  margin-top: 25px;
  width: 100%;
  background-color: #fafafa;
}
/* datum */
.timeline-header {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin-top: 36px;
  margin-bottom: 10px;
  background-color: #fafafa;
}

.timeline-header span {
  background-color: #fafafa;
}

/* hela linjen */
.timeline-bar {
  height: 8px;
  width: 100%;
  background-color: #444;
  border-radius: 10px;
  overflow: hidden;
}

/* färgad del */
.timeline-progress1 {
  height: 100%;
  width: 100%; /* hur långt projektet kommit */
  background-color: #b62f3b;
  border-radius: 10px;
}

.timeline-progress2 {
  height: 100%;
  width: 50%; /* hur långt projektet kommit */
  background-color: #b62f3b;
  border-radius: 10px;
}

/*process card*/
.process-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  text-align: start;
  background: white;
  border: 1px solid #ececec;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
  transition: 0.35s;

  padding: 24px;

  display: flex;
  flex-direction: column;

  background-color: #fafafa;
  min-width: 300px;
  max-width: 300px;

  min-height: 382.2px;
}

.process-card:hover {
  transform: translateY(-8px);
  border-color: #b52d35;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.process-line {
  height: 3px;
  width: 50px;
  background-color: #b62f3b;
  margin-bottom: 24px;
  background-color: #fafafa;
}

.process-card p {
  color: #4e4e4e;
  margin-bottom: 32px;
  background-color: #fafafa;
  line-height: 1.3;
}

.process-card h3 {
  font-size: 72px;
  color: #e6e6e6;
  background-color: #fafafa;
}

.process-card h1 {
  font-size: 16px;
  color: #b62f3b;
  background-color: #fafafa;
}

.process-card h2 {
  background-color: #fafafa;
  font-size: 22px;
}

/*-------------------*/
/*CTA*/
/*-------------------*/

.cta {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-left: 108px;
  margin-right: 108px;
  background-color: #a42a35;
  padding: 72px;
  border-radius: 8px;
}

.cta h3 {
  font-size: 48px;
  background-color: #a42a35;
}

.text-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #a42a35;
  color: #fff;
}

.cta p {
  font-size: 18px;
  color: #4e4e4e;
  background-color: #a42a35;
  color: #fff;
}

.cta-line {
  height: 1px;
  width: 100%;
  background-color: #bd444f;
  margin-top: 48px;
  margin-bottom: 48px;
}

.cta button {
  align-self: center;
  margin-bottom: 25px;
  border: 2px solid #fff;
}
/*-------------------*/
/*FOOTER*/
/*-------------------*/

footer {
  margin-top: 108px;
}

.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;
}
