/* ============================================================
   Footer Styles
   Extracted from product-page/css/style.css
   ============================================================ */

/* Footer Base Styles */
footer {
  background-color: #000;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  font-family: 'Inter', -apple-system, sans-serif;
}
footer * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
footer a {
  text-decoration: none;
  color: #fff;
}

/* Footer Container */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

/* Footer Main Row */
.footer-main-row {
  display: flex;
}

.footer-main-text {
  width: 50%;
}

/* Footer Sections */
.footer-sections {
  flex: 1;
  display: flex;
  justify-content: space-evenly;
}

/* Footer Columns */
.footer-col-group {
  display: contents; /* invisible to flex on desktop — children flow as direct items */
}

.footer-column {
  margin-bottom: 40px;
}

.footer-column h4, .footer-column .footer-column-title {
  font-size: 16px;
  margin-bottom: 15px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 14px;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

/* Follow Us / Social Icons */
.follow-us .social-icons a {
  margin-right: 15px;
}

.follow-us .social-icons {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
}

.follow-us .social-icons svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #444;
  padding-top: 20px;
}

.footer-logo img {
  width: 150px;
}

/* Footer Links */
.footer-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #fff;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Footer Copyright */
.footer-copyright {
  margin-top: 20px;
  font-size: 12px;
  color: #aaa;
}

/* ============================================================
   Footer Responsive Styles
   ============================================================ */

@media only screen and (max-width: 767px) {
  .footer-main-row {
    flex-direction: column;
  }
  .footer-main-text {
    width: 100%;
    margin-bottom: 50px;
  }
  .footer-sections {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 10%;
  }
  .footer-column {
    width: 45%;
    text-align: left;
  }
  /* Stack Raizemore + Företag in one left column */
  .footer-col-group {
    display: flex;
    flex-direction: column;
    width: 45%;
    margin-bottom: 40px;
  }
  .footer-col-group .footer-column {
    width: 100%;
    margin-bottom: 0;
  }
  .footer-col-group .footer-column:first-child {
    margin-bottom: 28px;
  }
}

/* #1552 (spec section 8, the mockup's marked footer fix): under 369 px the logo and the two links
   in the last row did not fit on one row, and the whole page could be scrolled sideways. The links
   wrap under the logo. Shared by every page, so it ships with the next footer CSS cut. */
@media only screen and (max-width: 368px) {
  .footer-bottom { flex-wrap: wrap; row-gap: 14px; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
  .footer-links a { margin-left: 0; }
}
