/* Custom B2B Stylesheet for PT. SM Teknologi */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-red: #D32F2F;
  --primary-dark-red: #9A0007;
  --secondary-slate-dark: #37474F;
  --secondary-slate-light: #78909C;
  --text-charcoal: #212121;
  --text-muted: #546E7A;
  --bg-white: #FFFFFF;
  --bg-light: #F8F9FA;
  --border-light: #E0E0E0;
  
  --font-family: 'Outfit', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-premium: 0 10px 30px rgba(0,0,0,0.05);
  --shadow-hover: 0 15px 35px rgba(211, 47, 47, 0.1);
}

html {
  scroll-padding-top: 90px; /* Offset for sticky menu */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-charcoal);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

/* Typography Extensions */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-charcoal);
  letter-spacing: -0.02em;
}

.text-justify {
  text-align: justify;
}

.text-muted-custom {
  color: var(--text-muted);
}

/* Top bar details */
.top-bar {
  background-color: var(--secondary-slate-dark);
  color: #ECEFF1;
  font-size: 0.85rem;
  padding: 6px 0;
}
.top-bar a {
  color: #ECEFF1;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.top-bar a:hover {
  color: var(--primary-red);
}

/* Sticky Header & Navigation */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: var(--transition-smooth);
}
.main-navbar {
  padding-top: 18px;
  padding-bottom: 18px;
  transition: var(--transition-smooth);
  border-bottom: 1px solid var(--border-light);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}
.main-navbar.scrolled {
  padding-top: 8px;
  padding-bottom: 8px;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-premium);
}
.navbar-brand {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--text-charcoal) !important;
}
.navbar-brand span {
  color: var(--primary-red);
}
.nav-link {
  font-weight: 500;
  color: var(--secondary-slate-dark) !important;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-smooth);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-red) !important;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 10px;
  background-color: var(--primary-red);
  transition: var(--transition-smooth);
}
.nav-link:hover::after, .nav-link.active::after {
  width: calc(100% - 20px);
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--bg-light);
  padding: 120px 0 100px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.hero-image-container {
  position: relative;
  z-index: 2;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.hero-image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-image-container:hover img {
  transform: scale(1.03);
}

/* Stats Counter Row */
.stats-counter-bar {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-light);
  padding: 30px;
  margin-top: -50px;
  position: relative;
  z-index: 5;
}
.stat-item h3 {
  font-size: 2.5rem;
  color: var(--primary-red);
  margin-bottom: 5px;
}
.stat-item p {
  color: var(--secondary-slate-dark);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}

/* Section Common Styling */
.section-padding {
  padding: 90px 0;
}
.section-title-container {
  max-width: 700px;
  margin-bottom: 60px;
}
.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(211, 47, 47, 0.08);
  color: var(--primary-red);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}
.section-title {
  font-size: 2.25rem;
  margin-bottom: 15px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Buttons Styling */
.btn-primary-custom {
  background-color: var(--primary-red);
  color: var(--bg-white);
  border: 2px solid var(--primary-red);
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition-smooth);
}
.btn-primary-custom:hover {
  background-color: var(--primary-dark-red);
  border-color: var(--primary-dark-red);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}
.btn-secondary-custom {
  background-color: transparent;
  color: var(--secondary-slate-dark);
  border: 2px solid var(--secondary-slate-light);
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition-smooth);
}
.btn-secondary-custom:hover {
  background-color: var(--secondary-slate-dark);
  border-color: var(--secondary-slate-dark);
  color: var(--bg-white);
  transform: translateY(-2px);
}

/* Product Cards & Filters */
.filter-btn-group {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-filter {
  background-color: var(--bg-light);
  color: var(--secondary-slate-dark);
  border: 1px solid var(--border-light);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}
.btn-filter:hover, .btn-filter.active {
  background-color: var(--primary-red);
  color: var(--bg-white);
  border-color: var(--primary-red);
}

.product-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(211, 47, 47, 0.2);
}
.product-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image-wrapper img {
  transform: scale(1.05);
}
.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--primary-red);
  color: var(--bg-white);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 3;
}
.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}
.product-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.product-specs li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.product-specs li i {
  color: var(--primary-red);
  margin-right: 8px;
  font-size: 0.9rem;
}
.product-card .btn-rfq {
  margin-top: auto;
  width: 100%;
  background-color: var(--secondary-slate-dark);
  color: var(--bg-white);
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}
.product-card:hover .btn-rfq {
  background-color: var(--primary-red);
}

/* Services and Pillars */
.service-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  padding: 40px 30px;
  border-radius: 12px;
  height: 100%;
  transition: var(--transition-smooth);
}
.service-card:hover {
  background-color: var(--bg-white);
  border-color: var(--border-light);
  box-shadow: var(--shadow-premium);
  transform: translateY(-5px);
}
.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(211, 47, 47, 0.08);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  color: var(--primary-red);
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}
.service-card:hover .service-icon {
  background-color: var(--primary-red);
  color: var(--bg-white);
}

/* Spare Parts Section */
.spare-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: var(--transition-smooth);
}
.spare-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-premium);
}
.spare-image {
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* Why Choose Us Features */
.feature-box {
  display: flex;
  margin-bottom: 25px;
}
.feature-icon-wrapper {
  margin-right: 20px;
}
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-light);
  border: 2px solid var(--border-light);
  color: var(--secondary-slate-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  transition: var(--transition-smooth);
}
.feature-box:hover .feature-icon {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--bg-white);
}
.feature-title {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

/* RFQ Form Area (Pendant Theme) */
.rfq-container {
  background-color: var(--bg-light);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-premium);
}
.pendant-header {
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: 15px;
  margin-bottom: 30px;
}
.form-control-custom {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.95rem;
  background-color: var(--bg-white);
  color: var(--text-charcoal);
  transition: var(--transition-smooth);
}
.form-control-custom:focus {
  border-color: var(--primary-red);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}
.form-label-custom {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary-slate-dark);
  margin-bottom: 8px;
}

/* Footer & Floating CTA */
.site-footer {
  background-color: var(--secondary-slate-dark);
  color: #B0BEC5;
  padding: 70px 0 30px 0;
  font-size: 0.9rem;
  border-top: 5px solid var(--primary-red);
}
.site-footer h5 {
  color: var(--bg-white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: #B0BEC5;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.footer-links a:hover {
  color: var(--bg-white);
  padding-left: 5px;
}
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-info-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.contact-info-list li i {
  color: var(--primary-red);
  margin-top: 4px;
}
.map-container {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
  margin-top: 50px;
  font-size: 0.8rem;
}

/* Floating WhatsApp Widget */
.floating-wa-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
  animation: pulse-wa 2s infinite;
}
.floating-wa-button:hover {
  transform: scale(1.1);
  color: white;
  background-color: #128C7E;
}
.wa-tooltip {
  position: absolute;
  right: 75px;
  background-color: #37474F;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-weight: 500;
}
.floating-wa-button:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes pulse-wa {
  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);
  }
}

/* Fade-In Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-section {
    padding: 100px 0 60px 0;
    text-align: center;
  }
  .hero-image-container {
    margin-top: 40px;
  }
  .stats-counter-bar {
    margin-top: 30px;
  }
  .stat-item {
    margin-bottom: 20px;
  }
  .floating-wa-button {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
}
