body,
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

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

body {
  font-family: "Crimson Text", serif;
  color: #3c2415;
}

img {
  max-width: 100%;
}

h2,
h3,
a {
  font-family: "Oxygen", sans-serif;
}

p {
  font-size: 1.8rem;
  line-height: 2.6rem;
  font-weight: 400;
}

a {
  text-decoration: none;
}

input,
button {
  outline: 0;
}

::placeholder {
  color: #351b09;
}

:-ms-input-placeholder {
  color: #351b09;
}

::-ms-input-placeholder {
  color: #351b09;
}

.container {
  width: 100%;
  max-width: 111rem;
  margin: auto;
  padding: 0 4rem;
}

.genericSeparator {
  display: block;
  margin: auto;
}

.heading__typeOne {
  text-align: center;
  text-transform: uppercase;
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.section {
  margin-bottom: 14rem;
}

.headingSeparator {
  margin-bottom: 8rem;
}

.about-us-separator {
  background: url(../images/about-us-separator.png) no-repeat;
  padding: 0;
  margin: -28px 0 0 0;
  height: 80px;
}

/*HEADER*/

.header {
  min-height: 380px;
  padding: 2rem 0;
  background: url("../images/bg-head.png") no-repeat;
  background-size: cover;
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6rem 0;
}

.header__left,
.header__right {
  width: 42%;
}

.header__right {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.75);
  padding: 3rem 4rem 4rem;
  border-radius: 5px;
}

.header__title {
  font-size: 1.8rem;
  line-height: 2.4rem;
  font-weight: 700;
  margin-bottom: 2.2rem;
  padding: 0 4rem;
}

.header__text {
  margin-top: 3.4rem;
}

.header__link {
  font-size: 2rem;
  text-transform: uppercase;
  color: white;
  font-weight: 300;
  background-color: #2c120a;
  padding: 1rem 2rem;
  letter-spacing: 1.3px;
  font-weight: 400;
  display: inline-block;
  margin-top: 1rem;
  border-radius: 3px;
  border: none;
}

.header__link:hover {
  cursor: pointer;
  background-color: #603312;
}

.nav {
  display: flex;
  justify-content: flex-end;
  position: fixed;
  z-index: 10;
  width: 100%;
  max-width: 110rem;
}

.nav__logoContainer {
  display: none;
}

.nav__list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__listItem {
  font-size: 1.4rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.jumpToSection {
  color: #3c2415;
}

.header__link.jumpToSection {
  color: white;
}

.footer__link {
  color: rgb(205 198 194);
}

.nav__hamburger, .nav__listItemMobile {
  display: none;
}

#mobileOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
}

.mobileOverlayVisible {
  display: block!important;
}

#overlayMenu {
  position: fixed;
  z-index: 5;
  width: 100vw;
  top: 0;
  left: 0;
  height: 6rem;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 0 0 3px 3px;
}

.overlayMenuOpacity {
  background-color: rgb(247, 247, 247)!important;
  border-bottom: 0.5px solid rgb(202, 202, 202);
}

/*ABOUT*/

.about {
  margin-top: 10rem;
}

.about__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8rem;
  gap: 8rem;
}

.about__left,
.about__right {
  width: 100%;
}

#ytVideo {
  min-height: 400px;
  padding: 0 !important;
  width: 100%;
  margin: auto;
  border: none;
}

/*REFERENCES*/

.references {
  padding: 8rem 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5) 100%, rgba(0, 0, 0, 0.5) 100%), url("../images/bg.jpg");
  background-size: contain;
}

.references__clients {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.references__testimonyQuote {
  color: white;
  text-align: center;
  font-style: italic;
  width: 50%;
  line-height: 3.5rem;
  margin: 4rem auto;
}

.references__clientName {
  color: white;
  text-align: center;
  font-weight: 700;
}

/*PRODUCTS*/

.products {
  margin-bottom: 10rem;
}

.products__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6rem;
}

.products__gallery,
.products__container {
  width: 100%;
}

.products__heading {
  font-size: 3.2rem;
  margin-bottom: 1.8rem;
}

.products__text {
  margin: 1.8rem 0;
}

.products__list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.products__listItem {
  font-size: 1.8rem;
  margin-left: 4rem;
}

.products__gallery {
  display: grid;
  gap: 1rem;
  grid-template-areas:
    "a a"
    "b c";
}

.products__gallery > img {
  display: block;
}

#products__imageOne {
  grid-area: a;
}

#products__imageTwo {
  grid-area: b;
}

#products__imageThree {
  grid-area: c;
}

.products__rowTwo {
  flex-direction: row-reverse;
  margin-top: 6rem;
}

/*SERVICES*/

.services {
  background: url("/assets/images/bg.jpg") no-repeat;
  background-size: contain;
  padding: 8rem 0;
  position: relative;
  z-index: 0;
  top: -50px;
}

.services__list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  justify-content: center;
  list-style-position: inside;
  text-align: center;
}

.services__listItem {
  font-size: 1.8rem;
  font-weight: 600;
}

.services__about {
  background-color: white;
  margin: 8rem 0;
  padding: 4rem 0;
}

.services__flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8rem;
}

.services__link {
  margin: 0;
  width: 35%;
}

.services__aboutText {
  width: 65%;
  text-align: right;
}

.services__bottom {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.services__textContainer {
  width: 65%;
}

.services__image {
  width: 35%;
}

.services__heading {
  font-size: 2rem;
  margin-bottom: 1.6rem;
}

.services__text {
  margin-bottom: 2.2rem;
}

/*GENEALOGY*/

#genealogy-top-separator {
  background: url(../images/genealogy-top-separator.png) no-repeat;
  padding: 0;
  margin: 0;
  height: 80px;
}

#genealogy-bottom-separator {
  background: url(../images/genealogy-bottom-separator.png) no-repeat;
  padding: 0;
  margin: -2px 0 0 0;
  height: 80px;
}

#genealogy {
  padding: 0;
}

#genealogy .foto {
  z-index: -100;
  position: relative;
}

#genealogy .wrapper {
  max-width: 2200px;
  margin-left: auto;
  margin-right: auto;
}

#parallax {
  position: absolute;
  overflow: hidden;
  top: -50px;
}

.parallax-viewport {
  width: 100%;
  max-width: 2200px;
  height: 780px;
  z-index: -100;
  position: relative;
  overflow: hidden;
}

.parallax-layer-1 {
  width: 110%;
  height: 780px;
  top: 0px;
  margin-top: 0px;
  left: -20px;
  margin-left: 0px;
}

.parallax-layer-1 span {
  background-attachment: scroll;
  background-image: url(../images/0.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
  position: absolute;
  top: 20px;
  left: 0;
  width: 103%;
  height: 780px;
}

.parallax-layer-2 {
  width: 103%;
  height: 780px;
  top: 0px;
  margin-top: 0px;
  left: 20px;
  margin-left: -20.5421px;
}

.parallax-layer {
  position: absolute;
}

.parallax-layer-2 span {
  background-attachment: scroll;
  background-image: url(../images/1.png);
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
  position: absolute;
  top: 20px;
  left: 10px;
  width: 100%;
  height: 780px;
}

.parallax-layer-3 {
  width: 105%;
  height: 780px;
  top: 0px;
  margin-top: 0px;
  left: 0px;
  margin-left: -5px;
}

.parallax-layer-3 span {
  background-attachment: scroll;
  background-image: url(../images/2.png);
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
  position: absolute;
  top: 0px;
  left: 0;
  width: 100%;
  height: 780px;
}

#genealogy .over {
  width: 100%;
  height: 700px;
}

/*SLIDER*/

.slider {
  display: flex;
  align-items: center;
  overflow: hidden;
  scroll-behavior: smooth;
}

.slider__imageContainer {
  padding: 3rem;
}

.slider__imageContainer > img {
  max-width: none;
}

.slider__controller {
  display: flex;
  justify-content: space-between;
}

.slider__circles {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider__circleEmpty {
  width: 20px;
  height: 20px;
  border: 1px solid #2c120a;
  border-radius: 100%;
}

.slider__circleFull {
  background-color: #2c120a;
}

.slider__arrowContainer:hover {
  cursor: pointer;
}

/*COATARMS*/

.coatArms {
  margin-top: -50px;
}

.coatArms__content {
  display: flex;
  justify-content: space-between;
  gap: 8rem;
  align-items: center;
}

.coatArms__left {
  width: 35%;
}

.coatArms__right {
  width: 65%;
}

/*WRITTEN-ABBOUT-US*/

.writtenAboutUs {
  padding: 8rem 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5) 100%, rgba(0, 0, 0, 0.5) 100%), url("../images/bg.jpg");
  background-size: contain;
}

.writtenAboutUs__images > img, .references__client > img{
margin: auto;
}

/*CONTACT US*/

.contactUS__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8rem;
}

.contactUs__left,
.contactUs__right {
  width: 50%;
}

.contactUs__left {
  text-align: center;
}

.contactUs__form {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.input,
.textArea {
  width: 100%;
  padding: 1rem 2.4rem;
  border: 1px solid rgba(54, 26, 26, 0.188);
  border-radius: 3px;
  outline: none;
  font-family: "Crimson Text", serif;
}

.input:focus,
.textArea:focus {
  border: 1px solid rgb(54, 26, 26);
}

.input::placeholder,
.textArea::placeholder {
  color: #3c241578;
}

.input__container {
  position: relative;
}

.input__warningIcon {
  width: 24px;
}

.input__error { 
  position: absolute;
  top: -90px;
  left: 15%;
  padding: 2rem 3rem;
  border: 1px solid rgb(218, 218, 218);
  background-color: white;
  z-index: -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  opacity: 0;
}

.input__error:before {
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 24px solid #fff;
  border-right: 12px solid transparent;
  border-top: 12px solid #fff;
  border-bottom: 20px solid transparent;
  left: 32px;
  bottom: -24px;
}

.input__errorNameVisible {
  opacity: 1;
  z-index: 4;
}

.inputCheckBox {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.inputCheckBox label{
  cursor: pointer;
}

.inputCheckBox__input {
  appearance: none;
  background-color: #fff;
  margin: 0;
  width: 20px;
  height: 20px;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  display: inline-grid;
  place-content: center;
  position: relative;
  cursor: pointer;
  float: left;
}

.inputCheckBox__input::before {
  content: '✔';
  position: absolute;
  top: 2px;
  left: 2px;
  font-size: 18px;
  line-height: 0.8;
  color: #fff;
  transition: all .2s;
}

.inputCheckBox__input:checked::before {
  color: #603312;
}

/*FOOTER*/

.footer {
  background-color: #603312;
  padding: 8rem 0;
  color: rgb(205 198 194);
  font-weight: 700;
}

.footer__separator {
  display: none;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__left {
  display: flex;
  gap: 2rem;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  text-align: right;
}

.footer__listItem {
  list-style: none;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: rgba(142, 122, 107, 1);
}

.footer__logo {
  max-width: 25rem;
}

.footer__text {
  font-weight: 700;
}

.footer__address {
  margin-bottom: 2rem;
}

.footer__icon {
  width: 20px;
}

.footer__contactContainer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__contact {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}

.footer__contactText {
  font-size: 1.6rem;
  letter-spacing: 0.67px;
  font-family: "Crimson Text", serif;
  text-decoration: none;
  color: rgb(205 198 194);
}

.footer__info {
  display: flex;
  flex-direction: column;
}

.inputCheckBox__text{
  font-size: 1.6rem;
  display: block;
  float: left;
  margin-left: 6px;
}

.hidden{
  display: none;
}

#formControl{
  margin: 20px 0;
  font-size: 1.6rem;
  padding: 16px;
  border-radius: 6px;
}

#formControl.danger{
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

#formControl.success{
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

@media screen and (max-width: 768px) {
  .section {
    margin-bottom: 10rem;
  }

  .footer__separator {
    display: block;
    margin-bottom: 3rem;
  }

  .header__left {
    display: none;
  }

  .header__right {
    width: 100%;
  }

  .nav {
    justify-content: space-between;
    align-items: center;
  }

  .nav__logoContainer {
    display: block;
    width: 6rem;
  }
  .header__title {
    font-size: 2.2rem;
    line-height: 3rem;
  }
  .about__content {
    flex-direction: column;
  }

  .products__rowOne {
    flex-direction: column-reverse;
  }

  .headingSeparator {
    margin-bottom: 4rem;
  }

  .about {
    margin-top: 4rem;
  }
  .about__content {
    margin: 0;
    gap: 3rem;
  }

  .references__testimonyQuote {
    width: 75%;
  }

  .products__row {
    gap: 2rem;
  }

  .services__flex {
    flex-direction: column-reverse;
    gap: 3rem;
  }

  .services__aboutText {
    width: 100%;
    text-align: center;
  }

  .services__link {
    width: auto;
    font-size: 1.6rem;
  }

  .services__bottom {
    flex-direction: column;
  }

  .services__textContainer {
    width: 100%;
    text-align: center;
  }

  .services__image {
    width: 50%;
  }

  .products {
    margin-bottom: 2rem;
  }

  .header__link {
    font-size: 1.6rem;
  }

  .coatArms__content {
    flex-direction: column;
  }
  .coatArms__left,
  .coatArms__right {
    width: 100%;
    text-align: center;
  }

  .coatArms {
    margin-bottom: 6rem;
  }

  .slider__imageContainer {
    padding: 9rem;
  }

  .writtenAboutUs__content {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 2rem;
  }

  .writtenAboutUs__images {
    width: 33%;
    text-align: center;
  }

  .footer__content {
    flex-direction: column-reverse;
  }

  .footer__left {
    justify-content: space-between;
    width: 100%;
  }

  .footer__right {
    width: 100%;
  }

  .footer__list {
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
  }

  #overlayMenu {
    height: 10rem;
}

.nav {
  width: calc(100vw - 8rem);
}

.header__content {
  padding: 13rem 0 6rem;
}
}

@media screen and (max-width: 580px) {
  .footer__left {
    flex-direction: column;
    gap: 4rem;
  }

  .footer__text,
  .footer__logoContainer {
    text-align: center;
  }

  .footer__contactContainer {
    align-items: center;
  }

  .footer__address {
    margin-bottom: 4rem;
  }

  .contactUS__content {
    flex-direction: column;
  }

  .contactUs__left,
  .contactUs__right {
    width: 100%;
  }

  .nav__list {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10;
    width: 100%;
    padding: 10rem 0 4rem;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 3px 3px;
    transform: translateY(-100%);
    transition: all 0.5s ease;
  }

  .nav__hamburger, .nav__logoContainer {
    display: block;
    position: relative;
    z-index: 99;
  }

  .nav {
    width: calc(100vw - 4.8rem);
  }
  .references__clients {
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 2rem;
  }

  .container {
    padding: 0 2.4rem;
  }

  .products__rowTwo {
    flex-direction: column-reverse;
    margin-top: 4rem;
  }
  .slider__imageContainer {
    padding: 7rem;
  }
}

@media screen and (max-width: 425px) {
  .references__testimonyQuote {
    width: 100%;
  }
  .slider__imageContainer {
    padding: 4rem;
  }
  .section {
    margin-bottom: 4rem;
  }

  .header__title {
    padding: 0;
    margin-bottom: 3.4rem;
  }

  .about {
    margin-top: 0;
  }

  .heading__typeOne {
    font-size: 3.2rem;
  }

  .headingSeparator {
    margin-bottom: 2.5rem;
  }

  .products__heading {
    font-size: 2rem;
  }

  .products {
    margin-bottom: 10rem;
  }

  .services__image {
    width: 100%;
  }

  .writtenAboutUs__content {
    column-gap: 6rem;
    justify-content: center;
  }

  .contactUS__content {
    gap: 3rem;
  }

  .link__submit {
    margin-top: 1rem;
  }

  #genealogy,
  #genealogy-top-separator,
  #genealogy-bottom-separator {
    display: none;
  }

  .services {
    padding: 4rem 0;
  }

  .services__about {
    margin: 4rem 0;
  }

  .mobileMenuVisible {
    transform: translateY(0);
    transition: all 0.5s ease;
  }

  .nav__listItemMobile {
    display: flex;
  }
}
