html {
  font-size: 62.5%;
}

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

:root {
  --dhg-navy: #00285d;
  --dhg-steel: #bac7d8;
  --dhg-pad-x: 2rem;
  --bs-body-font-family:
    "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-size: 1.6rem;
  --bs-body-bg: #fff;
  --bs-body-color: #000;
}

::selection {
  background-color: var(--dhg-navy);
  color: #fff;
}

body {
  margin: 0;
  font-family: var(--bs-body-font-family);
  font-size: 1.6rem;
  background: #fff;
  color: #000;
}

.container {
  padding-inline: var(--dhg-pad-x);
}

/* ---------- Hero / background ---------- */
.page {
  position: relative;
  overflow-x: clip;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: calc(100dvh - 22.7rem);
  background-size: cover;
  background-position: 50% 34%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: multiply;
  background: linear-gradient(to bottom left, rgba(0, 40, 93, 0.525), #101010);
}

/* ---------- Header: logo + social ---------- */
.hero__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 4rem;
}
.hero__logo-link {
  display: block;
  margin: -4rem 0 0 -4.3rem;
}
.hero__logo {
  display: block;
  width: 34rem;
  height: auto;
}

.social {
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  font-size: 2rem;
  color: var(--dhg-navy);
  background: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.social__link:hover,
.social__link:focus-visible {
  background: var(--dhg-steel);
}

/* ---------- Main content ---------- */
.hero__main {
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero__title {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 3.65vw, 7rem);
  line-height: 1.23;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 3.4rem;
}
.hero__title span {
  color: var(--dhg-steel);
}

.hero__text {
  font-size: clamp(1.8rem, 1.04vw, 2rem);
  line-height: 1.5;
  color: #fff;
  max-width: 55.5rem;
  margin-bottom: 3.9rem;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  min-width: 14.2rem;
  height: 4.5rem;
  padding: 0 2rem;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border: 0.1rem solid #fff;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.btn-contact i {
  font-size: 1.8rem;
  margin-right: -0.5rem;
}
.btn-contact:hover,
.btn-contact:focus-visible {
  background: #fff;
  color: var(--dhg-navy);
}

/* ---------- Companies strip ---------- */
.bottom {
  position: relative;
  background: #fff;
  padding-bottom: 5rem;
}

.companies {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.company__title {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--dhg-navy);
  margin-bottom: 0.6rem;
}
.company__text {
  font-size: 1.6rem;
  line-height: 1.625;
  color: var(--dhg-navy);
  opacity: 0.6;
  max-width: 34rem;
  margin: 0;
}

/* ---------- Contact card ---------- */
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 4rem var(--dhg-pad-x) 5rem;
  background: #fff;
}
.contact-card__img {
  display: block;
  width: 100%;
  max-width: 32rem;
  height: 30.6rem;
  object-fit: cover;
  object-position: 78% 50%;
}
.contact-card__title {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--dhg-navy);
  margin-bottom: 2.3rem;
}
.contact-card__text {
  font-style: normal;
  font-size: 2rem;
  line-height: 1.5;
  color: #000;
  margin-bottom: 1.9rem;
}
.contact-card__text:last-child {
  margin-bottom: 0;
}
.contact-card__text a {
  color: inherit;
  text-decoration: none;
}
.contact-card__text a:hover,
.contact-card__text a:focus-visible {
  text-decoration: underline;
}

/* ---------- Desktop (design layout, lg+) ---------- */
@media (min-width: 992px) {
  .hero__logo-link {
    margin-left: -4.3rem;
  }

  .companies {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 109rem;
    padding-top: 5.1rem;
    padding-bottom: 0;
  }
  .company {
    min-height: 11.9rem;
    padding: 0rem 4rem 0;
    border-left: 0.1rem solid var(--dhg-steel);
  }
  .company:first-child {
    padding-left: 0;
    border-left: 0;
  }
  .company:last-child {
    padding-right: 0;
  }

  .contact-card {
    position: absolute;
    right: 0;
    bottom: 5rem;
    z-index: 2;
    flex-direction: row;
    align-items: center;
    gap: 5.7rem;
    width: 34.17vw;
    padding: 7.2rem 0 0rem 7.3rem;
    max-width: 62rem;
  }
  .contact-card__img {
    flex: 0 0 20.4rem;
    width: 20.4rem;
    max-width: none;
  }
  .contact-card__info {
    padding-top: 0;
  }
}

/* ---------- Breakpoints (Bootstrap's: md 768 / xl 1200) ---------- */
@media (min-width: 1920px) {
  .container {
    max-width: 1720px;
  }
}
@media (min-width: 1600px) and (max-width: 1919.98px) {
  html {
    font-size: 54%;
  }
  .container {
    max-width: 1500px;
  }
}
@media (min-width: 1366px) and (max-width: 1599.98px) {
  html {
    font-size: 50%;
  }
  .container {
    max-width: 1360px;
  }
}
@media (min-width: 1200px) and (max-width: 1365.98px) {
  html {
    font-size: 42%;
  }
  .container {
    max-width: 1160px;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  html {
    font-size: 36%;
  }
  .container {
    max-width: 970px;
  }
  .contact-card {
    align-items: center;
    gap: 4rem;
    width: 38vw;
    padding: 5rem 2rem 0rem 5rem;
  }
  .hero {
    min-height: calc(100dvh - 24.7rem);
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 700px;
  }
}

@media (max-width: 991.98px) {
  .hero {
    min-height: 60rem;
  }
  .hero__logo-link {
    margin: -4rem 0 0 0;
  }
  .hero__logo {
    width: 24rem;
  }
  .hero__main {
    padding-bottom: 6rem;
  }
  .contact-card {
    padding: 0;
  }
  .company__text {
    font-size: 1.8rem;
    max-width: 48rem;
  }
}

@media (max-width: 575.98px) {
  html {
    font-size: 2.5vw;
  }
  .hero__logo {
    width: 18rem;
  }
  .hero__title {
    font-size: 4rem;
  }
  .social {
    gap: 1rem;
  }
  .contact-card__img {
    max-width: 100%;
  }
}
