/*==========whatsapp popup==================
==================================== */

/* ─── Floating WhatsApp button ─────────────────────────────────
   Position: bottom-right corner.
   bottom: 30px  →  same baseline as back-to-top
   right: 30px   →  same column as back-to-top
   We keep it here and move back-to-top instead (see override at the bottom).
   ───────────────────────────────────────────────────────────── */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 57px;
  height: 57px;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.3s;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
  70%  { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.whatsapp-btn:hover {
  background: #1ebe57;
}

/* ─── "Need Help? Chat with us" label ──────────────────────────
   Sits to the LEFT of the WhatsApp button (not above it).
   bottom matches the button centre so they align vertically.
   right = button-right (30) + button-width (57) + small gap (12) = 99px
   ───────────────────────────────────────────────────────────── */
#whatsappText {
  position: fixed;
  bottom: 38px;           /* vertically centres with the 57px button at bottom:30px  →  30 + (57-22)/2 ≈ 47  ; using 38 aligns text baseline nicely */
  right: 99px;            /* 30 (btn right) + 57 (btn width) + 12 (gap) */
  background: #F5F7F9;
  color: #000;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  white-space: nowrap;
  margin: 0;              /* kill any default <p> margin */
  transition: opacity 0.5s ease;
}

#whatsappText.hide {
  opacity: 0;
  pointer-events: none;
}

/* ─── Chat Box (pop-up form) ───────────────────────────────────
   Anchored above the WhatsApp button so it never overlaps page content.
   bottom = button-bottom (30) + button-height (57) + gap (12) = 99px
   ───────────────────────────────────────────────────────────── */
.chat-box {
  position: fixed;
  bottom: 99px;
  right: 30px;
  width: 280px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.5s ease;
  z-index: 9999;
}

.chat-box.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ─── Chat header ──────────────────────────────────────────── */
.chat-header {
  background: #25D366;
  color: #fff;
  font-weight: bold;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-header-text {
  text-align: center;
}

/* ─── Input fields ─────────────────────────────────────────── */
.chat-body .form-control {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  color: #000;
  background: #fff;
  box-shadow: none;
}

.chat-body .form-control::placeholder {
  color: #888;
  font-size: 12px;
}

/* ─── Send button ──────────────────────────────────────────── */
.chat-btn {
  background: #25D366;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
}

.chat-btn:hover {
  background: #1ebe57;
}

/* ─── Close button (inside header, if used) ───────────────── */
.whatsapp-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.whatsapp-close-btn:hover {
  color: #000;
}

/* ─── Chat body wrapper ────────────────────────────────────── */
.chat-body {
  padding: 15px;
  font-size: 14px;
  color: #333;
}

.chat-body p {
  margin-bottom: 15px;
}

/* ─── Spin helpers (icon toggle animation) ─────────────────── */
.icon-spin {
  display: inline-block;
  animation: spin 0.5s linear;
}

.icon-spin-reverse {
  display: inline-block;
  animation: spin-reverse 0.5s linear;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(180deg); }
}

@keyframes spin-reverse {
  from { transform: rotate(180deg); }
  to   { transform: rotate(0deg); }
}

/* ─── BACK-TO-TOP override ─────────────────────────────────────
   style.css sets  right: 30px; bottom: 30px  — that collides with the
   WhatsApp button.  We move it to the LEFT of the WhatsApp button.
   right = btn-right(30) + btn-width(57) + gap(12) + label-width(~160) + gap(12) = ~271
   A simpler, reliable approach: just put it at bottom: 100px so it sits
   ABOVE the WhatsApp button in the same column.
   ───────────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 100px;          /* above the 57px WhatsApp button + gap */
  z-index: 99;
  transition: 0.5s;
}

/*==========Gallery==================
==================================== */

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

.gallery-item {
  display: block;
}

.gallery-item.hide {
  display: none;
}

.modal-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 1051;
}

/*==========Quality==================
==================================== */

.quality-section {
  background: linear-gradient(135deg, #e9f4ff 0%, #ffffff 100%);
  border-radius: 1rem;
  padding: 60px 30px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.quality-icon {
  font-size: 2.5rem;
  color: #0d6efd;
  margin-bottom: 15px;
}

.quality-point {
  background: #ffffff;
  border-left: 5px solid #0d6efd;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.quality-point:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.quality-point i {
  color: #0d6efd;
  margin-right: 10px;
}

@media (max-width: 768px) {
  .quality-section {
    padding: 40px 20px;
  }
}

/*==========Product Category==================
============================================ */

.categories-section {
  padding: 60px 20px;
}

.category-card {
  background: #ffffff;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  text-align: center;
  padding: 40px 25px;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.category-icon {
  font-size: 2.8rem;
  color: #198754;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(25, 135, 84, 0.1);
}

.category-card h5 {
  font-weight: 600;
  color: #000;
  margin-bottom: 12px;
}

.category-card p {
  color: #6c757d;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .category-card {
    padding: 30px 20px;
  }
}

/*==========Research & Quality==================
============================================ */

.hex-section {
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hex-section h2 {
  font-weight: 700;
  margin-bottom: 60px;
  color: #0056A6;
}

.hex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  justify-items: center;
  overflow: hidden;
}

.hex {
  position: relative;
  width: 280px;
  height: 160px;
  background: linear-gradient(135deg, #00A78E, #0056A6);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  color: white;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  will-change: box-shadow;
}

.hex:hover {
  box-shadow: 0 15px 35px rgba(0, 167, 142, 0.5);
}

.hex::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  clip-path: inherit;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.hex:hover::before {
  opacity: 1;
}

.hex-content {
  position: relative;
  z-index: 2;
}

.hex-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.hex-content p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #e8f9f6;
}

@media (max-width: 767px) {
  .hex-section h2 {
    font-size: 1.8rem;
  }
  .hex {
    width: 240px;
    height: 140px;
  }
  .hex-content h4 {
    font-size: 1rem;
  }
  .hex-content p {
    font-size: 0.85rem;
  }
}

/*==========Domestic Market==================
============================================ */

.market-section {
  display: flex;
  flex-wrap: wrap;
  min-height: 480px;
  font-family: "Poppins", sans-serif;
}

.market-left,
.market-right {
  flex: 1 1 50%;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.market-left {
  background: linear-gradient(135deg, #003b8e 0%, #0056a6 100%);
  color: #ffffff;
}

.market-right {
  background: #ffffff;
  color: #03314b;
}

.market-title {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #fff;
  position: relative;
}

.market-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: #00a78e;
  border-radius: 2px;
}

.market-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.market-points li {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
}

.market-points li::before {
  content: "✔️";
  margin-right: 10px;
  font-size: 1.1rem;
  color: #00e1b6;
}

.market-cta {
  margin-top: 30px;
}

.market-btn {
  background-color: #00a78e;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.market-btn:hover {
  background-color: #008873;
}

@media (max-width: 991px) {
  .market-left,
  .market-right {
    flex: 1 1 100%;
    padding: 40px 30px;
    text-align: center;
  }

  .market-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .market-points li {
    justify-content: center;
  }
}

/*==========manufacturing services==================
============================================ */

.manufacturing-services {
  padding: 80px 20px;
  background: #f8fafc;
  font-family: "Poppins", sans-serif;
}

.manufacturing-services h2 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 60px;
  color: #0056a6;
  position: relative;
}

.manufacturing-services h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: #00a78e;
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.manufacturing-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  text-align: center;
  padding: 30px 20px;
  height: 100%;
}

.manufacturing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.manufacturing-img {
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #00a78e;
  margin-bottom: 20px;
}

.manufacturing-card h5 {
  font-weight: 600;
  color: #03314b;
  margin-bottom: 12px;
}

.manufacturing-card p {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .manufacturing-services h2 {
    font-size: 1.7rem;
  }
  .manufacturing-img {
    width: 100px;
    height: 100px;
  }
}

/*==========Product Logo==================
============================================ */

.logo-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
  height: auto;
}

.column {
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 25px;
  transition: all 0.5s ease;
}

.logo img {
  padding-top: 20px;
  max-width: 100%;
  height: auto;
  max-height: 100px;
}

/* ─── hide/show controlled by JS ─── */
.column {
  display: none;
}

.column.show {
  display: flex;   /* was "block" — flex keeps the centering working */
}

@media (max-width: 1200px) {
  .logo-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .logo-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .logo-container {
    grid-template-columns: repeat(2, 1fr);   /* fixed: had a space → "repeat (2,…)" which is invalid */
    padding: 10px;
  }
  .logo img {
    max-height: 80px;
  }
}