/* ===== COLOR VARIABLES ===== */
:root {
  --primary-red: #dc3545;
  --dark-black: #000000;
  --white: #ffffff;
  --dark-text: #212529;
  --light-gray: #6c757d;
}


/* ===== OVERRIDE BOOTSTRAP PRIMARY COLOR ===== */
.btn-primary {
  background-color: var(--primary-red) !important;
  border-color: var(--primary-red) !important;
  color: var(--white) !important;
  outline: none !important;
  box-shadow: none !important;
}

.btn-primary:hover {
  background-color: #b82e38 !important;
  border-color: #b82e38 !important;
  color: var(--white) !important;
  box-shadow: none !important;
}

.btn-primary:focus {
  background-color: #b82e38 !important;
  border-color: #b82e38 !important;
  color: var(--white) !important;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
  outline: none !important;
}

.btn-primary:active,
.btn-primary.active {
  background-color: #b82e38 !important;
  border-color: #b82e38 !important;
  color: var(--white) !important;
  box-shadow: none !important;
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.btn-outline-primary {
  color: var(--primary-red);
  border-color: var(--primary-red);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--white);
}

.text-primary {
  color: var(--primary-red) !important;
}

a.text-primary:hover {
  color: #b82e38 !important;
}

/* ===== NAVBAR STYLING ===== */
.navbar {
  background-color: var(--dark-black) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  color: var(--primary-red) !important;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.navbar-brand:hover {
  color: #b82e38 !important;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--primary-red) !important;
}

/* ===== CARD STYLING ===== */
.card {
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card:hover {
  box-shadow: 0 8px 16px rgba(220, 53, 69, 0.15);
  transform: translateY(-4px);
}

.card-title {
  color: var(--dark-text);
  font-weight: 600;
}

/* ===== SERVICE CARD ===== */

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

/* Gambar */
.service-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: 0.4s ease;
}

/* CARD */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

/* IMAGE */
.service-card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: 0.4s ease;
}

/* OVERLAY DASAR */
.service-overlay {
  position: absolute;
  inset: 0;
}

/* GRADIENT BAWAH DEFAULT */
.service-overlay::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(
    to top,
    rgba(220,53,69,0.7),
    rgba(220,53,69,0.2),
    transparent
  );
  transition: 0.4s ease;
}

/* TITLE DEFAULT (SELALU BAWAH) */
.title-default {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #000;
  font-weight: 700;
  z-index: 2;
}

/* HOVER CONTENT */
.hover-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(220,53,69,0.95);
  opacity: 0;
  transition: 0.4s ease;
  text-align: center;
  padding: 20px;
}

.title-hover {
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.hover-content p {
  color: #fff;
  margin: 0;
}

/* HOVER EFFECT */
.service-card:hover .hover-content {
  opacity: 1;
}

.service-card:hover .service-overlay::before {
  height: 100%;
}

.service-card:hover .title-default {
  opacity: 0;
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
}

/* ===== GALLERY IMAGES ===== */
.gallery-img {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-img:hover {
  transform: scale(1.05);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark-black);
  color: var(--white);
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
}

.footer-text a {
  color: var(--primary-red);
  text-decoration: none;
}

.footer-text a:hover {
  color: #b82e38;
  text-decoration: underline;
}

/* ===== HEADINGS & TEXT ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark-text);
}

body {
  color: var(--dark-text);
  background-color: var(--white);
}

/* ===== LINKS ===== */
a {
  color: var(--primary-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #b82e38;
  text-decoration: underline;
}

/* ===== PRICE TAGS ===== */
.price {
  color: var(--primary-red);
  font-weight: 600;
  font-size: 1.25rem;
}

/* ===== GENERAL BUTTON STYLING ===== */
.btn {
  transition: all 0.3s ease;
  font-weight: 500;
}

/* ===== BADGES & ACCENTS ===== */
.badge-red {
  background-color: var(--primary-red);
  color: var(--white);
}

/* ===== HERO CAROUSEL ===== */
#heroCarousel {
  width: 100%;
  overflow: hidden;
}

#heroCarousel .carousel-inner {
  height: 100% !important;
}

#heroCarousel .carousel-item {
  height: 100% !important;
}

#heroCarousel {
  width: 100%;
  height: auto;
}

#heroCarousel .carousel-item {
  text-align: center;
}

#heroCarousel img {
  width: 100%;
  height: auto;   /* fleksibel ikut tinggi layar */
  object-fit: cover;
}

.carousel-caption {
  bottom: 80px !important;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  #heroCarousel {
    height: 330px !important;
  }

  #heroCarousel img {
    height: 40vh;
  }

  .carousel-caption h1 {
    font-size: 2rem;
  }
}

/* Hero carousel caption styling */
.carousel-caption h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: slideInDown 0.6s ease-in-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 2rem;
  }
}

/* ===== SERVICE CARDS STYLING ===== */
/* Perkecil gambar di dalam card */
.service-card img {
  width: 75%;
  height: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.service-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3; /* GANTI dari 1 / 1 */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

@media (max-width: 576px) {
  .service-card {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 576px) {
  .service-card {
    aspect-ratio: 1 / 1;
  }

  .service-card-title {
    font-size: 0.9rem;
  }
}

.service-card:hover {
  box-shadow: 0 12px 24px rgba(220, 53, 69, 0.25);
  transform: translateY(-8px);
}


.service-card:hover .service-card-img {
  transform: scale(1.08);
}

.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(220, 53, 69, 0.95) 0%,
    rgba(220, 53, 69, 0.2) 20%,
    rgba(220, 53, 69, 0) 30%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  transition: all 0.4s ease;
}

@media (max-width: 576px) {
  .service-card-overlay {
    padding: 0.75rem;
  }

  .service-card-title {
    font-size: 0.85rem;
    line-height: 1.2;
  }

  .service-card img {
    object-fit: contain;
    padding: 10px;
  }
}


@media (max-width: 576px) {
  .service-card-overlay {
    padding: 1rem;
  }
}

.service-card-title {
  color: #000;
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  text-align: center;
  margin: 0;
}


@media (max-width: 768px) {
  .service-card {
    aspect-ratio: 1 / 1;
  }

  .service-card-title {
    font-size: 1.1rem;
  }
}

.running-text-section {
  background: #dc3545 !important;
  width: 100vw;
  overflow: hidden;
}

.running-text-track {
  white-space: nowrap;
}

.running-text-track span {
  display: inline-block;
  padding: 8px 0;
  color: #fff;
  font-weight: 600;
  animation: jalanKiri 24s linear infinite;
}

@keyframes jalanKiri {
  0%   { transform: translateX(30%); }
  100% { transform: translateX(-100%); }
}

/* ===== TOP BAR ===== */
.topbar {
  background-color: #c82333;
  color: #fff;
  font-size: 0.75rem;
  height: 32px;
  display: flex;
  align-items: center;
  z-index: 1051; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

.topbar-left {
  opacity: 0.9;
}

.topbar-right {
  font-weight: 600;
}

.badge-close {
  background: #ff4d4d;
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.65rem;
}

/* ===== TOPBAR MOBILE ===== */
.topbar-mobile {
  font-size: 0.8rem;
}

.topbar-address {
  font-weight: 500;
}

.topbar-icon {
  color: #000;
  font-size: 1.1rem;
  text-decoration: none;
}

.topbar-icon:hover {
  color: #ffecec;
}


/* ===== MAIN NAVBAR OFFSET ===== */
.main-navbar {
  top: 32px;
}

/* ===== BODY OFFSET ===== */
body {
  padding-top: 96px; 
}

@media (max-width: 768px) {
  body {
    padding-top: 96px; /* topbar + navbar */
  }

  .main-navbar {
    top: 29px;
  }
}

.main-navbar {
  min-height: 90px;
  padding: 20px 0;
}

.navbar-center .nav-link {
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  font-size: 1.5rem;
}

.navbar-social {
  position: absolute;
  left: 0;
  display: flex;
  gap: 12px;
}

.social-icon {
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  color: var(--primary-red);
  transform: translateY(-2px);
}

/* ===== NAVBAR HEIGHT ===== */
.navbar {
  min-height: 72px;
}

/* ===== MENU ===== */
.nav-center .nav-link {
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  font-size: 1.15rem; 
  letter-spacing: 0.3px;
}

/* ===== SOCIAL ICONS ===== */
.social-icons a {
  color: #fff;
  font-size: 1.2rem;
  margin-left: 15px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary-red);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .navbar-brand {
    position: static !important;
  }

  .social-icons {
    display: none !important;
  }
}

/* ===== FOOTER DEALER ===== */
.footer-dealer {
  background: #111;
  color: #fff;
  margin-top: 80px;
}

/* MAP */
.footer-map iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* INFO AREA */
.footer-info {
  background: #000;
}

.footer-info a {
  color: #fff;
  text-decoration: none;
}

.footer-info h5 {
  color: #dc3545;
}

.footer-info a:hover {
  color: #dc3545;
}

/* SOSIAL MEDIA */
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-right: 10px;
  border-radius: 50%;
  background: #dc3545;
  color: #fff;
  font-size: 1.2rem;
  transition: 0.3s ease;
}

.footer-social a:hover {
  background: #b82e38;
  transform: translateY(-3px);
}

/* MOBILE */
@media (max-width: 768px) {
  .footer-map iframe {
    height: 280px;
  }

  .footer-social {
    justify-content: center;
  }
}

.login-icon {
  color: #fff; /* merah */
  font-size: 1.1rem;
  text-decoration: none;
}

.login-icon:hover {
  color: #fff;
}

/* ===== CUSTOM TOGGLER ===== */
.custom-toggler {
  
  border: none;
  background: transparent;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.custom-toggler span {
  width: 26px;
  height: 3px;
  background-color: #dc3545;
  border-radius: 3px;
  transition: all 0.35s ease;
}

/* ANIMASI SAAT AKTIF */
.custom-toggler[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.custom-toggler[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.custom-toggler[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== SMOOTH COLLAPSE ANIMATION ===== */
.navbar-collapse {
  transition: all 0.35s ease;
}

/* Saat MOBILE */
@media (max-width: 991px) {
  .navbar-collapse {
    background: #000;
    padding: 12px 0;
    border-radius: 0 0 12px 12px;
  }

  .navbar-collapse.collapsing {
    height: 0 !important;
    overflow: hidden;
    transition: height 0.50s ease;
  }

  .navbar-collapse.show {
    transition: height 0.50s ease;
  }
}

/* ===== PAGINATION CUSTOM ===== */
.pagination .page-link {
  color: #dc3545;              /* merah */
  background-color: #fff;      /* hitam */
  border: 1px solid #dc3545;
  margin: 0 4px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

/* hover */
.pagination .page-link:hover {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
}

/* active page */
.pagination .page-item.active .page-link {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
  font-weight: 600;
}

/* disabled (jika nanti dipakai) */
.pagination .page-item.disabled .page-link {
  color: #777;
  background-color: #111;
  border-color: #333;
}

/* TOPBAR */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
}

/* BODY OFFSET */
body {
  padding-top: 120px; /* topbar + navbar */
}

/* MOBILE */
@media (max-width: 768px) {
  .main-navbar {
    top: 32px;
  }

  body {
    padding-top: 112px;
  }
}

/* ===== VIDEO SECTION ===== */
.video-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 9/16; /* Biar portrait */
    background: #000000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: 0.4s ease;
}

.video-section h2 {
    color: #dc3545;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card:hover {
    transform: translateY(-8px);
}


.gallery-card {
  transition: all 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.galeri-section {
  background-color: #e9ecef; /* lebih gelap dari bg-light */
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Carousel control custom */
#galeriTestimoni .carousel-control-prev,
#galeriTestimoni .carousel-control-next {
  width: 45px;
  height: 45px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

#galeriTestimoni .carousel-control-prev {
  left: -20px;
}

#galeriTestimoni .carousel-control-next {
  right: -20px;
}

#galeriTestimoni .carousel-control-prev-icon,
#galeriTestimoni .carousel-control-next-icon {
  filter: invert(1);
}

.gallery-caption {
  font-size: 0.9rem;
}

.gallery-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.hero-img {
  height: 500px;
  object-fit: contain; /* supaya tidak ke crop */
  background-color: #000; /* biar kalau ada space tetap rapi */
}

.hero-caption {
  background: rgba(0,0,0,0.5);
  padding: 20px;
  border-radius: 10px;
  bottom: 40px;
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .hero-img {
    height: 300px;
  }

  .hero-caption h1 {
    font-size: 1.5rem;
  }

  .hero-caption p {
    font-size: 0.9rem;
  }
}

.brand-text {
  color: #dc3545;   /* merah bootstrap */
  font-weight: bold;
  font-size: 30px;
}

.brand-logo {
  height: 45px;
  width: auto;
}

/* ===== ABOUT HERO SECTION ===== */
.about-hero {
    position: relative;
}

.about-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.about-hero .container {
    z-index: 2;
}

.about-hero h1 {
    color: #fff !important;
}

/* ===== DEALER CARD ===== */
.dealer-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: 0.4s ease;
}

.dealer-card h5 {
    color: #fff;
}

.dealer-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: 0.4s ease;
}

.dealer-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(
        to top,
        rgba(220,53,69,0.9),
        rgba(220,53,69,0.2),
        transparent
    );
    color: #fff;
}

.dealer-card:hover {
    transform: translateY(-8px);
}

.dealer-card:hover img {
    transform: scale(1.08);
}

.badge-open {
  background-color: #198754;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
}
.badge-close {
  background-color: #dc3545;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

.brand-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.brand-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: scrollBrand 25s linear infinite;
}

.brand-track img {
  height: 50px;        /* tinggi tetap */
  width: auto;         /* lebar otomatis */
  max-width: 120px;    /* batasi agar tidak melebar */
  object-fit: contain;
  flex-shrink: 0;      /* cegah mengecil/aneh */
}

@keyframes scrollBrand {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
