/* ===================================
   Footer
=================================== */

.site-footer{
  background: var(--c-gran);
  color: var(--c-cream);
  padding: var(--space-xl) 0;
}

.site-footer__top-rule,
.site-footer__mid-rule{
  height: 1px;
  width: 100%;
  background: var(--c-cream);
}

/* spacing mellan rule och innehåll */
.site-footer__top-rule{ margin-bottom: var(--space-lg); }
.site-footer__mid-rule{ margin: var(--space-lg) 0; }

/* GRID: högerkolumnens bredd styrs av dess innehåll (rubriken!) */
.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr 230px;
    gap: clamp(28px, 5vw, 84px);
    align-items: start;
    padding: 50px 0px;
}

/* LEFT */
.site-footer__logo{
  display: inline-flex;
  align-items: center;
  color: var(--c-cream);
  text-decoration: none;
  margin-bottom: var(--space-md);
}

.site-footer__logo svg, .site-footer__logo-img {
    display: block;
    width: 155px;
    height: auto;
}

.site-footer__info{
  display: grid;
  gap: 4px;
  margin-bottom: var(--space-md);
  max-width: 340px;
}

.site-footer__contact{
  display: grid;
  gap: 4px;
  margin-bottom: var(--space-md);
  max-width: 340px;
}

.site-footer__left {
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.site-footer__company {
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 0px;
}

.site-footer__line{
  font-size: 14px;
  line-height: 1.45;
  opacity: 1;
}

.site-footer__link {
    display: inline-block;
    color: var(--c-green_300);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.45;
    width: fit-content;
}
.site-footer__link:hover{ color: var(--c-cream); }

/* Social */
.site-footer__social {
    display: flex;
    gap: 17px;
    align-items: center;
    margin-top: 10px;
}

.site-footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--c-cream);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.4s all ease;
}
.site-footer__social-link:hover{
  background: var(--c-green_300);
}
.site-footer__social-icon {
    width: 22px;
    height: 22px;
    display: block;
    opacity: 1;
}

.site-footer__social-link {
  color: var(--c-gran);
}

.site-footer__social-link:hover {
  color: #fff;
}

.site-footer__social-icon * {
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* RIGHT */
.site-footer__right{
  display: grid;
  gap: 16px;
  justify-items: start; /* 🔑 menyer vänsterställda med rubriken */
  text-align: left;
}

.site-footer__right-title{
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.1;
  margin: 0;
}

.site-footer__menu-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.site-footer__menu-list a {
    color: var(--c-cream);
    text-decoration: none;
    font-family: var(--font-body);
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 14px;
    opacity: 1;
}

.site-footer__menu-list a:hover{
  color: var(--c-green_300);
}

/* BOTTOM */
.site-footer__bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer__copyright{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: 1;
}

.site-footer__bottom-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
  align-items: center;

  /* Vill du vänsterställa den med rubriken? 
     Då kan du istället placera bottom-nav i högerkolumnen.
     Men om du vill “vänster med rubriken” i samma visuella block:
     håll den här men låt den ligga kvar till höger i bottom-raden. */
}

.site-footer__bottom-list a{
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 12px;
}
.site-footer__bottom-list a:hover{
  color: var(--c-cream);
}

/* A11y helper */
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.site-footer__bottom-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
    margin-left: auto;
    max-width: 230px;
    width: 100%;
    justify-content: flex-start;
}

.site-footer__bottom-menu a{
  font-family: var(--font-body);
  font-size: 12px;
  opacity: 1;
  text-decoration: none;
}

/* TOP row (logo + slogan) */
.site-footer__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 60px);
    align-items: center;
    padding: 35px 0px 26px 0px;
}

.site-footer__slogan{
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  color: var(--c-cream);
  text-align: left; /* du ville linjera med menyn */
  white-space: normal;
}

.site-footer__slogan-highlight{
  color: var(--c-green_300);
}

/* Certifikat centrerat i bottom */
.site-footer__bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    padding: 35px 0px;
}

.site-footer__certs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 3vw, 47px);
}

.site-footer__cert {
    height: clamp(20px, 3vw, 40px);
    width: auto;
    display: block;
}

/* Mobil: stapla bottom */
@media (max-width: 900px){
  .site-footer__bottom{
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .site-footer__certs{
    justify-content: flex-start;
  }
  .site-footer__bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    display: flex;
    flex-direction: column-reverse;
}
.site-footer__bottom-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
    margin-left: inherit;
    max-width: none;
    width: 100%;
    justify-content: center;
}

.site-footer__cert {
    height: clamp(28px, 6vw, 38px);
    width: auto;
    display: block;
}

.site-footer__certs {
    display: flex;
    align-items:flex-start;
    justify-content: start;
    gap: clamp(20px, 6vw, 47px);
}

.site-footer__cert {
    height: clamp(35px, 9vw, 58px);
    width: auto;
    display: block;
}
}

/* Responsive */
@media (max-width: 900px){
  .site-footer__grid{
    grid-template-columns: 1fr; /* stack */
  }
}

@media (max-width: 600px){
.site-footer__top {
    flex-direction: column;
}
.site-footer__certs {
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
    width: 100%;
}
}