/**
 * Driverguards - Reusable UI Components
 * Buttons, Testimonial Cards, Article Cards, Chips, Footer, and Navbar
 * Source: Figma Collection & Component Sets
 * Icon Library: Google Material Symbols / Material Icons
 */

/* ==========================================================================
   1. BUTTON COMPONENT (FIGMA NODE 12-28335)
   ========================================================================== */
.dg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 0; /* Sharp corner */
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
  font-family: var(--dg-font-display, 'Bebas Neue', sans-serif);
  font-weight: 400;
  text-transform: uppercase;
  border: 1px solid transparent;
  box-sizing: border-box;
}

/* Material Symbols and Asset Icon Sizing */
.dg-btn .material-symbols-outlined,
.dg-btn .material-icons,
.dg-btn img,
.dg-btn svg,
.dg-btn-icon {
  font-size: 24px;
  width: 24px;
  height: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  object-fit: contain;
}

/* Button Sizes - Desktop 1440px */
.dg-btn-large,
.dg-btn-1 {
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.02em; /* -0.48px */
  padding: 14px 20px;
}

.dg-btn-medium,
.dg-btn-2 {
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.02em; /* -0.4px */
  padding: 12px 16px;
}

/* Button Variants */
.dg-btn-fill-brand {
  background-color: var(--dg-color-brand-900, #B31215);
  color: var(--dg-color-white, #FFFFFF);
  border: 1px solid var(--dg-color-brand-900, #B31215);
}

.dg-btn-fill-brand:hover,
.dg-btn-fill-brand.dg-btn-hover-state {
  background-color: var(--dg-color-brand-800, #9A0F12);
  border-color: var(--dg-color-brand-800, #9A0F12);
  color: var(--dg-color-white, #FFFFFF);
}

.dg-btn-outline-brand {
  background-color: transparent;
  border: 1px solid var(--dg-color-brand-900, #B31215);
  color: var(--dg-color-brand-900, #B31215);
}

.dg-btn-outline-brand:hover,
.dg-btn-outline-brand.dg-btn-hover-state {
  background-color: var(--dg-color-brand-900, #B31215);
  border-color: var(--dg-color-brand-900, #B31215);
  color: var(--dg-color-white, #FFFFFF);
}

/* Gutenberg Core Button Block Overrides */
.wp-block-button__link,
.wp-element-button {
  background-color: var(--dg-color-brand-900, #B31215) !important;
  color: var(--dg-color-white, #FFFFFF) !important;
  border: 1px solid var(--dg-color-brand-900, #B31215) !important;
  border-radius: 0 !important;
  font-family: 'Bebas Neue', var(--dg-font-display, sans-serif) !important;
  font-weight: 400 !important;
  font-size: 24px !important;
  line-height: 28px !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 14px 20px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
  background-color: var(--dg-color-brand-800, #9A0F12) !important;
  border-color: var(--dg-color-brand-800, #9A0F12) !important;
  color: var(--dg-color-white, #FFFFFF) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-element-button {
  background-color: transparent !important;
  border: 1px solid var(--dg-color-brand-900, #B31215) !important;
  color: var(--dg-color-brand-900, #B31215) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-element-button:hover {
  background-color: var(--dg-color-brand-900, #B31215) !important;
  border-color: var(--dg-color-brand-900, #B31215) !important;
  color: var(--dg-color-white, #FFFFFF) !important;
}

/* WordPress Core Details Block / Accordion (Driverguards Design Standard) */
.wp-block-details,
details.wp-block-details {
  width: 100%;
  border-bottom: 1px solid var(--dg-color-black-300, #C4C4C4) !important;
  padding: 24px 0 !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, padding 0.2s ease !important;
  margin: 0 0 16px 0 !important;
}

.wp-block-details[open],
details.wp-block-details[open] {
  border-bottom-color: var(--dg-color-brand-900, #B31215) !important;
}

.wp-block-details summary {
  font-family: var(--dg-font-body, 'Inter', sans-serif) !important;
  font-weight: 600 !important;
  font-size: 20px !important;
  line-height: 24px !important;
  letter-spacing: -0.02em !important;
  color: var(--dg-color-black-900, #000000) !important;
  cursor: pointer !important;
  padding: 0 !important;
  outline: none !important;
  list-style: none !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  user-select: none !important;
}

.wp-block-details summary::-webkit-details-marker {
  display: none !important;
}

.wp-block-details summary::after {
  content: '+' !important;
  font-family: var(--dg-font-body, 'Inter', sans-serif) !important;
  font-size: 26px !important;
  font-weight: 400 !important;
  color: var(--dg-color-black-900, #000000) !important;
  margin-left: 12px !important;
  flex-shrink: 0 !important;
  transition: color 0.2s ease !important;
}

.wp-block-details[open] summary::after {
  content: '−' !important;
  color: var(--dg-color-brand-900, #B31215) !important;
}

.wp-block-details .wp-block-details__content,
.wp-block-details > *:not(summary) {
  font-family: var(--dg-font-body, 'Inter', sans-serif) !important;
  font-size: 16px !important;
  line-height: 24px !important;
  letter-spacing: -0.02em !important;
  color: var(--dg-color-black-600, #555555) !important;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
}

/* Mobile & Tablet Breakpoint for Buttons */
@media (max-width: 1024px) {
  .dg-btn-large,
  .dg-btn-1 {
    padding: 16px 24px;
  }

  .dg-btn-medium,
  .dg-btn-2 {
    padding: 16px 20px;
  }
}

/* ==========================================================================
   1B. ICON BUTTON COMPONENT (FIGMA NODE 128:2348)
   ========================================================================== */
.dg-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 0; /* Sharp corner */
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  border: 1px solid transparent;
  box-sizing: border-box;
  flex-shrink: 0;
  background-color: transparent;
  line-height: 1;
  padding: 0;
}

/* Icon Sizing inside Icon Button */
.dg-icon-btn .material-symbols-outlined,
.dg-icon-btn .material-icons,
.dg-icon-btn-icon,
.dg-icon-btn svg {
  font-size: 24px;
  width: 24px;
  height: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Icon Button Sizes - Desktop 1440px */
.dg-icon-btn-medium {
  width: 48px;
  height: 48px;
  padding: 12px;
}

.dg-icon-btn-large {
  width: 56px;
  height: 56px;
  padding: 16px;
}

/* Helper classes for styleguide mobile matrix preview */
.dg-icon-btn-medium-mobile {
  width: 56px;
  height: 56px;
  padding: 16px;
}

.dg-icon-btn-large-mobile {
  width: 60px;
  height: 60px;
  padding: 18px;
}

/* Icon Button Variants */
.dg-icon-btn-fill-brand {
  background-color: var(--dg-color-brand-900, #B31215);
  color: var(--dg-color-white, #FFFFFF);
  border-color: transparent;
}

.dg-icon-btn-fill-brand:hover,
.dg-icon-btn-fill-brand.dg-icon-btn-hover-state {
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.24) 100%), linear-gradient(90deg, #b31215 0%, #b31215 100%);
  color: var(--dg-color-white, #FFFFFF);
}

.dg-icon-btn-outline-brand {
  background-color: transparent;
  border: 1px solid var(--dg-color-brand-900, #B31215);
  color: var(--dg-color-brand-900, #B31215);
}

.dg-icon-btn-outline-brand:hover,
.dg-icon-btn-outline-brand.dg-icon-btn-hover-state {
  background-color: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--dg-color-brand-900, #B31215);
  color: var(--dg-color-brand-900, #B31215);
}

/* Mobile & Tablet Breakpoint for Icon Button */
@media (max-width: 1024px) {
  .dg-icon-btn-medium {
    width: 56px;
    height: 56px;
    padding: 16px;
  }

  .dg-icon-btn-large {
    width: 60px;
    height: 60px;
    padding: 18px;
  }
}

/* ==========================================================================
   2. TESTIMONIAL CARD COMPONENT (FIGMA NODE 126-2244)
   ========================================================================== */
.dg-card-testimonial {
  background-color: var(--dg-color-black-800, #262626);
  border-bottom: 4px solid var(--dg-color-brand-900, #B31215);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  padding: 36px;
  gap: 24px;
  width: 100%;
  max-width: 403px;
  min-height: 403px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dg-card-testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--dg-shadow-lg, 0 10px 20px rgba(0, 0, 0, 0.2));
}

/* Testimonial Star Ratings */
.dg-testimonial-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--dg-color-yellow-500, #CE9829);
}

.dg-testimonial-stars .material-symbols-outlined {
  font-size: 32px;
  width: 32px;
  height: 32px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 32;
  color: #CE9829;
}

/* Testimonial Message Body (Desktop: 20px Inter 400, lh: 32px, ls: -2%) */
.dg-testimonial-message {
  font-family: var(--dg-font-body, 'Inter', sans-serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: var(--dg-color-black-300, #C4C4C4);
  flex: 1;
}

/* Client Name (Desktop: 20px Inter 600, lh: 28px, ls: -2%) */
.dg-testimonial-client {
  font-family: var(--dg-font-body, 'Inter', sans-serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.02em;
  color: var(--dg-color-white, #FFFFFF);
}

/* Mobile & Tablet Adjustments for Testimonial Card */
@media (max-width: 1024px) {
  .dg-card-testimonial {
    padding: 24px;
    gap: 20px;
    max-width: 358px;
    min-height: 358px;
  }

  .dg-testimonial-stars .material-symbols-outlined {
    font-size: 28px;
    width: 28px;
    height: 28px;
  }

  .dg-testimonial-message {
    line-height: 1.6;
  }

  .dg-testimonial-client {
    line-height: 24px;
  }
}

/* ==========================================================================
   3. ARTICLE CARD COMPONENT (FIGMA NODE 134-1343)
   ========================================================================== */
.dg-card-article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  max-width: 404px;
  background-color: transparent;
  padding: 0;
  border: none;
  box-sizing: border-box;
  text-decoration: none;
  cursor: pointer;
}

/* Article Image (aspect ratio 300/200 = 3:2) */
.dg-article-thumb {
  width: 100%;
  aspect-ratio: 300 / 200;
  position: relative;
  overflow: hidden;
  background-color: var(--dg-color-black-100, #E9E9E9);
  border-radius: 0;
}

.dg-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.dg-card-article:hover .dg-article-thumb img {
  transform: scale(1.04);
}

/* Article Content */
.dg-article-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

/* Article Title (Desktop: 24px Inter 600, lh: 28px, ls: -2%, Truncate 2 lines) */
.dg-article-title {
  font-family: var(--dg-font-body, 'Inter', sans-serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.02em;
  color: var(--dg-color-black-900, #000000);
  transition: color 0.2s ease;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dg-card-article:hover .dg-article-title {
  color: var(--dg-color-brand-900, #B31215);
}

/* Article Meta (Date & Tag) - All in Black/600 (#555555) as in Figma */
.dg-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--dg-font-body, 'Inter', sans-serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--dg-color-black-600, #555555);
}

.dg-article-meta .dg-meta-dot {
  display: inline-block;
  user-select: none;
}

.dg-article-meta .dg-meta-tag {
  color: var(--dg-color-black-600, #555555);
}

/* Mobile & Tablet Adjustments for Article Card */
@media (max-width: 1024px) {
  .dg-card-article {
    max-width: 100%;
  }

  .dg-article-title {
    font-size: 20px;
    line-height: 24px;
  }
}

/* ==========================================================================
   4. ACCORDION COMPONENT (FIGMA NODE 82:323)
   ========================================================================== */
.dg-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.dg-accordion-item {
  border-bottom: 1px solid var(--dg-color-black-300, #C4C4C4);
  padding-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, padding 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.dg-accordion-item.active {
  border-bottom-color: var(--dg-color-brand-900, #B31215);
}

.dg-accordion-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dg-accordion-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.dg-accordion-number {
  font-family: var(--dg-font-body, 'Inter', sans-serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--dg-color-black-900, #000000);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.dg-accordion-title {
  font-family: var(--dg-font-body, 'Inter', sans-serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--dg-color-black-900, #000000);
  margin: 0;
  flex: 1;
}

.dg-accordion-body {
  font-family: var(--dg-font-body, 'Inter', sans-serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--dg-color-black-600, #555555);
  margin: 0;
  display: none;
}

.dg-accordion-item.with-number .dg-accordion-body {
  padding-left: 36px;
}

.dg-accordion-item.active .dg-accordion-body {
  display: block;
}

.dg-accordion-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dg-color-black-900, #000000);
  flex-shrink: 0;
}

.dg-accordion-icon .material-symbols-outlined {
  font-size: 24px;
}

/* Mobile & Tablet Adjustments for Accordion */
@media (max-width: 1024px) {
  .dg-accordion-item {
    padding-bottom: 16px;
  }
}

/* ==========================================================================
   5. CHIP COMPONENT (FIGMA NODE 187-6407)
   ========================================================================== */
.dg-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 1px solid var(--dg-color-black-300, #C4C4C4);
  background-color: transparent;
  color: var(--dg-color-black-900, #000000);
  font-family: var(--dg-font-body, 'Inter', sans-serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  padding: 16px 24px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dg-chip:hover {
  border-color: var(--dg-color-brand-900, #B31215);
  color: var(--dg-color-brand-900, #B31215);
}

.dg-chip.active,
.dg-chip-active {
  background-color: rgba(179, 18, 21, 0.24);
  border-color: var(--dg-color-brand-900, #B31215);
  color: var(--dg-color-brand-900, #B31215);
}

.dg-chip.active:hover,
.dg-chip-active:hover {
  background-color: rgba(179, 18, 21, 0.32);
}

.dg-chip-mobile {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
  padding: 14px 20px;
}

@media (max-width: 1024px) {
  .dg-chip {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.02em;
    padding: 14px 20px;
  }
}

/* ==========================================================================
   5. FOOTER COMPONENT (FIGMA NODE 134-1565)
   ========================================================================== */
.dg-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--dg-color-black-900, #000000);
  box-sizing: border-box;
}

.dg-footer-main {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--dg-color-black-900, #000000);
  padding: 120px 80px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1440px;
  margin: 0 auto;
}

/* Left Brand & Socials Column (Cols 1-3: 293px) */
.dg-footer-col-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
  width: 293px;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Right Group: Contact & Operational Hours (Cols 7-12: 622px with 36px gap) */
.dg-footer-right-group {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  box-sizing: border-box;
  width: 622px;
  flex-shrink: 0;
}

/* Footer Columns */
.dg-footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 293px;
  box-sizing: border-box;
}

/* Brand Logo (White Driverguards Logo Image) */
.dg-footer-brand-logo {
  display: inline-block;
  text-decoration: none;
  width: 183px;
  height: auto;
}

.dg-footer-brand-logo img {
  width: 183px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Bio Text */
.dg-footer-bio {
  font-family: var(--dg-font-body, 'Inter', sans-serif);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
  color: var(--dg-color-black-300, #C4C4C4);
}

/* Social Media Icons */
.dg-footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dg-footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  color: var(--dg-color-white, #FFFFFF);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.dg-footer-social-btn:hover {
  color: var(--dg-color-brand-900, #B31215);
  transform: translateY(-2px);
}

.dg-footer-social-btn svg {
  width: 40px;
  height: 40px;
  display: block;
}

/* Section Title */
.dg-footer-title {
  font-family: var(--dg-font-body, 'Inter', sans-serif);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dg-color-white, #FFFFFF);
}

/* Body Text / Description */
.dg-footer-text {
  font-family: var(--dg-font-body, 'Inter', sans-serif);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
  color: var(--dg-color-black-300, #C4C4C4);
  width: 100%;
}

a.dg-footer-text {
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

a.dg-footer-text:hover {
  color: var(--dg-color-white, #FFFFFF);
}

/* Data Row (WhatsApp, Email, Jam Operasional) */
.dg-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dg-color-black-700, #434343);
  font-family: var(--dg-font-body, 'Inter', sans-serif);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
  color: var(--dg-color-black-300, #C4C4C4);
}

.dg-footer-row .dg-row-label {
  font-weight: 400;
}

.dg-footer-row .dg-row-value {
  font-weight: 600;
  color: var(--dg-color-black-300, #C4C4C4);
}

.dg-footer-row a.dg-row-value {
  text-decoration: none;
  transition: color 0.2s;
}

.dg-footer-row a.dg-row-value:hover {
  color: var(--dg-color-white, #FFFFFF);
}

/* Copyright Bottom Bar */
.dg-footer-copyright {
  width: 100%;
  background-color: var(--dg-color-black-800, #262626);
  border-top: 1px solid var(--dg-color-black-700, #434343);
  padding: 36px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.dg-footer-copyright-text {
  font-family: var(--dg-font-body, 'Inter', sans-serif);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
  color: var(--dg-color-black-300, #C4C4C4);
  text-align: center;
  margin: 0;
}

/* Mobile Variant Class (Node 134-1564) */
.dg-footer-mobile {
  width: 100%;
  max-width: 390px;
}

.dg-footer-mobile .dg-footer-main {
  flex-direction: column !important;
  padding: 60px 16px !important;
  gap: 60px !important;
  width: 100% !important;
}

.dg-footer-mobile .dg-footer-col {
  width: 100% !important;
}

.dg-footer-mobile .dg-footer-col-brand {
  gap: 36px !important;
}

.dg-footer-mobile .dg-footer-bio {
  font-size: 16px !important;
  line-height: 24px !important;
  letter-spacing: -0.02em !important;
}

.dg-footer-mobile .dg-footer-socials {
  gap: 16px !important;
}

.dg-footer-mobile .dg-footer-social-btn {
  width: 48px !important;
  height: 48px !important;
}

.dg-footer-mobile .dg-footer-title {
  font-size: 20px !important;
  line-height: 24px !important;
  letter-spacing: 0.04em !important;
}

.dg-footer-mobile .dg-footer-text,
.dg-footer-mobile .dg-footer-row {
  font-size: 16px !important;
  line-height: 24px !important;
  letter-spacing: -0.02em !important;
}

.dg-footer-mobile .dg-footer-copyright {
  padding: 36px 16px !important;
}

.dg-footer-mobile .dg-footer-copyright-text {
  font-size: 16px !important;
  line-height: 24px !important;
  letter-spacing: -0.02em !important;
}

/* Auto Responsive Breakpoint for Standard .dg-footer (Mobile & Tablet <= 1024px) */
@media (max-width: 1024px) {
  .dg-footer-main {
    flex-direction: column;
    padding: 60px 16px;
    gap: 60px;
  }

  .dg-footer-col-left,
  .dg-footer-right-group,
  .dg-footer-col {
    width: 100%;
  }

  .dg-footer-right-group {
    flex-direction: column;
    gap: 60px;
  }

  .dg-footer-bio {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.02em;
  }

  .dg-footer-socials {
    gap: 16px;
  }

  .dg-footer-social-btn {
    width: 48px;
    height: 48px;
  }

  .dg-footer-title {
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0.04em;
  }

  .dg-footer-text,
  .dg-footer-row {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.02em;
  }

  .dg-footer-copyright {
    padding: 36px 16px;
  }

  .dg-footer-copyright-text {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.02em;
  }
}

/* ==========================================================================
   6. NAVBAR & NAV ITEM COMPONENTS (FIGMA NODE 12-28245, 73-304, 134-2341)
   ========================================================================== */

/* 6A. NAV ITEM COMPONENT (NODE 12-28245) */
.dg-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--dg-font-display, 'Bebas Neue', sans-serif);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--dg-color-white, #FFFFFF);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  user-select: none;
  cursor: pointer;
}

/* Desktop Nav Item: 80px Height, 24px Padding H, Bebas Neue 20px / 28px */
.dg-nav-item-desktop {
  height: 80px;
  padding: 0 24px;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.02em; /* -0.4px */
}

.dg-nav-item-desktop:hover {
  color: var(--dg-color-brand-900, #B31215);
}

.dg-nav-item-desktop.active,
.dg-nav-item-desktop.dg-nav-active {
  background: linear-gradient(180deg, rgba(179, 18, 21, 0) 0%, rgba(179, 18, 21, 0.24) 100%);
  color: var(--dg-color-brand-900, #B31215);
  text-shadow: 0px 0px 4px rgba(179, 18, 21, 0.5);
}

/* Desktop Active Indicator Line at Bottom */
.dg-nav-item-desktop.active::after,
.dg-nav-item-desktop.dg-nav-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 27px;
  right: 27px;
  height: 4px;
  background-color: var(--dg-color-brand-900, #B31215);
  box-shadow: 0px -1px 4px 0px #B31215;
}

/* Mobile Nav Item: 390px / Full Width, 16px 32px Padding, Bebas Neue 48px / 1 */
.dg-nav-item-mobile {
  width: 100%;
  justify-content: flex-start;
  padding: 16px 32px;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em; /* -0.96px */
}

.dg-nav-item-mobile:hover {
  color: var(--dg-color-brand-900, #B31215);
}

.dg-nav-item-mobile.active,
.dg-nav-item-mobile.dg-nav-active {
  background: linear-gradient(270deg, rgba(179, 18, 21, 0) 0%, rgba(179, 18, 21, 0.24) 100%);
  color: var(--dg-color-brand-900, #B31215);
  text-shadow: 0px 0px 4px rgba(179, 18, 21, 0.5);
}

/* Mobile Active Indicator Line at Left */
.dg-nav-item-mobile.active::before,
.dg-nav-item-mobile.dg-nav-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 48px;
  background-color: var(--dg-color-brand-900, #B31215);
  box-shadow: 0px 0px 4px 0px #B31215;
}

/* 6B. MAIN NAVBAR HEADER (FIGMA NODE 73-304) */
.dg-navbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background-color: var(--dg-color-black-900, #000000);
  height: 80px;
  position: relative;
  z-index: 90;
}

.dg-navbar-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
  box-sizing: border-box;
}

/* Transparent Variant (Black to Transparent Gradient) */
.dg-navbar-transparent {
  background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0) 100%);
}

/* Solid Black Variant (Figma Node 16:70 & 121:1295) */
.dg-navbar-black,
.dg-navbar-solid {
  background-color: var(--dg-color-black-900, #000000) !important;
  background: var(--dg-color-black-900, #000000) !important;
}

/* Brand Logo Container in Navbar (Cols 1-2: 155px) */
.dg-navbar-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  width: 155px;
  height: 56px;
}

.dg-navbar-brand img {
  width: 155px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Center Nav List (Centered across Cols 4-9) */
.dg-navbar-nav {
  display: flex;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
}

/* Right Actions (Hubungi Kami Button - Cols 11-12) */
.dg-navbar-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Mobile Navbar Toggle (Hamburger) */
.dg-navbar-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--dg-color-white, #FFFFFF);
  cursor: pointer;
  padding: 4px;
  align-items: center;
  justify-content: center;
}

.dg-navbar-toggle .material-symbols-outlined {
  font-size: 28px;
  width: 28px;
  height: 28px;
}

/* Responsive Breakpoints for Navbar (Mobile 390px - Figma Node 121:1290) */
@media (max-width: 1024px) {
  .dg-navbar {
    height: 56px;
    padding: 0;
    background: transparent;
  }

  .dg-navbar-container {
    padding: 8px 16px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
  }

  .dg-navbar-brand {
    width: 110px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .dg-navbar-brand img {
    width: 110px;
    height: 40px;
    object-fit: contain;
  }

  .dg-navbar-nav,
  .dg-navbar-actions {
    display: none;
  }

  .dg-navbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
  }

  .dg-navbar-toggle .material-symbols-outlined {
    font-size: 24px;
    width: 24px;
    height: 24px;
    line-height: 24px;
  }
}

/* 6C. NAVBAR MOBILE OPEN DRAWER (FIGMA NODE 134-2341) */
.dg-navbar-mobile-drawer {
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--dg-color-black-900, #000000);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  color: var(--dg-color-white, #FFFFFF);
}

.dg-drawer-header {
  display: none;
}

.dg-drawer-brand {
  width: 110px;
  height: 40px;
  display: flex;
  align-items: center;
}

.dg-drawer-brand img {
  width: 110px;
  height: auto;
}

.dg-drawer-close {
  background: none;
  border: none;
  color: var(--dg-color-white, #FFFFFF);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dg-drawer-close .material-symbols-outlined {
  font-size: 28px;
}

.dg-drawer-menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.dg-drawer-contact {
  width: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.dg-drawer-contact-title {
  font-family: var(--dg-font-body, 'Inter', sans-serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dg-color-white, #FFFFFF);
}

.dg-drawer-address {
  font-family: var(--dg-font-body, 'Inter', sans-serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--dg-color-black-300, #C4C4C4);
}

a.dg-drawer-address {
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

a.dg-drawer-address:hover {
  color: var(--dg-color-white, #FFFFFF);
}

.dg-drawer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dg-color-black-700, #434343);
  font-family: var(--dg-font-body, 'Inter', sans-serif);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--dg-color-black-300, #C4C4C4);
}

.dg-drawer-row .dg-drawer-row-label {
  font-weight: 400;
}

.dg-drawer-row .dg-drawer-row-val {
  font-weight: 600;
  color: var(--dg-color-black-300, #C4C4C4);
  text-decoration: none;
}

.dg-drawer-row .dg-drawer-row-val:hover {
  color: var(--dg-color-white, #FFFFFF);
}

.dg-drawer-bottom {
  width: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  box-sizing: border-box;
}

.dg-drawer-bottom .dg-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 24px;
  line-height: 28px;
}

.dg-drawer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.dg-drawer-social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--dg-color-white, #FFFFFF);
  color: var(--dg-color-black-900, #000000);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dg-drawer-social-btn:hover {
  background-color: var(--dg-color-brand-900, #B31215);
  color: var(--dg-color-white, #FFFFFF);
}

.dg-drawer-social-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Modal Drawer Overlay for Live Prototype */
.dg-drawer-modal {
  position: fixed;
  top: 56px;           /* Starts directly below the 56px navbar */
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  background-color: var(--dg-color-black-900, #000000);
  z-index: 1000;       /* Below navbar (z-index: 1001) */
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  max-height: calc(100vh - 56px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

.dg-drawer-modal.open {
  transform: translateY(0);
}

/* Sticky Navbar Utility */
.dg-navbar-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001; /* Always above the drawer (z-index: 1000) */
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.dg-navbar-sticky.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   7. LAYOUT GRID SYSTEM (FIGMA DESKTOP M80 & MOBILE M16)
   ========================================================================== */
.dg-container {
  width: 100%;
  max-width: var(--dg-grid-desktop-max-width, 1440px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--dg-grid-desktop-margin, 80px);
  padding-right: var(--dg-grid-desktop-margin, 80px);
  box-sizing: border-box;
}

.dg-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--dg-grid-desktop-gutter, 36px);
  width: 100%;
  box-sizing: border-box;
}

/* Column Span Utilities */
.dg-col-1  { grid-column: span 1; }
.dg-col-2  { grid-column: span 2; }
.dg-col-3  { grid-column: span 3; }
.dg-col-4  { grid-column: span 4; }
.dg-col-5  { grid-column: span 5; }
.dg-col-6  { grid-column: span 6; }
.dg-col-7  { grid-column: span 7; }
.dg-col-8  { grid-column: span 8; }
.dg-col-9  { grid-column: span 9; }
.dg-col-10 { grid-column: span 10; }
.dg-col-11 { grid-column: span 11; }
.dg-col-12 { grid-column: span 12; }

/* Visual Grid Overlay (Figma Red 10% Layout Guide) */
.dg-grid-overlay-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  display: none;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  box-sizing: border-box;
}

.dg-grid-overlay-container.active {
  display: flex;
}

.dg-grid-overlay-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 36px;
  width: 100%;
  height: 100%;
}

.dg-grid-overlay-col {
  background-color: rgba(255, 0, 0, 0.1);
  border-left: 1px solid rgba(255, 0, 0, 0.25);
  border-right: 1px solid rgba(255, 0, 0, 0.25);
  height: 100%;
}

@media (max-width: 1024px) {
  .dg-container {
    padding-left: var(--dg-grid-mobile-margin, 16px);
    padding-right: var(--dg-grid-mobile-margin, 16px);
  }

  .dg-grid-12 {
    grid-template-columns: 1fr;
    column-gap: var(--dg-grid-mobile-gutter, 16px);
  }

  .dg-col-1, .dg-col-2, .dg-col-3, .dg-col-4,
  .dg-col-5, .dg-col-6, .dg-col-7, .dg-col-8,
  .dg-col-9, .dg-col-10, .dg-col-11, .dg-col-12 {
    grid-column: span 1;
  }

  .dg-grid-overlay-container {
    padding: 0 16px;
  }

  .dg-grid-overlay-grid {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 16px;
  }
}

/* Floating Grid Toggle Button */
.dg-grid-toggle-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #1E1E1E;
  color: #FFFFFF;
  border: 1px solid #434343;
  padding: 10px 16px;
  border-radius: 99px;
  font-family: var(--dg-font-body, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 100000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.dg-grid-toggle-fab:hover {
  background-color: var(--dg-color-brand-900, #B31215);
  border-color: var(--dg-color-brand-900, #B31215);
  transform: translateY(-2px);
}

.dg-grid-toggle-fab.active {
  background-color: var(--dg-color-brand-900, #B31215);
  border-color: var(--dg-color-brand-900, #B31215);
  box-shadow: 0 0 12px rgba(179, 18, 21, 0.6);
}

/* ==========================================================================
   8. REUSED SPLIT CTA "WE DRIVE, YOU FOCUS" (FIGMA NODE 246:6559)
   ========================================================================== */
.dg-cta-section {
  background-color: var(--dg-color-black-900, #000000);
  padding: 0;
  width: 100%;
}

.dg-cta-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: stretch;
  min-height: 480px;
}

.dg-cta-left {
  grid-column: span 6;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
}

.dg-cta-text-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.dg-cta-title {
  font-family: 'Bebas Neue', var(--dg-font-display, sans-serif) !important;
  font-weight: 400 !important;
  font-size: 56px;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--dg-color-white, #FFFFFF) !important;
  margin: 0;
  text-transform: uppercase;
}

.dg-cta-desc {
  font-family: var(--dg-font-body, 'Inter', sans-serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: var(--dg-color-black-300, #C4C4C4) !important;
  margin: 0;
}

.dg-cta-right,
.dg-cta-media {
  grid-column: span 6;
  width: 100%;
  height: 100%;
  min-height: 480px;
  position: relative;
  display: flex;
  overflow: hidden;
}

.dg-cta-img,
.dg-cta-media img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 1024px) {
  .dg-cta-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
  }
  .dg-cta-left {
    width: 100% !important;
    padding: 60px 16px !important;
    gap: 32px !important;
    align-items: stretch !important;
  }
  .dg-cta-left > div,
  .dg-cta-action {
    width: 100% !important;
  }
  .dg-cta-left .dg-btn {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  .dg-cta-title {
    font-size: 48px;
  }
  .dg-cta-desc {
    font-size: 16px;
    line-height: 24px;
  }
  .dg-cta-right,
  .dg-cta-media {
    width: 100%;
    min-height: 240px;
    height: 240px;
  }
  .dg-cta-img,
  .dg-cta-media img {
    min-height: 240px;
    height: 240px;
  }
}

@media (max-width: 480px) {
  .dg-cta-left {
    padding: 48px 16px !important;
    gap: 28px !important;
    align-items: stretch !important;
  }
  .dg-cta-left > div,
  .dg-cta-action {
    width: 100% !important;
  }
  .dg-cta-left .dg-btn {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    padding: 16px 24px !important;
    font-size: 24px !important;
    line-height: 28px !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   ACCESSIBILITY & SKIP LINK (WCAG AA)
   ========================================================================== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
  background-color: var(--dg-color-brand-900, #B31215);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  clip: auto !important;
  clip-path: none;
  color: var(--dg-color-white, #FFFFFF);
  display: block;
  font-family: var(--dg-font-body, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 600;
  height: auto;
  left: 16px;
  line-height: 1.4;
  padding: 12px 20px;
  text-decoration: none;
  top: 16px;
  width: auto;
  z-index: 100000;
}

/* ==========================================================================
   404 NOT FOUND PAGE (FIGMA NODE 375:6974 DESKTOP & 375:7066 MOBILE)
   ========================================================================== */
.dg-404-section {
  background-color: var(--dg-color-white, #FFFFFF);
  padding: 200px 80px 120px;
  width: 100%;
  box-sizing: border-box;
}

.dg-404-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  width: 100%;
  box-sizing: border-box;
}

.dg-404-code {
  font-family: 'Bebas Neue', var(--dg-font-display, sans-serif);
  font-weight: 400;
  font-size: 96px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--dg-color-black-400, #9D9D9D);
  text-align: center;
  width: 100%;
  margin: 0;
}

.dg-404-overview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 842px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.dg-404-title {
  font-family: 'Bebas Neue', var(--dg-font-display, sans-serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--dg-color-black-900, #000000);
  text-transform: uppercase;
  margin: 0;
  width: 100%;
}

.dg-404-desc {
  font-family: var(--dg-font-body, 'Inter', sans-serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: var(--dg-color-black-600, #555555);
  margin: 0;
  width: 100%;
}

.dg-404-btn {
  padding: 14px 20px;
  gap: 10px;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.02em;
}

@media (max-width: 1024px) {
  .dg-404-section {
    padding: 116px 24px 60px;
  }

  .dg-404-inner {
    max-width: 600px;
    gap: 32px;
  }

  .dg-404-code {
    font-size: 64px;
  }

  .dg-404-title {
    font-size: 48px;
  }

  .dg-404-desc {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (max-width: 480px) {
  .dg-404-section {
    padding: 116px 16px 60px;
  }

  .dg-404-inner {
    max-width: 100%;
    gap: 32px;
  }

  .dg-404-btn {
    width: 100%;
    max-width: 100%;
    padding: 16px 24px;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   PAGE TRANSITION LOADER (DRIVING CAR + PROGRESS BAR)
   ========================================================================== */
.dg-page-loader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dg-color-black-900, #000000);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.dg-page-loader.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.dg-page-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
  max-width: 420px;
  padding: 0 24px;
  box-sizing: border-box;
}

.dg-loader-scene {
  width: 100%;
  max-width: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dg-loader-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.dg-loader-car-body {
  will-change: transform;
  animation: dgCarBounce 0.42s ease-in-out infinite alternate;
}

.dg-loader-wheel-spin {
  will-change: transform;
  animation: dgWheelSpin 0.55s linear infinite;
}

.dg-road-dashes {
  will-change: transform;
  animation: dgRoadMove 0.42s linear infinite;
}

.dg-speed-line-top {
  will-change: transform, opacity;
  animation: dgSpeedLine 0.75s linear infinite;
}

.dg-speed-line-mid {
  will-change: transform, opacity;
  animation: dgSpeedLine 0.55s linear infinite 0.12s;
}

.dg-speed-line-far {
  will-change: transform, opacity;
  animation: dgSpeedLine 0.9s linear infinite 0.25s;
}

.dg-loader-progress-track {
  width: 280px;
  max-width: 100%;
  height: 6px;
  background-color: var(--dg-color-black-500, #7B7B7B);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  transform: translateZ(0);
}

.dg-loader-progress-bar {
  width: 100%;
  height: 100%;
  background-color: var(--dg-color-brand-600, #E1322E);
  border-radius: 999px;
  will-change: transform;
  transform: translate3d(-100%, 0, 0);
}

.dg-page-loader.is-active .dg-loader-progress-bar {
  animation: dgProgressCrawl 5s cubic-bezier(0.08, 0.55, 0.18, 1) forwards;
}

@keyframes dgProgressCrawl {
  0% {
    transform: translate3d(-100%, 0, 0);
  }
  15% {
    transform: translate3d(-55%, 0, 0);
  }
  40% {
    transform: translate3d(-28%, 0, 0);
  }
  70% {
    transform: translate3d(-16%, 0, 0);
  }
  100% {
    transform: translate3d(-8%, 0, 0);
  }
}

@keyframes dgWheelSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes dgCarBounce {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(0, -2.5px, 0);
  }
}

@keyframes dgRoadMove {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-96px, 0, 0);
  }
}

@keyframes dgSpeedLine {
  0% {
    transform: translate3d(24px, 0, 0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translate3d(-48px, 0, 0);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .dg-page-loader-inner {
    gap: 24px;
  }

  .dg-loader-scene {
    max-width: 300px;
  }

  .dg-loader-progress-track {
    width: 220px;
    height: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dg-loader-car-body,
  .dg-loader-wheel-spin,
  .dg-road-dashes,
  .dg-speed-line {
    animation: none !important;
  }
}




