/**
 * Main Stylesheet - DEALER HONDA AGUNG MOTOR
 * Signature Honda Red & White Aesthetic
 */

:root {
  --honda-red: #cc0000;
  --honda-red-dark: #b30000;
  --honda-red-light: #fff1f2;
  --honda-dark: #0f172a;
  --honda-slate: #1e293b;
  --honda-gray: #64748b;
  --honda-light: #f8fafc;
  --honda-border: #e2e8f0;
  --honda-gold: #f59e0b;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--honda-dark);
  background-color: #f8fafc;
  line-height: 1.6;
}

/* Topbar Info */
.top-bar {
  background-color: var(--honda-dark);
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 2px solid var(--honda-red);
}
.top-bar a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}
.top-bar a:hover {
  color: #ffffff;
}

/* Navbar Modern Honda Aesthetic */
.navbar-honda {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #f1f5f9;
  padding: 8px 0;
  transition: all 0.2s ease;
}
.navbar-honda .navbar-brand {
  padding: 0;
  margin-right: 1.25rem;
  display: inline-flex;
  align-items: center;
}
.nav-logo-dealer {
  height: 30px !important;
  max-height: 30px !important;
  width: auto !important;
  object-fit: contain;
}
.nav-logo-divider {
  display: inline-block;
  width: 1px;
  height: 26px;
  background-color: #cbd5e1;
  margin: 0 12px;
}
.nav-logo-partner {
  height: 38px !important;
  max-height: 38px !important;
  width: auto !important;
  object-fit: contain;
}

.navbar-honda .navbar-nav {
  gap: 2px;
}
.navbar-honda .nav-link {
  color: #334155;
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: -0.1px;
  white-space: nowrap !important;
  padding: 7px 9px !important;
  border-radius: 6px;
  position: relative;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
}
.navbar-honda .nav-link:hover {
  color: #cc0000;
}
.navbar-honda .nav-link.active {
  color: #cc0000;
  font-weight: 700;
}
.navbar-honda .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 9px;
  right: 9px;
  height: 2px;
  background-color: #cc0000;
  border-radius: 2px;
}

/* Chat Sales Button in Navbar */
.btn-nav-chat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff !important;
  background-color: #cc0000;
  padding: 7px 15px;
  border-radius: 50rem;
  text-decoration: none;
  white-space: nowrap !important;
  box-shadow: 0 2px 6px rgba(204, 0, 0, 0.25);
  transition: all 0.2s ease;
  border: none;
}
.btn-nav-chat:hover {
  background-color: #b30000;
  box-shadow: 0 4px 10px rgba(204, 0, 0, 0.35);
  transform: translateY(-1px);
  color: #ffffff !important;
}
.btn-nav-chat i {
  font-size: 0.95rem;
}

/* Mobile Collapse Styling */
@media (max-width: 991.98px) {
  .navbar-honda .navbar-collapse {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px;
    margin-top: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
  }
  .navbar-honda .navbar-nav {
    gap: 3px;
  }
  .navbar-honda .nav-link {
    padding: 9px 12px !important;
    border-radius: 6px;
  }
  .navbar-honda .nav-link.active,
  .navbar-honda .nav-link:hover {
    background-color: #fef2f2;
  }
  .navbar-honda .nav-link::after {
    display: none;
  }
  .btn-nav-chat {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
  }
}

.btn-honda {
  background-color: var(--honda-red);
  color: #ffffff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  transition: all 0.3s ease;
}
.btn-honda:hover:not(:disabled):not(.disabled) {
  background-color: var(--honda-red-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(204, 0, 0, 0.3);
}
.btn-honda:disabled,
.btn-honda.disabled {
  background-color: #94a3b8 !important;
  border-color: #94a3b8 !important;
  color: #f1f5f9 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0.65 !important;
  pointer-events: auto !important;
}

.btn-outline-honda {
  background-color: transparent;
  color: var(--honda-red);
  border: 2px solid var(--honda-red);
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 20px;
  transition: all 0.3s ease;
}
.btn-outline-honda:hover {
  background-color: var(--honda-red);
  color: #ffffff;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #881337 100%);
  color: #ffffff;
  padding: 70px 0 80px 0;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 80% 30%, rgba(204, 0, 0, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

/* Card Modern */
.card-honda {
  border: 1px solid var(--honda-border);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.card-honda:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
  border-color: #fecdd3;
}
.card-honda .card-img-wrap {
  background: #f8fafc;
  padding: 20px;
  text-align: center;
  position: relative;
}
.card-honda .card-img-wrap img {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}
.card-honda:hover .card-img-wrap img {
  transform: scale(1.05);
}

/* Badge Category */
.badge-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--honda-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* STNK Tracking Card Special */
.stnk-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--honda-red);
  padding: 30px;
  position: relative;
}

/* STNK Timeline */
.stnk-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 30px 0;
}
.stnk-timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
}
.stnk-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}
.stnk-step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  font-size: 1.3rem;
  border: 4px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}
.stnk-step.active .stnk-step-icon {
  background: var(--honda-red);
  color: #ffffff;
}
.stnk-step.completed .stnk-step-icon {
  background: #16a34a;
  color: #ffffff;
}
.stnk-step-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--honda-slate);
}
.stnk-step-desc {
  font-size: 0.75rem;
  color: var(--honda-gray);
}

/* WhatsApp Floating Button */
.wa-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}
.wa-float:hover {
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Credit Calculator Box */
.calc-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--honda-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer-honda {
  background-color: var(--honda-dark);
  color: #94a3b8;
  padding: 60px 0 20px 0;
  border-top: 4px solid var(--honda-red);
}
.footer-honda h5 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-honda a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-honda a:hover {
  color: var(--honda-red);
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.85rem;
}

/* Footer Cabang Badge Card */
.footer-cabang-card {
  text-decoration: none !important;
  display: block;
}
.footer-cabang-box {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.16) 0%, rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid rgba(220, 53, 69, 0.35);
  border-left: 3.5px solid var(--honda-red);
  border-radius: 12px;
  padding: 10px 13px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.footer-cabang-card:hover .footer-cabang-box {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.28) 0%, rgba(30, 41, 59, 0.95) 100%);
  border-color: rgba(220, 53, 69, 0.7);
  border-left-color: #ff334b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

/* Admin Styles */
.admin-sidebar {
  width: 260px;
  background: var(--honda-dark);
  min-height: 100vh;
  color: #cbd5e1;
}
.admin-sidebar .nav-link {
  color: #94a3b8;
  padding: 11px 16px;
  font-weight: 500;
  border-radius: 8px;
  margin-bottom: 4px;
}
.admin-sidebar .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.admin-sidebar .nav-link.active {
  color: #ffffff;
  background: var(--honda-red);
}
.admin-sidebar .nav-link i {
  font-size: 1.05rem;
}
.admin-sidebar .menu-toggle {
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.admin-sidebar .menu-toggle .arrow-icon {
  font-size: 0.75rem;
  margin-left: auto;
  transition: transform 0.25s ease;
}
.admin-sidebar .menu-toggle[aria-expanded="true"] .arrow-icon,
.admin-sidebar .menu-toggle:not(.collapsed) .arrow-icon {
  transform: rotate(180deg);
}
.admin-sidebar .menu-toggle.active {
  color: #ffffff !important;
  background: rgba(204, 0, 0, 0.2) !important;
  border: 1px solid rgba(204, 0, 0, 0.4);
}
.admin-sidebar .nav-submenu {
  padding: 4px 0 6px 12px;
  margin: 2px 0.75rem 6px 1.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}
.admin-sidebar .nav-sublink {
  color: #94a3b8;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  margin: 2px 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 500;
  font-size: 0.83rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.admin-sidebar .nav-sublink i {
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
}
.admin-sidebar .nav-sublink:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}
.admin-sidebar .nav-sublink.active {
  color: #ffffff !important;
  background: var(--honda-red) !important;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(204, 0, 0, 0.35);
}



/* Interactive Color Swatch Component */
.btn-color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.btn-color-swatch:hover {
  transform: scale(1.25);
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  z-index: 2;
}
.btn-color-swatch.active {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #cc0000;
  z-index: 3;
}

.transition-img {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.transition-img.fade-out {
  opacity: 0.2;
  transform: scale(0.97);
}

.card-img-wrapper {
  background: radial-gradient(circle at center, rgba(204,0,0,0.03) 0%, rgba(241,245,249,0.7) 100%);
  border-radius: 12px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-thumb-btn {
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 4px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 76px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}
.gallery-thumb-btn img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.gallery-thumb-btn:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
}
.gallery-thumb-btn.active {
  border-color: #cc0000;
  box-shadow: 0 4px 10px rgba(204, 0, 0, 0.25);
}

/* Card Clickable & News Hover */
.card-news-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card-news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.12) !important;
}
.card-news-item:hover .hover-red {
  color: var(--honda-red, #cc0000) !important;
}
.card-news-item:hover img {
  transform: scale(1.04);
}
.card-news-item img {
  transition: transform 0.3s ease;
}

/* Tabs Produk Detail Active & Interactive Styles */
#motorTab {
  border-bottom: 2px solid #e2e8f0 !important;
  gap: 0.5rem;
}

#motorTab .nav-link {
  color: #64748b !important;
  font-weight: 600 !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0.85rem 1.25rem !important;
  margin-bottom: -2px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

#motorTab .nav-link i {
  color: #94a3b8;
  transition: color 0.2s ease-in-out;
}

#motorTab .nav-link:hover {
  color: var(--honda-red, #cc0000) !important;
  border-bottom: 3px solid rgba(204, 0, 0, 0.4) !important;
}

#motorTab .nav-link:hover i {
  color: var(--honda-red, #cc0000) !important;
}

#motorTab .nav-link.active {
  color: var(--honda-red, #cc0000) !important;
  font-weight: 700 !important;
  border-bottom: 3px solid var(--honda-red, #cc0000) !important;
  background: transparent !important;
}

#motorTab .nav-link.active i {
  color: var(--honda-red, #cc0000) !important;
}

/* Floating Promo Button & Popup Modal Styles */
.promo-float-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
  color: #ffffff;
  padding: 11px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 18px rgba(204, 0, 0, 0.45);
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #ffffff;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-decoration: none;
}

.promo-float-btn:hover {
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(204, 0, 0, 0.6);
}

@keyframes promoPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.promo-badge-pulse {
  animation: promoPulse 2s infinite ease-in-out;
  display: inline-block;
}

#modalPromoPopup .modal-content {
  border-radius: 1.25rem !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4) !important;
}

.hover-bg-light:hover {
  background-color: #f8fafc !important;
  border-color: #fca5a5 !important;
  transform: translateX(3px);
}

.transition-all {
  transition: all 0.2s ease-in-out;
}

@media (max-width: 576px) {
  .promo-float-btn {
    bottom: 20px;
    left: 15px;
    padding: 8px 14px;
    font-size: 0.78rem;
  }
}



