@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

:root {
  color-scheme: dark;
  font-family: "Poppins", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: #07182c;
}

.hbl-cover {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background-color: #0b203a;
  background-image: url("../../images/hero-humber-institucional.jpg");
  background-position: center center;
  background-size: cover;
  color: #fff;
}

.hbl-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(4 20 39 / 82%) 0%, rgb(4 20 39 / 50%) 45%, rgb(4 20 39 / 24%) 100%),
    linear-gradient(180deg, rgb(4 20 39 / 38%) 0%, transparent 45%, rgb(2 12 23 / 62%) 100%);
}

.hbl-brand {
  position: absolute;
  top: clamp(34px, 6vw, 76px);
  left: clamp(28px, 5vw, 82px);
  width: clamp(210px, 18vw, 305px);
  line-height: 0;
}

.hbl-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.hbl-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.26fr);
  gap: clamp(50px, 10vw, 180px);
  align-items: center;
  width: min(100% - 10vw, 1600px);
  margin: auto;
  padding-top: 11vh;
}

.hbl-content h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 3.1vw, 52px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgb(0 0 0 / 28%);
}

.hbl-nav {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 26px;
}

.hbl-nav a {
  position: relative;
  color: rgb(255 255 255 / 92%);
  font-size: clamp(17px, 1.35vw, 24px);
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
  text-shadow: 0 2px 16px rgb(0 0 0 / 30%);
  transition: color 180ms ease, transform 180ms ease;
}

.hbl-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: #f7ad22;
  content: "";
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 180ms ease, transform 180ms ease;
}

.hbl-nav a:hover,
.hbl-nav a:focus-visible,
.hbl-nav a.is-active {
  color: #fff;
  font-weight: 600;
}

.hbl-nav a:hover,
.hbl-nav a:focus-visible {
  transform: translateX(4px);
}

.hbl-nav a:hover::after,
.hbl-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.hbl-nav a:focus-visible,
.hbl-brand:focus-visible {
  border-radius: 4px;
  outline: 3px solid #f7ad22;
  outline-offset: 6px;
}

@media (max-width: 820px) {
  .hbl-cover {
    background-position: 48% center;
  }

  .hbl-content {
    grid-template-columns: 1fr;
    gap: 48px;
    align-content: center;
    width: auto;
    margin: 0 clamp(26px, 7vw, 58px);
    padding: 19vh 0 8vh;
  }

  .hbl-content h1 {
    max-width: 720px;
  }

  .hbl-nav {
    gap: 20px;
  }

  .hbl-nav a {
    font-size: 19px;
  }
}

@media (max-width: 560px) {
  .hbl-cover {
    min-height: max(720px, 100svh);
    background-position: 42% center;
  }

  .hbl-overlay {
    background:
      linear-gradient(180deg, rgb(4 20 39 / 78%) 0%, rgb(4 20 39 / 32%) 42%, rgb(2 12 23 / 80%) 100%),
      linear-gradient(90deg, rgb(4 20 39 / 34%), rgb(4 20 39 / 10%));
  }

  .hbl-brand {
    top: 30px;
    left: 24px;
    width: 190px;
  }

  .hbl-content {
    align-content: end;
    gap: 36px;
    margin: 0 24px;
    padding: 150px 0 54px;
  }

  .hbl-content h1 {
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.14;
  }

  .hbl-nav {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hbl-nav a,
  .hbl-nav a::after {
    transition: none;
  }
}
