@charset "UTF-8";
/* Solana — homepage (Views/Template/solana/Homepage.cshtml, docs/templates/solana/home.html)
   Order: banner card → promotion band (deep green) → Produk Unggulan (white) → Katalog Produk (grey band)
   → company block (description + stats tiles). The product card, the slider arrows/dots (.hero-nav,
   .hero-dots) and the slide text styles live in main.css because other pages use them too. */

/* --------------------------------------------------------------------------
   Banner card (Components/FullSizeSlideBanner.cshtml, js/solana.js [data-ck-hero]): at most 1400 px wide
   inside a 1450 px band, 16 px corners. Image-only banners keep their own 1400:600 ratio (sellers put
   text and logos into the picture). Once any slide carries text the card takes a minimum height instead,
   the image is cropped to it and the text sits on the dark overlay.
   -------------------------------------------------------------------------- */
.hero-banner-wrap {
  max-width: 1450px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}
.hero-banner {
  max-width: 1400px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  animation: hero-banner-in .6s ease both;
}
@keyframes hero-banner-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* the card's own 1400:600 height (wrap gutters 32 px from 640 px), never under 420 px */
.hero-banner.hero-has-text .hero-track { min-height: max(420px, calc(min(100vw - 64px, 1400px) * 3 / 7)); }
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* stacking inside a slide: image, overlay, whole-slide link, text */
.hero-banner .hero-slide-text::before { z-index: 1; }
.hero-banner .hero-slide-link { z-index: 2; }
.hero-banner .hero-content {
  z-index: 3;
  width: 100%;
  padding: 48px;
}
.hero-banner .hero-title { font-size: 38px; }
.hero-banner .hero-dots { bottom: 0; }
.hero-banner .hero-dot { width: 32px; height: 44px; }

/* --------------------------------------------------------------------------
   Promotion band (Components/CompanyPromotionDescription.cshtml): one sentence on the deep green band
   -------------------------------------------------------------------------- */
.promo-band {
  padding: 64px 0;
  background: var(--primary-deep);
  color: var(--on-accent);
}
[data-theme="dark"] .promo-band { border-block: 1px solid var(--border); }
.promo-band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 896px;
  text-align: center;
}
.promo-band-text {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.375;
  overflow-wrap: anywhere;
}
.promo-band-rule {
  width: 56px;
  height: 3px;
  margin-top: 28px;
  border-radius: 999px;
  background: var(--amber);
}

/* --------------------------------------------------------------------------
   Katalog Produk (Components/LatestProducts.cshtml)
   -------------------------------------------------------------------------- */
.home-catalog-more { margin-top: 40px; text-align: center; }

/* --------------------------------------------------------------------------
   Company block (Homepage.cshtml): text column, and the stats tiles beside it from 1024 px
   -------------------------------------------------------------------------- */
.home-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px;
  align-items: center;
}
.home-about-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.home-about-grid.is-single .home-about-text { max-width: 760px; }
.home-about-title {
  margin-top: 12px;
  font-size: 30px;
  overflow-wrap: anywhere;
}
.home-about-body {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.625;
}
.home-about-body > .rich-text { line-height: inherit; }
.home-about-body > .rich-text + .rich-text { margin-top: 1em; }
.home-about-body.is-collapsed {
  max-height: 300px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent);
  mask-image: linear-gradient(to bottom, black 55%, transparent);
}
/* inline "Baca selengkapnya" under the folded text */
.home-about-toggle {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-hi);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.home-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}
/* an odd count does not leave a half-width orphan: the last tile takes the whole row */
.home-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* value above the label on screen; label first for screen readers (dt before dd) */
.home-stat {
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
  text-align: center;
}
.home-stat-value {
  margin: 0;
  color: var(--accent-hi);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.home-stat-label { color: var(--text-muted); font-size: 12px; font-weight: 400; line-height: 1.4; }

@media (min-width: 640px) {
  .hero-banner-wrap { padding: 64px 32px; }
  /* 3 or 6 values: rows of three */
  .home-stats-thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-stats-thirds .home-stat:last-child { grid-column: auto; }
  .promo-band { padding: 80px 0; }
  .promo-band-text { font-size: 2.1rem; }
}
/* with arrows (768 px and up) the text keeps clear of them */
@media (min-width: 768px) {
  .hero-banner:has(.hero-nav) .hero-content { padding-right: 88px; padding-left: 88px; }
}
@media (max-width: 1023.98px) {
  .home-about-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 767.98px) {
  .hero-banner.hero-has-text .hero-track { min-height: 360px; }
  .hero-banner .hero-content { padding: 32px 24px 52px; }
  .hero-banner .hero-title { font-size: 26px; }
  .home-about-title { font-size: 24px; }
  .home-stats { gap: 16px; }
  .home-stat { padding: 20px 16px; }
  .home-stat-value { font-size: 26px; }
}
