* {
  font-family: Lorum Ipsum, "sans-serif";
  /*font-size: 16px;*/
  color: black;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: url("#");
  background-repeat: no-repeat;
  background-size: cover;
}

#wrapper {
  max-width: 1200px;
  min-height: 100vh;
  margin: 0 auto;
  /* primary grid*/
  display: grid;
  grid-template-areas:
    "banner"
    "menu"
    "content"
    "footer";
  grid-template-columns: 1fr;
  grid-template-rows: 150px 75px minmax(650px, auto) minmax(100px, auto);
}
/*--HEADER--*/
header {
  grid-area: banner;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 150px;
  padding: 10px 20px;
  background-color: grey;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  z-index: 999;
}
.search-box {
  width: 200px;
  height: 25px;
  padding: 5px;
  border: 1px solid black;
  border-radius: 5px;
  padding-right: 30px;
  text-align: right;
}
header h1 {
  padding: 20px;
  grid-area: company;
  text-align: right;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
footer,
header {
  background-color: rgb(252, 252, 252);
}

header img {
  grid-area: logo;
}
header h2 {
  grid-area: company;
  color: white;
  font-size: 2.5em;
  text-align: right;
  padding: 2% 2% 0 0;
}
/*---SKIP-NAV--- */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus {
  background: #ff0000; /* Change background color to red when focused */
  color: #fff;
}

/*---NAV--- */
nav {
  grid-area: menu;
  background-color: #005f00;
  height: 75px;
  z-index: 999;
  position: sticky;
  top: 0;
  left: 0;
}
#navbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 30px;
  margin-top: 30px;
}
#navbar li {
  list-style: none;
  padding: 0 20px;
  position: relative;
}
#navbar li a {
  text-decoration: none;
  font-size: 21px;
  font-weight: 500;
  color: white;
  text-shadow: 1px 1px 2px black;
  transition: 0.3s ease;
}

#navbar li a:hover,
#navbar li a:active {
  color: red;
}
#navbar li a.active::after,
#navbar li a:hover::after {
  content: "";
  width: 60%;
  height: 2px;
  background: white;
  position: absolute;
  bottom: -4px;
  left: 20px;
}

#mobile {
  display: none;
  align-items: center;
}

#close {
  display: none;
}
/*---MAIN----*/
#mainpage {
  grid-area: content;
  margin-top: 20px;
}
.banner {
  height: 65vh;
  width: 100%;
  background-color: rgb(238, 238, 231);
  background-size: cover;
  background-image: url(../images/hero2.jpg);
  background-position: top 60% left 40%;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.banner h1 {
  letter-spacing: 10px;
  font-weight: bold;
  font-size: 60px;
  color: #005f00;;
  margin-bottom: 30px;
}
.banner h2 {
  font-size: 70px;
  font-weight: bold;
  /* color: black; */
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* dark outline improves contrast */
  margin-bottom: 30px;
}

.banner h3 {
  font-size: 30px;
  font-weight: bold;
  color: #005f00;;
  margin-bottom: 30px;
}

.banner p {
  font-size: 35px;
  font-weight: 600;
  margin-bottom: 1em;
  color: black;
  margin-bottom: 30px;
}
.banner button {
  background-color: #005f00;;
  background-image: url("#");
  color: whitesmoke;
  border: 0;
  padding: 14px 80px 14px 65px;
  background-repeat: no-repeat;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}
#store-feature {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
}

#store-feature .section {
  width: 180px;
  text-align: center;
  padding: 25px 15px;
  box-shadow: 20px 20px 34px rgba(0, 0, 0, 0.03);
  border: 1px solid #005f00;;
  border-radius: 4px;
  margin: 15px 0;
}
#store-feature .section img {
  width: 100%;
  padding: 10px;
}
#store-feature .section h4 {
  display: inline-block;
  padding: 9px;
  line-height: 1;
  border-radius: 4px;
  font-size: 15px;
  color: black;
  background-color: #fddde4;
}
#store-feature .section:nth-child(2) h4 {
  background-color: #cdebbc;
}
#store-feature .section:nth-child(3) h4 {
  background-color: #d1e8f2;
}
#store-feature .section:nth-child(4) h4 {
  background-color: #cdd4f8;
}
#product1 {
  text-align: center;
  padding-top: 30px;
}

#product1 .pro-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  flex-wrap: wrap;
}

#product1 .pro {
  width: 23%;
  min-width: 250px;
  padding: 10px 12px;
  border: 1px solid beige;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.03);
  margin: 15px 0;
  transition: 0.2s ease;
  position: relative;
}
#product1 .pro:hover {
  box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.06);
}

#product1 .pro img {
  width: 100%;
  border-radius: 20px;
}
#product1 .pro .des {
  text-align: start;
  padding: 10px 0;
}

#product1 .pro .des span {
  color: #606063;
  font-size: 12px;
}

#product1 .pro .des h3 {
  padding-top: 7px;
  color: #1a1a1a;
  font-size: 14px;
}
#product1 .pro .des li {
  font-size: 12px;
  color: #005f00;;
}

#product1 .pro .des h4 {
  padding-top: 7px;
  font-size: 15px;
  font-weight: 700;
  color: #088178;
}

#product1 .pro .cart {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50px;
  background-color: #e8f6ea;
  font-weight: 500;
  color: #088178;
  border: 1px solid #cce7d0;
  position: absolute;
  bottom: 20px;
  right: 10px;
}
/*-Poster / signup-*/
#poster {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-image: url("../images/clean.jpeg");
  width: 100%;
  height: 40vh;
  background-size: cover;
  background-position: center;
}
#poster h4 {
  color: #fff;
  font-size: 30px;
}
#poster h2 {
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.6); /* Dark background improves contrast */
  font-size: 30px;
  padding: 10px 15px;
  display: inline-block; /* So the background only wraps the text */
  border-radius: 4px;
  font-size: 30px;
  padding: 10px 0px;
}
#poster h2 span {
 color: #ffffff;
  text-shadow: 1px 1px 2px #000;
}

#poster h3 {
  color: #fefefe;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
   font-size: 30px;
}

button {
  font-size: 14px;
  font-weight: 600;
  padding: 15px 30px;
  color: black;
  background-color: #b30000;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: 0.2s;
}

#poster button:hover {
  background: #005f00;;
  color: white;
}
/*--NEWSLETTER--*/
#newsletter {
  display: flex;
  height: 100px;
  justify-content: space-around;
  flex-wrap: wrap;
  align-items: center;
  background-position: 20% 30%;
  background-repeat: no-repeat;
  background-color: #005f00;;
}

#newsletter h4 {
  font-size: 30px;
  font-weight: 700;
  color: whitesmoke;
  /* background-color: #ffff; */
}
#newsletter p {
  font-size: 20px;
  font-weight: 600;
  color: whitesmoke;
  /* background-color: #818ea0; */
}

#newsletter p span {
   color: #ffd700; 
  text-shadow: 1px 1px 2px #000;
}

/*--ABOUT PAGE---*/
#about-page {
  background-color: #fff;
  padding: 50px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  height: 70vh;
}
#about-page .section {
  margin-top: 30px;
  margin-bottom: 10px;
}

#about-page .section3 {
  margin-top: 100px;
}

#about-page .section h1,
#about-page h2 {
  color: #333;
}

#about-page p {
  line-height: 1.6;
  color: #555;
}

#about-page ul {
  list-style-type: disc;
  padding-left: 20px;
}

#about-page ul li {
  margin-bottom: 10px;
}

/*NEWS LETTER FORM*/
.form {
  display: flex;
  width: 50%;
}
legend {
  text-align: center;
  font-size: 40px;
  color: #005f00;;
}
.form input {
  height: 3.2rem;
  padding: 0 1.2rem;
  font-size: 14px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 4px;
  outline: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.form button {
  height: 3.2rem;
  background-color: red;
    color: #ffffff;
  text-shadow: 1px 1px 2px #000;
  white-space: nowrap;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
/*--CONTACT FORM--*/
.contact-info,
.contact-form {
  background-color: #fff;
  padding: 90px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.contact-info h2,
.contact-form h2 {
  margin-top: 0;
}
.contact-info p,
.contact-info a {
  margin: 10px 0;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}
.contact-form label {
  margin: 10px 0 5px;
}
.contact-form input,
.contact-form textarea {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.contact-form button {
  padding: 10px;
  background-color: #005f00;;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.contact-form button:hover {
  background-color: yellow;
  color: black;
}
/*--SignUp form */
/* Tooltip container */
/* Tooltip text */

.error {
  color: red;
  font-size: 0.9em;
}

.correct {
  color: #005f00;;
  font-size: 0.9em;
}
/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #005f00;;
  color: black;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  text-align: center;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 0.3s;
}
/* Tooltip text */
/* Show the tooltip text on hover */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Validation styling */
input,
select {
  padding-left: 40px; /* Space for the success icon */
}
.error {
  border: 2px solid red;
}

#form {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  margin-bottom: 30px;
}

/* Footer Styles */
footer {
  grid-area: footer;
  height: 100px;
}
.footerContainer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  padding: 20px 0;
  background-color: rgb(224, 224, 224);
  width: 100%;
  margin: 0 auto;
  margin-top: 40px;
}

.socialIcons a {
  color: #000;
  margin: 0 10px;
  font-size: 20px;
}

.footerNav ul {
  display: flex;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.footerNav ul li {
  margin: 0 10px;
}

.footerNav ul li a {
  text-decoration: none;
  color: black;
  font-weight: 600;
}

.footerBottom {
  text-align: center;
  padding: 10px 0;
  background-color: #eaeaea;
}

.footerBottom p {
  margin: 0;
}

.footerBottom .designer {
  font-weight: bold;
}

/*--MEDIA QUERIES--*/

@media (max-width: 799px) {
    .section {
        padding: 20px; /* Reduced padding */
    }

    /* Mobile Navigation */
    #navbar {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -300px;
        height: 100vh;
        width: 250px; /* Slightly narrower */
        background: #005f00; /* Match theme */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        padding: 60px 0 0 20px;
        transition: 0.3s;
        z-index: 1000;
    }
    #navbar.active {
        right: 0;
    }
    #navbar li {
        margin: 15px 0; /* Less spacing */
    }

    /* Mobile Menu Toggle */
    #mobile {
        display: flex;
        align-items: center;
        z-index: 999;
    }
    #mobile i {
        color: black;
        font-size: 24px;
        padding-left: 20px;
    }
    #close {
        display: initial;
        position: absolute;
        top: 20px;
        left: 20px;
        color: white;
        font-size: 20px;
        cursor: pointer;
    }
    #lg-bag {
        display: none;
    }

    /* Banner Adjustments */
    .banner h1 {
        letter-spacing: 2px;
        font-size: 18px;
    }
    .banner h2 {
        letter-spacing: 2px;
        font-size: 30px;
        word-break: break-word;
    }
    #hero {
        height: 60vh;
        padding: 0 20px;
        background-position: top 30% right 30%;
    }

    /* Store Features & Products */
    #store-feature {
        justify-content: center;
    }
    #store-feature .section {
        margin: 10px 5px;
        width: 45%; /* Better grid */
    }
    #product1 .pro-container {
        justify-content: center;
    }
    #product1 .pro {
        width: 100%;
        min-width: unset;
        margin: 10px 0;
    }

    /* Poster & Newsletter */
    #poster {
        height: 25vh;
    }
    #newsletter .form {
        width: 90%;
    }

    /* Footer */
    .footerBottom p {
        margin-top: 8px;
        font-size: 14px;
    }
    .socialIcons a {
        font-size: 20px;
        padding: 8px;
    }
}

/* Extra Small Screens */
@media (max-width: 400px) {
    .banner h2 {
        font-size: 24px;
    }
    #poster h2, #poster h3 {
        font-size: 20px;
    }
    #newsletter .form {
        width: 100%;
    }
}
/*
   Copyright  [2024] Modiri Tekanyo
   Permission is hereby granted, free of charge, to any person obtaining a copy of this web..
*/
