:root{
  --Main-px: #4D3F34;
  --BG: #F7EFE5;
  --light-px: #FFF9F1;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--Main-px);
  font-family: "Montserrat Alternates";
  background-color: var(--BG);
}

::selection {
  color: var(--light-px);
  background-color: var(--Main-px);
}

.business-overview ::selection {
  color: var(--Main-px);
  background-color: var(--light-px);
}

.footer ::selection {
  color: var(--Main-px);
  background-color: var(--light-px);
}

section {
  margin: 0 20px;
}

.hidden {
  opacity: 0;
  filter: blur(5px);
  transform: translateX(-100%);
  transition: all 2s;
}

@media(prefers-reduced-motion) {
  .hidden {
    transition: none;
  }
}

.show {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

.header {
  display: flex;
  width: 100%;
  padding: 20px 60px;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--BG);
  flex-shrink: 0;
}

.header-logo {
  font-size: 2rem;
  font-weight: 600;
  font-style: normal;
  line-height: normal;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 100px;
  font-size: 1.5rem;
  font-style: normal;
  line-height: normal;
}

.header a {
  text-decoration: none;
  color: var(--Main-px);
}

.header-contacts .contact-icons-header {
  display: none;
}

.hero {
  position: relative;
  width: 100%;
  height: 800px;
  border-radius: 50px;
  background: #EBDAC6;
  margin: auto;
}

.hero-info {
  margin: 0 30px;
  z-index: 5;
  position: relative;
}

.hero-info h1 {
  margin-bottom: 73px;
  padding-top: 50px;
}

.hero-first-p {
  width: 605px;
}

.hero-second-p {
  width: 677px;
  margin-top: 170px;
  border-radius: 20px 20px 20px 0px; 
  background: var(--BG);
  padding: 20px;
}

span {
  border-right: 1px solid var(--Main-px);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.hero-background {
  position: absolute;
  top: 0;
  width: 100%;
  height: 600px;
  background: linear-gradient(180deg, #F7EFE5 0%, rgba(247, 239, 229, 0.00) 100%);
  z-index: 4;
}

.hero img {
  position: absolute;
  top: 170px;
  right: 0;
}

.mission {
  margin: 300px 100px;
}

.mission p {
  color: #C5B4A5;
}

.mission .h4-style {
  font-weight: 500;
}

.business-overview {
  display: flex;
  width: 100%;
  height: 400px;
  padding: 0 50px;
  justify-content: flex-end;
  background: linear-gradient(90deg, rgba(77, 63, 52, 0.00) 0%, rgba(77, 63, 52, 0.95) 79.4%), url(/img/office.jpg) lightgray 50% / cover no-repeat;
  align-items: center;
  margin-bottom: 130px;
}

.business-overview p {
  width: 614px;
  color: var(--light-px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  gap: 20px;
  padding: 0 20px;
  margin-bottom: 100px;
}

.stat-block:nth-child(2) {
  transition-delay: 200ms;
}

.stat-block:nth-child(3) {
  transition-delay: 400ms;
}

.stat-block:nth-child(4) {
  transition-delay: 600ms;
}

.stat-block {
  background-color: var(--light-px);
  padding: 50px;
  border-radius: 10px;
}

.gallery-container {
  overflow: hidden;
  width: 100%;
  height: auto;
  position: relative;
  margin-bottom: 100px;
  padding: 0 50px;
}

.gallery-container i {
  top: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: absolute;
  transform: translateY(-50%);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 40px
}

.gallery-container i:first-child {
  left: 15px;
}

.gallery-container i:last-child {
  right: 15px;
}

.gallery {
  display: flex;
  gap: 20px;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scroll-behavior: smooth;
  box-sizing: content-box;
}

.gallery img {
  width: calc((100% - 40px) / 3);
  height: 300px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
  scroll-snap-align: start;
  cursor: pointer;
}

/* Remove scrollbars */
.gallery::-webkit-scrollbar {
  display: none;
}

.gallery {
  -ms-overflow-style: none; 
  scrollbar-width: none;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  display: block;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: var(--light-px);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.services {
  display: flex;
  width: 370px;
  flex-direction: column;
  gap: 30px;
  margin: auto;
  margin-bottom: 100px;
}

.location {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: auto;
  margin-bottom: 100px;
}

.footer {
  width: 100%;
  height: 800px;
  background-color: var(--Main-px);
  padding: 150px 170px;
  color: var(--light-px);
  position: relative;
  display: flex;
  justify-items: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.footer .footer-font {
  font-size: 5rem;
  font-weight: 700;
}

.contacts {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer a {
  text-decoration: none;
  color: var(--light-px);
}

.social { 
  gap: 25px;
  margin-top: 50px;
}

.social .contact-icons-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.contact-icons-footer .icon {
  width: 80px;
  height: 80px;
  fill: #9A8574;
  transition: all 1s;
}

.contact-icons-footer .icon:hover {
  fill: var(--light-px);
  transition: all 1s;
  width: 85px;
  height: 85px;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.links a { 
  color: var(--light-px);
  font-family: "Comfortaa";
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

/* Media */

@media screen and (max-width: 1100px) {
  .header {
    padding: 20px 40px;
  }
  .header-logo {
    font-size: 1.5rem;
  }
  .header-contacts {
    font-size: 1.25rem;
    white-space: nowrap;
    gap: 20px;
  }
  .header-contacts .h3-style{
    font-size: 1.25rem;
    white-space: nowrap;
  }
  .hero img {
    z-index: 0;
    width: 100%;
  }
  .hero-info {
    margin: 0 5px;
  }
  .mission {
    margin: 200px 50px;
  }
  .mission .h4-style {
    font-size: 2.5rem;
  }
  .business-overview {
    margin-bottom: 80px;
  }
  .stats {
    grid-template-columns: repeat(1, 1fr);
  }
  .stat-block {
    text-align: center;
  }
  .gallery img {
    width: calc((100% - 40px) / 2);
  }
  .services {
    margin-bottom: 80px;
  }
  .location {
    gap: 30px;
    margin: 0 50px 80px 50px;
  }
  .location .h4-style {
    font-size: 2.5rem;
  }
  .contacts{
  text-align: center;
  }
  .social {
    margin-top: 50px;
  }
  .footer{
    padding: 150px 120px;
  }
  .footer .footer-font {
    font-size: 3rem;
    font-weight: 700;
  }
  .social .footer-font {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 720px) {
  .header {
    padding: 20px 30px;
  }
  .hero-info .h1-style {
    font-size: 2rem;
  }
  .header-contacts .contact-icons-header {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
  }
  .hero {
    height: 480px;
  }
  .hero-first-p {
    width: 100%;
  }
  .hero-second-p {
    width: 100%;
    padding: 15px;
  }
  .hero-info {
    margin: 0;
  }
  .hero-info .p-style {
    font-size: 1.25rem;
  }
  .header-contacts .icon {
    width: 30px; 
    height: 30px;
    transition: all 1s;
  }
  .header-contacts .icon:hover {
    width: 35px; 
    height: 35px;
    transition: all 1s;
  }
  .header-contacts .contact-text {
    display: none;
  }
  .header-logo {
    font-size: 1.75rem;
  }
  .mission {
    margin: 300px 20px 100px 20px;
  }
  .mission .h4-style {
    font-size: 1.25rem;
  }
  .business-overview {
    padding: 90px 50px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, rgba(77, 63, 52, 0.75) 0%, rgba(77, 63, 52, 0.75) 79.4%), url(/img/office.jpg) lightgray 50% / cover no-repeat;
  }
  .business-overview .h3-style {
    font-size: 1rem;
  }
  .stat-block .h3-style-stats {
    font-size: 3rem;
  }
  .stat-block .h4-style {
    font-size: 2rem;
  }
  .gallery img {
    width: 100%;
  }
  .services {
    width: 150px;
    gap: 20px;
  }
  .services .h4-style {
    font-size: 1.25rem;
  }
  .location {
    gap: 20px;
  }
  .location .h4-style {
    font-size: 1.25rem;
  }
  .footer {
    padding: 50px 0 0 0;
    text-align: center;
    height: 500px;
  }
  .footer .footer-font {
    font-size: 2rem;
  }
  .social {
    position: static;
    text-align: center;
    margin: 50px auto; 
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 15px; 
  }
  .social .contact-icons-footer {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
  }
  .social .contact-text {
    display: none;
  }
  .contacts {
    margin-top: 50px;
  }
  .contacts .footer-font-xl {
    font-size: 1.75rem;
  }
  .contact-icons-header .icon {
    width: 30px;
    height: 30px;
  }
  .contact-icons-footer .icon {
    width: 40px;
    height: 40px;

  }.contact-icons-footer .icon:hover {
    width: 50px;
    height: 50px;
  }
}

@media screen and (max-width: 450px) {
  section {
    margin: 0 0.1px;
  }
  .hero {
    padding: 0 20px;
    height: 700px;
    border-radius: 30px;
  }
  .hero-info h1 {
    margin-bottom: 50px;
    padding-top: 30px;
  }
  .hero-second-p {
    margin-top: 120px;
  }
  .hero-background {
    background: linear-gradient(180deg, #F7EFE5 50%, rgba(247, 239, 229, 0.00) 100%);
  }
  .mission {
    margin: 150px 20px;
  }
  .gallery-container {
    padding: 0;
  }
  .gallery-container i {
    display: none;
  }
}

/* Fonts and styles */
/* Webfont: Mak-Bold */@font-face {
  font-family: 'Mak';
  src: url('/fonts/MAK-bold.eot'); /* IE9 Compat Modes */
  src: url('/fonts/MAK-bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/fonts/MAK-bold.woff') format('woff'), /* Modern Browsers */
       url('/fonts/MAK-bold.ttf') format('truetype'); /* Safari, Android, iOS */
  font-style: normal;
  font-weight: bold;
  text-rendering: optimizeLegibility;
}

/* Webfont: Mak-Light */@font-face {
  font-family: 'MakLight';
  src: url('/fonts/MAK.eot'); /* IE9 Compat Modes */
  src: url('/fonts/MAK.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/fonts/MAK.woff') format('woff'), /* Modern Browsers */
       url('/fonts/MAK.ttf') format('truetype'); /* Safari, Android, iOS */
  font-style: normal;
  font-weight: normal;
  text-rendering: optimizeLegibility;
}

.h1-style {
  font-family: "Montserrat Alternates";
  font-size: 4.375rem;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.footer-font {
  font-family: "Comfortaa";
  font-size: 2rem;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

.footer-font-xl {
  font-family: "Comfortaa";
  font-size: 3rem;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}


.h3-style {
  font-family: "Montserrat Alternates";
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.h3-style-stats {
  font-family: 'Mak';
  font-size: 6rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.h4-style {
  font-family: "Montserrat Alternates";
  font-size: 3rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.p-style {
  font-family: "Noto Sans";
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}