/* Galeri, Portofolio & Testimoni — BANTENG MAS BERJAYA */
:root {
  --trust-gold: #c9a962;
  --trust-crimson: #dc2626;
  --trust-onyx: #0a0a0a;
  --trust-card: #141416;
}

.trust-section {
  position: relative;
  overflow: hidden;
}

.trust-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgb(220 38 38 / 6%), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgb(201 169 98 / 5%), transparent 55%);
}

.trust-inner {
  position: relative;
  margin-inline: auto;
  max-width: 80rem;
  padding: 4.5rem 1.5rem;
}

.trust-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.trust-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #f87171;
}

.trust-title {
  margin-top: 1rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 300;
  color: #f5f5f5;
  line-height: 1.2;
}

.trust-title em {
  font-style: italic;
  background: linear-gradient(135deg, #e8d5a8, #c9a962 45%, #a88b4a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trust-sub {
  margin: 1rem auto 0;
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #b8b8b8;
}

/* —— Galeri —— */
.trust-gallery {
  background: var(--trust-onyx);
  border-top: 1px solid rgb(201 169 98 / 10%);
}

.trust-gallery-grid {
  display: grid;
  gap: 0.875rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .trust-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.trust-gallery-item {
  position: relative;
  display: block;
  margin: 0;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.35rem;
  border: 1px solid rgb(201 169 98 / 14%);
  cursor: pointer;
  background: var(--trust-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.trust-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgb(0 0 0 / 45%);
}

.trust-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.trust-gallery-item:hover img {
  transform: scale(1.06);
}

/* Item terakhir sendirian — tengah di mobile 2 kolom */
@media (max-width: 767px) {
  .trust-gallery-item:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
    width: 100%;
    max-width: calc((100% - 0.875rem) / 2);
    justify-self: center;
  }
}

/* Item terakhir sendirian — tengah di desktop 3 kolom */
@media (min-width: 768px) {
  .trust-gallery-item:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

/* 2 item terakhir di baris — tengah (4, 7, 10 foto, dll.) */
@media (min-width: 768px) {
  .trust-gallery-item:nth-last-child(2):nth-child(3n + 1) {
    grid-column: 1;
  }

  .trust-gallery-item:last-child:nth-child(3n + 2) {
    grid-column: 2;
  }
}

.trust-gallery-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.5rem 0.85rem 0.75rem;
  background: linear-gradient(transparent, rgb(0 0 0 / 82%));
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8e8e8;
}

.trust-gallery-cap strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--trust-gold);
}

/* Lightbox */
.trust-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgb(0 0 0 / 88%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.trust-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.trust-lightbox img {
  max-width: min(92vw, 56rem);
  max-height: 82vh;
  border-radius: 0.4rem;
  border: 1px solid rgb(201 169 98 / 25%);
  box-shadow: 0 24px 60px rgb(0 0 0 / 55%);
}

.trust-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(201 169 98 / 30%);
  border-radius: 50%;
  background: rgb(20 20 22 / 90%);
  color: var(--trust-gold);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.trust-lightbox-cap {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: #ddd;
  text-align: center;
}

/* —— Portofolio —— */
.trust-portfolio {
  background:
    linear-gradient(180deg, #0d0d0d 0%, #111 100%);
  border-top: 1px solid rgb(201 169 98 / 10%);
}

.trust-portfolio-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .trust-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .trust-portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.4rem;
  border: 1px solid rgb(201 169 98 / 16%);
  background: var(--trust-card);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.trust-portfolio-card:hover {
  border-color: rgb(201 169 98 / 35%);
  transform: translateY(-4px);
}

.trust-portfolio-visual {
  position: relative;
  height: 11rem;
  overflow: hidden;
}

.trust-portfolio-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-portfolio-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgb(10 10 10 / 75%));
}

.trust-portfolio-icon {
  position: absolute;
  bottom: 0.75rem;
  left: 0.85rem;
  z-index: 1;
  font-size: 1.5rem;
}

.trust-portfolio-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.trust-portfolio-body h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #f0f0f0;
}

.trust-portfolio-body p {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #a8a8a8;
}

.trust-portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.trust-portfolio-tags span {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgb(201 169 98 / 20%);
  background: rgb(201 169 98 / 6%);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--trust-gold);
}

/* —— Testimoni & Mitra —— */
.trust-testimonials {
  background: var(--trust-onyx);
  border-top: 1px solid rgb(201 169 98 / 10%);
  padding-bottom: 5rem;
}

.trust-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2.5rem;
}

.trust-partner-badge {
  padding: 0.45rem 1rem;
  border-radius: 0.25rem;
  border: 1px solid rgb(201 169 98 / 18%);
  background: rgb(20 20 22 / 80%);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4c4c4;
}

.trust-carousel {
  position: relative;
  max-width: 48rem;
  margin-inline: auto;
  overflow: hidden;
}

.trust-carousel-track {
  display: grid;
  align-items: start;
}

.trust-testimonial-card {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
  pointer-events: none;
  padding: 1.75rem 1.5rem;
  border-radius: 0.45rem;
  border: 1px solid rgb(201 169 98 / 18%);
  background:
    linear-gradient(145deg, rgb(24 24 26 / 95%), rgb(14 14 16 / 98%));
  box-shadow: 0 20px 48px rgb(0 0 0 / 35%);
}

@media (min-width: 640px) {
  .trust-testimonial-card {
    padding: 2rem 2.25rem;
  }
}

.trust-testimonial-card.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.trust-quote-mark {
  flex-shrink: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.25rem;
  line-height: 1;
  color: rgb(201 169 98 / 35%);
}

@media (min-width: 640px) {
  .trust-quote-mark {
    font-size: 2.75rem;
  }
}

.trust-testimonial-text {
  flex: 1 1 auto;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.7;
  font-style: italic;
  color: #d4d4d4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (min-width: 640px) {
  .trust-testimonial-text {
    font-size: 0.95rem;
    line-height: 1.75;
  }
}

.trust-testimonial-author {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex-shrink: 0;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgb(201 169 98 / 12%);
}

.trust-author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgb(201 169 98 / 25%);
  background: rgb(159 43 43 / 25%);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  color: var(--trust-gold);
}

.trust-testimonial-author > div {
  min-width: 0;
  flex: 1;
}

.trust-author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f0f0f0;
  overflow-wrap: anywhere;
}

.trust-author-role {
  font-size: 0.75rem;
  line-height: 1.45;
  color: #888;
  margin-top: 0.15rem;
  overflow-wrap: anywhere;
}

.trust-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding-top: 0.25rem;
}

.trust-carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: none;
  background: rgb(201 169 98 / 25%);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.trust-carousel-dot.is-active {
  background: var(--trust-gold);
  transform: scale(1.2);
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  max-width: 48rem;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .trust-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-stat {
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-radius: 0.35rem;
  border: 1px solid rgb(201 169 98 / 12%);
  background: rgb(18 18 20 / 60%);
}

.trust-stat strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
  color: var(--trust-gold);
}

.trust-stat span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
}

.trust-testimonial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.trust-verified-badge,
.trust-industry-tag {
  display: inline-block;
  border-radius: 2px;
  padding: 0.2rem 0.55rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trust-verified-badge {
  border: 1px solid rgb(34 197 94 / 0.35);
  background: rgb(20 83 45 / 0.2);
  color: #86efac;
}

.trust-industry-tag {
  border: 1px solid rgb(127 29 29 / 0.35);
  background: rgb(69 10 10 / 0.25);
  color: #fca5a5;
}

.trust-author-company {
  font-size: 0.78rem;
  font-weight: 400;
  color: #a8a29e;
}