/* Footer Base Styles */
footer {
  background-color: #05143C;
  color: white;
  padding: 3rem 1.5rem;
  font-family: "MyFont", sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 0.8fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.footer-headline {
  grid-column: 2 / -1;
  text-align: left;
  align-self: start;
}

.footer-headline h2 {
  color: #cde2ee;
  font-weight: 600;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  margin: 0;
}

.footer-logo {
  align-self: start;
  min-width: 150px;
}

.footer-logo img {
  width: clamp(60px, 10vw, 70px);
  height: clamp(60px, 10vw, 70px);
}

.footer-section p {
  font-size: clamp(0.8rem, 3vw, 1rem);
  font-weight: 300;
  margin: 0.25rem 0;
  line-height: 1.4;
}

.footer-section a {
  display: block;
  font-size: clamp(0.8rem, 3vw, 1rem);
  font-weight: 300;
  margin-bottom: 0.3rem;
  text-decoration: none;
  line-height: 1.4;
  color: white;
}

.footer-legal .footer-contact .footer-trivest{
  justify-self: center;
  font-size: 1.1rem;
  
}


.footer-section .contact-link {
  color: #EB6432;
}

.footer-section .trivest-link {
  text-decoration: underline;
  color: white;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
}

.footer-bottom p {
  margin: 0;
}

/* Mobile layout */
@media (max-width: 768px) {

  footer {
    padding: 2rem 0.5rem;
  }

  .footer-container {
    position: relative;
    padding-right: 7%;
  }

  .footer-headline {
    margin-left: 0;
    align-self: start;
  }

  
  .footer-headline h2 {
    
    margin: 0;
  }
  
  .footer-logo {
    align-self: center;
    min-width: 50px;
  }
  
  
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 30px auto auto;
    grid-template-areas:
      "logo headline headline"
      "logo address legal"
      "logo contact 0";
    gap: clamp(0.5rem, 3vw, 1.5rem);
  }

  .footer-logo {
    grid-area: logo;
    align-self: start;
  }
  
  .footer-headline {
    grid-area: headline;
  }
  
  .footer-address {
    grid-area: address;
  }

  .footer-legal {
    grid-area: legal;
  }
  
  .footer-contact {
    grid-area: contact;
  }
  
  .footer-trivest {
    grid-area: contact;
    display: none;
  }
}

