/* General Styling */

p, h1, h2, h3, h4, li, textarea, input, label {
    margin:0;
    padding:0;
    font-weight: 400;
  
    transition: all 0.3s ease;
}

.snuggle {
    margin: 0;
}

.cta {
    font-style: italic; margin-top: 3rem; color: #666;
}
    
    .cta hr {
        height: 1px; border: 0; border-top: 1px solid #ccc;
    }

.chunky {
    font-weight: 600;
    color: black;
/*    
    font-size: 1.2rem;
    line-height: 1.7rem;
*/
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  
    transition: all 0.3s ease;
}

footer {
    background-color: #efefef;
    padding: 2rem;
}

section {
    border-bottom: 1px solid lightgray; /* #3fa9f5; */
    padding-bottom: 1rem;
}





.mobile-hide {
    display: inherit;           
}

.mobile-show {
    display: none;           
}





#contact {
    border: 0px solid lightgray;
}

    orange {
      color: #ff931e;
    }
    
    blue {
      color: #3fa9f5;
    }
    
    p orange, li orange{
      font-weight: 600;
      color: #ff931e;
    }
    p blue, li blue {
      font-weight: 600;
      color: #3fa9f5;
    }
    
/* STATS */
.stats {
    display: flex;
}

    .stats div {
        flex: 1;
        margin: 1rem 1rem 0 0;
        padding: 1.5rem 1.5rem 0.5rem 1.5rem;
        background: #efefef;
        
    }
    
    .stats h4 {
        font-size: 5rem;
        font-family: sans-serif;
        padding-bottom: 1rem;
    }
    
    .stats h4 span {
        font-size: 3rem;
        font-weight: 600;
    }
    
    .stats p {
        bottom-margin:0;
    }
    
    .tags {
        margin-top: 1rem; font-size: 0.8rem; 
    }

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f5f5f5;
  
    transition: all 0.3s ease;
}

.hm {
    background-image: url("../mm_img/hm-tablet.jpg");
    background-size: cover;
    background-position: center;
}

h1 {
    font-size: 4.5rem;
    line-height: 5rem;
    font-family: serif;
    margin-bottom: 2rem;
    font-weight: 400;
  
    transition: all 0.3s ease;
}

h2 {
    font-size: 3rem;
    line-height: 3.5rem;
    font-family: serif;
    margin-bottom: 1rem;
    font-weight: 400;
  
    transition: all 0.3s ease;
}

h3 {
    font-size: 2rem;
    line-height:2.5rem;
    font-family: serif;
    margin: 1rem 0;
    font-weight: 400;
  
    transition: all 0.3s ease;
}

h4 {
    font-size: 1.2rem;
    line-height:1.6rem;
    font-family: serif;
    margin: 1rem 0;
    font-weight: 400;
  
    transition: all 0.3s ease;
}

.process h3, p {
    margin: 0 0 1rem 0;
}

p, li, label, input, textarea {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
    line-height: 1.5rem;
  
    transition: all 0.3s ease;
}



    
    /* TESTIMONIALS */
/*
    .testimonials div{
        padding: 1rem;
        background-color: #efefef;
        font-style: italic;
    }
*/    
    .testimonial-item {
        border-top: 1px solid lightblue;
        padding: 1rem;
        text-align: center;
        font-family: serif;
        font-style: italic;
        font-weight 600;
        font-size: 1.2rem;
    }
/*    
    .testimonials img {
        max-height: 40px;
        max-width: 95%;
        padding-bottom: 1rem;
        
    }
*/    

/************** BOT FILTER ****************/

        /* Styling the bot filter label with background image */
        .bot-filter-label {
            display: inline-block;
            width: 118px;
            height: 16px;
            background: url("../mm_img/website-label-bg.png") no-repeat center center;
            text-indent: -9999px; /* Visually hides the text */
            white-space: nowrap;
            overflow: hidden;
        }
        .error-message {
            color: red;
            display: none;
        }


/* Icons */
.icon {
  width: 30px;
  height: 30px;
  margin: 2rem 0;
  background-color: #3fa9f5;
  mask: url('../mm_img/icon-arrow.svg') no-repeat center / contain;
  -webkit-mask: url('../mm_img/icon-arrow.svg') no-repeat center / contain;
  
  
    transition: all 0.3s ease;
}

    .icon:hover {
      background-color: #ff931e;
    }


.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 0;
  
    transition: all 0.3s ease;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 20px 0;
  
    transition: all 0.3s ease;
}

.title-column {
  flex: 1;
  max-width: 33.33%;
  padding: 20px;
  
    transition: all 0.3s ease;
}

.content-column {
  flex: 2;
  max-width: 66.66%;
  padding: 20px 0;
  overflow: hidden;
  position: relative;
/*  transition: height 0.3s ease;  */
/*    transition: all 0.3s ease; */
  transition: height 0.3s ease; /*, opacity 0.3s ease; */
}


.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-height: 100%; /* Ensures animation has a limit */
  opacity: 1; /* Initial state */

  transition: max-height 0.3s ease, opacity 0.3s ease;
  
  overflow: hidden; /* Hides overflow during animation */
}


.grid-item {
  background-color: #e0e0e0;
  background-position: center;
  background-size: cover;
  padding: 20px;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  position: relative;
  border-radius: 8px;
  border: 1px solid lightgray;
  overflow: hidden; /* Hides overflow during animation */
  transition: all 0.3s ease;
}

    .grid-hm {
      background-image: url('../mm_img/hm-tablet.jpg');
    }

    .grid-graphenergy {
      background-image: url('../mm_img/graphene-1.jpg');
    }

    .grid-aquasmart {
      background-image: url('../mm_img/aquasmart-hero.jpg');
    }

    .grid-claas {
      background-image: url('../mm_img/claas-whiteboard.jpg');
    }

.grid-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit; /* Use the same background as the grid item */
  background-size: cover;
  background-position: center;
  z-index: -1; /* Ensures the pseudo-element stays behind the content */
  transform: scale(1); /* Initial scale */
  transition: transform 0.3s ease; /* Smooth scaling */
}

.grid-item:hover::before {
  transform: scale(1.1); /* Magnify background on hover */
}

.grid-item:hover {
  transform: scale(1.0); /* Prevent the grid item itself from scaling */
}

.dynamic-content {
  opacity: 0;
  animation: fadeIn 0.3s ease forwards; /* Simple fade-in */
}

#projects .content-column {
  position: relative; /* Ensure the close button is positioned relative to this column */
}

/* Close Button Styles 
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background-image: url("../mm_img/closeX.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.close-btn:hover {
  transform: scale(1.1);
}
*/


/* Grid Animation */
.grid {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}


        /* Dynamic Content Styling */
        .dynamic-content {
          opacity: 0;
          animation: fadeIn 0.3s ease forwards; /* Fades in content */
        }


/* 2024-12-02 */

/* Preloaded Hidden Item Styling */
.item-content {
  visibility: hidden;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  position: absolute; /* Stack on top of the grid */
  width: 100%;
  transition: opacity 0.3s ease, max-height 0.3s ease, visibility 0.3s ease;
}

        .item-img {
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover;
            height: 200px;
            padding: 0;
            margin: 2rem 0;
        }

        .hero-hm {
            background-image: url(../mm_img/hm-tablet.jpg);
        }

        .support-hm {
            background-image: url(../mm_img/hm-deck.jpg);
        }

        .hero-graphenergy {
            background-image: url(../mm_img/graphenergy-cards.png);
        }
        
        .support-graphenergy {
            background-image: url(../mm_img/golf-carts-wholesale.jpg);
        }

        .hero-claas {
            background-image: url(../mm_img/claas-whiteboard.jpg);
        }
        
        .support-claas {
            background-image: url(../mm_img/CLAAS-images-jobs.jpg);
        }
        
        .support2-claas {
            background-image: url(../mm_img/CLAAS-3d-glove.jpg);
        }
        
        .support3-claas {
            background-image: url(../mm_img/job-agritech.jpg);
        }

        .hero-aquasmart {
            background-image: url(../mm_img/aquasmart-hero.jpg);
        }

.item-content.active {
  visibility: visible;
  opacity: 1;
  max-height: 100%; /* 1000px; /* Adjust to fit content height */
  position: relative; /* Take its natural flow */
}

/* Grid Animation */
.grid {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background-image: url("../mm_img/closeX.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.close-btn.active {
  opacity: 1;
  visibility: visible;
}


/************

CONTACT FORM

*************/
form {
    width:95%;
}

input, textarea {
    font-size: 14px;
    padding: 4px 12px;
    margin: 12px 0;
    border-radius: 8px;
    color: #323232;
    border: 1px solid #cccccc;
    width:95%;
}

.contact-form[for="favorite-color"] {
    display: inline-block;
    width: 118px;
    height: 16px;
    background: url("../mm_img/website-label-bg.png") no-repeat center center;
    text-indent: -9999px; /* Visually hides the text */
    white-space: nowrap; /* Prevents line breaks */
    overflow: hidden; /* Ensures hidden text doesn’t affect layout */
}

.contact-form#submit {
    background: #3fa9f5;
    font-family: '#3fa9f5', sans-serif;
    color: white;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 14px 25px;
    border-radius: 25px;
    border: 1px solid #3fa9f5;
    text-transform: uppercase;
    text-decoration: none;
    outline: none;
    margin-top: 20px;
    cursor: pointer;
    width: 120px;
}

.asleep {
    display: none;
}




/*******************

collpasible process elements 

********************/

summary {
    margin: 1rem 0;
    font-size: 1.5rem;
    font-family: serif;
}
 /* "marker" is the caret */
details summary::marker {
  color: #3fa9f5; 
  font-size: 1.5rem;
  margin-right: 1rem;
}



/* Fade-in animation for dynamic content */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Responsive Breakpoints */
@media (max-width: 960px) {

    .title-column, .content-column {
        max-width: 95%;
      padding: 10px;
    }

    h1 {
        font-size: 3rem;
        line-height: 3rem;
        font-family: serif;
        margin-bottom: 1rem;
        font-weight: 400;
    }
    /*
    h2 {
        font-size: 1rem;
        line-height: 1.2rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }
    
    h3 {
        font-size: 1rem;
        line-height: 1.2rem;
        margin-bottom: 1rem;
        font-weight: 400;
    }
    
    p {
        font-size: 1rem;
        color: #666;
        font-weight: 400;
        line-height: 1.2rem;
    }
    */
    
    
    .stats {
        padding-bottom: 1rem;
    }
    
    
    .stats h4 {
        font-size: 4rem;
        font-family: sans-serif;
        padding-bottom: 0;
    }
    
    .stats h4 span {
        font-size: 1.2rem;
        font-weight: 600;
    }
}



@media (max-width: 760px) {
  .row {
    flex-direction: column;
  }

  .grid {
    grid-template-columns: 1fr;
  }
  
  
  





.mobile-hide {
    display: none;           
}

.mobile-show {
    display: inherit;           
}
  

    .title-column, .content-column {
      flex: 1;
    }
}



@media (max-width: 500px) {
.stats {
    display: block;
}

    .stats div {
        margin: 1rem 0;
        padding: 1rem 1rem 1rem 0.5rem;
        background: #efefef;
        
    }
    
    .stats h4 {
        font-size: 4rem;
        font-family: sans-serif;
        padding-bottom: 0;
    }
    
    .stats h4 span {
        font-size: 2rem;
        font-weight: 600;
    }
    
}