/* Homepage visual upgrade: scoped by home-premium.js to avoid changing app logic. */
body.home-premium {
  --premium-ink: #101318;
  --premium-panel: #151a22;
  --premium-steel: #7f8a96;
  --premium-line: rgba(16, 19, 24, 0.1);
  --premium-red: #d52f2b;
  --premium-gold: #c9a15d;
  background: #f6f7f8;
}

body.home-premium .top-bar {
  background: #101318;
}

body.home-premium .main-nav {
  height: 72px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(16, 19, 24, 0.08);
  box-shadow: 0 14px 36px rgba(16, 19, 24, 0.08);
  backdrop-filter: blur(16px);
}

body.home-premium .main-nav-inner {
  max-width: 1520px;
}

body.home-premium .logo img {
  height: 40px;
}

body.home-premium .nav-link {
  font-weight: 600;
}

body.home-premium .nav-link:after {
  left: 18px;
  right: 18px;
  height: 2px;
}

body.home-premium .contact-btn {
  border-radius: 4px;
  background: linear-gradient(135deg, #e33c37 0%, #af1e1b 100%);
  box-shadow: 0 10px 24px rgba(213, 47, 43, 0.22);
}

body.home-premium .hero-carousel {
  position: relative;
  height: clamp(560px, 62vh, 640px);
  min-height: 560px;
  background: #0d1117;
  overflow: hidden;
}

body.home-premium .hero-carousel:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 10, 15, 0.32) 0%, rgba(7, 10, 15, 0.14) 24%, rgba(7, 10, 15, 0.04) 58%, rgba(7, 10, 15, 0.08) 100%),
    linear-gradient(180deg, rgba(7, 10, 15, 0.03) 0%, rgba(7, 10, 15, 0.06) 56%, rgba(7, 10, 15, 0.46) 100%);
}

body.home-premium .hero-carousel:after {
  content: none;
  display: none;
  position: absolute;
  left: max(40px, calc((100vw - 1400px) / 2 + 40px));
  top: auto;
  bottom: 92px;
  z-index: 4;
  max-width: min(520px, calc(100% - 80px));
  transform: none;
  white-space: normal;
  color: #fff;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
  padding: 12px 16px;
  border-left: 3px solid rgba(213, 47, 43, 0.9);
  background: linear-gradient(90deg, rgba(9, 13, 19, 0.62), rgba(9, 13, 19, 0.18));
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

body.home-premium .carousel-container {
  position: absolute;
  inset: 0;
}

body.home-premium .carousel-container:before {
  display: none;
}

body.home-premium .carousel-container:after {
  display: none;
}

body.home-premium .banner-caption {
  position: absolute;
  bottom: 92px;
  z-index: 4;
  max-width: min(420px, calc(100% - 88px));
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(8, 12, 18, 0.5), rgba(8, 12, 18, 0.18));
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

body.home-premium .banner-caption-left {
  left: max(36px, calc((100vw - 1400px) / 2 + 36px));
}

body.home-premium .banner-caption-right {
  right: max(36px, calc((100vw - 1400px) / 2 + 36px));
  text-align: right;
}

body.home-premium .carousel-slide {
  height: 100%;
}

body.home-premium .carousel-bg,
body.home-premium .carousel-bg img,
body.home-premium .carousel-bg video {
  height: 100%;
}

body.home-premium .carousel-bg img,
body.home-premium .carousel-bg video {
  width: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.06);
  transform: scale(1.02);
}

body.home-premium .carousel-slide.active .carousel-bg img,
body.home-premium .carousel-slide.active .carousel-bg video {
  animation: premiumHeroDrift 8s ease-out both;
}

body.home-premium .carousel-prev,
body.home-premium .carousel-next {
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(12, 16, 22, 0.42);
  color: #fff;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

body.home-premium .carousel-prev:hover,
body.home-premium .carousel-next:hover {
  background: rgba(213, 47, 43, 0.88);
  border-color: rgba(255, 255, 255, 0.34);
}

body.home-premium .carousel-indicators {
  z-index: 5;
  bottom: 44px;
  gap: 10px;
}

body.home-premium .indicator {
  width: 38px;
  height: 3px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.42);
  opacity: 1;
}

body.home-premium .indicator.active {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(213, 47, 43, 0.2), 0 0 18px rgba(213, 47, 43, 0.55);
}

body.home-premium .solutions-section,
body.home-premium .products-section,
body.home-premium .news-section,
body.home-premium .about-section,
body.home-premium .locations-section {
  position: relative;
  overflow: hidden;
}

body.home-premium .solutions-section {
  padding: 96px 0 88px;
  background:
    linear-gradient(135deg, #f7f8fa 0%, #eef1f4 54%, #ffffff 100%),
    repeating-linear-gradient(90deg, transparent 0, transparent 118px, rgba(16, 19, 24, 0.04) 118px, rgba(16, 19, 24, 0.04) 119px);
}

body.home-premium .products-section {
  padding: 96px 0;
  background: #ffffff;
}

body.home-premium .news-section {
  padding: 92px 0;
  background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%);
}

body.home-premium .section-header {
  max-width: 1480px;
  padding: 0 40px 42px;
}

body.home-premium .section-header > div {
  position: relative;
  padding-left: 24px;
}

body.home-premium .section-header > div:before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 52px;
  background: linear-gradient(180deg, var(--premium-red), var(--premium-gold));
}

body.home-premium .section-title {
  font-size: 36px;
  line-height: 1.22;
  font-weight: 800;
  color: var(--premium-ink);
}

body.home-premium .section-subtitle {
  color: #66707c;
  font-size: 16px;
}

body.home-premium .view-all-btn {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(213, 47, 43, 0.26);
  border-radius: 4px;
  background: #fff;
  color: #bd2925;
  box-shadow: 0 8px 20px rgba(16, 19, 24, 0.06);
}

body.home-premium .view-all-btn:hover {
  gap: 10px;
  background: #bd2925;
  color: #fff;
}

body.home-premium .products-grid {
  max-width: 1480px;
  gap: 28px;
}

body.home-premium .product-card {
  border-radius: 8px;
  border: 1px solid rgba(16, 19, 24, 0.08);
  box-shadow: 0 12px 34px rgba(16, 19, 24, 0.08);
  background: #fff;
}

body.home-premium .product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(213, 47, 43, 0.28);
  box-shadow: 0 24px 54px rgba(16, 19, 24, 0.14);
}

body.home-premium .product-image {
  height: 226px;
  background: #dfe3e7;
}

body.home-premium .product-image:after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(16, 19, 24, 0.34));
  pointer-events: none;
}

body.home-premium .product-image {
  position: relative;
}

body.home-premium .product-content {
  padding: 24px 24px 26px;
}

body.home-premium .product-category {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 14px;
  padding: 4px 9px;
  color: #a9211e;
  background: rgba(213, 47, 43, 0.08);
  border: 1px solid rgba(213, 47, 43, 0.13);
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 0;
}

body.home-premium .product-title {
  min-height: 46px;
  font-size: 19px;
  line-height: 1.35;
}

body.home-premium .product-desc {
  min-height: 64px;
  color: #5d6670;
  font-size: 14px;
  line-height: 1.65;
}

body.home-premium .product-link {
  color: #bd2925;
}

body.home-premium .news-grid {
  max-width: 1480px;
  gap: 14px;
}

body.home-premium .news-card {
  min-height: 74px;
  border: 1px solid rgba(16, 19, 24, 0.08) !important;
  border-left: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 26px rgba(16, 19, 24, 0.07) !important;
}

body.home-premium .news-card:before {
  content: "";
  align-self: stretch;
  width: 4px;
  margin: -16px 14px -16px -20px;
  background: linear-gradient(180deg, var(--premium-red), var(--premium-gold));
}

body.home-premium .news-card:hover {
  transform: translateX(6px) !important;
  box-shadow: 0 18px 40px rgba(16, 19, 24, 0.12) !important;
}

body.home-premium .news-title a:hover {
  color: #bd2925 !important;
}

body.home-premium .about-section {
  padding: 96px 0;
  background:
    linear-gradient(135deg, #f4f6f8 0%, #ffffff 42%, #eef2f5 100%),
    repeating-linear-gradient(90deg, transparent 0, transparent 116px, rgba(16, 19, 24, 0.04) 116px, rgba(16, 19, 24, 0.04) 117px);
}

body.home-premium .about-section:before {
  display: none;
}

body.home-premium .about-grid {
  max-width: 1480px;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

body.home-premium .about-image:before,
body.home-premium .about-image:after {
  display: none;
}

body.home-premium .about-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  align-self: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(16, 19, 24, 0.08);
  box-shadow: 0 24px 60px rgba(16, 19, 24, 0.1);
}

body.home-premium .about-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 56%;
  border-radius: 8px;
  box-shadow: none;
}

body.home-premium .about-image:hover img {
  transform: none;
  box-shadow: none;
}

body.home-premium .about-content {
  padding: 42px 46px;
  border: 1px solid rgba(16, 19, 24, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 55px rgba(16, 19, 24, 0.08);
  backdrop-filter: blur(10px);
}

body.home-premium .about-content h2 {
  font-size: 40px;
  color: var(--premium-ink);
}

body.home-premium .about-content > p {
  padding-left: 0;
  color: #49525d;
  font-size: 15px;
  line-height: 1.9;
}

body.home-premium .about-content > p:before {
  display: none;
}

body.home-premium .about-stats {
  margin-top: 34px;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f6f8fa);
  border: 1px solid rgba(16, 19, 24, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.home-premium .about-stats:before {
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--premium-red), var(--premium-gold));
}

body.home-premium .stat-box h3 {
  background: linear-gradient(135deg, var(--premium-red), #111720);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 0;
  line-height: 1;
}

body.home-premium .stat-box h3:before {
  display: inline-block;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
}

body.home-premium .stat-box:nth-child(1) h3:before {
  content: "20+";
}

body.home-premium .stat-box:nth-child(2) h3:before {
  content: "100+";
}

body.home-premium .stat-box:nth-child(3) h3:before {
  content: "300+";
}

body.home-premium .stat-box p {
  color: #5c6570;
}

body.home-premium .locations-section {
  padding: 96px 0;
  background:
    linear-gradient(135deg, #0e1218 0%, #171d25 58%, #221816 100%),
    repeating-linear-gradient(90deg, transparent 0, transparent 118px, rgba(255, 255, 255, 0.04) 118px, rgba(255, 255, 255, 0.04) 119px);
}

body.home-premium .locations-header h2 {
  font-size: 36px;
  font-weight: 800;
}

body.home-premium .location-card {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.home-premium .location-type {
  border-radius: 4px;
  background: rgba(213, 47, 43, 0.92);
}

@keyframes premiumHeroDrift {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

@media (max-width: 1200px) {
  body.home-premium .hero-carousel:after {
    font-size: 18px;
    max-width: 520px;
  }

  body.home-premium .banner-caption {
    bottom: 84px;
    max-width: min(360px, calc(100% - 64px));
    font-size: 18px;
  }

  body.home-premium .carousel-container:before {
    display: none;
  }

  body.home-premium .product-image {
    height: 240px;
  }
}

@media (max-width: 992px) {
  body.home-premium .hero-carousel {
    height: 600px;
    min-height: 600px;
  }

  body.home-premium .hero-carousel:after {
    top: auto;
    bottom: 82px;
    font-size: 18px;
    max-width: 460px;
  }

  body.home-premium .banner-caption {
    bottom: 82px;
    font-size: 17px;
  }

  body.home-premium .banner-caption-left {
    left: 28px;
  }

  body.home-premium .banner-caption-right {
    right: 28px;
  }

  body.home-premium .carousel-container:before {
    display: none;
  }

  body.home-premium .about-section {
    background: #f7f8fa;
  }

  body.home-premium .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.home-premium .main-nav {
    height: 64px;
  }

  body.home-premium .hero-carousel {
    height: 520px;
    min-height: 520px;
    aspect-ratio: auto;
  }

  body.home-premium .hero-carousel:before {
    background:
      linear-gradient(180deg, rgba(8, 12, 18, 0.04) 0%, rgba(8, 12, 18, 0.08) 50%, rgba(8, 12, 18, 0.44) 100%),
      linear-gradient(90deg, rgba(8, 12, 18, 0.18) 0%, rgba(8, 12, 18, 0.04) 48%, transparent 100%);
  }

  body.home-premium .hero-carousel:after {
    content: none;
    display: none;
    left: 22px;
    right: 22px;
    top: auto;
    bottom: 72px;
    max-width: none;
    font-size: 15px;
    line-height: 1.24;
    padding: 9px 12px;
  }

  body.home-premium .banner-caption {
    bottom: 74px;
    left: 22px;
    right: auto;
    max-width: min(300px, calc(100% - 44px));
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.4;
    border-radius: 18px;
    text-align: left;
    background: linear-gradient(135deg, rgba(8, 12, 18, 0.42), rgba(8, 12, 18, 0.16));
  }

  body.home-premium .banner-caption-right {
    right: auto;
  }

  body.home-premium .carousel-container:before,
  body.home-premium .carousel-container:after {
    display: none;
  }

  body.home-premium .carousel-indicators {
    bottom: 28px;
  }

  body.home-premium .indicator {
    width: 28px;
  }

  body.home-premium .solutions-section,
  body.home-premium .products-section,
  body.home-premium .news-section,
  body.home-premium .about-section,
  body.home-premium .locations-section {
    padding: 68px 0;
  }

  body.home-premium .section-header {
    padding: 0 22px 30px;
  }

  body.home-premium .section-title,
  body.home-premium .locations-header h2 {
    font-size: 28px;
  }

  body.home-premium .products-grid,
  body.home-premium .news-grid,
  body.home-premium .locations-grid {
    padding: 0 22px;
  }

  body.home-premium .product-title,
  body.home-premium .product-desc {
    min-height: 0;
  }

  body.home-premium .news-card {
    align-items: flex-start !important;
    padding: 16px !important;
    gap: 10px;
  }

  body.home-premium .news-card:before {
    display: none;
  }

  body.home-premium .about-content {
    padding: 30px 22px;
  }
}

@media (max-width: 480px) {
  body.home-premium .hero-carousel:after {
    bottom: 66px;
    font-size: 14px;
  }

  body.home-premium .banner-caption {
    bottom: 68px;
    max-width: min(260px, calc(100% - 36px));
    padding: 9px 12px;
    font-size: 14px;
  }

  body.home-premium .carousel-container:before,
  body.home-premium .carousel-container:after {
    display: none;
  }
}
