* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  box-sizing: border-box;

  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;

  min-height: 100vh;
  width: 100%;

  font-family: "Nunito", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;

  background-color: #fefefe;

  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Labrada, serif;
  font-optical-sizing: auto;
  font-style: normal;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.75rem;
  line-height: 1.4;
}

h4 {
  font-size: 1.5rem;
  line-height: 1.4;
}

h5 {
  font-size: 1.25rem;
  line-height: 1.5;
}

h6 {
  font-size: 1rem;
  line-height: 1.6;
}

.navbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #175b1b;
  position: fixed;
  /* align-items: center; */
  top: 0;
}

.navbar-content-mobile {
  display: none;
}

.navbar-content {
  width: 100%;
  max-width: 1200px;
  height: 60px;
  display: flex;
  padding: 0 20px;

  .navbar-logo {
    width: 200px;
    height: 60px;
    display: flex;
    flex-shrink: 0;
    margin-right: 30px;
    cursor: pointer;
  }

  .nav-list {
    display: flex;
    /* height: 100%; */
    align-items: center;
    /* flex-wrap: nowrap; */
    text-align: center;
    list-style: none;
  }

  .nav-item {
    list-style: none;
    height: 100%;
  }

  .nav-link {
    text-decoration: none;
    color: white;
    padding: 15px 1rem;
    display: flex;
    align-items: center;
    height: 100%;
    transition: color 0.4s, background-color 0.4s;
    font-size: 1rem;
  }

  .nav-link:hover {
    background-color: #0d350f;
  }

  /*.nav-list:hover .nav-link:not(:hover) {
    color: #0d350f;
  }*/
}

.page {
  width: 100%;
  padding-top: 60px;
}

.overview-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.hero-wrapper {
  width: 100%;
  background-image: radial-gradient(circle, #fdfdfd 0, #ececec 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.get-offer-button {
  border: 2px solid #333;
  color: #333;
  padding: 5px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
  font-weight: 700;
  white-space: nowrap;

  &:hover {
    background-color: #333;
    color: white;
  }
}

.hero-title {
  text-align: center;
}

.section-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-max-width {
  width: 100%;
  max-width: 1100px;
  padding: 20px;
}

.video-content {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video {
  width: 100%;
  max-width: 600px;
  height: 400px;
}

.content-max-width h2 {
  padding-bottom: 5px;
  border-bottom: 1px dashed grey;
}

.advantages-grid {
  overflow: hidden;
  margin: 50px auto;
}

.advantages-grid-content {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -3px -3px 0;
}

.advantage {
  width: 33.333%;
  flex: 1 0 350px;
  min-width: 350px;
  padding: 2em;
  border-bottom: 1px dashed grey;
  border-right: 1px dashed grey;
}

footer {
  margin-top: 40px;
  background-color: #333;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-content {
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
}

#contact-form {
  display: flex;
  flex-direction: column;
  width: 500px;
  /* min-width: 500px; */
  padding-right: 50px;
  border-right: 1px dotted white;

  h5 {
    margin-bottom: 10px;
  }
}

#contact-form .contact-form-section {
  display: flex;
  flex-direction: column;

  label {
    color: #8b8f92;
    font-size: 1rem;
  }

  input {
    outline: 0;
    padding: 2px;
    font-size: 1rem;
  }

  textarea {
    outline: 0;
    resize: none;
    font-size: 1rem;
  }

  #details {
    width: 100%;
    height: 80px;
    padding: 2px;
  }
}

#contact-form .contact-form-email-phone {
  display: flex;
  flex-direction: row;

  .form-email {
    flex: 1;
    margin-right: 5px;
  }

  .form-phone {
    max-width: 130px;
    flex: 2;
  }
}

#contact-form .contact-form-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;

  button {
    border: 1px solid white;
    font-size: 1rem;
    width: 100px;
    color: white;
    background-color: #333;
    transition: background-color 0.2s ease;

    &:hover {
      background-color: white;
      color: #333;
      cursor: pointer;
    }
  }
}

.footer-section {
  padding-left: 50px;

  h5 {
    margin-bottom: 10px;
    min-width: 100px;
  }

  ul {
    list-style: none;

    li {
      list-style: none;
      width: 200px;
      min-width: 200px;

      a {
        text-decoration: none;
        color: #8b8f92;

        &:hover {
          color: white;
        }
      }
    }
  }
}

.footer-logo {
  margin-top: -12.5px;
  width: 200px;
  display: flex;
  flex-shrink: 0;
  cursor: pointer;
}

.requirements-table-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  overflow: hidden;
}

.requirements {
  display: flex;
  flex-direction: column;

  .requirement {
    /* width: px; */
    border-bottom: 1px solid grey;
    display: flex;
    align-items: center;
    /* justify-content: space-between; */

    span {
      padding: 0.5em 0.75em;
      min-width: 260px;
    }
  }

  .requirement:first-child {
    border-width: 2px;
  }

  /* &.minimum {
    margin-right: 1em;
  } */
}

.privacy-section,
.terms-section {
  ul {
    padding-left: 40px;
  }
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 30px;
  width: min(500px, 90%);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: #aaa;
  cursor: pointer;
}

.close-btn:hover {
  color: #333;
}

.ok-btn {
  border: 2px solid #333;
  color: #333;
  padding: 5px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
  font-weight: 700;
  white-space: nowrap;
  background-color: transparent;

  &:hover {
    background-color: #333;
    color: white;
  }
}

.modal-buttons {
  margin-top: 20px;
}

.no-scroll {
  overflow: hidden;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ff4d4d;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .navbar {
    z-index: 3;
  }

  .navbar-content {
    display: none;
  }

  .navbar-content-mobile {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #333;
    opacity: 0.9;
    position: relative;
    z-index: 3;

    .navbar-logo {
      max-width: 200px;
      height: 60px;
      display: flex;
      flex-shrink: 0;
    }

    .burger-container {
      display: flex;
      align-items: center;
    }

    .burger {
      display: flex;
      flex-direction: column;
      width: 50px;
      height: 50px;
      gap: 5px;
      justify-content: center;
      align-items: center;
      position: absolute;
      left: 20px;
    }

    .burger .line {
      width: 30px;
      height: 3px;
      background-color: white;
      border-radius: 5px;
      transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .burger.active .line:nth-child(1) {
      transform: translateY(9px) rotate(45deg);
    }

    .burger.active .line:nth-child(2) {
      opacity: 0;
    }

    .burger.active .line:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    .menu {
      display: flex;
      width: 50%;
      height: 100vh;
      flex-direction: column;
      gap: 10px;
      background-color: #333;
      position: absolute;
      top: 60px;
      left: 0;
      padding: 20px;
      visibility: hidden;
      opacity: 0;
      transform: translateX(-100%);
      transition: transform 0.4s ease, opacity 0.4s ease;
      z-index: 3;
    }

    .menu.active {
      visibility: visible;
      transform: translateX(0);
      opacity: 1;
    }

    .menu li {
      list-style: none;
      text-align: center;
      width: 100%;
    }

    .menu a {
      color: white;
      text-decoration: none;
    }
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  h4 {
    font-size: 1.25rem;
  }
  h5 {
    font-size: 1rem;
  }
  h6 {
    font-size: 0.875rem;
  }

  small {
    font-size: 0.75rem;
  }

  .navbar-content-mobile {
    .menu {
      width: 100%;
    }
  }

  .requirements {
    .requirement {
      flex-direction: column;
      align-items: flex-start;
    }
  }

  .footer-content {
    flex-direction: column;

    #contact-form {
      width: 100%;
      padding-right: 0;
      padding-bottom: 20px;
      border-right: none;
      border-bottom: 1px dotted white;
    }

    .footer-section {
      padding-left: 0;
    }
  }
}

@media (max-width: 480px) {
  html {
    font-size: 12px;
  }

  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }
  h4 {
    font-size: 1.125rem;
  }
  h5 {
    font-size: 1rem;
  }
  h6 {
    font-size: 0.875rem;
  }

  small {
    font-size: 0.75rem;
  }
}


.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.photo-item {
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.2s;
}

.photo-item:hover {
    transform: scale(1.02);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 2rem;
    box-sizing: border-box;
    cursor: pointer;
}

.image-modal img {
    max-width: 100%;
    max-height: 90vh;
    margin: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .photo-grid {
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 0.5rem;
	padding: 0.5rem;
    }

    .modal {
	padding: 1rem;
    }
}
