/**
 * Hero paragraph (paragraph type: hero) — styling for Fredericia Intra.
 */

body:has(.paragraph--type--hero) header {
  padding-bottom: 0;
}

.paragraph--type--hero {
  background-size: cover;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  position: relative;
  margin-bottom: 50px;
}

.paragraph--type--hero.paragraph--type--hero--links-only {
  min-height: 0;
  height: auto;
}

.paragraph--type--hero .hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.paragraph--type--hero .hero-content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: none;
  padding: 0 30px;
  width: 100%;
  margin-top: 100px;
  position: relative;
  z-index: 1;
}

.paragraph--type--hero.paragraph--type--hero--links-only .hero-content-wrapper {
  margin-top: 0;
}

.paragraph--type--hero .hero-heading {
  margin-top: 0;
  padding: 0;
  font-size: 58px;
  color: #fff;
  text-align: center;
}

@media only screen and (max-width: 768px) {
  .paragraph--type--hero .hero-heading {
    font-size: 42px;
  }
}

.paragraph--type--hero .hero-heading .field--name-field-hero-heading {
  font-size: 58px;
}

@media only screen and (max-width: 768px) {
  .paragraph--type--hero .hero-heading .field--name-field-hero-heading {
    font-size: 42px;
  }
}

.paragraph--type--hero .hero-subheading {
  color: #fff;
  font-size: 20px;
}

.paragraph--type--hero .hero-links-wrapper {
  width: 100%;
  margin-top: 50px;
}

.paragraph--type--hero.paragraph--type--hero--links-only .hero-links-wrapper {
  margin-top: 0;
  padding-top: 50px;
  padding-bottom: 50px;
}

.paragraph--type--hero .hero-list-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media only screen and (max-width: 768px) {
  .paragraph--type--hero .hero-list-links {
    grid-template-columns: 1fr;
  }
}

.paragraph--type--hero .hero-list-links li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.paragraph--type--hero .hero-list-links li::before {
  display: none;
}

/* TEMPORARY Color fallback — remove when Color works (see css/intra.css). */
.paragraph--type--hero .hero-list-links li:nth-child(odd) a::before {
  background-color: #00335b;
}

.paragraph--type--hero .hero-list-links li:nth-child(even) a::before {
  background-color: #eae3c0;
}

.paragraph--type--hero .hero-list-links a {
  background-color: #fff;
  width: 100%;
  display: flex;
  justify-content: center;
  min-height: 80px;
  align-items: center;
  /* TEMPORARY brand text color until Color works (see css/intra.css). */
  color: #00335b;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: bold;
  position: relative;
  transition: 0.25s ease;
  padding: 0 15px;
}

.paragraph--type--hero .hero-list-links a::before {
  position: absolute;
  content: "";
  left: 0;
  bottom: 0;
  width: 100%;
  transition: height 0.25s ease;
  height: 0;
}

.paragraph--type--hero .hero-list-links a:hover::before,
.paragraph--type--hero .hero-list-links a.is-highlighted::before {
  height: 10px;
}
