html, body {
  margin: 0;
  padding: 0;
  font-family: 'Times New Roman', Times, serif;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header --------------------------------------------------------*/

#nav {
  color: #BE2011;
  font-weight: bold;
  background-color: white;
  z-index: 100;
  position: fixed;
  top: 2vw;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 20px;
  width: 96%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: top 0.3s, border-radius 0.3s, width 0.3s, max-width 0.3s, background-color 0.3s;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.headerScroll #nav {
  top: 0;
  border-radius: 0;
  max-width: 100%;
  width: 100%;
}

.bgMenu {
  display: none;
  background-color: #BE2011;
  border-radius: 10px;
  width: 50px;
  height: 50px;
  margin: 12px;
}

.bgbar {
  display: block;
  width: 30px;
  height: 3px;
  margin: 3px 10px;
  border-radius: 5vh;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  background-color: white;
}

.bgMenu.active .bgbar:nth-child(2) { opacity: 0; }
.bgMenu.active .bgbar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.bgMenu.active .bgbar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobileMenu {
  position: absolute;
  display: none;
  flex-direction: column;
  width: 100%;
  margin-top: -20px;
  text-align: center;
  top: 100%;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  overflow: hidden;
  padding: 20px 0px;
  padding-top: 30px;
  background-color: white;
  z-index: -1;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.4s;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 12px 18px -8px;
}

.mobileMenu.active { transform: scaleY(1); }

.menuLink {
  color: #BE2011;
  font-size: 20px;
  padding: 12px 8px;
}

.menuLink:hover { text-decoration: underline; }

.siteTitle { margin: auto 20px; padding-top: 4px; }

.buttonCTA1 {
  background-color: #BE2011;
  color: white;
  padding: 12px 30px;
  border-radius: 50vh;
  margin: 40px;
  font-size: 18px;
}

.buttonCTA1:hover { background-color: #a01e0f; }

.headerLink { margin: 0px 15px; font-size: 18px; cursor: pointer; }
.headerLink:hover { text-decoration: underline; }

/* Section1 --------------------------------------------------------*/

.section1 {
  background-color: #BE2011;
  color: white;
  display: flex;
  flex-direction: column;
  padding-top: 100px;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.headline {
  text-align: center;
  margin: 0px auto;
  margin-bottom: 80px;
  padding-top: 80px;
  width: 600px;
  font-size: 44px;
  font-weight: bold;
}

/* Section2 --------------------------------------------------------*/

.section2 {
  background-color: white;
  color: black;
  padding: 80px 80px 40px 80px;
}

.section2Title {
  color: #BE2011;
  text-align: center;
  margin: auto;
  font-size: 40px;
  margin-bottom: 20px;
}

.section2Desc {
  text-align: center;
  margin: auto;
  margin-bottom: 50px;
  width: 80%;
  font-size: 18px;
  line-height: 1.6;
}

.benefitsBox {
  width: 400px;
  min-height: 280px;
  border-radius: 15px;
  padding: 20px 60px;
  margin: 30px;
  text-align: center;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 25px;
  display: flex;
  flex-direction: column;
}

.benefitsBox:hover { box-shadow: rgba(0, 0, 0, 0.3) 0px 3px 30px; }

.benefitsTitle {
  color: #BE2011;
  font-size: 22px;
  font-weight: bold;
  margin: 10px 0px;
}

.benefitsDesc {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.buttonCTA5 {
  background-color: #BE2011;
  color: white;
  font-weight: bold;
  font-size: 18px;
  padding: 15px 30px;
  border-radius: 50vh;
  margin-top: 20px;
  display: inline-block;
}

.buttonCTA5:hover { background-color: #a01e0f; }

/* Footer --------------------------------------------------------*/

.footer {
  background-color: #BE2011;
  color: white;
  padding: 60px 40px;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
}

.footerDiv {
  display: flex;
  flex-direction: column;
  margin: 10px;
}

.footerDivTitle {
  font-weight: bold;
  font-size: 22px;
  margin-bottom: 10px;
  color: white;
}

.footerItems {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.5;
  max-width: 320px;
  color: white;
  display: block;
}

a.footerItems:hover { text-decoration: underline; }

.footerSocialIcons {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.footerSocialIcon {
  width: 32px;
  height: 32px;
  opacity: 0.9;
  transition: opacity 0.3s, transform 0.3s;
  display: block;
}

.footerSocialIcon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.buttonCTAX {
  background-color: white;
  color: #BE2011;
  padding: 12px 30px;
  border-radius: 50vh;
  margin: 10px 0px;
  font-size: 18px;
  display: inline-block;
  text-align: center;
  font-weight: bold;
  width: 200px;
}

.buttonCTAX:hover { background-color: #f0f0f0; }

.footerLogo { margin-left: -40px; margin-top: -20px; }

/* Mobile Responsive --------------------------------------------------------*/

@media only screen and (max-width: 849px) {
  #nav { width: 92%; top: 4vw; }
  .logo { width: 154px; height: 60px; margin-left: -6px; border-radius: 10px; }
  .navLinks { display: none; }
  .bgMenu { display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; }
  .mobileMenu { display: flex; }
  .headline { max-width: 80%; font-size: 32px; margin-bottom: 50px; padding-top: 30px; }
  .section2 { padding: 60px 20px 40px 20px; }
  .section2Title { margin: 20px auto; margin-top: 60px; width: 88%; font-size: 28px; }
  .section2Desc { width: 90%; margin-top: 30px; }
  .benefitsParentBox { flex-direction: column; }
  .benefitsBox { width: 90%; margin: 20px 0px; padding: 0px 5%; height: auto; }
  .footer { flex-direction: column; }
  .footerDiv { margin-bottom: 40px; }
}

@media only screen and (min-width: 850px) {
  .bgMenu { display: none; }
  .mobileMenu { display: none; }
}
