/* ===== SERVICES HERO ===== */

.services-hero {
  background:
    radial-gradient(circle at top left, rgba(241, 90, 41, 0.08) 0, transparent 55%),
    #f8fafc;
  padding: 72px 0 48px;
}

.services-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.services-hero-text h1 {
  font-size: clamp(26px, 3.2vw, 32px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.services-hero-sub {
  font-size: 14px;
  max-width: 520px;
}

.services-hero-card {
  padding: 16px 16px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.services-hero-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

/* ===== SERVICES TABS HEADER (ANCHOR KE SECTION) ===== */

.services-tabs {
  position: sticky;
  top: var(--header-height, 64px);
  z-index: 8;
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.98), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(209, 213, 219, 0.8);
}

.services-tabs-inner {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  overflow-x: auto;
}

.services-tab-btn {
  position: relative;
  border: none;
  background: transparent;
  padding: 6px 10px 8px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}

.services-tab-btn::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #f97316, #ea580c);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.services-tab-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.services-tab-btn.is-active {
  color: #111827;
  background: #fff7ed;
}

.services-tab-btn.is-active::after {
  transform: scaleX(1);
}

@media (max-width: 640px) {
  .services-tabs {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  }
}

/* ===== SECTION HEADER ===== */

.services-section-header {
  margin-bottom: 18px;
}

.services-section-sub {
  font-size: 13px;
  color: var(--muted);
  max-width: 560px;
}

/* ===== SECTION WRAPPER ===== */

.services-section {
  background: #ffffff;
}

.services-section:nth-of-type(even) {
  background: #f9fafb;
}

/* ===== LIST LAYANAN ===== */

.services-list-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.services-list-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.services-list-item h3 {
  font-size: 15px;
  margin: 0 0 4px;
}

.services-list-item p {
  font-size: 13px;
  margin: 0;
}

.services-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  border-color: rgba(241, 90, 41, 0.9);
}

/* ===== ISO OVERVIEW (WHAT WE DO) ===== */

.iso-overview {
  background: #f9fafb;
  padding: 64px 0 56px;
}

.iso-overview-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.iso-overview-hero {
  background: #f15a29;
  color: #ffffff;
  border-radius: 24px;
  padding: 32px 28px 34px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.iso-overview-pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(254, 254, 254, 0.7);
  margin-bottom: 10px;
}

.iso-overview-title {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.25;
  font-weight: 700;
  max-width: 520px;
  margin-bottom: 10px;
}

.iso-overview-sub {
  font-size: 14px;
  max-width: 520px;
  opacity: 0.95;
  color: #111827;    /* warna hitam */
}


/* dekorasi kanan */
.iso-overview-hero::after {
  content: "";
  position: absolute;
  right: 12%;
  top: 18%;
  width: 180px;
  height: 180px;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.5;
}

/* grid bawah */

.iso-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.iso-overview-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  font-size: 13px;
}

.iso-overview-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: #111827;
}

.iso-overview-item p {
  margin: 0;
  color: #4b5563;
}

/* ===== GALERI STATIS THUMBNAIL ===== */

.services-gallery {
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid rgba(209, 213, 219, 0.7);
  background: #ffffff;
  padding: 16px;
}

.services-gallery-static {
  padding: 0;
}

/* Grid 3 kolom di desktop */
.services-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start; /* tiap item mulai dari atas, tinggi bebas */
}

/* Thumbnail: foto utuh, tidak di-crop */
.services-gallery-grid img {
  width: 100%;
  height: auto;          /* tinggi ikut rasio asli */
  object-fit: contain;   /* seluruh gambar terlihat tanpa crop [web:4][web:18] */
  border-radius: 10px;
  display: block;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
  background: #f3f4f6;   /* warna abu2 muda jika ada ruang kosong */
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Hover ringan (opsional) */
.services-gallery-grid img:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

/* RESPONSIVE BREAKPOINT UNTUK GALERI */
@media (max-width: 960px) {
  .services-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .services-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ===== CTA ===== */

.services-cta {
  background: #f9fafb;
}

.services-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.services-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== SCROLL REVEAL ===== */

.services-hero-inner,
.services-section-header,
.services-list-block,
.services-gallery,
.services-cta-inner {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.services-section-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 960px) {
  .services-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .iso-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .iso-overview-hero::after {
    right: 6%;
    top: 32%;
    width: 140px;
    height: 140px;
  }

  .services-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .services-list-block {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .services-cta-inner {
    align-items: stretch;
  }

  .services-cta-actions {
    width: 100%;
  }

  .services-cta-actions .btn-primary,
  .services-cta-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .iso-overview {
    padding: 52px 0 44px;
  }

  .iso-overview-hero {
    padding: 26px 20px 28px;
  }

  .iso-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
