/* TRIBERSA — semua CSS kustom terpusat di sini (tanpa inline style di view). */
body {
  font-family: 'Inter', system-ui, sans-serif;
}
.font-display {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
}
.font-mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}
.navbar-nav .nav-link.active {
  font-weight: 600;
}

/* Brand */
.brand-badge {
  width: 2.25rem;
  height: 2.25rem;
}
.brand-badge-sm {
  width: 2rem;
  height: 2rem;
}
.brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
}
.brand-logo-img {
  height: 2.25rem;
  width: auto;
}
.brand-logo-sm {
  height: 2rem;
  width: auto;
}
.foot-head {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}
.foot-slogan {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

/* Media */
.cover-banner {
  max-height: 24rem;
  object-fit: cover;
}
.img-169 {
  aspect-ratio: 16/9;
  object-fit: cover;
}
.svc-icon {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}
.partner-logo {
  width: 100%;
  height: 4rem;
  object-fit: contain;
}
.client-logo {
  width: 100%;
  height: 9rem;
  object-fit: contain;
}
.tbl-thumb {
  height: 2.5rem;
}
.tbl-thumb-lg {
  height: 3rem;
}
.hero-slide-img {
  height: min(60vh, 30rem);
  object-fit: cover;
}
.gallery-img {
  height: 11rem;
  object-fit: cover;
}
.slide-preview {
  max-height: 6rem;
}
.page-banner {
  height: 16rem;
  object-fit: cover;
}
.contact-side-img {
  min-height: 18rem;
  object-fit: cover;
}
.contact-ico {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--bs-primary);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  background: var(--bs-tertiary-bg);
}
.contact-row + .contact-row {
  border-top: 1px solid var(--bs-border-color);
}
.cap-img {
  flex: 1 1 0;
  min-width: 0;
  height: auto;
  cursor: pointer;
  display: block;
}
@media (max-width: 1199.98px) {
  #mainNav .navbar-nav {
    width: 100%;
  }
  #mainNav .navbar-nav .nav-link {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--bs-border-color);
  }
  #mainNav .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: 0;
  }
}
@media (min-width: 1200px) {
  .nav-zone-side {
    flex: 1 1 0;
  }
  .nav-zone-right {
    justify-content: flex-end;
  }
  #mainNav {
    width: auto;
  }
  #mainNav .navbar-nav {
    width: auto;
  }
}
span.brand-image {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 1.1rem;
}
.foot-credit {
  background: #343a40;
  color: #dee2e6;
}
.foot-contact {
  border-color: #495057 !important;
}
.foot-contact .contact-row + .contact-row {
  border-top-color: #495057;
}
.tech-card-body {
  min-height: 6rem;
}
.brand-modal-logo {
  max-height: 9rem;
  object-fit: contain;
}
.caption-dim {
  --bs-bg-opacity: 0.55;
}
.wa-float {
  width: 3rem;
  height: 3rem;
}

/* Form & teks */
.form-search {
  max-width: 28rem;
}
.form-card {
  max-width: 44rem;
}
.auth-card {
  max-width: 28rem;
}
.text-preline {
  white-space: pre-line;
}
.narrow-28 {
  max-width: 28rem;
}

/* Chrome publik: bedakan header & footer di tiap mode */
.site-header {
  border-bottom: 1px solid var(--bs-border-color);
}
.site-footer-accent {
  height: 4px;
  background: var(--bs-primary);
}
html[data-bs-theme='dark'] .site-header {
  background-color: #2b3035 !important;
  border-bottom-color: #495057;
}
html[data-bs-theme='dark'] .site-footer {
  background-color: #000 !important;
}
html[data-bs-theme='dark'] .site-footer .border-secondary {
  border-color: #495057 !important;
}

/* Full-bleed: bobol padding main agar section selebar viewport */
.full-bleed {
  margin-left: -1rem;
  margin-right: -1rem;
  border-radius: 0 !important;
}
.full-bleed .carousel-inner,
.full-bleed.card {
  border-radius: 0 !important;
}
.full-bleed-top {
  margin-top: -1.5rem;
}
.full-bleed-bottom {
  margin-bottom: -1.5rem;
}
@media (min-width: 768px) {
  .full-bleed {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }
}

/* CTA band lebar */
.cta-band > .card-body {
  padding: 2.5rem 1.5rem;
}
.cta-band h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.75rem);
}
@media (min-width: 992px) {
  .cta-band > .card-body {
    padding: 3.5rem 3rem;
  }
}

/* Logo marquee: geser kontinu mulus, jeda saat hover, hormati reduced-motion */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 32s linear infinite;
}
.logo-track > .logo-card {
  width: 11rem;
  flex-shrink: 0;
  margin-right: 1rem;
}
.logo-track > .logo-card > .card-body {
  min-height: 5.5rem;
}
.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}
@keyframes logo-scroll {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
}

/* Galeri teknologi: animasi pop saat filter, hormati reduced-motion */
.tech-grid {
  transition: opacity 0.16s ease;
}
.tech-grid.tech-fading {
  opacity: 0;
}
.tech-grid .tech-card-item {
  animation: tech-pop 0.45s ease both;
}
@keyframes tech-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tech-grid {
    transition: none;
  }
  .tech-grid .tech-card-item {
    animation: none;
  }
}

/* Admin */
.select2-container {
  width: 100% !important;
}
@media (max-width: 640px) {
  .select2-dropdown {
    font-size: 16px;
  }
}
