/* BASE STYLES (Mobile First) */
body {
  font-family: 'Libre Franklin', sans-serif;
  background-color: rgb(250, 250, 250);
  margin: 0;
  color: #555;
  min-height: 100vh;
}

main {
  width: 95%;
  min-height: 50vh;
  margin: 0 auto 3%;
}

/* --- Header ---- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgb(88, 122, 111);
}

.header-inner {
  display: flex;
  flex-direction: column;
}

.header-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
}

.logo-right {
  display: none;
}

img {
  margin: 1%;
  max-width: 100%;
  height: auto;
}

.img-wk {
  width: 40%;
}

/* --- Footer --- */
footer {
  background: rgb(88, 122, 111);
  color: white;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background-image: url("/resources/images/footer_Photo.webp");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

footer .container {
  position: relative;
  z-index: 2;
  padding-top: 150px;
}

.footer-columns {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 5% 0;
}

.footer-column {
  flex: 1;
  min-width: 100%;
}

.footer-column h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  border-bottom: 2px solid white;
  padding-bottom: 0.5rem;
}

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

.footer-column ul li {
  margin-bottom: 0.4rem;
}

.footer-column a {
  color: white;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.footer-bottom {
  font-size: 0.9rem;
  padding-top: 1rem;
}

/* --- Grid Layouts (Mobile: 1 column) --- */
.grid-ft-third,
.grid-sidenav,
.grid-shared,
.grid-equal,
.grid-third,
.grid-fours {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0 5%;
}

/* --- Utility Classes --- */
.leftFloat { float: left; }
.rightFloat { float: right; }

table {
  font-size: 0.875rem;
  border-spacing: 5px;
}

/* ===== DESKTOP STYLES (ab 1024px) ===== */
@media only screen and (min-width: 1024px) {
  header {
    height: 120px;
    padding: 0.3% 0 0.3%;
    overflow: hidden;
  }

  header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgb(88, 122, 111);
    z-index: -1;
    transition: height 0.3s ease, transform 0.3s ease;
  }

  .header-inner {
    height: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
  }

  .header-content {
    flex-direction: row;
    padding: 0 5%;
    margin-bottom: -15px;
  }

  .logo-right {
    display: block;
  }

  main {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto 1%;
  }

  footer {
    position: relative;
    overflow: hidden;
  }

  footer::before {
    height: 160px;
  }

  footer .container {
    padding-top: 150px;
  }

  .footer-columns {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin: 0 10%;
  }

  .footer-column {
    flex: 1;
    min-width: 200px;
  }

  .img-wk {
    width: 150px;
  }

  .logo-left img,
  .logo-right img {
    max-height: 80px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  /* --- Grid Layouts (Desktop) --- */
  .grid-ft-third {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-sidenav {
    grid-template-columns: minmax(200px, 20%) 1fr;
  }

  .grid-shared {
    grid-template-columns: 20% 78%;
    gap: 2%;
  }

  .grid-equal {
    grid-template-columns: repeat(2, 1fr);
    gap: 2%;
  }

  .grid-third {
    grid-template-columns: repeat(3, 1fr);
    gap: 3%;
  }

  .grid-fours {
    grid-template-columns: repeat(4, 1fr);
    gap: 2%;
  }
}

/* --- Header Shrink Effect --- */
header.shrink {
  height: 60px;
}

header.shrink::before {
  height: 100%;
  transform: scaleY(1);
}

header.shrink .logo-left img {
  max-height: 50px;
  transform: translateY(-5px);
}

header.shrink .logo-right img {
  max-height: 0;
  opacity: 0;
}

header.shrink .header-inner {
  padding: 5px 5%;
}

header.shrink nav {
  transform: translateY(-35px);
}
