/**
 * Maharani Polyplast - Official Design System Stylesheet
 * Brand Colors: Primary Red (#E51D2A), Primary Blue (#0875AC), Dark Blue (#064E72)
 * Clean, Luxurious Corporate Manufacturing Aesthetic
 */

:root {
  --mp-red: #E51D2A;
  --mp-red-hover: #c71420;
  --mp-blue: #0875AC;
  --mp-blue-hover: #065e8a;
  --mp-dark-blue: #064E72;
  --mp-dark: #252A30;
  --mp-dark-muted: #434B54;
  --mp-muted: #68717A;
  --mp-light: #F5F7F8;
  --mp-light-border: #E5E9EC;
  --mp-white: #FFFFFF;
  --mp-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --mp-shadow-md: 0 6px 20px rgba(0, 0, 0, 0.06);
  --mp-shadow-lg: 0 12px 32px rgba(8, 117, 172, 0.10);
  --mp-radius: 8px;
  --mp-radius-lg: 12px;
  --mp-transition: all 0.25s ease-in-out;
}

/* Base & Typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--mp-dark);
  background-color: var(--mp-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--mp-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--mp-blue);
  text-decoration: none;
  transition: var(--mp-transition);
}

a:hover {
  color: var(--mp-red);
}

/* Utilities & Brand Accents */
.text-mp-blue { color: var(--mp-blue) !important; }
.text-mp-red { color: var(--mp-red) !important; }
.bg-mp-light { background-color: var(--mp-light) !important; }
.bg-mp-blue { background-color: var(--mp-blue) !important; }
.bg-mp-dark-blue { background-color: var(--mp-dark-blue) !important; }
.bg-mp-red { background-color: var(--mp-red) !important; }

.section-padding {
  padding: 80px 0;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mp-red);
  margin-bottom: 8px;
  position: relative;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--mp-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Top Information Bar */
.top-bar {
  background-color: #1A1F24;
  color: #B2BCC6;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
}

.top-bar a {
  color: #CCD6E0;
}

.top-bar a:hover {
  color: var(--mp-white);
}

.top-bar .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  margin-left: 6px;
  transition: var(--mp-transition);
}

.top-bar .social-links a:hover {
  background: var(--mp-red);
  color: var(--mp-white);
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background-color: var(--mp-white);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  transition: var(--mp-transition);
}

.site-navbar {
  padding: 12px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
}

.brand-logo-img {
  height: 58px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  transition: var(--mp-transition);
}

.nav-link {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--mp-dark) !important;
  padding: 10px 16px !important;
  transition: var(--mp-transition);
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background-color: var(--mp-red);
  border-radius: 2px;
}

.dropdown-menu {
  border: 1px solid var(--mp-light-border);
  box-shadow: var(--mp-shadow-md);
  border-radius: var(--mp-radius);
  padding: 8px 0;
  min-width: 260px;
}

.dropdown-item {
  font-weight: 500;
  font-size: 0.92rem;
  padding: 9px 20px;
  color: var(--mp-dark);
}

.dropdown-item:hover, .dropdown-item:focus {
  background-color: var(--mp-light);
  color: var(--mp-blue);
  padding-left: 24px;
}

/* Buttons */
.btn-mp-primary {
  background-color: var(--mp-red);
  border-color: var(--mp-red);
  color: var(--mp-white);
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  padding: 10px 24px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(229, 29, 42, 0.25);
  transition: var(--mp-transition);
}

.btn-mp-primary:hover {
  background-color: var(--mp-red-hover);
  border-color: var(--mp-red-hover);
  color: var(--mp-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 29, 42, 0.35);
}

.btn-mp-secondary {
  background-color: var(--mp-blue);
  border-color: var(--mp-blue);
  color: var(--mp-white);
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  padding: 10px 24px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(8, 117, 172, 0.25);
  transition: var(--mp-transition);
}

.btn-mp-secondary:hover {
  background-color: var(--mp-blue-hover);
  border-color: var(--mp-blue-hover);
  color: var(--mp-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(8, 117, 172, 0.35);
}

.btn-mp-outline {
  border: 2px solid var(--mp-blue);
  color: var(--mp-blue);
  background: transparent;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  padding: 8px 22px;
  border-radius: 6px;
  transition: var(--mp-transition);
}

.btn-mp-outline:hover {
  background-color: var(--mp-blue);
  color: var(--mp-white);
  transform: translateY(-2px);
}

.btn-mp-whatsapp {
  background-color: #25D366;
  border-color: #25D366;
  color: var(--mp-white);
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--mp-transition);
}

.btn-mp-whatsapp:hover {
  background-color: #1EBE5D;
  border-color: #1EBE5D;
  color: var(--mp-white);
  transform: translateY(-2px);
}

/* Hero Carousel */
.hero-slider-item {
  position: relative;
  background-color: #1C232B;
  min-height: 580px;
  display: flex;
  align-items: center;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(16, 23, 30, 0.92) 0%, rgba(16, 23, 30, 0.70) 55%, rgba(16, 23, 30, 0.35) 100%);
  z-index: 1;
}

.hero-slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--mp-white);
  padding: 60px 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(229, 29, 42, 0.15);
  border: 1px solid rgba(229, 29, 42, 0.4);
  color: #FFA4A8;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  color: var(--mp-white);
  line-height: 1.18;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.15rem;
  color: #D3DDE6;
  max-width: 620px;
  margin-bottom: 32px;
  line-height: 1.65;
}

/* Cards & Components */
.category-card {
  background: var(--mp-white);
  border: 1px solid var(--mp-light-border);
  border-radius: var(--mp-radius-lg);
  overflow: hidden;
  box-shadow: var(--mp-shadow-sm);
  transition: var(--mp-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--mp-shadow-lg);
  border-color: rgba(8, 117, 172, 0.3);
}

.category-card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: var(--mp-light);
}

.category-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover .category-card-img {
  transform: scale(1.06);
}

.category-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.category-card-desc {
  font-size: 0.92rem;
  color: var(--mp-muted);
  margin-bottom: 20px;
  flex: 1;
}

/* Product Card */
.product-card {
  background: var(--mp-white);
  border: 1px solid var(--mp-light-border);
  border-radius: var(--mp-radius-lg);
  overflow: hidden;
  box-shadow: var(--mp-shadow-sm);
  transition: var(--mp-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--mp-shadow-lg);
  border-color: rgba(8, 117, 172, 0.3);
}

.product-card-img-wrap {
  position: relative;
  height: 240px;
  background-color: #FAFCFD;
  overflow: hidden;
  border-bottom: 1px solid var(--mp-light-border);
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.35s ease;
}

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

.product-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--mp-red);
  color: var(--mp-white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.product-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-category {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mp-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.product-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}

.product-card-desc {
  font-size: 0.88rem;
  color: var(--mp-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.spec-pill {
  font-size: 0.75rem;
  background: var(--mp-light);
  color: var(--mp-dark-muted);
  border: 1px solid var(--mp-light-border);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.product-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--mp-light-border);
  display: flex;
  gap: 8px;
}

/* Feature Box (Why Choose Us) */
.feature-box {
  background: var(--mp-white);
  border: 1px solid var(--mp-light-border);
  border-radius: var(--mp-radius-lg);
  padding: 32px 24px;
  transition: var(--mp-transition);
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: var(--mp-blue);
  box-shadow: var(--mp-shadow-md);
}

.feature-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: rgba(8, 117, 172, 0.08);
  color: var(--mp-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--mp-transition);
}

.feature-box:hover .feature-icon-wrap {
  background: var(--mp-red);
  color: var(--mp-white);
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--mp-muted);
  margin-bottom: 0;
}

/* Manufacturing Step Card */
.manufacturing-card {
  background: var(--mp-white);
  border: 1px solid var(--mp-light-border);
  border-radius: var(--mp-radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: var(--mp-transition);
}

.manufacturing-card:hover {
  border-color: var(--mp-blue);
  box-shadow: var(--mp-shadow-sm);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mp-light);
  border: 2px solid var(--mp-blue);
  color: var(--mp-blue);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Counter Card */
.counter-card {
  background: var(--mp-white);
  border: 1px solid var(--mp-light-border);
  border-radius: var(--mp-radius-lg);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--mp-shadow-sm);
  transition: var(--mp-transition);
}

.counter-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mp-shadow-md);
  border-color: var(--mp-red);
}

.counter-icon {
  font-size: 2rem;
  color: var(--mp-blue);
  margin-bottom: 12px;
}

.counter-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--mp-dark);
  font-family: 'Manrope', sans-serif;
  line-height: 1;
  margin-bottom: 8px;
}

.counter-label {
  font-size: 0.88rem;
  color: var(--mp-muted);
  font-weight: 600;
}

/* Blog Card */
.blog-card {
  background: var(--mp-white);
  border: 1px solid var(--mp-light-border);
  border-radius: var(--mp-radius-lg);
  overflow: hidden;
  box-shadow: var(--mp-shadow-sm);
  transition: var(--mp-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--mp-shadow-lg);
  border-color: rgba(8, 117, 172, 0.3);
}

.blog-card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.06);
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  font-size: 0.82rem;
  color: var(--mp-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.blog-meta span i {
  color: var(--mp-blue);
  margin-right: 4px;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
}

.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--mp-muted);
  margin-bottom: 20px;
  flex: 1;
}

/* CTA Section */
.cta-banner-section {
  background: linear-gradient(135deg, #064E72 0%, #0875AC 100%);
  color: var(--mp-white);
  border-radius: var(--mp-radius-lg);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.cta-banner-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

/* Breadcrumbs */
.mp-breadcrumbs {
  background-color: var(--mp-light);
  padding: 24px 0;
  border-bottom: 1px solid var(--mp-light-border);
}

.mp-breadcrumbs .breadcrumb {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.mp-breadcrumbs .breadcrumb-item a {
  color: var(--mp-muted);
  font-weight: 500;
}

.mp-breadcrumbs .breadcrumb-item.active {
  color: var(--mp-dark);
  font-weight: 600;
}

/* Detail Pages */
.product-gallery-main {
  background: var(--mp-light);
  border: 1px solid var(--mp-light-border);
  border-radius: var(--mp-radius-lg);
  padding: 20px;
  text-align: center;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.product-gallery-main img {
  max-height: 380px;
  max-width: 100%;
  object-fit: contain;
}

.product-thumbs {
  display: flex;
  gap: 10px;
}

.product-thumb-item {
  width: 80px;
  height: 70px;
  border: 2px solid var(--mp-light-border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  padding: 4px;
  background: var(--mp-white);
  transition: var(--mp-transition);
}

.product-thumb-item.active, .product-thumb-item:hover {
  border-color: var(--mp-blue);
}

.product-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tech-spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--mp-light-border);
  border-radius: var(--mp-radius);
  overflow: hidden;
}

.tech-spec-table th, .tech-spec-table td {
  padding: 12px 18px;
  font-size: 0.93rem;
  border-bottom: 1px solid var(--mp-light-border);
}

.tech-spec-table tr:last-child th, .tech-spec-table tr:last-child td {
  border-bottom: none;
}

.tech-spec-table th {
  background-color: var(--mp-light);
  color: var(--mp-dark);
  width: 35%;
  font-weight: 600;
}

.tech-spec-table td {
  background-color: var(--mp-white);
  color: var(--mp-dark-muted);
}

/* Footer */
.site-footer {
  background-color: #171C21;
  color: #9DA8B5;
  font-size: 0.92rem;
  padding-top: 70px;
}

.footer-brand-logo {
  height: 52px;
  width: auto;
  max-width: 200px;
  margin-bottom: 20px;
  background: #FFFFFF;
  padding: 6px 12px;
  border-radius: 6px;
}

.footer-title {
  color: var(--mp-white);
  font-family: 'Manrope', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background-color: var(--mp-red);
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  color: #9DA8B5;
  transition: var(--mp-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links li a:hover {
  color: var(--mp-white);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-contact-icon {
  color: var(--mp-red);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #798695;
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  background-color: #25D366;
  color: var(--mp-white);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  transition: var(--mp-transition);
}

.floating-whatsapp-btn:hover {
  background-color: #1EBE5D;
  color: var(--mp-white);
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 96px;
  z-index: 999;
  background-color: var(--mp-dark);
  color: var(--mp-white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--mp-transition);
}

.back-to-top:hover {
  background-color: var(--mp-red);
  color: var(--mp-white);
  transform: translateY(-2px);
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .section-padding { padding: 60px 0; }
  .section-title { font-size: 1.85rem; }
  .hero-title { font-size: 2.2rem; }
  .nav-link.active::after { display: none; }
}

@media (max-width: 575.92px) {
  .hero-title { font-size: 1.75rem; }
  .hero-desc { font-size: 1rem; }
  .floating-whatsapp-btn { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 1.5rem; }
  .back-to-top { bottom: 20px; right: 78px; width: 40px; height: 40px; }
}
