@font-face {
  font-family: 'IBM Plex Sans Condensed';
  src: url('../fonts/ibm-plex-sans-condensed-v14-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans Condensed';
  src: url('../fonts/ibm-plex-sans-condensed-v14-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GlossAndBloom';
  src: url('../fonts/GlossAndBloom.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans Condensed', Arial, Helvetica, sans-serif;
  background-color: #002855;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 75vh;
  background-image: url('../images/background_image.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.10) 60%,
    rgba(0, 0, 0, 0.00) 100%
  );
  pointer-events: none;
}

.hero__logo {
  position: relative;
  z-index: 1;
}

.hero__logo img {
  height: 150px;
  width: 150px;
  display: block;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  margin-top: auto;
  margin-top: 7rem;
  padding: 0 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero__preheading {
  font-family: 'IBM Plex Sans Condensed', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.75em;
}

.hero__heading {
  font-family: 'GlossAndBloom', cursive, Georgia, serif;
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.6em;
}

.hero__subheading {
  font-family: 'IBM Plex Sans Condensed', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.card-section {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin-top: 5rem;
}

.card {
  background-color: #ffffff;
  padding: 2.2rem 2.75rem 2rem;
  text-align: center;
}

.card__intro {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 1rem;
  margin-top: -1rem;
}

.card__social {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1rem;

  a {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  a:hover,
  a:focus {
    transform: scale(1.08);
    outline: none;
  }

  svg {
    width: 43px;
    height: 45px;
    overflow: visible;
    fill: #003166;
  }
}

.card__oder {
  font-size: 1rem;
  color: #000;
  margin-bottom: 0.5rem;
}

.card__link {
  display: inline-block;
  font-family: 'IBM Plex Sans Condensed', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #549626;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
  margin-bottom: 1.6rem;
  margin-top: 0.5rem;
  text-decoration: underline;

  &:hover,
  &:focus {
    color: #4a8c2a;
    text-decoration-color: #3a6e20;
    outline: none;
  }
}

.card__address {
  font-style: normal;
  font-size: 1rem;
  color: #222;
  line-height: 1.5;
}

.site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 1;
}

.footer-decoration {
  display: block;
  width: 100%;
  height: auto;
}

.footer-decoration--mobile {
  display: none;
}

@media (max-width: 600px) {
  .hero {
    min-height: 80vh;
  }

  .hero__logo img {
    height: 150px;
  }

  .hero__content {
    margin-bottom: 3.5rem;
  }

  .card {
    padding: 1.8rem 1.4rem 1.6rem;
  }

  .hero__preheading {
    margin-top: -3rem;
  }

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

  .card-section {
    margin-top: 0;
  }

  .footer-decoration--desktop {
    display: none;
  }

  .footer-decoration--mobile {
    display: block;
  }
}
