*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/*==========================navbar section===============================*/
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1em 2em;
  position: relative;
}

nav .logo {
  font-size: 1.5em;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 8em;
}

nav ul li a {
  text-decoration: none;
  color: black;
  font-size: 1em;
}

.carticon {
  margin-left: 2em;
  position: relative;
}

.carticon::after {
  content: attr(data-count);
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: rgb(55, 231, 172);
  padding: 0.2em 0.5em;
  font-size: 0.8em;
  border-radius: 50%;
  color: black;
  font-weight: bold;
}

/* Hamburger hidden by default */
.menu-toggle {
  display: none;
  font-size: 2em;
  cursor: pointer;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #f8f8f8;
    margin: 1em 0 0 0;
    padding: 1em;
    border-radius: 10px;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 0.5em 0;
  }

  .carticon {
    margin-left: auto;
  }
}


/*=====================================hero section====================================*/
.introduction {
  display: flex;
  flex-wrap: wrap; /* allows items to stack on smaller screens */
  gap: 2em;
  justify-content: center;
  align-items: stretch;
  padding: 1em;
}

.introduction h1,
.introduction h2 {
  text-align: center;
  color: white;
}

.intro {
  background-image: url(/Assets/images/House-8.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  flex: 1 1 55%; /* flexible width */
  min-height: 35em;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2em;
}

.intro h1 {
  margin-top: 0;
  font-size: clamp(1.8em, 3vw, 3em); /* responsive font size */
}

.intro p {
  margin: 1.5em 0;
  color: white;
  font-size: clamp(0.9em, 1.5vw, 1.1em);
}

.intro button {
  padding: 1em 2em;
  background: transparent;
  border: 1px solid white;
  color: white;
  width: 30%;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.intro button:hover {
  background: white;
  color: black;
}

.intro-content {
  flex: 1 1 35%; /* flexible width */
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}

.content-intro,
.intro-cont {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 30px;
  min-height: 16em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-intro {
  background-image: url(/Assets/images/House-3.jpg);
}

.intro-cont {
  background-image: url(/Assets/images/House-5.jpg);
  min-height: 17em;
}

.content-intro h2,
.intro-cont h2 {
  color: white;
  font-size: clamp(1.2em, 2vw, 2em);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* ================= Responsive Breakpoints ================= */

/* Tablets */
@media (max-width: 992px) {
  .introduction {
    flex-direction: column;
    align-items: center;
  }

  .intro,
  .intro-content {
    width: 100%;
    min-width: auto;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .intro {
    min-height: 25em;
    padding: 1.5em;
  }

  .intro h1 {
    font-size: 1.8em;
  }

  .intro p {
    font-size: 0.95em;
  }

  .intro button {
    width: 100%;
  }

  .content-intro,
  .intro-cont {
    min-height: 12em;
  }
}


/*=======================================products section========================================*/
.products {
  padding: 4em 2em;
}

.products h2 {
  font-size: 2em;
  color: black;
  text-align: center;
}

.products button {
  margin: 2em auto 0 auto;
  display: block;
  padding: 1em 4em;
  border-radius: 10px;
  border-width: 0.5px;
  background: transparent;
  cursor: pointer;
}

/* Products grid */
.products-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  margin: 4em 0;
}

.content-product {
  box-shadow: 1px 1px 5px rgb(199, 197, 197);
  text-align: center;
  background-color: aliceblue;
  border-radius: 10px;
  padding: 1em;
  transition: transform 0.3s ease;
}

.content-product:hover {
  transform: translateY(-5px);
}

.content-product img {
  max-width: 100%;
  height: auto;
}

.content-product button {
  float: right;
  padding: 0.6em 0.9em;
  margin: 0.5em;
  border-radius: 50%;
  background-color: rgb(5, 93, 5);
  border: none;
  color: white;
  cursor: pointer;
}
.hidden {
  display: none;
}


/* Responsive tweaks */
@media (max-width: 768px) {
  .products {
    padding: 2em 1em;
  }

  .products h2 {
    font-size: 1.6em;
  }

  .products button {
    padding: 0.8em 2em;
  }
}

@media (max-width: 480px) {
  .products h2 {
    font-size: 1.4em;
  }

  .content-product {
    padding: 0.8em;
  }

  .content-product button {
    padding: 0.5em 0.7em;
    margin: 0.3em;
  }
}



/*======================================banner section=================================*/
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: aliceblue;
  padding: 2em;
  gap: 2em;
  flex-wrap: wrap; /* allows stacking on smaller screens */
}

.banner-content {
  flex: 1;
  text-align: center;
  margin: 2em;
}

.banner-content h3 {
  font-size: 2.5em;
  padding-bottom: 1em;
}

.banner-content p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 1em;
}

.banner-content button {
  margin: 0 auto;
  display: block;
  padding: 1em 3em;
  border-radius: 10px;
  border: 1px solid #333;
  background: transparent;
  margin-top: 2em;
  cursor: pointer;
}
.banner-content a{
  text-decoration: none;
}

.banner img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .banner {
    flex-direction: column; /* stack vertically */
    text-align: center;
  }

  .banner-content {
    margin: 1.5em 1em;
  }

  .banner-content h3 {
    font-size: 2em;
  }

  .banner-content p {
    font-size: 0.95em;
  }
}

@media (max-width: 576px) {
  .banner-content h3 {
    font-size: 1.6em;
  }

  .banner-content p {
    font-size: 0.9em;
  }

  .banner-content button {
    padding: 0.8em 2em;
    font-size: 0.9em;
  }
}


/*============================================Testimonials section====================================*/
.Testimonial {
  text-align: center;
  padding: 2em 1em;
}

.Testimonial h3 {
  font-size: 2em;
  margin-bottom: 1em;
}

.testimonial-content {
  display: flex;
  flex-wrap: wrap; /* allows wrapping on small screens */
  justify-content: center;
  gap: 1.5em; /* space between items */
}

.content-testimonial {
  flex: 1 1 300px; /* flexible cards with min width */
  max-width: 350px;
  text-align: center;
  box-shadow: 1px 1px 5px rgb(183, 183, 183);
  padding: 2em;
  border-radius: 30px;
  background-color: aliceblue;
  transition: transform 0.3s ease;
}

.content-testimonial:hover {
  transform: translateY(-5px);
}

.content-testimonial img {
  border-radius: 50%;
  width: 70px;
  height: 70px;
  object-fit: cover;
  margin-bottom: 1em;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
  .Testimonial h3 {
    font-size: 1.6em;
  }
  .testimonial-content {
    flex-direction: column; /* stack items */
    align-items: center;
  }
  .content-testimonial {
    width: 100%;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .Testimonial h3 {
    font-size: 1.3em;
  }
  .content-testimonial {
    padding: 1.5em;
  }
  .content-testimonial img {
    width: 60px;
    height: 60px;
  }
}


/*===================================newsletter section====================*/
.Newsletter {
    display: flex;
    flex-wrap: wrap; /* allows content to wrap on smaller screens */
    align-items: center;
    justify-content: center;
    background-color: aliceblue;
    padding: 2em 1em;
    gap: 2em; /* space between image and content */
}

.Newsletter img {
    max-width: 100%;
    height: auto;
}

.Newsletter-content {
    text-align: center;
    padding: 2em;
    max-width: 500px; /* limit width for readability */
    flex: 1; /* allow it to grow/shrink with screen */
}

.Newsletter-content h4 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

.Newsletter-content p {
    line-height: 1.5em;
    margin-bottom: 1.5em;
}

.Newsletter-content input {
    width: 100%; /* full width on smaller screens */
    max-width: 300px; /* optional, to prevent too large */
    padding: 0.5em 1em;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 1em;
    box-sizing: border-box;
}

.Newsletter-content button {
    display: block;
    margin: 0 auto;
    background-color: rgb(5, 93, 5);
    padding: 0.5em 2em;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .Newsletter {
        flex-direction: column;
        padding: 2em 1em;
    }

    .Newsletter-content {
        margin-left: 0; /* remove large left margin */
        padding: 1em;
    }

    .Newsletter-content h4 {
        font-size: 1.5em;
    }

    .Newsletter-content input {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .Newsletter-content h4 {
        font-size: 1.2em;
    }

    .Newsletter-content p {
        font-size: 0.9em;
    }

    .Newsletter-content button {
        padding: 0.5em 1.5em;
    }
}


/*===================================Gallery section======================================*/
.Gallery {
    padding: 2em;
}

.Gallery h2 {
    font-size: 2em;
    color: black;
    text-align: center;
    margin-bottom: 1em;
}

.Gallery-content {
    display: flex;
    flex-wrap: wrap; /* allows items to wrap on smaller screens */
    justify-content: center; /* center the content */
    gap: 1em; /* space between elements */
}

.Gallery-cont {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.cont-Gallery {
    display: flex;
    flex-wrap: wrap; /* wrap images on small screens */
    justify-content: center;
    gap: 1em;
}

.content-Gallery img {
    max-width: 100%;
    height: auto;
    box-shadow: 1px 1px 5px rgb(141, 142, 143);
    border-radius: 30px;
}

/* Responsive breakpoints */
@media (max-width: 992px) {
    .cont-Gallery {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .Gallery-content {
        flex-direction: column;
    }

    .Gallery-cont {
        width: 100%;
    }

    .content-Gallery img {
        width: 90%; /* images take most of screen width */
        margin: 0.5em auto;
    }
}


/*=================================footer section==============================*/
.footer {
    text-align: center;
    background-color: aliceblue;
    padding: 2em 1em;
}

.footer-content {
    display: flex;
    flex-wrap: wrap; /* allow items to wrap on small screens */
    justify-content: space-around; /* spread out items evenly */
    gap: 2em; /* space between items */
    margin: 2em 0;
}

.content-footer {
    
    flex: 1 1 200px; /* grow and shrink, min width 200px */
    text-align: center;
}

.content-footer h4 {
    margin-bottom: 0.5em;
}

.content-footer ul {
    list-style: none;
    padding: 0;
}

.content-footer ul li {
    margin: 0.3em 0;
}

.content-footer ul li a {
    text-decoration: none;
    color: black;
}

.footer hr {
    margin: 2em 0;
    border: 0.5px solid #ccc;
}

.footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        margin: 1em 0;
    }
    .content-footer {
        margin: 1em 0;
        text-align: center;
    }
}



/*==================================cart section========================*/
.cart-container{
  max-width: 800px;
  margin-top: 80px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.cart-item { 
      display: flex;
      justify-content: space-between; 
      margin: 10px 0;
      padding: 10px;
      border-bottom: 1px solid #ccc; 
}
.cart-item-details {
        flex: 1;
        min-width: 150px;
}
.cart-item button{
    background: rgb(5, 93, 5);
    border: none;
    padding: 0.25em 1em;
    border-radius: 10px;
    color: white;
}
.cart-item img {
      width: 100px;
      height: 100px;
      object-fit: cover;
      margin-right: 15px; 
}
.cart-total{
      font-size: 20px;
      margin-top: 20px;
      text-align: right;
      font-weight: bold;
}
.submitBtn{
      padding: 1em 8em; 
      background: rgb(5, 93, 5);
      color: white;
      border: none;
      cursor: pointer;
      margin-top: 20px;
      border-radius: 10px;
      margin: auto;
      display: block;
}

.cart-container h1{
  margin-bottom: 20px;
  text-align: center;
  color: black;
  
}
.cartItems{
    display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}



/*===========================================payment section=======================================*/

#paymentPage{
  background: white;
  padding: 2.5rem;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin-top: 100px;
  width: 100%;
}

#paymentPage h2{
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}
.payment-content label{
  font-size: 1.2rem;
  font-weight: 500;
}
.payment-content input{
  padding: 10px;
  display: block;
  width: 80%;
  margin: 10px 0;
  
}
.payBtn{
    text-align: center;
    padding: 0.8rem;
    font-size: 1.4rem;
    font-weight: 500;
    background-color: #00c79c;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50%;
    margin: auto;
    display: block;
    margin-bottom: 1rem;
    gap: 10px;
}
.payBtn:hover {
    background-color: #009e7c;
    transform: translateY(-2px);
}
.divider{
  text-align: center;
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 1.5rem 0;
  position: relative;
}
.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #ddd;
}
  
.divider::before {
    left: 0;
}
  
.divider::after {
    right: 0;
}
.courtesy-content{
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}
.paystackBtn{
    background-color: rgb(79, 171, 247);
    padding: 0.7rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.safaricomBtn{
    background-color: #9ef1b2;
    padding: 0.7rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
#proceedDeliveryBtn{
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 1rem;
    border: none;
    width: 50%;
    margin: auto;
    display: block;
    margin-bottom: 1rem;
    gap: 10px;
    color: white;
}
#deliveryForm{
  margin: auto;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0px 5px 15px rgba(7, 7, 7, 0.05);
  padding: 1.5rem;
  background: white;
  margin-top: 50px;
}
#deliverySection h2{
  text-align: center;
  margin-bottom: -2em;
  font-size: 2rem;
}
#deliveryForm label{
   font-size: 1.2rem;
   font-weight: 500;
  
}
#deliveryForm input{
  padding: 5px;
  display: block;
  width: 80%;
  margin: 10px 0;
}
#deliveryForm button{
      text-align: center;
    padding: 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgb(5, 93, 5);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50%;
    margin: auto;
    display: block;
    margin-bottom: 1rem;
    gap: 10px;
}
/*============================ORDER FORM=========================*/
#orderForm{
  display: none;
  text-align: center;
    max-width: 800px;
  margin-top: 80px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  
}
#orderForm h3{
  font-size: 3em;
  color: rgb(89, 194, 236);
}
#orderForm input{
  padding: 0.2em 5em;
}
#orderForm input, #orderForm textarea {
      width: 100%;
      margin-top: 10px;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
}
#orderForm button {
    padding: 1em 2em;
    background: linear-gradient(to right, #c471f5, #fa71cd);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin: 0 auto;
    display: block;
    margin-top: 40px;
}
#orderForm button:hover {
     background-color: rgb(39, 229, 39);
    color: white;
    cursor: pointer;
}
#toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #28a745;
  color: white;
  text-align: center;
  border-radius: 8px;
  padding: 12px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
#toast.show {
  visibility: visible;
  opacity: 1;
}

