/* ==== MOBILE STYLES ==== */
/* Hide toggle by default */
.nav-toggle {
  display: none;
}

/* Hamburger to X animation */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-toggle span {
  transition: all 0.3s ease;
}


/* Show hamburger only on small screens */
@media (max-width: 768px) {

  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 3.5px;
    position: absolute;
    right: 1rem;
    top: 1.2rem;
    z-index: 200;
    cursor: pointer;
    margin-top: -7px;
  }

  .nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 1.5px;
  }

  .nav__links {
    display: none;
    flex-direction: column;
    background-color: var(--green);
    position: absolute;
    top: 57px;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem; /* 🔽 reduce padding */
    z-index: 150;
  }  

  .nav__links.active {
    display: flex;
  }

  .nav__links a {
    color: white;
    padding: 1rem 1rem; /* 🔽 reduce vertical padding */
    font-size: 1rem;    /* 🔽 reduce font size */
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }  

  .nav__links a:last-child {
    border-bottom: none;
  }

  .nav__links .dropdown-menu {
    position: relative; /* change from absolute */
    top: 0;
    left: 0;
    background: transparent; /* match background */
    box-shadow: none;
    border-radius: 0;
    padding: 1rem 0 0 1rem;
  }

  .nav__links .dropdown-menu a {
    font-size: 0.95rem;
    padding: 0.4rem 0;
    color: var(--accent);
  }
    

  
  /* Stack grid sections */
  .grid,
  .services__grid,
  .blog__grid,
  .achievements__grid {
    grid-template-columns: 1fr;
  }

  .card img {
    height: auto;
  }

  .hero {
    height: 70vh; 
  }
  
  .hero_caption {
    line-height: 3.5rem;
    color: var(--accent);
  }
  .hero__text h1 {
    font-size: 3rem;
  }

  .hero__text p {
    font-size: 1rem;
  }

  .section__title {
    font-size: 1.8rem;
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .back-to-top {
    text-align: left !important;
    margin-top: 1.5rem;
    padding-left: 0.5rem; /* optional left indent */
  }

  .back-to-top .btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.8rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
    

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

  .hero--simple .container {
    align-items: flex-start;
    text-align: left;
  }

  .about {
    padding: 5rem 0;
  }

  .about__text {
    text-align: center;
    margin-left: 25px;
    margin-top: -50px;
  }

  .about__text .btn {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__slider .slider-arrow {
    display: none;
  }

  .image-wrapper {
    position: relative;
    display: inline-block;
    height: 350px; /* ⬅️ You can adjust this */
  }

  .image-outline {
    display: none;
  }

  .footer__column.contact {
    margin-left: 1px; /* Adjust value as needed */
  }

  .hero__bg {
    height: 35vh;
  }

  .hero--simple {
    height: 200px;
  }

  .about {
    background-color: #f1fcde;
    padding: 9rem 0;
  }

  .mission-vision {
    background-color: #f1fcde;
    padding: 4rem 0;
    margin-top: -30px;
  }
  .mv__box { 
    padding: 3rem;
  }

  .achievements__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* two equal columns */
    gap: 1.5rem;
  }
  

  .filters {
    padding: 1.5rem 0;
  }
  
  .filter__group {
    gap: 0.5rem;
  }

  .grid {
    display: grid;
    gap: 1rem;
    max-width: 800px;
  }
  
  .card {
    min-height: 300px;
    padding: 1.5rem;
  }

  .catalogue-page .card .btn-accent {
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
    margin-top: -20px;
  }



  .whatsapp-popup {
    bottom: 1.1rem;
    right: 1.1rem;
    padding: 1.3rem;
    max-width: 270px;
  }
  .whatsapp-popup strong{
    font-size: 1.2rem;
  }

  .whatsapp-popup strong p{
    font-size: 0.2rem;
  }
  .hero__title {
    margin-top: 4rem;
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero__subtitle {
    font-size: 1rem;
    line-height: 1.3;
  }


  #newsletterForm {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  #newsletterForm input,
  #newsletterForm button {
    flex: 1 1 auto;
    min-width: 0;
  }


/* CEO MESSAGE*/
  .ceo__grid {
    flex-direction: column;
    text-align: center;
  }

  .ceo__text {
    padding: 0 1rem;
  }

  .ceo__text p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .ceo__text .ceo-signature {
    margin-top: 1.5rem;
    font-size: 1rem;
  }

  .ceo__image {
    order: -1; /* Show image above text */
    margin-bottom: 1.5rem;
  }

  .ceo__image img {
    width: 100%;
    max-width: 300px;
    border-radius: 16px;
  }

/* Featured products*/
  .product-row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .product-col {
    max-width: 90%;
    width: 100%;
    padding: 1.5rem;
    border-radius: 10px;
  }

  .product-col img {
    height: 160px;
    margin-top: 20px;
  }

  .featured-box {
    padding: 2rem 1rem;
  }

  .section__subtitle {
    font-size: 1rem;
    text-align: center;
  }

  .product-col .btn {
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }

  .why-shop__features {
    gap: 2rem;
  }
  
  .product-row {
    flex-wrap: wrap;
    width: 100%;
  }

  .product-col {
    width: 100%;
    max-width: 100%;
  }

  .card p {
    margin-bottom: 3rem; /* creates space for button */
  }
  
  

  /* Bottom Social Icons */
.footer__bottom-socials {
  gap: 1rem;
}

.back-to-top {
  text-align: center;
  margin-top: 1rem;
}
}


@media (max-width: 768px) {
  .hero--simple {
    height: auto; /* Allow flexible height */
    padding: 2rem 1rem;
    margin-top: 60px; /* Prevent clash with fixed navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .hero--simple .container {
    position: relative;
    z-index: 2;
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    filter: brightness(0.5);
  }

  .hero__title {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    word-break: break-word;
    text-align: left;
  }

  .hero__subtitle {
    font-size: 1.05rem;
    color: white;
    line-height: 1.5;
    word-break: break-word;
    text-align: left;
    font-size: 200;
  }

  .hero--simple .container {
    align-items: flex-start !important;
    text-align: left !important;
  }

}

@media screen and (max-width: 768px) and (orientation: portrait) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .hero {
    margin-top: calc(60px + env(safe-area-inset-top));
  }
}
