/* INDEX.CSS - Homepage Styles
   Source Grid Agricultural Platform */

/* ========================================
   BANNER SECTION
   ======================================== */
.banner_main {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('../../images/home/green-tea-bud-leaves-green-tea-plantations-morning-nature-background.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  min-height: 500px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.text-bg h1 {
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

.banner-cta {
  background-color: var(--grey);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-block;
  transition: var(--transition);
}

.banner-cta:hover {
  background-color: var(--olive-green);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99, 107, 47, 0.4);
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--olive-green);
  margin-bottom: 1rem;
}

.title-underline {
  width: 80px;
  height: 4px;
  background-color: var(--olive-green);
  margin: 0 auto;
  border-radius: 2px;
}

/* Product Carousel */
.product-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}

.carousel-controls {
  display: none; /* Hide carousel controls since we're using grid */
}

.swiper {
  width: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.swiper-slide {
  height: auto;
  display: flex;
  justify-content: center;
}

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(99, 107, 47, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  padding: 1rem;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  width: 100%;
}

.overlay-content span {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  width: 100%;
  text-align: center;
}

.product-info {
  padding: 1.5rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-info h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--olive-green);
  margin-bottom: 0.5rem;
}

.product-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ========================================
   SHOW MORE FUNCTIONALITY
   ======================================== */

/* Hidden Products - Initially not displayed */
.product-card.hidden-product {
  display: none;
}

/* Show Products - Displayed when expanded */
.product-card.show-product {
  display: block;
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Show More / Show Less Button Container */
.show-more-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 2rem 0;
}

.show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--olive-green);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(99, 107, 47, 0.2);
}

.show-more-btn:hover {
  background: var(--olive-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 107, 47, 0.3);
}

.show-more-btn:active {
  transform: translateY(0);
}

.show-more-btn i {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

/* Show Less Button — outlined style to visually distinguish from Show More */
.show-less-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--olive-green);
  border: 2px solid var(--olive-green);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.show-less-btn:hover {
  background: var(--olive-green-light);
  transform: translateY(-2px);
}

.show-less-btn:active {
  transform: translateY(0);
}

.show-less-btn i {
  font-size: 0.9rem;
}

/* Utility — hides a button without removing it from the DOM */
.btn-hidden {
  display: none !important;
}

/* Swiper Navigation */
.swiper-button-prev,
.swiper-button-next {
  width: 45px;
  height: 45px;
  background-color: var(--grey);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: var(--olive-green);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 1.2rem;
}

.swiper-pagination-bullet {
  background-color: var(--grey);
  opacity: 0.5;
  width: 12px;
  height: 12px;
}

.swiper-pagination-bullet-active {
  background-color: var(--olive-green);
  opacity: 1;
}

/* ========================================
   PREMIUM EXPORTS SECTION
   ======================================== */
.premium-exports {
  padding: 5rem 0;
  background-color: var(--grey-light);
}

.d_flex {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.exports-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--olive-green);
  line-height: 1.3;
}

.exports-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  text-align: justify;
}

/* Product Icons */
.product-icons {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.product-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.icon-circle {
  width: 80px;
  height: 80px;
  background-color: var(--white);
  border: 3px solid var(--olive-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 10px var(--shadow);
}

.icon-circle:hover {
  background-color: var(--olive-green-light);
  border-color: var(--olive-green-hover);
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(99, 107, 47, 0.3);
}

.icon-circle img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.product-icon span {
  font-weight: 600;
  color: var(--black);
  font-size: 0.95rem;
}

/* ========================================
   CERTIFICATIONS SECTION
   ======================================== */
.certifications {
  padding: 5rem 0;
  background-color: var(--white);
}

.titlepage {
  margin-bottom: 3rem;
}

.titlepage h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
}

.titlepage h2 span {
  color: var(--olive-green);
}

.titlepage p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Certification Carousel */
.certification-carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.certification-item {
  display: flex;
  justify-content: center;
}

.certification-card {
  background: var(--white);
  border: 2px solid var(--grey-light);
  border-radius: 15px;
  padding: 2rem 1rem;
  text-align: center;
  transition: var(--transition);
  width: 100%;
  max-width: 250px;
}

.certification-card:hover {
  border-color: var(--olive-green);
  box-shadow: 0 6px 20px var(--shadow);
  transform: translateY(-5px);
}

.certification-img {
  margin-bottom: 1rem;
}

.certification-img img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto;
}

.certification-name {
  font-weight: 600;
  color: var(--olive-green);
  font-size: 0.9rem;
}

/* Read More Button */
.read_more {
  background-color: var(--grey);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  transition: var(--transition);
}

.read_more:hover {
  background-color: var(--olive-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 107, 47, 0.3);
}

/* ========================================
   FOOTER & CONTACT SECTION
   ======================================== */
footer {
  background-color: var(--olive-green);
  color: var(--white);
  padding: 1rem 0 0;
}

.footer .titlepage {
  margin-bottom: 2rem;
}

.footer .titlepage h2 {
  font-size: 2.5rem;
  color: var(--white);
}

.contact-subtitle {
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.6;
}

/* Contact Tabs */
.contact-container {
  background-color: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.contact-tabs {
  margin-bottom: 2rem;
}

.tab-selector {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.tab-btn {
  background-color: var(--grey);
  color: var(--white);
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  background-color: var(--olive-green-hover);
}

.tab-btn.active {
  background-color: var(--olive-green);
  box-shadow: 0 4px 12px rgba(99, 107, 47, 0.3);
}

.tab-content {
  text-align: center;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-description h3 {
  font-size: 1.8rem;
  color: var(--olive-green);
  margin-bottom: 0.8rem;
}

.tab-description p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Contact Form */
.main_form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.contactus,
.contactus1 {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #ddd;
  border-radius: 50px;
  font-size: 1rem;
  color: var(--black);
  background-color: var(--white);
  transition: var(--transition);
}

.contactus1 {
  border-radius: 20px;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.contactus:focus,
.contactus1:focus {
  outline: none;
  border-color: var(--olive-green);
  box-shadow: 0 0 0 3px var(--olive-green-light);
}

.focus-border {
  display: none;
}

/* Submit Button */
.send_btn {
  background-color: var(--grey);
  color: var(--white);
  padding: 1rem 3rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.send_btn:hover {
  background-color: var(--olive-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 107, 47, 0.4);
}

.send_btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Footer Info */
.footer-info {
  margin-top: 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.border_right {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

/* Location Icons */
.location_icon {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.location_icon li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.location_icon li i {
  color: var(--white);
  font-size: 1.2rem;
}

/* Social Icons */
.social_icon {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.social_icon li a {
  width: 45px;
  height: 45px;
  background-color: var(--white);
  color: var(--olive-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social_icon li a:hover {
  background-color: var(--olive-green-hover);
  color: var(--white);
  transform: translateY(-3px);
}

/* Quick Links */
.link {
  list-style: none;
  padding: 0;
}

.link li {
  margin-bottom: 0.8rem;
}

.link li a {
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

.link li a:hover {
  color: var(--white);
  padding-left: 5px;
}

/* Privacy Section */
.privacy-text {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.sub_btn {
  background-color: var(--white);
  color: var(--olive-green);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  transition: var(--transition);
}

.sub_btn:hover {
  background-color: var(--olive-green-hover);
  color: var(--white);
  transform: translateY(-2px);
}

/* Copyright */
.copyright {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.copyright p {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 0.95rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1199px) {
  .border_right {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .footer-box {
    margin-bottom: 2rem;
  }

  .footer-box h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
  }

  .footer-info {
    margin-top: 2rem;
    padding-top: 2rem;
  }
}

@media (max-width: 991px) {
  .text-bg h1 {
    font-size: 3rem;
  }

  .section-title h2,
  .titlepage h2,
  .exports-title h2 {
    font-size: 2rem;
  }

  .d_flex {
    flex-direction: column;
  }

  .border_right {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .product-carousel,
  .swiper {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Header responsiveness for tablets */
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 4px 12px var(--shadow);
  }

  .navbar-nav {
    flex-direction: column;
    width: 100%;
  }

  .nav-item {
    width: 100%;
    text-align: center;
  }

  .search-container {
    width: 100%;
    justify-content: center;
  }

  .navbar-toggler {
    display: block;
  }
}

@media (max-width: 768px) {
  /* Centre section titles on mobile */
  .exports-title {
    text-align: center;
  }

  .titlepage {
    text-align: center;
  }

  .product-carousel,
  .swiper {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .certification-carousel {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .text-bg h1 {
    font-size: 2.5rem;
  }

  .banner_main {
    min-height: 400px;
    padding: 3rem 1rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .contact-container {
    padding: 1.5rem;
  }

  .tab-selector {
    flex-direction: column;
  }

  .tab-btn {
    width: 100%;
  }

  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 4px 12px var(--shadow);
  }

  .navbar-nav {
    gap: 0.5rem;
    flex-direction: column;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    text-align: center;
  }

  .search-container {
    width: 100%;
    justify-content: center;
  }

  .search-input {
    width: 100%;
    max-width: 300px;
  }

  .search-input:focus {
    width: 100%;
    max-width: 300px;
  }

  .btn-primary-custom {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .navbar-toggler {
    margin-left: auto;
  }

  .product-icons {
    justify-content: center;
  }

  .certification-carousel {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .product-carousel,
  .swiper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .certification-carousel {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .text-bg h1 {
    font-size: 2rem;
  }

  .logo_section {
    flex: 1;
    padding-right: 10px;
  }

  .logo_section img {
    max-width: 140px;
  }

  .navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .navbar-toggler {
    display: inline-block !important;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .search-input {
    width: 100%;
    max-width: 250px;
  }

  .search-input:focus {
    width: 100%;
    max-width: 250px;
  }

  .header .row {
    flex-wrap: nowrap;
    position: relative;
  }

  /* Prevent text from disappearing */
  .nav-link {
    white-space: nowrap;
    overflow: visible;
  }

  .product-icon {
    flex: 0 0 calc(50% - 1rem);
  }

  .icon-circle {
    width: 60px;
    height: 60px;
  }

  .icon-circle img {
    width: 30px;
    height: 30px;
  }
}

/* Request Sourcing Button Responsive Fix */
@media (max-width: 991px) {
  .btn-primary-custom {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .navbar-nav .nav-item:last-child {
    width: 100%;
    margin-top: 0.5rem;
  }

  .btn-primary-custom {
    width: 100%;
    text-align: center;
  }
}
