/* ==========================================================================
   RAMDEV POLYPLAST - Bootstrap 5 & jQuery Integration Stylesheet
   Brand Theme: Emerald Green (#008744) & Dark Slate (#0f172a / #1e293b)
   ========================================================================== */

:root {
  --primary-color: #008744;
  --primary-hover: #007038;
  --primary-dark: #00562b;
  --primary-light: #e8f7ee;
  --primary-glow: rgba(0, 135, 68, 0.18);
  
  --secondary-color: #10b981;
  --accent-gold: #f59e0b;
  
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  
  --bs-primary: #008744;
  --bs-primary-rgb: 0, 135, 68;
}

/* Base styling */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--slate-50);
  color: var(--slate-800);
  overflow-x: hidden;
}

/* Header & One-Line Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.brand-logo-img {
  height: 48px;
  max-height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.nav-link {
  color: var(--slate-700) !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 12px !important;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2.5px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 135, 68, 0.3);
}

.btn-whatsapp {
  background-color: #25d366 !important;
  border-color: #25d366 !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: all 0.25s ease;
}

.btn-whatsapp:hover {
  background-color: #20bd5a !important;
  border-color: #20bd5a !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

.btn-outline-custom {
  border: 2px solid var(--slate-200);
  color: var(--slate-800);
  font-weight: 700;
  background: #ffffff;
  transition: all 0.25s ease;
}

.btn-outline-custom:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--primary-light);
}

/* Block Sections */
.block-section {
  padding: 80px 0;
}

.block-section-alt {
  background-color: #ffffff;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.block-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.block-card:hover {
  border-color: rgba(0, 135, 68, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Badges */
.badge-pill-custom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 50px;
  border: 1px solid rgba(0, 135, 68, 0.2);
}

/* Hero Section */
.hero-block {
  padding: 60px 0 80px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9f3 100%);
  border-bottom: 1px solid var(--slate-200);
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--primary-color);
}

.hero-tank-img-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 135, 68, 0.2);
}

.hero-tank-img-wrap {
  height: 480px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--slate-50);
}

.hero-tank-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-tank-img-card:hover .hero-tank-img {
  transform: scale(1.03);
}

/* Product Cards */
.cat-card {
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  padding: 26px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 18px 18px 0 0;
}

.cat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 135, 68, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.cat-card:hover::before {
  opacity: 1;
}

.cat-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.cat-icon-box svg {
  width: 26px;
  height: 26px;
}

/* Specification Tabs */
.specs-wrapper {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.nav-pills-custom .nav-link {
  background: var(--slate-100);
  color: var(--slate-700) !important;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 20px !important;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-pills-custom .nav-link::after {
  display: none;
}

.nav-pills-custom .nav-link:hover {
  background: var(--slate-200);
  color: var(--slate-900) !important;
}

.nav-pills-custom .nav-link.active {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.specs-search-box {
  position: relative;
}

.specs-search-box input {
  padding-left: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--slate-200);
  background: var(--slate-50);
}

.specs-search-box input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--primary-glow);
  background: #ffffff;
}

.specs-search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--slate-400);
  pointer-events: none;
}

/* Specs Table */
.custom-table-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--slate-200);
}

.custom-table th {
  background: var(--slate-900) !important;
  color: #ffffff !important;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 18px;
  border-bottom: 2px solid var(--primary-color);
  white-space: nowrap;
}

.custom-table td {
  padding: 14px 18px;
  vertical-align: middle;
  white-space: nowrap;
}

.custom-table tbody tr:hover {
  background-color: var(--primary-light) !important;
}

/* Table Specification Header & Scroll Hint */
.table-spec-header {
  background-color: var(--primary-light);
  border: 1.5px solid rgba(0, 135, 68, 0.25);
  border-radius: 14px;
  padding: 12px 18px;
}

.spec-header-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

@media (min-width: 576px) {
  .spec-header-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.spec-title {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 0.98rem;
  line-height: 1.4;
}

.spec-subtitle {
  font-weight: 600;
  color: var(--slate-600);
  font-size: 0.85rem;
  display: inline-block;
}

.spec-badge {
  background: var(--primary-color);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.table-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-500);
  background: var(--slate-100);
  border: 1px dashed var(--slate-200);
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 8px;
}

/* Visiting Business Card Block */
.business-card-wrap {
  background: linear-gradient(135deg, #ffffff 0%, #f4fbf7 100%);
  border: 2px solid var(--primary-color);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.person-contact-card {
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.person-contact-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(0, 135, 68, 0.12);
  transform: translateY(-2px);
}

.partner-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.partner-meta {
  text-align: left;
}

.partner-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-color);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 20px;
}

.partner-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-top: 2px;
  white-space: nowrap;
}

.partner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-partner-call {
  border-radius: 50px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-partner-wa {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-partner-wa:hover {
  background: #20bd5a;
  color: #ffffff;
  transform: scale(1.08);
}

/* Floating WhatsApp & Sticky Mobile Bar */
.desktop-whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1040;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: all 0.3s ease;
}

.desktop-whatsapp-float:hover {
  transform: scale(1.1);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.mobile-sticky-bottom {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: #ffffff;
  padding: 10px 16px;
  border-top: 1px solid var(--slate-200);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

/* Animated Hamburger Button */
.mobile-menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1.5px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.mobile-menu-btn:focus,
.mobile-menu-btn:hover {
  outline: none;
  background: var(--primary-light);
  border-color: var(--primary-color);
}

.mobile-menu-btn .bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: var(--slate-800);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

/* Transform Hamburger to X when active */
.mobile-menu-btn.is-active {
  background: #fee2e2;
  border-color: #ef4444;
}

.mobile-menu-btn.is-active .bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background-color: #ef4444;
}

.mobile-menu-btn.is-active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.is-active .bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background-color: #ef4444;
}

/* Desktop navbar menu rules */
@media (min-width: 992px) {
  #navbarMain {
    display: flex !important;
  }
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
  .site-header .container {
    position: relative;
  }

  #navbarMain {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--slate-200);
    border-bottom: 3px solid var(--primary-color);
    padding: 16px 20px 20px 20px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
    z-index: 1050;
  }

  #navbarMain .navbar-nav .nav-link {
    padding: 12px 16px !important;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 10px;
    margin-bottom: 6px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    text-align: center;
    transition: all 0.2s ease;
  }

  #navbarMain .navbar-nav .nav-link:hover,
  #navbarMain .navbar-nav .nav-link.active {
    background: var(--primary-light);
    color: var(--primary-color) !important;
    border-color: rgba(0, 135, 68, 0.35);
  }

  #navbarMain .navbar-nav .nav-link::after {
    display: none;
  }

  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-tank-img-wrap {
    height: 350px;
  }
  
  .desktop-whatsapp-float {
    display: none;
  }
  
  .mobile-sticky-bottom {
    display: block;
  }
  
  body {
    padding-bottom: 70px;
  }
}

/* Tablet & Desktop Partner Card Rules */
@media (min-width: 768px) {
  .partner-card-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .partner-meta {
    text-align: center;
  }
  .partner-actions {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }
  .btn-partner-call {
    width: 100%;
    justify-content: center;
  }
  .btn-partner-wa {
    display: none;
  }
}

/* Mobile Devices (<= 767.98px) */
@media (max-width: 767.98px) {
  .block-section {
    padding: 44px 0;
  }

  .hero-block {
    padding: 30px 0 40px 0;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .hero-tank-img-wrap {
    height: 260px;
  }

  .specs-wrapper {
    padding: 16px 12px !important;
    border-radius: 16px;
  }

  .business-card-wrap {
    padding: 18px 14px !important;
    border-radius: 16px;
  }

  .person-contact-card {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-pills-custom {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav-pills-custom::-webkit-scrollbar {
    display: none;
  }

  .nav-pills-custom .nav-item {
    flex-shrink: 0;
  }

  .nav-pills-custom .nav-link {
    font-size: 0.82rem;
    padding: 8px 12px !important;
    white-space: nowrap;
    border-radius: 10px;
  }

  .custom-table th {
    padding: 10px 10px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .custom-table td {
    padding: 10px 10px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .custom-table .btn-sm {
    font-size: 0.75rem;
    padding: 4px 10px !important;
  }

  .brand-logo-img {
    height: 38px;
    max-height: 38px;
  }

  .cat-card {
    padding: 20px 16px;
  }

  .cat-icon-box {
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
  }
}

/* Ultra Small Mobile Screens (<= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.65rem;
  }

  .specs-wrapper {
    padding: 12px 8px !important;
  }

  .business-card-wrap {
    padding: 14px 10px !important;
  }

  .person-contact-card {
    padding: 10px 10px;
  }

  .partner-name {
    font-size: 0.92rem;
  }

  .btn-partner-call {
    font-size: 0.78rem;
    padding: 5px 8px;
  }

  .btn-partner-call svg {
    width: 11px;
    height: 11px;
  }

  .btn-partner-wa {
    width: 28px;
    height: 28px;
  }

  .btn-partner-wa svg {
    width: 12px;
    height: 12px;
  }

  .spec-title {
    font-size: 0.88rem;
  }

  .spec-badge {
    font-size: 0.74rem;
    padding: 4px 10px;
  }
}
