:root {
  --primary-color: rgba(67, 80, 97, 1);
  --primary-light-color: rgb(84, 104, 131);
  --secondary-color: rgba(253, 190, 38, 1);
  --secondary-dark-color: rgba(100, 67, 4, 1);
  --secondary-light-color: rgba(252, 244, 227, 1);
  --text-primary: rgba(63, 40, 90, 1);
  --text-light-primary: rgba(112, 112, 112, 1);
  --white: rgba(255, 255, 255, 1);
  --black: rgba(0, 0, 0, 1);
  --max-width: 1200px;
}

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

html {
  font-size: 62.5%;
}

body {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1.6rem;
  line-height: 2.8rem;

  color: var(--text-light-primary);
}
/* Fonts */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: clamp(4rem, 6vw, 7rem);
  color: var(--primary-color);
  text-align: left;
}

.hero-heading span {
  color: var(--secondary-color);
  display: inline-block;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: clamp(3rem, 6vw, 6rem);
  color: var(--text-primary);
  font-weight: 400;
  word-wrap: break-word;
}

h3 {
  font-size: clamp(2rem, 5vw, 2.4rem);
  line-height: 6rem;
  color: var(--text-primary);
  font-weight: 400;
  word-wrap: break-word;
}

.hero-heading {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: clamp(4rem, 6vw, 7rem);
  color: var(--white);
  text-align: center;
  text-transform: uppercase;
  word-wrap: break-word;
}

.body-text a {
  text-decoration: underline;
  color: var(--primary-color);
}

.body-text a:hover {
  text-decoration: none;
  color: var(--primary-light-color);
}

/* Nav */
nav {
  position: absolute;
  width: 100%;
  max-width: var(--max-width);
  height: 50px;
  margin-left: 50%;
  transform: translateX(-50%);
  top: 50px;
  padding: 20px;
}

nav.boxed {
  background-color: var(--primary-light-color);
  position: fixed;
  top: 0;
  border-radius: 0 0 9px 9px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

nav ul {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 4.8rem;
  list-style: none;
}

nav ul li:first-child {
  margin-right: auto;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.6rem;
  transition: all 0.3s ease-in-out;
}

/* Header */
.hero {
  min-height: 400px;
  background-color: var(--primary-light-color);
  background-image: url("/assets/img/hero-bg.png");
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 30px;
  padding-top: 40px;
}

.hero form {
  width: clamp(100px, 100%, 584px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.hero input {
  width: clamp(100px, 100%, 464px);
  height: 64px;
  border-radius: 9px 0 0 9px;
  border: none;
  outline: none;
  font-size: 2.6rem;
  color: var(--black);
  padding-left: 20px;
}

.hero input::placeholder {
  color: var(--text-primary);
}

.hero button {
  width: 120px;
  height: 64px;
  border-radius: 0 9px 9px 0;
  border: none;
  outline: none;
  background-color: var(--secondary-color);
  color: var(--secondary-dark-color);
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.hero button:hover {
  background-color: var(--secondary-dark-color);
  color: var(--white);
}

/* Main */
main {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 50px 0px;
  /*background: url("/assets/img/hansenberg-symbol.png") right bottom no-repeat;*/
}

.frontpage-links p {
  width: clamp(100px, 100%, 687px);
  margin-bottom: 5.6rem;
}

.link-card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.link-card {
  flex: 1 1 300px;
  box-shadow: 0 0 10px var(--secondary-light-color);
  border-radius: 9px;
  background-color: var(--secondary-light-color);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease-in-out;
  list-style: none;
  padding: 14px;
  max-width: 386px;
}

.link-card:hover {
  background-color: var(--white);
  box-shadow: 0 0 10px rgba(79, 0, 92, 0.4);
}

.link-card h3 {
  text-transform: uppercase;
}

.link-card li {
  margin-bottom: 15px;
}

.link-card a {
  text-decoration: none;
  font-weight: bold;
  line-height: 0.8rem;
  color: var(--black);
}

.link-card a:hover {
  color: var(--primary-color);
}

/* body-text */
.manchet {
  width: clamp(100px, 100%, 810px);
  margin: 0 auto;
  padding: 40px 60px;
  background-color: var(--secondary-light-color);
  color: var(--text-primary);
  font-size: 2rem;
  line-height: 2.8rem;
  margin-bottom: 5.8rem;
}

.body-text article {
  width: clamp(100px, 100%, 1100px);
  margin: 0 auto;
}

.body-text article p {
  margin-bottom: 1.8rem;
}

.body-text article img {
  max-width: 100%;
}

.body-text ul {
  margin-bottom: 30px;
  list-style-type: none;
}

.body-text ul:not(.search-result) li {
  position: relative;
  display: flex;
  margin-bottom: 5px;
  align-items: center;
}

.body-text ul:not(.search-result) li::before {
  content: "";
  background-image: url("/assets/img/Icon_1.png");
  background-size: cover;
  display: inline-block;
  width: 25px;
  height: 25px;
  margin-right: 10px;
}

/* Footer */
footer {
  background-color: var(--primary-light-color);
  padding: 50px 30px;
  position: relative;
  margin-bottom: 100px;
}

footer::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 300px;
  background-color: var(--secondary-color);
  rotate: 3deg;
  z-index: -1;
  transform: translateX(-100px);
  margin-top: -60px;
}

footer::after {
  content: "";
  position: absolute;
  width: 80%;
  height: 200px;
  background-color: var(--secondary-color);
  rotate: 3deg;
  z-index: -1;
  right: 0;
  transform: translateX(-100px);
  margin-top: -120px;
}

.footer-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-container p {
  color: #ffff;
}

address {
  font-size: 1.6rem;
  color: var(--white);
}

address h3 {
  font-size: 2.4rem;
  color: var(--white);
}

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

.footer-col :is(a, H4) {
  color: var(--white);
  text-decoration: none;
  font-size: 1.6rem;
  transition: all 0.3s ease-in-out;
}

@media screen and (max-width: 768px) {
  main {
    padding: 20px 10px;
  }

  .hero {
    padding-left: 30px;
    padding-right: 30px;
  }

  .hero-heading {
    font-size: 2rem;
  }
}

@media screen and (max-width: 600px) {
  .hero-heading {
    font-size: 1.3rem;
    line-height: 1.5em;
  }

  .footer-container {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .hero input {
    font-size: 1.5rem;
  }

  .hero {
    min-height: 197px;
    background-color: var(--primary-light-color);
    background-image: url(/assets/img/hero-bg.png);
    background-size: contain;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    background-repeat: no-repeat;
    padding-top: 55px;
    background-position: center;
  }

  nav {
    top: 20px;
  }

  .link-card {
    flex: 1 1 300px;
    box-shadow: 0 0 10px var(--secondary-light-color);
    border-radius: 9px;
    background-color: var(--secondary-light-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
    list-style: none;
    padding: 14px;
    max-width: 100%;
  }
}
