:root {
  --header-background: #002e66;
  --btn-background: #84290d;
  --section-background: #e8ded1;
  --inline-spacing: 60px;
  --primary-color: #84290d;

  @media (max-width: 1200px) {
    --inline-spacing: 40px;
  }
}

@font-face {
  font-family: "Montserrat";
  src: url("../Fonts/Montserrat-Hairline.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("../Fonts/Montserrat-UltraLight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("../Fonts/Montserrat-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("../Fonts/Montserrat-Regular_0.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("../Fonts/Montserrat-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("../Fonts/Montserrat-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("./Fonts/Montserrat-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 170px;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  font-family: Montserrat;
  font-weight: 400;
  color: var(--primary-color);
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

/* Added specially for site */

.hero-banner {
  position: relative;
  padding-inline: var(--inline-spacing);

  & > img {
    position: relative;
  }

  &::before {
    content: "";
    width: 100%;
    height: 50%;
    position: absolute;
    left: 0;
    background-color: var(--header-background);
  }
}

.banner-bottom-text {
  max-width: 1100px;
  padding-inline: var(--inline-spacing);
  text-align: center;
  font-size: 19px;
  font-weight: 300;
  margin-inline: auto;

  & h1 {
    margin-bottom: 20px;
  }

  & p {
    margin-bottom: 25px;
  }
}

.two-col-wrapper {
  display: grid;
  padding-inline: var(--inline-spacing);
  padding-bottom: 60px;

  & > h1 {
    padding-block: 30px;
  }
}

.two-col-with-image {
  display: grid;
  grid-template-columns: 2fr 3fr;
  align-items: center;
  gap: 40px;
  padding-inline: var(--inline-spacing);
  padding-bottom: 40px;

  & .two-col-text {
    padding-left: 100px;
  }

  & h1 {
    margin-bottom: 20px;
  }

  & p {
    font-size: 19px;
    font-weight: 300;
    line-height: 1.4;
    color: var(--primary-color);
  }
}

h1 {
  font-size: 60px;
  font-weight: 200;
  letter-spacing: -2px;
  color: var(--primary-color);
}

h2 {
  font-size: 72px;
  font-weight: 200;
  letter-spacing: -2px;
  color: var(--primary-color);
}

h3 {
  font-size: 52px;
  line-height: 1;
  font-weight: 200;
  color: var(--primary-color);
}

h4 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--primary-color);
}

a {
  text-decoration: none;
}

.uppercase {
  text-transform: uppercase;
}

.center {
  text-align: center;
}

.justify-self-center {
  justify-self: center;
}

.btn {
  background-color: var(--btn-background);
  justify-self: center;
  border: none;
  border-radius: 0;
  color: #fff;
  padding: 10px 30px;
  cursor: pointer;
  min-width: 130px;
  font-size: 20px;
  font-weight: 300;
}

.page-video {
  position: relative;
  padding-inline: var(--inline-spacing);

  & video {
    width: 100%;
    position: relative;
  }

  &::before {
    content: "";
    width: 100%;
    height: 70%;
    position: absolute;
    left: 0;
    background-color: var(--section-background);
  }
}

.video-wrapper {
  position: relative;
}

.video-brush-effect {
  bottom: -2px;
  position: absolute;
  z-index: 1;
}

.desktop-hidden {
  display: none;
}

/* media query */

@media (max-width: 992px) {
  .two-col-with-image {
    gap: 20px;
    padding-inline: 0;

    & .two-col-text {
      padding-left: 50px;
    }
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 270px;
  }

  .mobile-hidden {
    display: none;
  }

  .desktop-hidden {
    display: block;
  }

  .hero-banner {
    padding-inline: 10px;
  }

  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 62px;
    line-height: 1;
    margin-bottom: 30px;
  }

  h4 {
    font-size: 18px;
    line-height: 1.2;
  }

  .banner-bottom-text {
    & h1 {
      line-height: 1;
    }
  }

  .two-col-wrapper {
    & > h1 {
      padding-block: 30px;
      line-height: 1;
    }
  }

  .two-col-with-image {
    grid-template-columns: 1fr;
    padding-inline: 0;
    padding-bottom: 50px;

    & h1 {
      text-align: center;
    }

    & p {
      font-weight: 300;
      font-size: 18px;
      text-align: center;
    }

    & .two-col-text {
      padding-left: 0;
    }
  }

  .btn {
    font-size: 18px;
  }

  .page-video {
    padding-inline: 20px;

    & video {
      z-index: 3;
    }
  }

  .video-brush-effect {
    position: relative;

    & img {
      position: relative;
      z-index: 2;
      transform: scaleY(-1);
      margin-top: -10px;
    }

    &::after {
      content: "";
      width: 100%;
      height: 100%;
      z-index: 1;
      position: absolute;
      left: 0;
      top: 0;
      background-color: var(--section-background);
    }
  }

  .form-wrapper {
    background-color: var(--section-background);
  }
}
